/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
input, textarea { font: inherit; }

/* ---------- Variables ---------- */
:root {
  --bg: #181617;
  --bg-alt: color-mix(in srgb, #181617 90%, #DFDACE 10%);
  --bg-panel: color-mix(in srgb, #181617 82%, #DFDACE 18%);
  --text: #DFDACE;
  --text-muted: color-mix(in srgb, #DFDACE 62%, #181617 38%);
  --text-soft: color-mix(in srgb, #DFDACE 74%, #181617 26%);
  --accent: #e3b341;
  --accent-hover: color-mix(in srgb, #e3b341 82%, white 18%);
  --accent-soft: color-mix(in srgb, #e3b341 12%, transparent);
  --accent-red: #BC3A2C;
  --border: color-mix(in srgb, #DFDACE 10%, transparent);
  --border-strong: color-mix(in srgb, #DFDACE 28%, transparent);
  --font-serif: 'Bodoni Moda', 'Didot', 'Bodoni MT', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-width: 1180px;
  --header-h: 77px; /* header fijo: 76px + 1px de borde. Las anclas (#portafolio, #contacto...) lo respetan */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
}

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon { flex-shrink: 0; stroke: var(--accent); }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 36px; }
.main-nav a:not(.btn) { font-size: 0.95rem; color: var(--text-muted); transition: color 0.2s ease; }
.main-nav a:not(.btn):hover { color: var(--text); }
.nav-cta { display: none; }
.header-cta { margin-left: 24px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.lang-link { color: var(--text-muted); transition: color 0.2s ease; }
.lang-link:hover { color: var(--text); }
.lang-link.is-active { color: var(--text); font-weight: 600; }
.lang-sep { color: var(--border-strong); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 76px;
}
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
/* Mismo estilo que .eyebrow (dorado, Inter, mayúsculas, espaciado), pero entre
   1.5 y 1.9 veces más grande (0.8rem → 1.2–1.5rem). El padding izquierdo iguala
   el espacio que el espaciado deja tras la última letra, para que quede centrado. */
.hero-inner .eyebrow {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  padding-left: 0.14em;
}
/* La frase grande es larga: 2–3 líneas en escritorio y máximo 4 en celular. */
.hero-title {
  font-size: clamp(2.1rem, 1.35rem + 3.4vw, 4.5rem);
  line-height: 1.08;
  color: var(--text);
  max-width: 14em;
  text-wrap: balance;
}
.hero-accent { font-weight: 500; color: var(--accent); white-space: nowrap; }
.hero-tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 32ch;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.22s; }
.fade-up.delay-3 { animation-delay: 0.36s; }
.fade-up.delay-4 { animation-delay: 0.5s; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); }
.scroll-cue span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollcue 2s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; }
}

/* ---------- Section shared ---------- */
section { padding: 140px 0; }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }

/* ---------- About ---------- */
.about-text {
  color: var(--text);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  max-width: 52ch; /* ≈ 60–65 caracteres por línea (medido), cómodo de leer centrado */
  margin-inline: auto;
  text-align: center;
}
.about-text + .about-text { margin-top: 20px; }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
/* Dos tarjetas (una por puerta): se limitan a 760px para que no se estiren
   y queden centradas. Cada tarjeta es un enlace a su puerta del portafolio. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 760px;
  margin-inline: auto;
}
.service-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.service-number { color: var(--accent); font-size: 1.1rem; font-weight: 600; }
.service-card h3 {
  font-weight: 600;
  font-size: 1.5rem;
  margin: 16px 0 12px;
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Portafolio: "Elige una puerta" ---------- */
/* Cada puerta es una línea de trabajo; al abrirla, una ventana muestra su "video" de
   imágenes. Fondo --bg-alt. Ritmo de fondos de la página: Hero (--bg) → Portafolio
   (--bg-alt) → Anfitriones (--bg) → Servicios (--bg-alt) → Contacto (--bg). */
.portfolio { background: var(--bg-alt); padding: 88px 0 72px; }
.doors-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.doors-head .eyebrow { margin-bottom: 0; }
.doors-head h2 { margin: 12px 0; font-size: clamp(2.1rem, 4vw, 2.75rem); line-height: 1.1; }
.doors-head .sub { color: var(--text-soft); }
.doors-arrows { display: flex; gap: 10px; }
.doors-arrow {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.doors-arrow:hover { background: color-mix(in srgb, var(--text) 10%, transparent); }

/* La fila: se desliza de lado y cada puerta se ajusta al borde (scroll-snap).
   Centrada cuando caben todas. En vez de "justify-content: safe center" (Safari
   puede no respetarlo) se usan márgenes automáticos en la primera y la última:
   centran si sobra espacio y, si no sobra, la fila empieza en el borde sin cortarse. */
.vault {
  display: flex;
  gap: 64px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100% - 1132px) / 2));
  padding: 56px max(24px, calc((100% - 1132px) / 2)) 28px;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-panel) transparent;
}
.vault li { flex: 0 0 270px; scroll-snap-align: start; }
.vault li:first-child { margin-left: auto; }
.vault li:last-child { margin-right: auto; }

.door {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0;
  color: var(--text);
  scroll-margin-top: 24px; /* al llegar desde un enlace, queda con aire bajo el header */
}
.door-lamp {
  width: 44px;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-panel);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
/* Encendida con el mouse, con el teclado o al llegar desde un enlace (.is-arrived) */
.door:hover .door-lamp,
.door:focus-visible .door-lamp,
.door.is-arrived .door-lamp {
  background: var(--accent);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--accent) 50%, transparent);
}
.door-frame {
  position: relative;
  display: block;
  width: 270px;
  height: 410px;
  background: var(--bg);
  box-shadow: inset 0 0 0 10px var(--bg-panel);
}
.door-light {
  position: absolute;
  inset: 10px 10px 0;
  background: radial-gradient(circle at 18% 55%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 65%);
}
.door-leaf {
  position: absolute;
  inset: 10px 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 56px;
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.door:hover .door-leaf,
.door:focus-visible .door-leaf,
.door.is-arrived .door-leaf { transform: perspective(1200px) rotateY(-28deg); }
.door-num { font-family: var(--font-serif); font-weight: 700; font-size: 58px; line-height: 1; color: var(--accent); }
.door-handle { position: absolute; right: 22px; top: 40%; width: 6px; height: 120px; border-radius: 3px; background: var(--accent); }
.door-hinge { position: absolute; left: 0; width: 4px; height: 28px; background: color-mix(in srgb, var(--text) 18%, transparent); }
.door-hinge.top { top: 16%; }
.door-hinge.bottom { bottom: 16%; }
.door-kick {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 40px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 18%, transparent);
}
/* Puerta dorada: Tu proyecto */
.door--gold .door-leaf { background: var(--accent); }
.door--gold .door-num { color: var(--bg); }
.door--gold .door-handle { background: var(--bg); }
.door--gold .door-hinge { background: color-mix(in srgb, var(--bg) 35%, transparent); }
.door--gold .door-kick { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bg) 35%, transparent); }
.door-label { display: flex; flex-direction: column; gap: 2px; }
.door-name { font-family: var(--font-serif); font-weight: 600; font-size: 22px; }
.door-sub { font-size: 14px; font-weight: 600; color: var(--accent); }

.doors-hint { text-align: center; font-size: 0.85rem; color: var(--text-soft); }
.doors-note {
  margin: 32px auto 0;
  max-width: 36ch;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text);
}

/* Sin JavaScript: lista de videos dentro de <noscript> */
.doors-noscript h3 { margin: 48px 0 16px; font-size: 1.5rem; font-weight: 600; }
.doors-noscript ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.doors-noscript iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--bg); }
.doors-noscript p { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.doors-noscript p strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.15rem; }
.doors-noscript p span { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- La ventana del "video" de imágenes ---------- */
/* Capa oscura con scroll propio (para que no se corte en un celular horizontal).
   .stage usa margin:auto: se centra si cabe y, si no cabe, se desliza desde arriba. */
.player-ov {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  animation: ov-in 0.3s ease;
}
.player-ov[hidden] { display: none; }
@keyframes ov-in { from { opacity: 0; } }
.stage { width: min(960px, 100%); margin: auto; display: flex; flex-direction: column; gap: 16px; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.stage-head p { margin: 0; }
.stage-head .eyebrow { margin: 0; }
.stage-title { font-family: var(--font-serif); font-weight: 600; font-size: 28px; line-height: 1.15; }
.icon-btn,
.pill {
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn { width: 44px; height: 44px; padding: 0; }
.icon-btn-lg { width: 48px; height: 48px; }
.pill { min-height: 44px; padding: 0 18px; border-radius: 22px; font-size: 14px; font-weight: 500; }
.icon-btn:hover,
.pill:hover { background: color-mix(in srgb, var(--text) 18%, transparent); }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 6px var(--bg-alt),
              0 0 0 7.5px color-mix(in srgb, var(--accent) 60%, transparent),
              0 30px 80px rgba(0, 0, 0, 0.6);
}
/* La puerta que se abre al entrar */
.swing {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  transform-origin: left center;
  animation: door-swing 1s 0.05s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
@keyframes door-swing { to { transform: perspective(1400px) rotateY(-105deg); opacity: 0; } }

/* Imágenes: cada una aparece con fundido y un acercamiento lento. La imagen de Bunny va
   encima del degradado de la marca: si no carga, se ve el degradado. */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.slide.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.slide-bg {
  position: absolute;
  inset: -6%;
  background-image: var(--thumb, none), var(--g);
  background-size: cover;
  background-position: center;
  transition: transform 4.5s linear;
}
.slide-bg.g0 { --g: radial-gradient(circle at 28% 32%, color-mix(in srgb, var(--accent) 32%, var(--bg)) 0%, var(--bg-alt) 38%, var(--bg) 75%); }
.slide-bg.g1 { --g: radial-gradient(circle at 72% 38%, color-mix(in srgb, var(--text) 22%, var(--bg)) 0%, var(--bg-alt) 40%, var(--bg) 78%); }
.slide-bg.g2 { --g: radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--accent) 42%, var(--bg)) 0%, var(--bg-panel) 36%, var(--bg) 76%); }
.slide-bg.g3 { --g: radial-gradient(circle at 20% 70%, var(--bg-panel) 0%, var(--bg-alt) 42%, var(--bg) 80%); }
.slide.on .slide-bg { transform: scale(1.12) translate(-1.5%, -1%); }
.slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 85%, transparent), transparent 55%);
}
.slide p { position: relative; margin: 0; }
.slide .slide-title { margin-top: 6px; font-family: var(--font-serif); font-weight: 600; font-size: clamp(24px, 3.6vw, 42px); line-height: 1.1; }
.slide .slide-sub { margin-top: 8px; font-size: 16px; max-width: 48ch; }
/* "Ver video": botón de play grande y centrado sobre la imagen */
.slide-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 88px;
  height: 88px;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 25%, transparent), 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.slide-play svg { margin-left: 4px; }
.slide-play:hover { transform: translate(-50%, -50%) scale(1.06); }
/* El video de Bunny, dentro del mismo reproductor 16:9 */
.video-layer { position: absolute; inset: 0; z-index: 4; background: #000; }
.video-layer iframe { display: block; width: 100%; height: 100%; border: 0; }

.controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stage-cta { padding: 12px 22px; font-size: 14px; }
.stage-cta[hidden] { display: none; }
.bars { flex: 1 1 200px; display: flex; gap: 6px; }
.bar { flex: 1; height: 24px; padding: 0; display: flex; align-items: center; }
.track { display: block; width: 100%; height: 4px; background: color-mix(in srgb, var(--text) 20%, transparent); border-radius: 2px; overflow: hidden; }
.fill { display: block; height: 100%; width: 0; background: var(--accent); }
.bar.done .fill { width: 100%; }
.bar.cur .fill { animation: bar-fill 3.6s linear forwards; }
.is-paused .bar.cur .fill { animation-play-state: paused; }
@keyframes bar-fill { to { width: 100%; } }

/* Player chico (celular): textos y play más pequeños para que no se encimen */
@media (max-width: 600px) {
  .slide .slide-title { font-size: 20px; }
  .slide .slide-sub { margin-top: 4px; font-size: 13px; }
  .slide-play { top: 38%; width: 60px; height: 60px; }
  .slide-play svg { width: 24px; height: 24px; }
}

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr; gap: 56px; }
.contact-info { text-align: center; }
.contact-info h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 16px 0 20px;
}
.contact-info p { color: var(--text-muted); margin: 0 auto 28px; max-width: 62ch; }
.contact-email {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}
.contact-email:hover { color: var(--accent); }
.contact-info .contact-location { font-size: 0.9rem; margin-bottom: 0; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.form-honeypot { display: none; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.form-field input, .form-field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; }
.form-note { font-size: 0.9rem; min-height: 1.2em; color: var(--text-muted); }
.form-note.is-success { color: var(--accent); }
.form-note.is-error { color: var(--accent-red); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.back-to-top { color: var(--text-muted); transition: color 0.2s ease; }
.back-to-top:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lang-switch { margin-left: auto; margin-right: 8px; }
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    opacity: 0;
    /* Cerrado: sus enlaces no reciben foco con Tab ni los lee el lector de pantalla.
       Al cerrar, visibility espera 0.3s para que termine la animación de salida. */
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s;
  }
  .main-nav ul { flex-direction: column; padding: 24px; gap: 20px; }
  .header-cta { display: none; }
  .nav-cta { display: flex; }
  /* En el HTML el botón va justo antes del menú (así, al abrirlo, Tab entra a sus enlaces);
     con order sigue viéndose a la derecha, después del selector ES/EN. */
  .nav-toggle { display: flex; order: 1; }
  section { padding: 96px 0; }
}

@media (max-width: 400px) {
  .logo { font-size: 1.15rem; }
}

@media (max-width: 350px) {
  .logo-icon { display: none; }
}

/* Sin movimiento para quien lo pide en su sistema */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { animation: none; opacity: 1; transform: none; }
  .scroll-cue span { animation: none; }
  .door-leaf, .door-lamp, .doors-arrow, .slide, .slide-bg, .slide-play { transition: none; }
  .slide-play:hover { transform: translate(-50%, -50%); }
  .swing { display: none; }
  .player-ov { animation: none; }
  .bar.cur .fill { animation: none; width: 100%; }
}
