/* ==========
   THEME / BASE
   ========== */
:root {
  --carbon: #0B0B0B;
  --offwhite: #F7F7F5;
  --pink: #FF6EC7;
  --green: #4B5320;
  --nosha-bg: #0c0f0d;
  --nosha-fg: #f3f3f0;
  --nosha-muted: rgba(243, 243, 240, 0.72);
  --nosha-accent: #FF1493;
  --nosha-accent2: #4B5320;
  --nosha-border: rgba(243, 243, 240, 0.12);
}

@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/BebasNeue-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("assets/fonts/WorkSans-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--carbon);
  color: var(--offwhite);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ==========
   CUSTOM CURSOR (FIXED)
   ========== */
.cursor {
  position: fixed;
  width: 22px;
  height: 46px;
  pointer-events: none;
  z-index: 20000;
  mix-blend-mode: normal;
  isolation: isolate;
  opacity: 0;
  transition: opacity 0.3s ease;
  left: 0;
  top: 0;
}

.cursor .cursor-img {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 600px;
  transition: transform 0.25s ease, filter 0.3s ease;
  object-fit: contain;
  /* fondo oscuro (default) */
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.cursor.active {
  opacity: 1;
}

/* hover en fondo oscuro */
.cursor.expand .cursor-img {
  transform: scale(1.18);
  filter: drop-shadow(0 0 10px rgba(255, 110, 199, 0.9)) drop-shadow(0 4px 14px rgba(255, 110, 199, 0.75));
}

/* fondo claro */
.cursor.invert .cursor-img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}

/* hover en fondo claro */
.cursor.invert.expand .cursor-img {
  filter: drop-shadow(0 3px 10px rgba(180, 0, 80, 0.9)) drop-shadow(0 0 6px rgba(180, 0, 80, 0.6));
}

/* Trail en capas */
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 19999;
  opacity: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 110, 199, 0.45);
  background: linear-gradient(135deg,
    rgba(255, 110, 199, 0.18) 0%,
    rgba(75, 83, 32, 0.12) 100%
  );
  box-shadow: 0 0 14px rgba(255, 110, 199, 0.16);
  mix-blend-mode: normal;
  transition: opacity 0.35s ease;
  left: 0;
  top: 0;
}

.cursor-trail::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cursor-trail.active {
  opacity: 1;
}

.cursor-trail.invert {
  border-color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(200, 200, 200, 0.15) 100%
  );
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.trail-secondary {
  width: 60px;
  height: 60px;
  border-color: rgba(255, 110, 199, 0.25);
  background: linear-gradient(135deg,
    rgba(255, 110, 199, 0.08) 0%,
    rgba(75, 83, 32, 0.08) 100%
  );
  box-shadow: 0 0 30px rgba(255, 110, 199, 0.15);
  opacity: 0;
}

.trail-secondary.invert {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
}

/* Language toggle */
.lang-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  background: rgba(11, 11, 11, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  z-index: 11000;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--offwhite);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease;
}

.lang-btn.active {
  background: var(--pink);
  color: var(--carbon);
}

/* ==========
   TYPOGRAPHY
   ========== */
h1,h2,h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem,8vw,7rem); line-height:.9; }
h2 { font-size: clamp(2rem,5vw,4rem); line-height:.95; }
h3 { font-size: clamp(1.2rem,3vw,2rem); line-height:1; }
p { font-size: clamp(.95rem,1.5vw,1.1rem); font-weight:300; letter-spacing:.01em; }

.container { max-width:1400px; width:100%; margin:0 auto; }

/* ==========
   SECTIONS
   ========== */
section {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4rem 2rem;
  position:relative;
  opacity:0;
  transform:scale(.98);
  transition:opacity 1.2s ease, transform 1.2s ease;
}
section.visible { opacity:1; transform:scale(1); }

/* ==========
   MANIFESTO PREAMBLE
   ========== */
.nosha-manifesto {
  background: var(--nosha-bg);
  color: var(--nosha-fg);
  padding: clamp(24px, 5vw, 72px) 16px;
  min-height: auto;
  display: block;
  align-items: stretch;
  justify-content: flex-start;
}
.nosha-manifesto__inner {
  max-width: 860px;
  margin: 0 auto;
  border-left: 2px solid var(--nosha-border);
  padding-left: clamp(16px, 3vw, 28px);
}
.nosha-manifesto__header { margin-bottom: 24px; }
.nosha-manifesto__flag {
  margin: 0 0 10px 0;
  font-size: 20px;
  opacity: 0.9;
}
.nosha-manifesto__title {
  margin: 0;
  font-family: 'Work Sans', -apple-system, 'Inter', Arial, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.nosha-manifesto__sub {
  margin: 8px 0 0 0;
  font-family: 'Work Sans', -apple-system, 'Inter', Arial, sans-serif;
  color: var(--nosha-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
.nosha-manifesto__body {
  margin-top: 22px;
  font-family: 'Work Sans', -apple-system, 'Inter', Arial, sans-serif;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
}
.nosha-manifesto__body p {
  margin: 0 0 14px 0;
  max-width: 70ch;
}
.nosha-manifesto__body strong {
  font-weight: 900;
  color: var(--nosha-fg);
  text-shadow: 0 0 0 transparent;
  border-bottom: 2px solid rgba(255, 20, 147, 0.35);
  padding-bottom: 1px;
}
.nosha-manifesto__footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--nosha-border);
}
.nosha-manifesto__tagline {
  margin: 0;
  font-family: 'Work Sans', -apple-system, 'Inter', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--nosha-fg);
}
.nosha-manifesto__inner::before {
  content:"";
  display:block;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--nosha-accent2), var(--nosha-accent));
  margin: 2px 0 18px 0;
  opacity: 0.9;
}
@media (max-width: 520px){
  .nosha-manifesto__inner { border-left-width: 1px; }
  .nosha-manifesto__body p { max-width: 100%; }
}

/* ==========
   HERO
   ========== */
#hero { 
  position:relative; 
  overflow:hidden; 
  text-align:center;
  transition: transform 0.1s ease-out;
  will-change: transform;
}
.hero-content { position:relative; z-index:1; }
.hero-content h1 { margin-bottom:1.5rem; text-shadow:0 4px 20px rgba(0,0,0,.8); }
.hero-subtext {
  font-size:clamp(1rem,2vw,1.4rem);
  margin-bottom:3rem;
  opacity:.85;
  font-style:italic;
  font-weight:300;
}

.hero-buttons {
  display:flex;
  gap:1.5rem;
  justify-content:center;
  flex-wrap:wrap;
}

/* Buttons */
.btn {
  padding:1rem 3rem;
  font-size:1rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  border:none;
  cursor:pointer;
  transition:all .6s cubic-bezier(.4,0,.2,1);
  font-weight:500;
  text-decoration:none;
  display:inline-block;
  position:relative;
  overflow:hidden;
}
.btn-primary { 
  background: var(--pink); 
  color: var(--carbon);
  position: relative;
  z-index: 1;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(75, 83, 32, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(255, 110, 199, 0.3) 0%, transparent 60%);
  opacity: 0.7;
  z-index: -1;
}
.btn-primary:hover {
  background: #ff84d1;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,110,199,.3);
}
.btn-secondary {
  background:transparent;
  color:var(--offwhite);
  border:1px solid var(--offwhite);
}
.btn-secondary:hover {
  border-color:var(--pink);
  color:var(--pink);
  transform:translateY(-2px);
}

/* Camouflage background */
.camouflage {
  position: relative;
  background: var(--carbon);
}

.camouflage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 300px 200px at 20% 30%, rgba(255, 110, 199, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 250px 180px at 80% 70%, rgba(75, 83, 32, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 200px 150px at 50% 50%, rgba(255, 110, 199, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 180px 140px at 70% 20%, rgba(75, 83, 32, 0.1) 0%, transparent 50%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.camouflage > * {
  position: relative;
  z-index: 1;
}

/* ==========
   WORK GALLERY
   ========== */
#work { background: linear-gradient(135deg, var(--carbon) 0%, #121212 100%); }
.section-title { text-align:center; margin-bottom:4rem; color:var(--pink); }
.gallery {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:2rem;
}
.gallery-item {
  aspect-ratio:4/5;
  background:#1a1a1a;
  cursor:pointer;
  overflow:hidden;
  position:relative;
  transition:transform .8s cubic-bezier(0.4,0,0.2,1);
}
.gallery-item:hover { transform:scale(1.05); z-index:2; }
.gallery-item img, .gallery-item video {
  width:100%; height:100%; object-fit:cover;
  transition:opacity .6s ease;
}
.gallery-item:hover img, .gallery-item:hover video { opacity:0.7; }
.gallery-caption {
  position:absolute; bottom:0; left:0; right:0;
  padding:1.5rem;
  background:linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform:translateY(100%);
  transition:transform .6s cubic-bezier(0.4,0,0.2,1);
}
.gallery-item:hover .gallery-caption { transform:translateY(0); }

@media (max-width:768px){
  .gallery-caption { transform:translateY(0); opacity:0.95; }
}

/* Modal */
.modal {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.95);
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.4s ease;
}
.modal.active { opacity:1; pointer-events:all; }
.modal-content {
  max-width:90vw;
  max-height:90vh;
  background:var(--carbon);
  padding:2rem;
  position:relative;
  border:1px solid rgba(255,110,199,0.2);
}
.modal-media {
  margin-bottom:2rem;
  max-height:70vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.modal-media img, .modal-media video {
  max-width:100%;
  max-height:70vh;
  object-fit:contain;
}
.modal-close {
  position:absolute;
  top:1rem;
  right:1rem;
  background:transparent;
  border:none;
  color:var(--pink);
  font-size:2rem;
  cursor:pointer;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform 0.3s ease;
}
.modal-close:hover { transform:rotate(90deg); }
#modalTitle { color:var(--pink); margin-bottom:0.5rem; }
#modalCaption { opacity:0.8; }

/* ==========
   XULASOS
   ========== */
#xulasos { position:relative; }
#xulasos::before {
  content:'';
  position:absolute; inset:0;
  background:repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 2px, rgba(255,110,199,0.03) 2px, rgba(255,110,199,0.03) 4px);
  pointer-events:none;
}
.xulasos-content {
  max-width:800px;
  margin:0 auto;
  text-align:center;
}
.xulasos-content h2 {
  margin-bottom:2rem;
  padding:1rem 2rem;
  border:4px solid var(--pink);
  display:inline-block;
  background:rgba(255,110,199,0.05);
}
.xulasos-content p {
  font-size:1.3rem;
  line-height:1.8;
  margin-bottom:2rem;
  opacity:0.9;
  font-weight:300;
}
.link-subtle {
  color:var(--pink);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:border-color .4s ease;
  font-size:1.1rem;
  font-weight:400;
}
.link-subtle:hover { border-bottom-color:var(--pink); }

/* ==========
   MAGAZINE
   ========== */
#magazine { background: var(--carbon); position:relative; }
#magazine::before {
  content:'';
  position:absolute; inset:0;
  background:repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 2px, rgba(255,110,199,0.03) 2px, rgba(255,110,199,0.03) 4px);
  pointer-events:none;
}
.article-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
  gap:3rem;
}
.article-card {
  border-top:2px solid var(--green);
  padding-top:2rem;
  transition:transform .6s ease;
}
.article-card:hover { transform:translateX(10px); }
.article-card h3 { color:var(--pink); margin-bottom:1rem; }
.article-card p { margin-bottom:1rem; opacity:0.8; }
.article-date {
  font-size:0.85rem;
  opacity:0.5;
  text-transform:uppercase;
  letter-spacing:0.1em;
}

/* ==========
   ABOUT
   ========== */
#about {
  background: radial-gradient(circle at 70% 50%, rgba(75,83,32,0.12) 0%, var(--carbon) 60%);
}
.manifesto {
  max-width:900px;
  margin:0 auto;
}
.manifesto h2 { margin-bottom:3rem; text-align:center; }
.manifesto-line {
  font-size:clamp(1.2rem,2.5vw,1.8rem);
  margin-bottom:2rem;
  opacity:0.9;
  font-weight:300;
  line-height:1.6;
  padding-left:2rem;
  border-left:2px solid var(--green);
}

/* ==========
   CONTACT
   ========== */
#contact { background:var(--carbon); }
.contact-form { max-width:600px; margin:0 auto; }
.contact-form h2 { text-align:center; margin-bottom:3rem; }
.form-group { margin-bottom:2rem; }
.form-group label {
  display:block;
  margin-bottom:0.5rem;
  text-transform:uppercase;
  letter-spacing:0.1em;
  font-size:0.9rem;
  opacity:0.7;
}
.form-group input, .form-group textarea {
  width:100%;
  padding:1rem;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  color:var(--offwhite);
  font-family:inherit;
  font-size:1rem;
  transition:all 0.4s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline:none;
  border-color:var(--pink);
  background:rgba(255,110,199,0.05);
}
.form-group textarea { min-height:150px; resize:vertical; }
.form-group input::placeholder, .form-group textarea::placeholder {
  color:rgba(247,247,245,0.3);
  font-style:italic;
}
.btn-submit { width:100%; margin-top:1rem; }

/* ==========
   FOOTER
   ========== */
footer {
  text-align:center;
  padding:2rem 0;
  font-size:0.9rem;
  opacity:0.6;
}

/* ==========
   SCROLL INDICATOR
   ========== */
.scroll-indicator {
  position:fixed;
  bottom:2rem;
  left:50%;
  transform:translateX(-50%);
  color:var(--pink);
  font-size:0.8rem;
  text-transform:uppercase;
  letter-spacing:0.2em;
  opacity:0.6;
  z-index:100;
  animation: float 3s ease-in-out infinite;
  transition:opacity 0.8s ease;
}
@keyframes float {
  0%,100% { transform:translateX(-50%) translateY(0); }
  50% { transform:translateX(-50%) translateY(-10px); }
}

/* ==========
   RESPONSIVE
   ========== */
@media (max-width:768px){
  body { cursor:auto; }
  .cursor, .cursor-trail { display:none; }
  section { padding:3rem 1.5rem; }
  .gallery { grid-template-columns:1fr; }
  .article-grid { grid-template-columns:1fr; }
  .hero-buttons { flex-direction:column; align-items:center; }
  .btn { width:100%; max-width:300px; }
}

@media (prefers-reduced-motion:reduce){
  html { scroll-behavior:auto; }
  section { transition:none; }
  .scroll-indicator { animation:none; }
  .cursor, .cursor-trail { display:none; }
}
