/* =============================================================
   COFREX PRODUCE — styles.css
   Archetype: Editorial Dark Warm · Vídeo de boda cinematográfico
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:       #0E0B09;   /* casi negro cálido — nunca #000 */
  --bg-2:     #15110E;
  --bg-3:     #1E1813;   /* tarjetas */
  --cream:    #F2EBDA;   /* texto sobre oscuro — nunca blanco puro */
  --cream-2:  #DDD2BC;
  --cream-3:  #8B7E68;   /* metadatos */
  --accent:   #fce89f;   /* dorado champán */
  --accent-2: #f4dd7c;   /* dorado más intenso (hover) */
  --on-accent:#1A140A;   /* texto oscuro sobre el dorado */
  --gold:     #d9c587;   /* dorado secundario (kickers) */
  --line:     rgba(242, 235, 218, 0.12);
  --line-2:   rgba(242, 235, 218, 0.06);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.2rem, 5vw, 4rem);
  --maxw: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
em { font-style: italic; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .7;
}

.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-top: 1rem;
}
.section-title em { color: var(--accent); }
.section-intro { color: var(--cream-2); margin-top: 1rem; font-size: 1.05rem; max-width: 56ch; }
.section-head.center .section-intro { margin-inline: auto; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 100px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .4s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .4s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(252,232,159,.5);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(252,232,159,.8); }
.btn-ghost {
  background: transparent; color: var(--cream); border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--cream); transform: translateY(-3px); }
.btn-wa { background: #25D366; color: #07301a; }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-3px); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1rem; }

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background .4s var(--ease-out), backdrop-filter .4s var(--ease-out), padding .4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14, 11, 9, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: .75rem;
}
.nav-brand {
  font-family: var(--serif); font-size: 1.18rem; letter-spacing: .02em;
  display: flex; align-items: center; gap: .6rem;
}
.nav-brand b { font-weight: 600; }
.nav-brand .dot { color: var(--accent); }
.brand-logo { height: 52px; width: auto; flex: 0 0 auto; transition: opacity .3s var(--ease-out), height .4s var(--ease-out); }
.nav-brand:hover .brand-logo { opacity: .82; }
.nav.is-scrolled .brand-logo { height: 42px; }
.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .9rem; color: var(--cream-2); font-weight: 500;
  position: relative; transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--accent); transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }
.nav-burger {
  display: inline-flex; flex-direction: column; gap: 5px; padding: .5rem;
}
.nav-burger span { width: 24px; height: 2px; background: var(--cream); transition: transform .3s, opacity .3s; }
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.4rem;
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a { font-family: var(--serif); font-size: 1.8rem; color: var(--cream); }
.mobile-menu a:hover { color: var(--accent); }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,11,9,.55) 0%, rgba(14,11,9,.25) 35%, rgba(14,11,9,.85) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(14,11,9,.7) 0%, transparent 60%);
}
.hero-mesh {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background:
    radial-gradient(40% 50% at 18% 75%, rgba(252,232,159,.4), transparent 70%),
    radial-gradient(35% 40% at 85% 30%, rgba(196,154,91,.22), transparent 70%);
  filter: blur(50px);
  animation: meshFloat 16s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.12); }
}
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-meta {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; color: var(--cream-2); letter-spacing: .04em; margin-bottom: 1.6rem;
}
.hero-meta .pin { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(252,232,159,.6); animation: pulse 2.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(252,232,159,.55); }
  70% { box-shadow: 0 0 0 10px rgba(252,232,159,0); }
  100% { box-shadow: 0 0 0 0 rgba(252,232,159,0); }
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 6rem);
  max-width: 16ch;
  line-height: 1.0;
}
.hero-title em { color: var(--accent); }
.hero-sub {
  margin-top: 1.6rem; max-width: 48ch; font-size: clamp(1.02rem, 2.2vw, 1.25rem);
  color: var(--cream-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--cream-3);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero-scroll .line { width: 1px; height: 36px; background: linear-gradient(var(--cream-3), transparent); animation: scrollLine 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollLine { 0%,100% { transform: scaleY(.4); opacity:.4; } 50% { transform: scaleY(1); opacity:1; } }

/* =============================================================
   7. Reveal animation
   ============================================================= */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }  /* defensa A.4.5 */
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* =============================================================
   8. Trailer / últimos novios
   ============================================================= */
.trailer { position: relative; }
.trailer-card {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--bg-3);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.trailer-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.03); transition: transform 1.2s var(--ease-out); }
.trailer-card:hover img { transform: scale(1.05); }
.trailer-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,9,.1), rgba(14,11,9,.65)); }
.trailer-play {
  position: absolute; inset: 0; z-index: 2; margin: auto;
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(252,232,159,.95); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease-bounce), background .3s;
  box-shadow: 0 10px 40px -8px rgba(252,232,159,.7);
}
.trailer-play svg { width: 30px; height: 30px; margin-left: 4px; }
.trailer-play::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(242,235,218,.4); animation: ring 2.4s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.trailer-card:hover .trailer-play { transform: scale(1.08); background: var(--accent-2); }
.trailer-label {
  position: absolute; left: 1.4rem; bottom: 1.3rem; z-index: 2;
  font-size: .82rem; color: var(--cream); letter-spacing: .02em;
}
.trailer-label b { font-family: var(--serif); font-size: 1.3rem; display: block; font-weight: 500; }
.trailer-card { cursor: pointer; }
.trailer-frame { position: absolute; inset: 0; z-index: 3; }
.trailer-frame iframe { width: 100%; height: 100%; border: 0; }
.trailer-card.is-playing::after { display: none; }

/* Banda de foto a ancho completo */
.photo-band { position: relative; height: clamp(300px, 46vh, 520px); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,9,.35), rgba(14,11,9,.68)); }
.photo-band .band-quote {
  position: relative; z-index: 2; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 4.2vw, 2.9rem); color: var(--cream); text-align: center;
  max-width: 20ch; padding: 0 1.4rem; line-height: 1.18; text-shadow: 0 2px 22px rgba(0,0,0,.65);
}
.photo-band .band-quote em { color: var(--accent); }

/* Sección con foto de fondo (p. ej. Dónde grabamos) */
.section-bg { position: relative; overflow: hidden; }
.section-bg > .section-bg-img { position: absolute; inset: 0; z-index: 0; }
.section-bg > .section-bg-img img { width: 100%; height: 100%; object-fit: cover; }
.section-bg > .section-bg-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,11,9,.9), rgba(14,11,9,.82));
}
.section-bg > .container { position: relative; z-index: 1; }

/* =============================================================
   9. Diferenciadores (por qué Cofrex)
   ============================================================= */
.why-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.why-card {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 16px; padding: 2rem 1.8rem;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(252,232,159,.5); box-shadow: 0 30px 60px -40px rgba(252,232,159,.6); }
.why-icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 1.1rem; }
.why-icon svg { width: 100%; height: 100%; }
.why-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.why-card p { color: var(--cream-2); font-size: .98rem; }

/* =============================================================
   10. Paquetes
   ============================================================= */
.packages-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: start; }
.pkg {
  position: relative; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 18px; padding: 2.2rem 1.9rem; display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
}
.pkg:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -50px rgba(0,0,0,.9); }
.pkg.is-featured { border-color: rgba(252,232,159,.55); background: linear-gradient(180deg, #221913, var(--bg-3)); }
.pkg-tag {
  position: absolute; top: -12px; left: 1.9rem;
  background: var(--accent); color: var(--on-accent); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 100px;
}
.pkg-kicker { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.pkg h3 { font-size: 2rem; margin: .4rem 0 .4rem; }
.pkg-intro { color: var(--cream-2); font-size: .95rem; margin-bottom: 1.4rem; min-height: 2.6em; }
.pkg-features { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.8rem; }
.pkg-features li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; color: var(--cream-2); padding: .25rem .5rem; margin-inline: -.5rem; border-radius: 8px; }
.pkg-features svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.pkg-features li.is-plus { color: var(--cream); font-weight: 700; }
.pkg-features li.is-plus svg { color: var(--accent); }
.pkg-features li.is-off { color: var(--cream-3); opacity: .55; }
.pkg-features li.is-off svg { color: var(--cream-3); }
.pkg .btn { margin-top: auto; width: 100%; }
.pkg-note { text-align: center; color: var(--cream-3); font-size: .9rem; margin-top: 1.6rem; }

/* =============================================================
   11. Proceso
   ============================================================= */
.process { background: var(--bg-2); }
.process-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.process-media { border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); }
.process-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) brightness(.92); }
.steps { display: grid; gap: 1.6rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.step-num {
  font-family: var(--serif); font-size: 1.5rem; color: var(--accent);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(252,232,159,.4);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.step h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.step p { color: var(--cream-2); font-size: .96rem; }

/* =============================================================
   12. Galería
   ============================================================= */
.gallery-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
.gallery-item { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 1; border: 1px solid var(--line); }
.gallery-item.tall { aspect-ratio: 3/4; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s; filter: saturate(1.02); }
.gallery-item:hover img { transform: scale(1.08); filter: saturate(1.15); }

/* =============================================================
   13. Zonas (Cuenca / Madrid)
   ============================================================= */
.zones-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.zone-card { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--line); display: flex; align-items: flex-end; }
.zone-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); filter: saturate(1.02) brightness(.78); }
.zone-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(14,11,9,.9)); }
.zone-card:hover img { transform: scale(1.07); }
.zone-body { position: relative; z-index: 2; padding: 1.8rem; }
.zone-body h3 { font-size: 1.9rem; }
.zone-body p { color: var(--cream-2); font-size: .95rem; margin: .3rem 0 1rem; }
.zone-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); font-weight: 600; font-size: .92rem; }
.zone-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.zone-card:hover .zone-link svg { transform: translateX(5px); }

/* =============================================================
   14. Testimonios
   ============================================================= */
.testimonials { background: var(--bg-2); }
.tst-carousel { position: relative; }
.tst-track {
  display: flex; gap: 1.4rem; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .4rem .2rem 1.4rem; margin: 0 -.2rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.tst-track::-webkit-scrollbar { display: none; }
.tst {
  flex: 0 0 88%; scroll-snap-align: center;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem 1.8rem; position: relative;
}
.tst-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,.7);
  transition: transform .3s var(--ease-out), opacity .3s, background .3s;
}
.tst-arrow:hover { background: var(--accent-2); transform: translateY(-50%) scale(1.08); }
.tst-arrow svg { width: 22px; height: 22px; }
.tst-arrow.prev { left: -6px; }
.tst-arrow.next { right: -6px; }
.tst-arrow[disabled] { opacity: 0; pointer-events: none; }
.tst::before {
  content: "\201C"; font-family: var(--serif); font-size: 4.5rem; color: var(--accent);
  position: absolute; top: .2rem; right: 1.2rem; opacity: .25; line-height: 1;
}
.tst p { font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--cream); line-height: 1.5; }
.tst-by { margin-top: 1.3rem; }
.tst-by b { display: block; font-family: var(--sans); font-weight: 600; font-size: .95rem; }
.tst-by span { font-size: .82rem; color: var(--cream-3); }
.tst-stars { color: var(--gold); letter-spacing: .15em; font-size: .9rem; margin-bottom: .9rem; }

/* =============================================================
   14b. Otros trabajos (marquee de logos/sectores)
   ============================================================= */
.clients { padding-block: clamp(3rem, 7vw, 5rem); border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.clients-head { text-align: center; margin-bottom: 2.2rem; }
.clients-head .kicker { justify-content: center; }
.clients-head p { color: var(--cream-2); margin-top: .8rem; font-size: 1rem; }
.logos { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-track { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.8rem); width: max-content; animation: marquee 45s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-item {
  display: inline-flex; align-items: center; justify-content: center;
  height: 76px; min-width: 130px; padding: .8rem 1.3rem;
  background: #fff; border-radius: 14px; flex: 0 0 auto;
  box-shadow: 0 12px 28px -18px rgba(0,0,0,.6);
  transition: transform .35s var(--ease-out);
}
.logo-item:hover { transform: translateY(-4px); }
.logo-item img { height: 100%; width: auto; max-width: 150px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* =============================================================
   15. Historia / Sobre Cofrex
   ============================================================= */
.about { position: relative; }
.about-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
.about-media { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); }
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.03) brightness(.95); }
.about-media .badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  background: rgba(14,11,9,.78); backdrop-filter: blur(8px); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.2rem; font-size: .88rem; color: var(--cream-2);
}
.about-media .badge b { color: var(--cream); font-family: var(--serif); }
.about-text h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1.2rem; }
.about-text h2 em { color: var(--accent); }
.about-text p { color: var(--cream-2); margin-bottom: 1.1rem; }
.about-sign { font-family: var(--serif); font-style: italic; color: var(--cream); font-size: 1.2rem; margin-top: 1.4rem; }

/* =============================================================
   16. FAQ
   ============================================================= */
.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.5rem 0; font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--cream);
}
.faq-q .icon { flex: 0 0 auto; width: 26px; height: 26px; position: relative; transition: transform .4s var(--ease-out); }
.faq-q .icon::before, .faq-q .icon::after { content: ""; position: absolute; background: var(--accent); inset: 0; margin: auto; }
.faq-q .icon::before { width: 100%; height: 2px; }
.faq-q .icon::after { width: 2px; height: 100%; transition: transform .4s var(--ease-out); }
.faq-item.is-open .faq-q .icon::after { transform: rotate(90deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .5s var(--ease-out); }
.faq-a-inner { padding: 0 0 1.5rem; color: var(--cream-2); max-width: 64ch; }

/* =============================================================
   17. CTA final + Contacto / formulario
   ============================================================= */
.cta { position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.4) saturate(1.1); }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,9,.7), rgba(14,11,9,.92)); }
.cta-inner { position: relative; z-index: 2; }
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.contact-aside h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.contact-aside h2 em { color: var(--accent); }
.contact-aside p { color: var(--cream-2); margin-bottom: 1.8rem; max-width: 44ch; }
.contact-list { display: grid; gap: 1rem; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: .8rem; color: var(--cream); font-size: 1rem; }
.contact-list svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.contact-list a:hover { color: var(--accent); }
.contact-actions { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; margin-top: 0; }
.contact-socials { display: flex; gap: .8rem; margin-top: 1.6rem; }
.contact-socials.center { justify-content: center; margin-top: 2rem; }
.contact-socials a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; transition: all .3s var(--ease-out);
}
.contact-socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.contact-socials svg { width: 20px; height: 20px; }

.form {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.4rem); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; color: var(--cream-2); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--cream); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem;
  transition: border-color .3s, box-shadow .3s; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(252,232,159,.18);
}
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.form .btn { margin-top: .4rem; }
.form-note { font-size: .78rem; color: var(--cream-3); text-align: center; }
.form-note a { color: var(--gold); text-decoration: underline; }
.form-success {
  display: none; text-align: center; padding: 1rem; border-radius: 12px;
  background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.4); color: #8ff0b6;
  font-size: .95rem;
}
.form.is-sent .form-success { display: block; }

/* =============================================================
   18. WhatsApp flotante
   ============================================================= */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .4s var(--ease-bounce);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.1); }

/* Botón volver arriba (encima del de WhatsApp) */
.to-top {
  position: fixed; right: 1.1rem; bottom: calc(1.1rem + 58px + 26px); z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-3); color: var(--cream); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), background .3s, color .3s, border-color .3s;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.7);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.to-top svg { width: 20px; height: 20px; }

/* =============================================================
   18b. Banner de cookies
   ============================================================= */
.cookie-banner {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 95;
  width: min(420px, calc(100% - 2.2rem));
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.85);
  transform: translateY(140%); opacity: 0;
  transition: transform .55s var(--ease-out), opacity .55s var(--ease-out);
}
.cookie-banner.is-visible { transform: none; opacity: 1; }
.cookie-banner h4 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .86rem; color: var(--cream-2); line-height: 1.55; margin-bottom: 1rem; }
.cookie-banner p a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: .7rem 1.2rem; font-size: .88rem; flex: 1 1 auto; }
.cookie-reject {
  background: transparent; color: var(--cream-2); border: 1px solid var(--line);
}
.cookie-reject:hover { border-color: var(--cream); color: var(--cream); }
@media (max-width: 539px) {
  /* El banner se coloca por encima del botón de WhatsApp (que sigue abajo-derecha) */
  .cookie-banner { left: .7rem; right: .7rem; bottom: 5.6rem; width: auto; }
}

/* =============================================================
   19. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; background: var(--bg-2); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
.footer-brand b { display: inline-flex; align-items: center; }
.footer-brand b img { height: 46px; width: auto; }
.footer-brand p { color: var(--cream-3); font-size: .9rem; margin-top: .6rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--cream-2); font-size: .92rem; padding: .25rem 0; transition: color .3s; }
.footer-col a:hover { color: var(--accent); }
.footer-col .contact-socials { margin-top: .8rem; }
.footer-col .contact-socials a { display: inline-flex; padding: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.8rem; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--cream-3); }
.footer-bottom a { color: var(--cream-3); }
.footer-bottom a:hover { color: var(--cream-2); }

/* =============================================================
   20. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9000; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1rem;
  animation: splashSafety .01s 4s forwards;
}
.splash.is-out { animation: splashOut .8s var(--ease-out) forwards; }
.splash-logo { display: flex; flex-direction: column; align-items: center; gap: .9rem; opacity: 0; animation: splashIn .8s var(--ease-out) .1s forwards; }
.splash-logo img { height: 92px; width: auto; animation: splashPulse 2s var(--ease-out) infinite; }
@keyframes splashPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.splash-bar { width: 120px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.splash-bar i { display: block; height: 100%; width: 40%; background: var(--accent); animation: splashLoad 1.6s var(--ease-out) infinite; }
@keyframes splashLoad { 0% { transform: translateX(-100%);} 100% { transform: translateX(330%);} }
@keyframes splashIn { to { opacity: 1; } }
@keyframes splashOut { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }

/* =============================================================
   21. Page hero (landings internas)
   ============================================================= */
.page-hero { position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; padding-bottom: clamp(3rem,7vh,5rem); overflow: hidden; }
.page-hero .hero-bg::after {
  background: linear-gradient(180deg, rgba(14,11,9,.55) 0%, rgba(14,11,9,.4) 40%, rgba(14,11,9,.9) 90%, var(--bg) 100%);
}
.breadcrumb { display: flex; gap: .5rem; font-size: .82rem; color: var(--cream-3); margin-bottom: 1.2rem; position: relative; z-index: 3; }
.breadcrumb a:hover { color: var(--accent); }
.prose { max-width: 70ch; }
.prose p { color: var(--cream-2); margin-bottom: 1.2rem; font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 2.4rem 0 1rem; }
.prose h2 em { color: var(--accent); }
.prose ul { list-style: none; display: grid; gap: .7rem; margin: 1.2rem 0; }
.prose ul li { display: flex; gap: .6rem; color: var(--cream-2); }
.prose ul svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 5px; }

/* =============================================================
   21b. Secciones claras (intercaladas para romper el fondo oscuro)
   ============================================================= */
.section-light {
  background: #F4EEE2;
  color: #2a2114;
  --hl: #9a7b1c;   /* dorado oscuro: el acento champán no se vería sobre claro */
}
.section-light .kicker { color: var(--hl); }
.section-light .kicker::before { background: var(--hl); }
.section-light .section-title { color: #2a2114; }
.section-light .section-title em { color: var(--hl); }
.section-light .section-intro { color: #6a5f4c; }
.section-light .pkg-note { color: #6a5f4c; }

/* Tarjetas de paquetes en claro */
.section-light .pkg {
  background: #ffffff; border-color: rgba(42,33,20,.1); color: #2a2114;
  box-shadow: 0 30px 60px -42px rgba(42,33,20,.4);
}
.section-light .pkg.is-featured {
  background: linear-gradient(180deg, #FFF8E6, #ffffff);
  border-color: var(--hl);
}
.section-light .pkg h3 { color: #2a2114; }
.section-light .pkg-kicker { color: var(--hl); }
.section-light .pkg-intro { color: #6a5f4c; }
.section-light .pkg-features li { color: #4d4434; }
.section-light .pkg-features svg { color: var(--hl); }
.section-light .pkg-features li.is-plus { color: #2a2114; font-weight: 700; }
.section-light .pkg-features li.is-plus svg { color: var(--hl); }
.section-light .pkg-features li.is-off { color: #a89c86; opacity: 1; }
.section-light .pkg-features li.is-off svg { color: #c4b89e; }

/* Opiniones en claro */
.section-light .tst { background: #ffffff; border-color: rgba(42,33,20,.1); }
.section-light .tst::before { color: var(--hl); }
.section-light .tst p { color: #2a2114; }
.section-light .tst-by b { color: #2a2114; }
.section-light .tst-by span { color: #8a7d64; }
.section-light .tst-stars { color: #c9a227; }
.section-light .pkg-tag { background: var(--hl); color: #fff; }
.section-light .btn-primary {
  background: #2a2114; color: #F4EEE2;
  box-shadow: 0 12px 30px -16px rgba(42,33,20,.5);
}
.section-light .btn-primary:hover { background: #1a140a; }

/* FAQ en claro */
.section-light .faq-list { border-top-color: rgba(42,33,20,.14); }
.section-light .faq-item { border-bottom-color: rgba(42,33,20,.14); }
.section-light .faq-q { color: #2a2114; }
.section-light .faq-q .icon::before,
.section-light .faq-q .icon::after { background: var(--hl); }
.section-light .faq-a-inner { color: #6a5f4c; }

/* =============================================================
   22. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .tst { flex-basis: 46%; }
  .tst-arrow.prev { left: -18px; }
  .tst-arrow.next { right: -18px; }
  .zones-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .tst { flex-basis: 31.5%; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .packages-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: .9fr 1.1fr; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: clamp(3.5rem, 7vw, 6.4rem); }
}

/* =============================================================
   23. Reduced motion (solo intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .hero-bg img { animation: none; }
  .hero-meta .pin, .wa-float::before, .trailer-play::before, .hero-scroll .line, .splash-bar i, .splash-logo img { animation: none; }
}
