/* ===== Fuentes ===== */
/* TODO: añade tus .woff2 en ./fonts */
@font-face{
  font-family:"Planet Kosmos";
  src:
    url("/assets/fonts/PlanetKosmos.woff2") format("woff2"),
    url("assets/fonts/PlanetKosmos.woff") format("woff");
  font-display:swap; font-weight:400; font-style:normal;
}
@font-face{
  font-family:"Chemre";
  src:
    url("/assets/fonts/Chemre.woff2") format("woff2"),
    url("/assets/fonts/Chemre.woff") format("woff");
  font-display:swap; font-weight:400 800; font-style:normal;
}

/* ===== Variables (blanco/negro + fucsia) ===== */
:root{
  --bg:#0a0a0a;           /* negro base */
  --paper:#ffffff;        /* blanco puro */
  --ink:#f5f5f5;          /* texto claro */
  --muted:#bdbdbd;        /* gris cuerpo */
  --line:#1c1c1c;         /* separadores */
  --fuchsia:#ff2ea6;      /* fucsia acento */
  --radius:16px;
}

*{box-sizing:border-box} html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:-apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height:1.55; letter-spacing:.01em;
  cursor:none; /* usamos cursor custom */
}

/* ===== Nav ===== */
.nav{
  position:fixed; inset:auto 0 0 0; top:0; height:70px; z-index:60;
  display:flex; justify-content:space-between; align-items:center;
  padding:0 26px; border-bottom:1px solid var(--line);
  background:rgba(10,10,10,.7); backdrop-filter:saturate(130%) blur(8px);
}
.brand{
  font-family:"Planet Kosmos", system-ui; letter-spacing:.02em;
  font-size:1.3rem; text-decoration:none; color:var(--paper);
}
.nav-right a{
  color:var(--ink); text-decoration:none; margin-left:18px; opacity:.9;
  font-variant-caps:all-small-caps; letter-spacing:.08em;
}
.nav-right a:hover{opacity:1; color:var(--paper)}
.pill{border:1px solid var(--line); padding:8px 12px; border-radius:999px}
.pill-cta{border-color:var(--fuchsia); color:var(--paper)}
.pill-cta:hover{background:var(--fuchsia); color:#0a0a0a}

/* ===== Tipografía ===== */
.display{
  font-family:"Chemre", "Times New Roman", Georgia, serif;
  font-weight:700; font-size:clamp(40px,7vw,88px);
  line-height:1.04; letter-spacing:-.01em; margin:0 0 10px;
}
.display em{font-style:italic}
.accent{color:var(--fuchsia)}
.lede{max-width:64ch; color:var(--muted); margin:10px 0 22px}

/* ===== Hero con video ===== */
.hero{position:relative; min-height:96svh; display:grid; place-items:center; padding-top:70px; overflow:hidden; border-bottom:1px solid var(--line)}
.hero-media{position:absolute; inset:0; z-index:-1}
.hero-video{width:100%; height:100%; object-fit:cover; filter:grayscale(.1) contrast(1.05) brightness(.9)}
.video-gradient{
  position:absolute; inset:0;
  background:radial-gradient(1200px 600px at 50% 20%, rgba(255,46,166,.18), transparent 60%),
             linear-gradient(to bottom, rgba(10,10,10,.15), rgba(10,10,10,.75) 68%, rgba(10,10,10,.95));
}
.hero-inner{text-align:center; width:min(1080px,90vw); padding:52px 0}
.hero-cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}
.btn{
  display:inline-block; padding:12px 18px; border-radius:999px; text-decoration:none;
  background:var(--fuchsia); color:#0a0a0a; font-weight:800;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover{transform:translateY(-2px); filter:saturate(110%)}
.btn.ghost{background:transparent; color:var(--paper); border:1px solid var(--paper)}
.btn.ghost:hover{background:var(--paper); color:#0a0a0a}

/* Flecha "scroll down" centrada en el hero */
.scroll-down{
  position:absolute; left:50%; bottom:24px; transform:translateX(-50%);
  width:48px; height:48px; border-radius:999px;
  display:grid; place-items:center; text-decoration:none;
  color:var(--paper); /* blanco de tu tema */
  border:1px solid var(--fuchsia);
  background:rgba(10,10,10,.35);
  backdrop-filter:saturate(130%) blur(6px);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  z-index:3; /* por encima del vídeo y gradiente */
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  animation:sd-bounce 1.8s ease-in-out infinite;
}

.scroll-down:hover{
  transform:translateX(-50%) translateY(-2px);
  box-shadow:0 16px 40px rgba(0,0,0,.45);
  color:#0a0a0a; background:var(--fuchsia);
}

.scroll-down:focus-visible{outline:3px solid var(--fuchsia); outline-offset:3px}

/* Rebote suave */
@keyframes sd-bounce{
  0%,100%{ transform:translateX(-50%) translateY(0) }
  50%    { transform:translateX(-50%) translateY(-6px) }
}

/* ===== Marquee ===== */
.marquee{overflow:hidden; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#0e0e0e}
.track{display:flex; gap:40px; padding:14px 0; animation:scroll 22s linear infinite}
.track span{opacity:.95; letter-spacing:.14em; text-transform:uppercase; font-weight:700}
@keyframes scroll{from{transform:translateX(0)} to{transform:translateX(-50%)}}

/* ===== Secciones ===== */
.section{width:min(1080px,90vw); margin:auto; padding:96px 0}
.kicker{margin:0 0 24px; text-transform:uppercase; letter-spacing:.16em; color:var(--muted); font-size:.9rem}

/* ===== Cases ===== */
.work{border-bottom:1px solid var(--line)}
.case{border-top:1px solid var(--line)}
.case:first-of-type{border-top:0}
.case-row{
  display:grid; grid-template-columns:1.15fr .9fr; gap:44px; padding:30px 0; text-decoration:none; color:inherit;
}
.case-title{
  font-family:"Chemre", Georgia, serif;
  font-size:clamp(22px,2.8vw,38px); margin:0; letter-spacing:.005em; color:var(--paper)
}
.case-meta{color:var(--muted); margin:6px 0 0}
.case-desc{margin:0}
.case-row:hover .case-title{color:var(--fuchsia)}

/* ===== About ===== */
.about{border-bottom:1px solid var(--line)}
.about-wrap{display:grid; grid-template-columns:1fr 1fr; gap:44px}
.about-sticky{position:sticky; top:110px; align-self:start}
.about-title{
  font-family:"Chemre", Georgia, serif;
  font-size:clamp(30px,3.6vw,46px); margin:0 0 12px; letter-spacing:.005em; color:var(--paper)
}
.about-lede{color:#d0d0d0; margin:8px 0 18px; font-size:clamp(18px,2.2vw,21px)}
.dropcap:first-letter{
  float:left; font-family:"Chemre", Georgia, serif; font-weight:800; font-size:4.2rem; line-height:.9;
  margin:.18rem .6rem 0 0; color:var(--fuchsia);
}
.about-list{margin:0 0 16px 18px; color:var(--muted)}
.pullquote{
  margin:22px 0 0; padding:18px 20px; border-left:3px solid var(--fuchsia);
  background:#0e0e0e; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.35); color:#f0f0f0
}

/* galería */
.about-scroller{display:grid; gap:24px}
.shot{margin:0; border-radius:16px; overflow:hidden; background:#0e0e0e; border:1px solid var(--line)}
.shot img{display:block; width:100%; height:auto; transform:scale(1.02); transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.shot:hover img{transform:scale(1.06)}

/* ===== Contacto ===== */
.contact{border-bottom:1px solid var(--line)}
.contact-inner{text-align:center}
.contact-actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:12px}

/* ===== Footer ===== */
.footer{width:min(1080px,90vw); margin:auto; display:flex; justify-content:space-between; align-items:center; padding:24px 0 80px; color:#9e9e9e}

/* ===== Reveal on scroll ===== */
.will-reveal{opacity:0; transform:translateY(16px); transition:opacity .7s ease, transform .7s ease}
.will-reveal.is-visible{opacity:1; transform:none}

/* ===== Cursor personalizado ===== */
.cursor-dot, .cursor-ring{position:fixed; pointer-events:none; z-index:100; mix-blend-mode:exclusion}
.cursor-dot{
  width:8px; height:8px; border-radius:50%; background:var(--paper);
  transform:translate(-50%,-50%);
}
.cursor-ring{
  width:28px; height:28px; border-radius:50%;
  border:2px solid var(--fuchsia); transform:translate(-50%,-50%);
  transition:width .15s ease, height .15s ease, opacity .2s ease;
  opacity:.9; box-shadow:0 0 24px rgba(255,46,166,.35);
}
a:hover ~ .cursor-ring, .btn:hover ~ .cursor-ring{width:36px; height:36px}

/* Preview flotante (hover proyectos) */
.preview{
  position:fixed; width:360px; aspect-ratio:16/10; pointer-events:none; z-index:90; transform:translate(-50%,-50%) scale(.92);
  border-radius:12px; overflow:hidden; opacity:0; transition:opacity .25s ease, transform .25s ease, filter .25s ease;
  box-shadow:0 20px 60px rgba(0,0,0,.55); border:1px solid var(--line); background:#0e0e0e;
}
.preview img{width:100%; height:100%; object-fit:cover; display:block}

/* ===== Responsivo ===== */
@media (max-width: 980px){
  .case-row{grid-template-columns:1fr; gap:14px}
  .about-wrap{grid-template-columns:1fr}
  .about-sticky{position:relative; top:0}
  .preview{display:none}
  body{cursor:auto} .cursor-dot,.cursor-ring{display:none}
}

/* ===== MOBILE FULL ADAPTATION ===== */
@media (max-width: 600px){

  /* NAV */
  .nav{
    height: 60px;
    padding: 0 14px;
  }
  .nav-right a{
    margin-left: 10px;
    font-size: .75rem;
  }
  .pill{
    padding: 6px 10px;
  }

  /* HERO */
  .display{
    font-size: clamp(28px, 9vw, 42px);
    line-height: 1.1;
  }
  .hero-inner{
    padding: 30px 0;
  }
  .hero-cta{
    flex-direction: column;
    gap: 10px;
  }
  .scroll-down{
    bottom: 12px;
    width: 40px;
    height: 40px;
  }

  /* CASES */
  .case-row{
    padding: 22px 0;
    gap: 20px;
  }
  .case-title{
    font-size: 22px;
  }
  .case-meta{
    font-size: .85rem;
  }
  .case-desc{
    font-size: .9rem;
  }

  /* SECTION GENERAL PADDING */
  .section{
    padding: 70px 0;
  }

  /* ABOUT */
  .about-lede{
    font-size: 1rem;
  }
  .about-list{
    font-size: 0.9rem;
  }
  .about-wrap{
    gap: 28px;
  }
  .shot img{
    transform: scale(1); /* evitar zoom en pantallas pequeñas */
  }

  /* CONTACT */
  .contact-actions{
    flex-direction: column;
    gap: 8px;
  }

  /* FOOTER */
  .footer{
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* ===== HAMBURGER MENU ===== */
.nav-toggle{
  display:none;
  width:32px;
  height:26px;
  flex-direction:column;
  justify-content:space-between;
  background:transparent;
  border:none;
  cursor:pointer;
  z-index:100;
}

.nav-toggle span{
  display:block;
  width:100%;
  height:3px;
  background:var(--paper);
  border-radius:3px;
  transition:.3s ease;
}

/* Animation when opened */
.nav-toggle.active span:nth-child(1){
  transform:translateY(11px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2){
  opacity:0;
}
.nav-toggle.active span:nth-child(3){
  transform:translateY(-11px) rotate(-45deg);
}

/* ===== Mobile adjustments ===== */
@media (max-width: 820px){

  /* Botón hamburguesa visible */
  .nav-toggle{
    display:flex;
  }

  /* Ocultar menú de escritorio */
  .nav-right{
    position:fixed;
    inset:70px 0 auto 0; /* debajo del header */
    width:100%;
    height:0;
    overflow:hidden;

    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;

    background:rgba(10,10,10,.95);
    backdrop-filter:blur(12px);

    gap:18px;
    padding:0;
    transition:height .3s ease, padding .3s ease;
    z-index:90;
  }

  /* Menú abierto */
  .nav-right.open{
    height:300px;
    padding:24px 0 30px;
  }

  /* Enlaces ordenados */
  .nav-right a{
    margin:0;
    font-size:1rem;
    width:auto;
    text-align:center;
  }

  /* Botones (pill) adaptados */
  .pill{
    padding:10px 16px;
    font-size:.9rem;
  }
}
