/* ==========================================================
   SECCIONES
   Un bloque por sección, en el mismo orden que el HTML.
   ========================================================== */

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 11, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Botón hamburguesa (solo mobile) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 110;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* El menú completo necesita ~1050px; por debajo se usa el menú hamburguesa */
@media (max-width: 1100px) {
  /* IMPORTANTE: el menú (.nav) está dentro del header. Si el header tiene
     backdrop-filter (el desenfoque al scrollear), el menú "fixed" queda
     encerrado en el alto del header y no se ve. Por eso acá el header
     scrolleado usa fondo casi sólido, sin desenfoque. */
  .header.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(11, 11, 12, 0.96);
  }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto; /* por si el celular está horizontal y no entra todo */
    padding: calc(var(--header-h) + 16px) var(--gutter) 32px;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    background: rgba(11, 11, 12, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 22px; }
  .nav__link { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; color: var(--text); }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================
   1. HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}
/* Fondo con la textura metálica del logo */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 75% 45%, rgba(189, 147, 55, 0.18) 0%, transparent 60%),
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%),
    radial-gradient(120% 80% at 0% 0%, #1c1c1f 0%, var(--bg) 60%);
}
.hero__bg::after {
  /* grilla sutil tipo campo de juego */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 0%, transparent 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero__title { font-size: var(--fs-h1); margin: 20px 0 24px; }
.hero__lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.hero__steps li { display: flex; align-items: center; gap: 10px; }
.hero__steps strong { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--gold-500); }

/* Visual del hero */
.hero__visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.hero__glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 226, 138, 0.25) 0%, transparent 65%);
  filter: blur(20px);
}
.hero__kit {
  position: absolute;
  inset: 6%;
  animation: float 6s ease-in-out infinite;
}
.hero__kit img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
  opacity: 0;
  transform: scale(0.94) rotate(-3deg);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero__kit img.is-active { opacity: 1; transform: scale(1) rotate(0); }

.hero__chip {
  position: absolute;
  padding: 10px 16px;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: 999px;
  background: rgba(23, 23, 26, 0.85);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.hero__chip--1 { top: 10%; left: -4%; }
.hero__chip--2 { top: 48%; right: -6%; animation-delay: -1.5s; }
.hero__chip--3 { bottom: 8%; left: 6%; animation-delay: -3s; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid var(--border-gold);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-200);
  animation: scrollDot 1.8s infinite;
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__steps { justify-content: center; }
  .hero .eyebrow { justify-content: center; }
  .hero .eyebrow::before { display: none; }
  /* En mobile el mensaje va primero: la propuesta de valor y el CTA deben verse sin scrollear */
  .hero__visual { max-width: 380px; }
  .hero__chip--1 { left: 0; }
  .hero__chip--2 { right: 0; }
  .hero__scroll { display: none; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .hero__steps { flex-direction: column; align-items: center; }
  .hero__visual { max-width: 300px; }
  .hero__chip { font-size: 0.7rem; padding: 8px 12px; }
}

/* ==========================================================
   MARQUEE
   ========================================================== */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--gold-gradient);
  transform: rotate(-1.5deg) scale(1.02);
  margin-block: -10px;
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  color: #141007;
  white-space: nowrap;
}

/* ==========================================================
   2. SHOWREEL
   ========================================================== */
.showreel__stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(50% 60% at 50% 40%, rgba(189, 147, 55, 0.28) 0%, transparent 70%),
    linear-gradient(160deg, #1d1d20 0%, #0d0d0e 100%);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow);
}
.showreel__kits {
  position: relative;
  height: clamp(340px, 46vw, 560px);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showreel__kit {
  height: 100%;
  width: auto;
  min-width: 0;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}
.showreel__kit--main { z-index: 2; transform: scale(1.06); }
.showreel__kit--side { height: 82%; opacity: 0.9; }
.showreel__kit--side:first-child { margin-right: -6%; }
.showreel__kit--side:last-child { margin-left: -6%; }

.showreel__caption {
  position: relative;
  z-index: 3;
  padding: clamp(24px, 4vw, 48px);
  padding-top: 8px;
  text-align: center;
}
.showreel__title { font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin: 14px 0 8px; }
.showreel__caption p { color: var(--text-muted); }

@media (max-width: 600px) {
  .showreel__kits { height: 380px; }
  .showreel__kit--side { display: none; }
}

/* ==========================================================
   3. SERVICIOS
   ========================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 0% 0%, rgba(189, 147, 55, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service:hover { transform: translateY(-6px); border-color: var(--border-gold); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(189, 147, 55, 0.1);
  border: 1px solid var(--border-gold);
  margin-bottom: 22px;
}
.service__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--gold-200); stroke-width: 1.6;
  stroke-linejoin: round; stroke-linecap: round;
}
.service h3 { margin-bottom: 10px; }
.service p { color: var(--text-muted); font-size: var(--fs-sm); }
.service__link {
  display: inline-block;
  margin-top: 18px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-200);
  transition: transform 0.3s var(--ease);
}
.service__link:hover { transform: translateX(4px); }

@media (max-width: 960px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   4. PROCESO
   ========================================================== */
.process { background: var(--bg-alt); }
.process__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
  position: relative;
}
/* línea que une los pasos */
.process__list::before {
  content: "";
  position: absolute;
  top: 36px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}
.process__step { position: relative; text-align: center; padding: 0 8px; }
.process__num {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #141007;
  background: var(--gold-gradient);
  box-shadow: var(--shadow-gold), 0 0 0 8px var(--bg-alt);
  position: relative;
}
.process__step h3 { margin-bottom: 10px; }
.process__step p { color: var(--text-muted); font-size: var(--fs-sm); }

@media (max-width: 860px) {
  .process__list { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process__list::before { display: none; }
}
@media (max-width: 520px) {
  .process__list { grid-template-columns: 1fr; }
}

/* ==========================================================
   5. TRABAJOS
   ========================================================== */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4; /* mismo formato que las imágenes (1080x1440) */
  border: 1px solid var(--border);
  background:
    radial-gradient(70% 55% at 50% 45%, rgba(189, 147, 55, 0.16) 0%, transparent 70%),
    linear-gradient(160deg, #1b1b1e, #0e0e10);
  transition: border-color 0.4s;
}
.work-card__media {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}
.work-card__info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(11, 11, 12, 0.92) 30%, transparent);
}
.work-card__title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.work-card:hover,
.work-card:focus-visible { border-color: var(--border-gold); }
.work-card:hover .work-card__media { transform: scale(1.06); }

.work__more { display: flex; justify-content: center; margin-top: 36px; }
.work__more [hidden] { display: none; }

.work__cta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  text-align: center;
}
.work__cta p { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }

@media (max-width: 960px) { .work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .work__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .work-card__title { font-size: 0.62rem; letter-spacing: 0.06em; }
  .work-card__info { padding: 28px 10px 10px; }
}

/* ==========================================================
   6. POR QUÉ MOMAN
   ========================================================== */
.why { background: var(--bg-alt); overflow: hidden; }
.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat {
  padding: 20px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 8px; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.4; }

.why__list { display: grid; gap: 16px; }
.why__item {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.why__item:hover { border-color: var(--border-gold); transform: translateX(6px); }
.why__icon {
  flex: 0 0 48px;
  height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 1.3rem;
  color: #141007;
  background: var(--gold-gradient);
}
.why__item h3 { margin-bottom: 6px; }
.why__item p { color: var(--text-muted); font-size: var(--fs-sm); }

@media (max-width: 960px) {
  .why__inner { grid-template-columns: 1fr; }
  .why__intro { text-align: center; }
}
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ==========================================================
   7. FAQ
   ========================================================== */
.faq__list { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: var(--border-gold); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 60px 22px 24px;
  font-weight: 700;
  font-size: var(--fs-lg);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold-500);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--text-muted); }

/* ==========================================================
   8. CTA + FORMULARIO
   ========================================================== */
.contact {
  background:
    radial-gradient(50% 50% at 15% 30%, rgba(189, 147, 55, 0.14), transparent 70%),
    var(--bg);
}
.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact__info { position: sticky; top: calc(var(--header-h) + 32px); }
.contact__checks { margin-top: 32px; display: grid; gap: 14px; }
/* La tilde se alinea con la PRIMERA línea del texto (line-height = alto de la tilde),
   así queda prolija aunque la frase se parta en dos líneas. */
.contact__checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  line-height: 26px;
  text-wrap: balance; /* si se parte, las dos líneas quedan parejas */
}
.contact__checks li::before {
  content: "✓";
  flex: 0 0 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  color: #141007;
  background: var(--gold-gradient);
}
.contact__alt {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.contact__alt p { color: var(--text-muted); margin-bottom: 14px; }

.form {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 22px;
  box-shadow: var(--shadow);
  border-color: var(--border-gold);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { text-align: center; font-size: var(--fs-xs); color: var(--text-dim); margin-top: -8px; }

.form__success {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 40px;
  border-radius: inherit;
  background: var(--surface);
  animation: fadeUp 0.6s var(--ease);
}
.form__success[hidden] { display: none; }
.form__success-icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 2rem;
  color: #141007;
  background: var(--gold-gradient);
  box-shadow: var(--shadow-gold);
}
.form__success h3 { font-size: 2rem; }
.form__success p { color: var(--text-muted); max-width: 380px; }

@media (max-width: 960px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__info { position: static; text-align: center; }
  /* La lista se centra como bloque, pero las tildes quedan alineadas entre sí */
  .contact__checks { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
}
@media (max-width: 480px) {
  .contact__checks li { gap: 10px; font-size: clamp(0.82rem, 3.75vw, 1rem); line-height: 22px; }
  .contact__checks li::before { flex-basis: 22px; height: 22px; font-size: 0.7rem; }
}
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer__logo { height: 64px; width: auto; }
.footer__tag { color: var(--text-muted); }
.footer__links { display: flex; gap: 28px; }
.footer__links a { font-weight: 700; color: var(--text-muted); transition: color 0.25s; }
.footer__links a:hover { color: var(--gold-200); }
.footer__copy { font-size: var(--fs-xs); color: var(--text-dim); margin-top: 10px; }

@media (max-width: 760px) { .footer { padding-bottom: 110px; } }
