/* ===== Eclipse Eventos — estilos custom (lo que Tailwind no cubre bien) ===== */

:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

html { -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- textura papel / grano ---------- */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
#site-header {
  color: #F7F1E8;
  background: linear-gradient(180deg, rgba(13,11,8,.55) 0%, rgba(13,11,8,.15) 80%, transparent 100%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .5s var(--ease-out);
}
#site-header.is-hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }
#site-header .hb { background: currentColor; }

/* ---------- botones flotantes: WhatsApp + volver arriba ---------- */
.wa-float, .scroll-top {
  width: 48px; height: 48px; border-radius: 999px;
  transition: opacity .2s var(--ease-out), transform .15s var(--ease-out), background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.wa-float { opacity: .8; }
.scroll-top {
  background: #0D0B08; border: 1px solid rgba(247,241,232,.2); color: #F7F1E8;
  opacity: 0; pointer-events: none; transform: translateY(8px);
}
.scroll-top.is-visible { opacity: .8; pointer-events: auto; transform: translateY(0); }
@media (min-width: 640px) {
  .wa-float { width: auto; height: auto; padding: .75rem 1.25rem .75rem 1rem; opacity: 1; }
  .scroll-top { width: 56px; height: 56px; }
  .scroll-top.is-visible { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { opacity: 1; }
  .scroll-top:hover { opacity: 1; background: #D9A227; border-color: #D9A227; color: #0D0B08; }
}
.wa-float:active, .scroll-top:active { opacity: 1; }
.scroll-top:active { transform: scale(.93); }

/* ---------- botones ---------- */
.btn-dorado, .btn-mostaza {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 500; font-size: .95rem;
  letter-spacing: .02em; padding: .95rem 1.8rem; border-radius: 999px;
  transition: transform .18s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out);
  width: fit-content; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .btn-dorado:hover { background: #F7F1E8; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(217,162,39,.45); }
  .btn-mostaza:hover { background: #F7F1E8; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
}
.btn-dorado { background: #D9A227; color: #0D0B08; }
.btn-dorado:active { transform: scale(.97); }
.btn-mostaza { background: #C9A227; color: #0D0B08; }
.btn-mostaza:active { transform: scale(.97); }

/* ---------- focus visible (accesibilidad teclado) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #D9A227; outline-offset: 3px; border-radius: 4px;
}
.btn-dorado:focus-visible, .btn-mostaza:focus-visible {
  outline-offset: 3px;
}

/* ---------- subrayado que se traza al hover ---------- */
.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link-underline:hover::after { transform: scaleX(1); }
}

/* ---------- hero ---------- */
.hero-video {
  z-index: 0; object-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s var(--ease-out), transform 2.4s var(--ease-out);
}
.hero-video.is-in { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .hero-video { opacity: 1; transform: none; transition: none; }
}
/* scrim liviano: aporta piso de contraste sin tapar el video, mas fuerte abajo donde va el CTA */
.hero-scrim {
  z-index: 1;
  background: linear-gradient(180deg, rgba(13,11,8,.15) 0%, rgba(13,11,8,.1) 35%, rgba(13,11,8,.55) 100%);
}
.hero-content { z-index: 2; }

/* texto que se defiende solo contra cualquier frame del video: sombra multicapa
   (difusa + de contacto) en vez de un panel opaco que taparia la escena.
   No se aplica a .btn-dorado: sobre fondo solido el shadow se ve como mancha. */
.hero-kicker,
.hero-word,
.hero-cta a:not(.btn-dorado),
.hero-scroll {
  text-shadow:
    0 1px 2px rgba(0,0,0,.9),
    0 4px 12px rgba(0,0,0,.75),
    0 12px 40px rgba(0,0,0,.55);
}
.hero-word {
  will-change: transform, opacity;
  -webkit-text-stroke: 1px rgba(13,11,8,.35);
}
h1.font-display .font-script {
  text-shadow:
    0 1px 2px rgba(0,0,0,.85),
    0 4px 16px rgba(0,0,0,.65);
}

/* ---------- linea que marca el limite entre contacto y footer (footer queda fijo detras) ---------- */
.contacto-divider {
  position: relative; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(217,162,39,.7) 50%, transparent 100%);
  box-shadow: 0 0 12px 1px rgba(217,162,39,.4);
}

/* ---------- footer reveal: el contenido se desliza y descubre el footer, que queda fijo abajo ---------- */
body.footer-reveal-active #main-content {
  position: relative; z-index: 1; background: #0D0B08;
}
body.footer-reveal-active #footer-placeholder { position: relative; z-index: 0; }
body.footer-reveal-active #site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; width: 100%; z-index: 0; overflow: hidden;
}
@media (max-width: 767.98px) {
  body.footer-reveal-active #main-content { margin-bottom: 0 !important; }
  body.footer-reveal-active #site-footer { position: relative; overflow: hidden; }
}

/* ---------- footer: foto de fondo (eclipse) confinada al lado derecho, se funde hacia el texto ---------- */
.footer-bg { background: #0D0B08; }
.footer-eclipse {
  z-index: 0; top: 0; left: 0; right: 0; width: 100%; height: 220px; object-fit: cover; object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 40%, black 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 40%, black 100%);
  animation: footer-eclipse-zoom 9s ease-in-out infinite alternate;
}
@media (min-width: 768px) {
  .footer-eclipse {
    top: 0; bottom: 0; left: auto; right: 0; width: 62%; height: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 35%);
    mask-image: linear-gradient(90deg, transparent 0%, black 35%);
    animation: footer-eclipse-zoom-left 18s ease-in-out infinite alternate;
  }
}
@keyframes footer-eclipse-zoom-left {
  from { transform: scale(1); object-position: 20% center; }
  to { transform: scale(1.15); object-position: 55% center; }
}
@keyframes footer-eclipse-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-eclipse { animation: none; }
}
.footer-scrim {
  z-index: 1;
  background: linear-gradient(180deg, rgba(13,11,8,.12) 0%, rgba(13,11,8,.25) 100%);
}

/* ---------- manifiesto: imagen con mascara organica ---------- */
.manifiesto-frame {
  aspect-ratio: 4 / 5;
  border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%;
  overflow: hidden;
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,.7),
    0 0 0 1px rgba(217,162,39,.25),
    0 0 60px -10px rgba(217,162,39,.25);
  will-change: transform;
}
.manifiesto-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.05); }
.manifiesto-tag {
  position: absolute; right: -.5rem; bottom: -1rem; z-index: 2;
  display: inline-block; padding: .3rem 1rem; rotate: -6deg;
  background: #0D0B08; border: 1px solid rgba(217,162,39,.4); border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
}
@media (max-width: 767px) {
  .manifiesto-frame { aspect-ratio: 3 / 4; }
  .manifiesto-tag { right: .5rem; bottom: -.8rem; font-size: 1.25rem; }
}

/* ---------- robot led: foto completa a la derecha, con vida ---------- */
.robot-media { will-change: transform; perspective: 1200px; }
.robot-tilt { transform-style: preserve-3d; position: relative; }
.robot-img { will-change: transform; transform: scale(1.22); transition: filter .5s var(--ease-out); }
.robot-fade {
  background: linear-gradient(90deg, rgba(31,27,22,1) 0%, rgba(31,27,22,0) 100%);
}
/* spotlight que sigue el mouse, mismo mecanismo que .zz-media */
.robot-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 60%);
  transition: opacity .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .robot-media:hover::after { opacity: 1; }
  .robot-media:hover .robot-img { filter: brightness(1.08) saturate(1.1); }
}
@media (max-width: 767px) {
  .robot-fade { background: linear-gradient(180deg, rgba(31,27,22,1) 0%, rgba(31,27,22,0) 25%); width: 100%; height: 30%; }
}

/* glow ambiental que respira detras de todo, color robado de las luces LED de la foto */
.robot-pulse-glow {
  z-index: 0;
  background: radial-gradient(60% 50% at 78% 45%, rgba(60,230,140,.16), transparent 65%);
  animation: robot-breathe 4s ease-in-out infinite;
}
@keyframes robot-breathe {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

/* punto que titila junto al kicker, como un LED encendido */
.robot-kicker { display: flex; align-items: center; color: #D9A227; }
.robot-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 999px; margin-right: .7em;
  background: #3ce68c; box-shadow: 0 0 8px 1px rgba(60,230,140,.8);
  animation: robot-blink 1.8s ease-in-out infinite;
}
@keyframes robot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* "gigante" con flicker de neon: prende, tiembla un toque, se asienta */
.robot-flicker {
  color: #3ce68c;
  text-shadow: 0 0 18px rgba(60,230,140,.55), 0 0 40px rgba(60,230,140,.25);
  animation: robot-neon-in 2.4s var(--ease-out) 1;
}
@keyframes robot-neon-in {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  6%   { opacity: .3; }
  8%   { opacity: 1; }
  9%   { opacity: .4; }
  11%  { opacity: 1; }
  100% { opacity: 1; }
}

/* linea de scan diagonal que cruza la foto una vez al entrar en viewport */
.robot-scan {
  z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(60,230,140,.35) 49%, rgba(255,255,255,.5) 50%, rgba(60,230,140,.35) 51%, transparent 58%);
  background-size: 300% 300%; background-position: 120% 0; opacity: 0;
}
.robot-scan.is-active {
  animation: robot-scan-sweep 1.4s var(--ease-out) 1;
}
@keyframes robot-scan-sweep {
  0%   { opacity: 1; background-position: 120% 0; }
  70%  { opacity: 1; }
  100% { opacity: 0; background-position: -20% 0; }
}

/* boton con mas tension: borde que resuena en vez del dorado plano */
.btn-robot {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  padding: .95rem 1.9rem; border-radius: 999px; width: fit-content; cursor: pointer;
  background: #D9A227; color: #0D0B08;
  box-shadow: 0 0 0 0 rgba(60,230,140,.5);
  transition: transform .18s var(--ease-out), box-shadow .3s var(--ease-out), background .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn-robot:hover { background: #F7F1E8; box-shadow: 0 0 0 6px rgba(60,230,140,.18); transform: translateY(-2px); }
}
.btn-robot:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  .robot-pulse-glow, .robot-dot, .robot-flicker, .robot-scan { animation: none; }
  .robot-flicker { opacity: 1; }
}

/* ---------- galeria collage ---------- */
.collage {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .collage { grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; align-items: start; }
}
.collage-item {
  position: relative; overflow: hidden;
  border-radius: 14px;
  will-change: transform; transform-origin: center;
  transition: transform .4s var(--ease-out), box-shadow .5s var(--ease-out);
  aspect-ratio: 4 / 5;
  background: var(--bg, #1F1B16);
  box-shadow: 0 8px 24px -14px rgba(0,0,0,.6);
}
.collage-item:nth-child(odd) { aspect-ratio: 3 / 4; }
.collage-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06);
  transition: transform .6s var(--ease-out), filter .5s var(--ease-out);
}

/* halo dorado detras de la tarjeta, solo visible en hover */
.collage-item::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 50%, rgba(217,162,39,.55), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}

/* brillo diagonal que atraviesa la tarjeta al pasar el mouse */
.collage-item::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  background-size: 250% 250%; background-position: 130% 0;
  transition: background-position .7s var(--ease-out);
}
.collage-item .ph {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center;
  color: currentColor; font-family: 'Fraunces', serif; font-weight: 300; font-size: 1.5rem; line-height: 1.2;
}
.collage-item .ph em { font-family: 'Sora', sans-serif; font-style: normal; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; opacity: .55; display: block; margin-top: .6rem; }
.collage-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #F7F1E8; font-family: 'Sora', sans-serif; font-size: .9rem;
  transform: translateY(110%); transition: transform .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .collage-item:hover { transform: rotate(0deg) scale(1.03); box-shadow: 0 24px 54px -14px rgba(217,162,39,.4); }
  .collage-item:hover img { transform: scale(1.14); filter: brightness(1.08); }
  .collage-item:hover::before { opacity: 1; }
  .collage-item:hover::after { background-position: -30% 0; }
  .collage-item:hover figcaption { transform: translateY(0); }
}

/* ---------- tira de fotos: scroll horizontal nativo con snap ---------- */
.tira-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem;
  padding-top: 2rem; border-top: 1px solid rgba(217,162,39,.18);
}
.tira-hint::after {
  content: ''; display: inline-block; width: 1.4em; height: 1px;
  background: currentColor; opacity: .5; margin-left: .5em; vertical-align: middle;
}
.tira-wrap { position: relative; }
.tira-fade {
  position: absolute; top: 0; right: 0; bottom: .5rem; width: 4rem;
  background: linear-gradient(to right, transparent, #0D0B08);
  pointer-events: none;
}
.tira-fotos {
  display: flex; gap: 1rem; overflow-x: auto;
  scroll-snap-type: x proximity; scroll-padding-left: 1.25rem;
  padding-bottom: .5rem; -webkit-overflow-scrolling: touch;
}
.tira-fotos::-webkit-scrollbar { height: 6px; }
.tira-fotos::-webkit-scrollbar-thumb { background: rgba(217,162,39,.35); border-radius: 999px; }
.tira-item {
  flex: 0 0 auto; width: 220px; aspect-ratio: 4 / 5;
  border-radius: 12px; overflow: hidden; scroll-snap-align: start;
  padding: 0; border: 0; cursor: zoom-in; background: #1F1B16;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,.6);
  transition: box-shadow .4s var(--ease-out);
}
.tira-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tira-item:hover { box-shadow: 0 16px 32px -14px rgba(217,162,39,.4); }
  .tira-item:hover img { transform: scale(1.08); }
}

/* ---------- lightbox nativo (dialog) ---------- */
.lightbox { border: 0; background: transparent; max-width: 90vw; max-height: 90vh; padding: 0; overflow: visible; }
.lightbox::backdrop { background: rgba(13,11,8,.9); }
.lightbox img { display: block; max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: -2.75rem; right: 0; background: none; border: 0;
  color: #F7F1E8; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 1;
}
.lightbox-nav {
  position: fixed; top: 50%; translate: 0 -50%; z-index: 1;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  background: rgba(13,11,8,.55); border: 1px solid rgba(217,162,39,.4); border-radius: 999px;
  color: #F7F1E8; font-size: 1.8rem; line-height: 1; cursor: pointer;
  transition: background .3s var(--ease-out);
}
.lightbox-nav:hover { background: rgba(217,162,39,.35); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
@media (max-width: 640px) {
  .lightbox-nav { width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

/* ---------- zigzag: texto + imagen alternando lado ---------- */
.zigzag { display: flex; flex-direction: column; gap: 4rem; }
.zz-item { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.zz-text { max-width: 40ch; }
.zz-ico { width: 44px; height: 44px; color: #C9A227; margin-bottom: 1.2rem; }
.zz-item h3 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.05; margin-bottom: .6rem; }
.zz-item p { font-family: 'Sora', sans-serif; font-size: 1rem; line-height: 1.6; color: rgba(247,241,232,.78); }

.zz-media {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 16px; perspective: 1000px;
  box-shadow: 0 24px 54px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(217,162,39,.15);
  transition: box-shadow .4s var(--ease-out);
}
.zz-media-inner {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
}
.zz-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); will-change: transform; transition: transform .5s var(--ease-out), filter .5s var(--ease-out); }
/* spotlight que sigue al mouse, posicionado via --mx/--my en JS */
.zz-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 60%);
  transition: opacity .4s var(--ease-out);
}
.zz-media-ph {
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(217,162,39,.12), rgba(217,162,39,.03));
  border: 1px dashed rgba(217,162,39,.3);
}
.zz-media-ph svg { width: 30%; height: 30%; color: rgba(217,162,39,.45); }

@media (hover: hover) and (pointer: fine) {
  .zz-media:hover { box-shadow: 0 30px 64px -18px rgba(217,162,39,.35), 0 0 0 1px rgba(217,162,39,.3); }
  .zz-media:hover::after { opacity: 1; }
  .zz-media:hover img { filter: brightness(1.06); }
}

@media (min-width: 768px) {
  .zigzag { gap: 7rem; }
  .zz-item { flex-direction: row; gap: 4rem; align-items: center; }
  .zz-item:nth-child(even) { flex-direction: row-reverse; }
  .zz-text { max-width: 32ch; flex: 0 0 40%; }
  .zz-media { flex: 1; aspect-ratio: 5 / 4; }
}

/* ---------- testimonios: carrusel que gira en 3D ---------- */
#testi-stage { perspective: 1400px; }
.testi {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transform-style: preserve-3d;
  transform: translateX(60px) rotateY(-25deg) scale(.92);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.testi[data-active="true"] { position: relative; opacity: 1; pointer-events: auto; transform: none; }
.testi[data-exit="prev"] { transform: translateX(-60px) rotateY(25deg) scale(.92); }
.testi[data-exit="next"] { transform: translateX(60px) rotateY(-25deg) scale(.92); }

/* foto de fondo del testimonio: cubre toda la seccion, atenuada para que el texto se lea bien */
.testi-bg {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; left: 50%; width: 100vw; height: 100vh; min-width: 1100px; min-height: 700px;
  transform: translate(-50%, -50%);
  background-size: cover; background-position: center 20%;
}
.testi-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,11,8,.92) 0%, rgba(13,11,8,.75) 45%, rgba(13,11,8,.55) 100%);
}
.testi-nav {
  width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgba(247,241,232,.25);
  color: #F7F1E8; font-size: 1.2rem; cursor: pointer;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .15s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .testi-nav:hover { background: #D9A227; color: #0D0B08; border-color: #D9A227; }
}
.testi-nav:active { transform: scale(.9); }

/* ---------- formulario reskineado ---------- */
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label {
  font-family: 'Sora', sans-serif; font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(247,241,232,.7);
}
.field input, .field select, .field textarea {
  background: transparent; border: none; border-bottom: 1px solid rgba(247,241,232,.35);
  color: #F7F1E8; font-family: 'Sora', sans-serif; font-size: 1.05rem;
  padding: .55rem .1rem; border-radius: 0;
  transform-origin: left center;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(247,241,232,.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: #D9A227;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7F1E8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .1rem center; background-size: 16px;
  padding-right: 1.5rem; cursor: pointer;
}
.field select option { background: #1F1B16; color: #F7F1E8; }
/* el date picker en fondo oscuro */
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; }

/* ---------- menu overlay ---------- */
#menu-overlay {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(1.02);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility 0s linear .28s;
}
#menu-overlay.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: scale(1);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility 0s;
}
#menu-overlay li {
  opacity: 0; transform: translateY(28px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
#menu-overlay.is-open li {
  opacity: 1; transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 60ms + 100ms);
}
#menu-overlay li:nth-child(1) { --i: 1; }
#menu-overlay li:nth-child(2) { --i: 2; }
#menu-overlay li:nth-child(3) { --i: 3; }
#menu-overlay li:nth-child(4) { --i: 4; }
#menu-overlay li:nth-child(5) { --i: 5; }
#menu-overlay li:nth-child(6) { --i: 6; }

.menu-link {
  position: relative; display: inline-block;
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 3.75rem); line-height: 1.05;
  transition: color .2s var(--ease-out), padding-left .2s var(--ease-out);
}
.menu-link::before {
  content: attr(data-i); position: absolute; left: -2.6em; top: .55em;
  font-family: 'Sora', sans-serif; font-size: .7rem; letter-spacing: .2em;
  color: rgba(217,162,39,.7); opacity: 0; transition: opacity .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .menu-link:hover { color: #D9A227; padding-left: .2em; }
  .menu-link:hover::before { opacity: 1; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .robot-img, .manifiesto-frame img, .zz-media img { transform: none; }
  .hero-word, .reveal-up, .manifiesto-frame, .manifiesto-tag, .robot-media, .zz-text, .zz-media { opacity: 1 !important; transform: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
