/* =========================================================
   Alquieventos San Gil — hoja de estilos
   Dirección: azul marino profundo + dorado del logo, glass
   sobre una aurora animada, Cormorant Garamond + Manrope.
   ========================================================= */

:root {
  /* Marca */
  --bg:        #f7f5f0;   /* marfil cálido */
  --bg-2:      #ffffff;
  --navy:      #0b1b5e;
  --navy-2:    #16297f;
  --gold:      #e9b23c;
  --gold-2:    #f3cf7a;
  --gold-text: #a9761b;   /* dorado con contraste para texto sobre claro */
  --gold-dim:  rgba(233, 178, 60, .16);

  /* Texto */
  --text:      #12172b;
  --text-2:    #3f4763;
  --muted:     #7a819c;

  /* Glass (blanco esmerilado sobre fondo claro) */
  --glass-bg:        rgba(255, 255, 255, .55);
  --glass-bg-hover:  rgba(255, 255, 255, .78);
  --glass-bg-strong: rgba(255, 255, 255, .84);
  --glass-border:    rgba(11, 27, 94, .10);
  --glass-border-hi: rgba(11, 27, 94, .22);
  --glass-blur:      18px;
  --glass-shadow:    0 20px 60px rgba(11, 27, 94, .10), inset 0 1px 0 rgba(255, 255, 255, .9);

  /* Sistema */
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --container: 1200px;
  --nav-h:     64px;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 .4em; color: var(--text); line-height: 1.1; font-weight: 500; }
h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; }
h4 { font-family: var(--font-body); font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
::selection { background: var(--gold); color: #12172b; }

.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: absolute; left: -9999px; top: 0; z-index: 400; background: var(--gold); color: var(--bg); padding: 12px 18px; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografía ---------- */
.display-xl, .display-lg, .display-md {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--text);
}
.display-xl { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.02; }
.display-lg { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.06; }
.display-md { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; }
.display-xl em, .display-lg em, .display-md em { font-style: italic; font-weight: 300; color: var(--gold-text); }

/* Descriptor del hero. No es una etiqueta de sección: lleva lugar y
   trayectoria, y va sobre la foto. Sin adornos a los lados. */
.hero-meta {
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 18px;
}
.lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text-2); font-weight: 300; line-height: 1.7; }
.section-sub { font-size: 1.02rem; color: var(--text-2); font-weight: 300; max-width: 56ch; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }

/* ---------- Layout ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 0; }
.section-head .section-sub { margin-top: 14px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; flex-wrap: wrap; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
}
.glass-strong {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--glass-shadow);
}
.glass-line {
  background: rgba(255, 255, 255, .5);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Aurora de fondo ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .7;
  will-change: transform;
}
.aurora-1 { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: radial-gradient(circle, rgba(26, 58, 168, .30), transparent 65%); animation: aurora-a 28s ease-in-out infinite alternate; }
.aurora-2 { width: 50vw; height: 50vw; right: -16vw; top: 18vh; background: radial-gradient(circle, rgba(233, 178, 60, .42), transparent 65%); animation: aurora-b 34s ease-in-out infinite alternate; }
.aurora-3 { width: 55vw; height: 55vw; left: 20vw; bottom: -30vw; background: radial-gradient(circle, rgba(140, 110, 220, .28), transparent 65%); animation: aurora-c 40s ease-in-out infinite alternate; }
.aurora-grain {
  position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes aurora-a { to { transform: translate(14vw, 12vh) scale(1.15); } }
@keyframes aurora-b { to { transform: translate(-12vw, 18vh) scale(1.2); } }
@keyframes aurora-c { to { transform: translate(-10vw, -14vh) scale(1.1); } }

main, .site-footer, .marquee { position: relative; z-index: 1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.full { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .84rem; }

.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405; box-shadow: 0 10px 30px rgba(233, 178, 60, .28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(233, 178, 60, .4); }

.btn-glass {
  background: var(--glass-bg); color: var(--text); border-color: var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hi); transform: translateY(-2px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  background-image:
    radial-gradient(50vw 40vh at 30% 20%, rgba(26, 58, 168, .10), transparent 70%),
    radial-gradient(50vw 40vh at 75% 80%, rgba(233, 178, 60, .16), transparent 70%);
  display: grid; place-items: center;
  clip-path: circle(100% at 50% 50%);
  -webkit-clip-path: circle(100% at 50% 50%);
  transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1), visibility 0s 1.3s;
}
.preloader.is-done { clip-path: circle(0% at 50% 50%); -webkit-clip-path: circle(0% at 50% 50%); visibility: hidden; pointer-events: none; }

.preloader-inner {
  position: relative; text-align: center;
  transition: opacity .45s ease, transform .6s var(--ease-out);
}
.preloader.is-opening .preloader-inner { opacity: 0; transform: scale(.92); }

/* Wordmark: entra desde desenfoque; debajo, una línea que crece con la carga. */
.preloader-logo {
  width: clamp(200px, 34vw, 320px); height: auto; margin: 0 auto 26px;
  opacity: 0; filter: blur(10px); transform: translateY(10px) scale(.96);
  animation: preloader-logo 1.1s var(--ease-out) .2s forwards;
}
@keyframes preloader-logo { to { opacity: 1; filter: blur(0); transform: none; } }

.preloader-linea {
  width: clamp(140px, 22vw, 220px); height: 1px; margin: 0 auto;
  background: rgba(11, 27, 94, .12); overflow: hidden;
  opacity: 0; animation: preloader-fade .6s .7s ease forwards;
}
.preloader-linea i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease;
  box-shadow: 0 0 8px rgba(233, 178, 60, .5);
}
@keyframes preloader-fade { to { opacity: 1; } }

.preloader-count {
  position: absolute; left: clamp(20px, 5vw, 64px); bottom: clamp(20px, 5vw, 56px);
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); font-weight: 300; line-height: 1; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.preloader-count i { display: block; width: clamp(40px, 8vw, 120px); height: 1px; background: rgba(11, 27, 94, .25); }
.preloader-tag {
  position: absolute; right: clamp(20px, 5vw, 64px); bottom: clamp(28px, 5.5vw, 66px);
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.preloader-count, .preloader-tag { transition: opacity .4s ease; }
.preloader.is-opening .preloader-count, .preloader.is-opening .preloader-tag { opacity: 0; }

/* ---------- Nav ---------- */
.nav-shell {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 16px 20px 0; pointer-events: none;
  transition: padding .4s var(--ease-out), transform .8s var(--ease-out), opacity .8s ease;
}
body.is-loading .nav-shell { transform: translateY(-20px); opacity: 0; }
.nav-shell.is-scrolled { padding-top: 10px; }
.nav-pill {
  pointer-events: auto; position: relative; isolation: isolate;
  width: min(100%, 1120px); margin: 0 auto;
  height: var(--nav-h); border-radius: 999px;
  display: flex; align-items: center; gap: 20px;
  padding: 0 10px 0 18px;
  /* Sin filtro en la píldora: backdrop-filter haría de contenedor del menú
     móvil (position: fixed) y lo encerraría dentro de estos 64 px. */
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: box-shadow .4s ease, height .4s var(--ease-out);
}
.nav-pill::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  transition: background .4s ease;
}
.nav-shell.is-scrolled .nav-pill { height: 58px; box-shadow: 0 20px 60px rgba(11, 27, 94, .16), inset 0 1px 0 rgba(255, 255, 255, .9); }
.nav-shell.is-scrolled .nav-pill::before { background: rgba(255, 255, 255, .82); }

/* Wordmark horizontal: alto fijo, ancho proporcional. */
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; display: block; transition: height .4s var(--ease-out); }
.nav-shell.is-scrolled .brand img { height: 46px; }
.site-footer .brand img { height: 56px; }

.nav { display: flex; margin-left: auto; }
.nav-links { position: relative; display: flex; gap: 2px; }
.nav-links a {
  position: relative; z-index: 1; padding: 9px 15px; border-radius: 999px;
  font-size: .86rem; font-weight: 500; color: var(--text-2); letter-spacing: .01em;
  transition: color .3s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-indicator {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px;
  background: rgba(11, 27, 94, .06); border: 1px solid var(--glass-border);
  opacity: 0; transition: left .5s var(--ease-out), width .5s var(--ease-out), opacity .3s ease;
}
.nav-indicator.is-on { opacity: 1; }
.nav-mobile-foot { display: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: var(--glass-bg); padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero / ScrollExpand ---------- */
.se { position: relative; width: 100%; }
.se-track { position: relative; width: 100%; }
.se-stage {
  position: sticky; top: 0; width: 100%; height: 100vh; overflow: hidden;
  --se-title: clamp(2.6rem, 9vw, 8rem);
  background: radial-gradient(70vw 50vh at 50% 100%, rgba(11, 27, 94, .08), transparent 70%);
}
.se-frame { position: absolute; inset: 0; clip-path: inset(20% 28% 20% 28% round 28px); will-change: clip-path; }
.se-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: center; will-change: transform; user-select: none; -webkit-user-drag: none; background: var(--bg-2); }
.se-scrim { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to top, rgba(7, 11, 31, .92), rgba(7, 11, 31, .25) 45%, rgba(7, 11, 31, .45)); }
.se-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 6vw, 80px); padding-top: 120px; opacity: 0; will-change: opacity, transform;
  max-width: 900px;
}
/* El overlay va sobre la foto a pantalla completa: texto claro sobre scrim oscuro. */
.se-overlay .display-xl { color: #fff; }
.se-overlay .display-xl em { color: var(--gold-2); }
.se-overlay .lead { max-width: 52ch; margin: 18px 0 26px; color: rgba(255, 255, 255, .86); }
.se-overlay .btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.se-overlay .btn-glass:hover { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .6); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.se-bgword {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(6rem, 26vw, 24rem); line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(11, 27, 94, .14);
  pointer-events: none; user-select: none; white-space: nowrap;
  opacity: 0; transition: opacity 1.4s ease .6s, transform 1.6s var(--ease-out) .6s;
}
body.is-ready .se-bgword { opacity: 1; }

.se-title {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; will-change: opacity, transform; padding: 0 3%;
}
.se-title-kicker {
  font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-2);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
  margin-bottom: 18px; opacity: 0; transform: translateY(14px);
  transition: opacity 1s ease .55s, transform 1s var(--ease-out) .55s;
}
.se-title-main {
  font-family: var(--font-display); font-weight: 400; font-size: var(--se-title);
  line-height: .92; width: 100%; color: #fff; text-shadow: 0 4px 34px rgba(0, 0, 0, .7), 0 1px 3px rgba(0, 0, 0, .5);
  display: block;
}
.se-title-main em { font-style: italic; font-weight: 300; color: var(--gold-2); }
.se-title-main .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em; margin: 0 -.04em; }
.se-title-main .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: calc(.7s + var(--i) * 90ms); }
body.is-ready .se-title-kicker { opacity: 1; transform: none; }
body.is-ready .se-title-main .w > span { transform: none; }

.se-side {
  position: absolute; top: 50%; font-size: .66rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease 1.2s;
}
.se-side-l { left: 28px; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; }
.se-side-r { right: 28px; transform: translateY(-50%) rotate(90deg); transform-origin: right center; }
body.is-ready .se-side { opacity: 1; }

.se-hint {
  position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  will-change: opacity, transform;
}
.se-hint i { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--gold), transparent); animation: hint-drop 1.8s ease-in-out infinite; }
@keyframes hint-drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 16px 0; margin-top: -1px; }
.marquee-track { display: flex; gap: 42px; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--text-2); white-space: nowrap; }
.marquee-track i { color: var(--gold); font-style: normal; font-size: .8rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Animaciones de entrada / salida ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s ease, transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal].is-out { opacity: 0; transform: translateY(-18px); transition-duration: .6s, .7s; transition-delay: 0ms; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--i) * 45ms); }
.is-in [data-split] .w > span, [data-split].is-in .w > span { transform: none; }
.is-out [data-split] .w > span, [data-split].is-out .w > span { transform: translateY(-105%); transition-duration: .6s; transition-delay: calc(var(--i) * 20ms); }

/* ---------- Manifiesto ---------- */
.manifiesto-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.manifiesto-copy p { font-size: 1.08rem; font-weight: 300; line-height: 1.75; }
.manifiesto-copy p:last-child { color: var(--text); font-family: var(--font-display); font-size: 1.5rem; font-style: italic; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.stat { padding: 26px 24px; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 400; color: var(--navy); line-height: 1; white-space: nowrap; }
.od { display: inline-block; height: 1em; overflow: hidden; vertical-align: bottom; }
.od-col { display: flex; flex-direction: column; transform: translateY(0); transition: transform 2.2s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); will-change: transform; }
.od-col span { display: block; height: 1em; line-height: 1; }
.od-static { display: inline-block; vertical-align: bottom; line-height: 1; }
.stat > span { display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.cat-card {
  display: block; padding: 28px 24px; position: relative; overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow);
  transition: transform .5s var(--ease-out), border-color .4s ease, background .4s ease;
}
.cat-card::after {
  content: ""; position: absolute; inset: -40% auto auto -20%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-dim), transparent 70%); opacity: 0; transition: opacity .5s ease;
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--glass-border-hi); background: var(--glass-bg-hover); }
.cat-card:hover::after { opacity: 1; }
.cat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold-text); margin-bottom: 20px; border: 1px solid rgba(233, 178, 60, .35); }
.cat-icon svg { width: 24px; height: 24px; }
.cat-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: 6px; }
.cat-card p { font-size: .88rem; color: var(--muted); margin: 0 0 14px; font-weight: 300; }
.cat-link { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.cat-link::after { content: " →"; }

/* ---------- Catálogo ---------- */
.catalog-search { display: flex; align-items: center; gap: 10px; border-radius: 999px; padding: 12px 20px; min-width: 300px; color: var(--muted); }
.catalog-search svg { width: 18px; height: 18px; flex: none; }
.catalog-search input { border: 0; outline: none; font: inherit; font-size: .93rem; background: transparent; width: 100%; color: var(--text); }
.catalog-search input::placeholder { color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill {
  border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text-2);
  border-radius: 999px; padding: 9px 18px; font-size: .84rem; font-weight: 500;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: .3s ease;
}
.pill:hover { border-color: var(--glass-border-hi); color: var(--text); }
.pill[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #1a1405; }

.results-count { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.prod-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), border-color .4s ease;
}
.prod-card:hover { transform: translateY(-6px); border-color: var(--glass-border-hi); }
.prod-thumb {
  aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center;
  width: 100%; padding: 0; border: 0; cursor: zoom-in; overflow: hidden;
  color: var(--gold-text);
  background: radial-gradient(80% 80% at 50% 100%, rgba(233, 178, 60, .16), transparent 70%), linear-gradient(160deg, rgba(11, 27, 94, .05), transparent);
  border-bottom: 1px solid var(--glass-border);
}
.prod-thumb svg { width: 56px; height: 56px; opacity: .55; }

/* Dos capas: la pieza suelta en reposo, el montaje al pasar el mouse.
   Se cruzan con opacidad y un leve acercamiento; nada se mueve de sitio. */
.prod-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .7s var(--ease-out), transform 1s var(--ease-out);
  will-change: opacity, transform;
}
.prod-img-a { opacity: 1; transform: scale(1); }
.prod-img-b { opacity: 0; transform: scale(1.06); }
.prod-card.tiene-hover:hover .prod-img-a,
.prod-card.tiene-hover:focus-within .prod-img-a { opacity: 0; transform: scale(1.04); }
.prod-card.tiene-hover:hover .prod-img-b,
.prod-card.tiene-hover:focus-within .prod-img-b { opacity: 1; transform: scale(1); }

/* Lupa: aparece al acercarse, para que se entienda que la tarjeta se abre. */
.prod-lupa {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .88); border: 1px solid var(--glass-border);
  color: var(--navy); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .35s ease, transform .45s var(--ease-out);
}
.prod-lupa svg { width: 18px; height: 18px; opacity: 1; }
.prod-card:hover .prod-lupa, .prod-card:focus-within .prod-lupa { opacity: 1; transform: none; }

.prod-nombre {
  border: 0; background: none; padding: 0; text-align: left; cursor: pointer;
  font: inherit; color: inherit; transition: color .3s ease;
}
.prod-nombre:hover { color: var(--gold-text); }
.prod-nuevo {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405;
  font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(233, 178, 60, .35);
  animation: nuevo-brillo 3s ease-in-out infinite;
}
@keyframes nuevo-brillo { 50% { box-shadow: 0 6px 22px rgba(233, 178, 60, .6); } }
.prod-tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .85); border: 1px solid var(--glass-border); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(8px); }
.prod-body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.prod-body h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin: 0; }
.prod-body p { font-size: .85rem; color: var(--muted); margin: 0; flex: 1; font-weight: 300; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.prod-price { font-size: .8rem; font-weight: 600; color: var(--gold-text); }
.prod-price span { display: block; font-size: .66rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.add-btn { border: 1px solid var(--glass-border-hi); background: transparent; color: var(--text); border-radius: 999px; padding: 8px 16px; font-size: .8rem; font-weight: 600; transition: .3s ease; }
.add-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.add-btn.is-added { background: var(--gold); border-color: var(--gold); color: #1a1405; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Momentos / Spiral ---------- */
.momentos-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.momentos-copy .section-sub { margin: 18px 0 28px; }
.spiral {
  position: relative; width: 100%; height: clamp(440px, 70vh, 640px); overflow: hidden; isolation: isolate;
  cursor: grab; touch-action: pan-x; user-select: none;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.spiral.is-dragging { cursor: grabbing; }
.spiral-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.spiral-item {
  position: absolute; top: 50%; left: 50%; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9); background: #fff;
  box-shadow: 0 20px 50px rgba(11, 27, 94, .22); backface-visibility: hidden;
  will-change: transform, opacity, filter;
}
.spiral-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.steps li { padding: 28px 26px; position: relative; }
.step-num { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 300; color: var(--gold-text); line-height: 1; margin-bottom: 16px; }
.steps h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
.steps p { font-size: .9rem; color: var(--muted); margin: 0; font-weight: 300; }

/* ---------- Servicios ---------- */
.serv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.serv-card { padding: 30px 26px; }
.serv-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold-text); margin-bottom: 18px; border: 1px solid rgba(233, 178, 60, .35); }
.serv-icon svg { width: 23px; height: 23px; }
.serv-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.serv-card p { font-size: .9rem; color: var(--muted); margin: 0; font-weight: 300; }

.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-top: 40px; }
.event-card {
  position: relative; min-height: 150px; border-radius: var(--radius-sm); overflow: hidden;
  display: flex; align-items: flex-end; padding: 18px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .5s var(--ease-out), border-color .4s ease;
}
.event-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(200px 120px at 85% 0%, var(--gold-dim), transparent 70%); }
.event-card:hover { transform: translateY(-4px); border-color: var(--glass-border-hi); }
.event-card > * { position: relative; z-index: 1; }
.event-card h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin: 0 0 2px; }
.event-card p { font-size: .8rem; color: var(--muted); margin: 0; font-weight: 300; }

/* ---------- Clientes / Accordion ---------- */
.accordion {
  display: flex; gap: 10px; width: 100%; height: clamp(360px, 52vh, 520px);
  perspective: 1400px; perspective-origin: 50% 50%;
}
.ag-panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; outline: none; transform-style: preserve-3d; transform-origin: center;
  background: var(--bg-2); border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px -24px rgba(11, 27, 94, .45);
  transition: flex-grow .7s var(--ease-out), transform .7s var(--ease-out), border-color .4s ease;
  -webkit-tap-highlight-color: transparent;
}
.ag-panel:focus-visible { border-color: var(--gold); }
.ag-panel.is-active { border-color: var(--glass-border-hi); }
.ag-media {
  position: absolute; top: 50%; left: 50%; height: 100%; width: var(--ag-media, 360px);
  transform: translate(-50%, -50%) translateX(var(--ag-shift, 0px));
  filter: grayscale(var(--ag-gray, 1));
  transition: transform .7s var(--ease-out), filter .7s ease;
}
.ag-media img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ag-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 11, 31, .85) 100%), rgba(7, 11, 31, var(--ag-dim, .4));
  transition: background .6s ease;
}
.ag-label { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; pointer-events: none; z-index: 2; }
.ag-bar { flex: 0 0 auto; width: 2px; height: 28px; background: var(--gold); opacity: 0; transform: translateX(-14px); transition: opacity .5s ease, transform .6s var(--ease-out); box-shadow: 0 0 12px rgba(233, 178, 60, .6); }
.ag-text { color: #fff; font-family: var(--font-display); font-size: clamp(1.1rem, 1.6vw, 1.5rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateX(-14px); transition: opacity .5s ease .06s, transform .6s var(--ease-out) .06s; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.ag-text small { display: block; font-family: var(--font-body); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-top: 2px; }
.ag-panel.is-active .ag-bar, .ag-panel.is-active .ag-text { opacity: 1; transform: none; }

.testi-quote { margin: 20px 0 0; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.stars { color: var(--gold); letter-spacing: 4px; font-size: .9rem; }
.testi-quote blockquote {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.7rem); font-style: italic; font-weight: 300;
  color: var(--text); line-height: 1.4; transition: opacity .35s ease, transform .35s var(--ease-out);
}
.testi-quote blockquote.is-swapping { opacity: 0; transform: translateY(8px); }
.testi-quote figcaption { text-align: right; white-space: nowrap; }
.testi-quote figcaption strong { display: block; color: var(--text); font-weight: 600; font-size: .92rem; }
.testi-quote figcaption span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }

/* ---------- Cobertura ---------- */
.cover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cover-grid .section-sub { margin-top: 14px; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 14px; }
.towns li { font-size: .82rem; background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 7px 14px; border-radius: 999px; color: var(--text-2); }
.map-card { overflow: hidden; }
.map-embed { aspect-ratio: 4 / 3; background: var(--bg-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-foot { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--glass-border); }
.map-foot strong { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-text); }
.map-foot span { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { padding: 6px 28px; }
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  text-align: left; background: none; border: 0; padding: 22px 0;
  font-family: var(--font-display); font-size: 1.32rem; font-weight: 500; color: var(--text);
  transition: color .3s ease;
}
.faq-q:hover { color: var(--navy); }
.faq-num { font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .14em; color: var(--gold-text); min-width: 26px; }
.faq-txt { line-height: 1.25; }
.faq-ico {
  position: relative; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--glass-border-hi); flex: none;
  transition: transform .5s var(--ease-out), background .3s ease, border-color .3s ease;
}
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--navy); transition: background .3s ease; }
.faq-ico::before { width: 12px; height: 1px; transform: translate(-50%, -50%); }
.faq-ico::after  { width: 1px; height: 12px; transform: translate(-50%, -50%); }
.faq-item.open .faq-ico { transform: rotate(135deg); background: var(--navy); border-color: var(--navy); }
.faq-item.open .faq-ico::before, .faq-item.open .faq-ico::after { background: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 60px 24px 44px; color: var(--text-2); font-size: .97rem; font-weight: 300; line-height: 1.75; opacity: 0; transform: translateY(-6px); transition: opacity .4s ease, transform .5s var(--ease-out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { opacity: 1; transform: none; transition-delay: .12s; }
.faq-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding: 0 8px; }
.faq-cta p { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--text); }

/* ---------- Contacto ---------- */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 30px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: .95rem; color: var(--text); flex-wrap: wrap; }
.contact-list a, .contact-list span { overflow-wrap: anywhere; }
.ci { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold-text); border: 1px solid rgba(233, 178, 60, .35); }
.ci svg { width: 19px; height: 19px; }

.cta-form { padding: clamp(24px, 3vw, 36px); }
.cta-form h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row > * { min-width: 0; }
.field label { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: .95rem; padding: 12px 14px;
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .7); color: var(--text); outline: none;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select option { background: var(--bg-2); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); background: #fff; }
.field textarea { resize: vertical; }
.field .invalid { border-color: #e26a6a; }
.form-note { background: var(--gold-dim); border: 1px solid rgba(233, 178, 60, .3); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .85rem; color: var(--gold-text); margin-bottom: 14px; }
.fineprint { font-size: .76rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 28px; border-top: 1px solid var(--glass-border); background: linear-gradient(to bottom, transparent, rgba(11, 27, 94, .06)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid > * { min-width: 0; }
.footer-blurb { font-size: .9rem; margin-top: 18px; max-width: 34ch; font-weight: 300; }
.site-footer h4 { margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a, .site-footer li { font-size: .9rem; color: var(--text-2); overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold-text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--glass-border); font-size: .78rem; color: var(--muted); }

/* ---------- Vista de producto ---------- */
body.modal-abierto { overflow: hidden; }

.pv-overlay {
  position: fixed; inset: 0; z-index: 240; background: rgba(11, 27, 94, .38);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: pv-fade .35s ease;
}
@keyframes pv-fade { from { opacity: 0; } }

.pv {
  position: fixed; z-index: 250; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(1060px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px));
  border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr;
  animation: pv-entrar .5s var(--ease-out);
}
@keyframes pv-entrar { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }

.pv-cerrar {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, .8); color: var(--navy);
  font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
  backdrop-filter: blur(8px); transition: background .3s ease, transform .3s var(--ease-out);
}
.pv-cerrar:hover { background: #fff; transform: rotate(90deg); }

/* --- lado de la foto --- */
.pv-media {
  display: flex; flex-direction: column; min-width: 0;
  background: linear-gradient(165deg, #fff, rgba(255, 255, 255, .45));
  border-right: 1px solid var(--glass-border);
}
.pv-marco {
  position: relative; flex: 1; min-height: 0; border: 0; padding: 0;
  background: #fff; cursor: zoom-in; overflow: hidden; display: grid; place-items: center;
}
.pv-marco.con-zoom { cursor: zoom-out; }
.pv-marco img {
  width: 100%; height: 100%; object-fit: contain; padding: 22px;
  transition: opacity .3s ease, transform .45s var(--ease-out);
  will-change: transform;
}
.pv-marco.con-zoom img { padding: 0; object-fit: cover; transition: transform .12s linear; }
.pv-marco img.cambiando { opacity: 0; }

.pv-zoom-pista {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  background: rgba(255, 255, 255, .82); border: 1px solid var(--glass-border);
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
.pv-marco:hover .pv-zoom-pista { opacity: 1; }
.pv-marco.con-zoom .pv-zoom-pista { opacity: 0; }

.pv-nav {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 10px 0; border-top: 1px solid var(--glass-border);
}
.pv-flecha {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, .7); color: var(--navy); font-size: 1.3rem; line-height: 1;
  transition: background .3s ease, border-color .3s ease;
}
.pv-flecha:hover { background: #fff; border-color: var(--glass-border-hi); }
.pv-contador { font-size: .76rem; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; }

.pv-minis {
  display: flex; gap: 8px; padding: 12px 16px 16px; overflow-x: auto;
  border-top: 1px solid var(--glass-border);
}
.pv-mini {
  flex: 0 0 auto; width: 62px; height: 62px; padding: 0; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--glass-border); background: #fff;
  opacity: .55; transition: opacity .3s ease, border-color .3s ease, transform .3s var(--ease-out);
}
.pv-mini img { width: 100%; height: 100%; object-fit: cover; }
.pv-mini:hover { opacity: 1; transform: translateY(-2px); }
.pv-mini[aria-current="true"] { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-dim); }

/* --- lado de la ficha --- */
.pv-info {
  padding: clamp(26px, 3.4vw, 40px); overflow-y: auto; display: flex; flex-direction: column;
}
.pv-etiquetas { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pv-cat-nuevo { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405; border-color: transparent; }
.pv-cat {
  align-self: flex-start; font-size: .64rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-text);
  background: var(--gold-dim); border: 1px solid rgba(233, 178, 60, .3);
  padding: 6px 12px; border-radius: 999px;
}
.pv-info h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; margin: 0 0 12px;
}
.pv-desc { font-size: 1rem; font-weight: 300; line-height: 1.7; color: var(--text-2); margin: 0 0 14px; }
.pv-unidad { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.pv-precio { margin-bottom: 22px; }
.pv-precio .prod-price { font-size: 1.1rem; }

.pv-compra { display: flex; gap: 10px; margin-bottom: 18px; }
.pv-compra input {
  width: 88px; font: inherit; font-size: 1rem; text-align: center; padding: 13px 10px;
  border: 1px solid var(--glass-border); border-radius: 999px;
  background: rgba(255, 255, 255, .7); color: var(--text); outline: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.pv-compra input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.pv-compra .btn { flex: 1; }
.pv-compra .btn.is-added { background: var(--navy); color: #fff; box-shadow: none; }

.pv-nota { margin: auto 0 0; font-size: .8rem; line-height: 1.6; color: var(--muted); }

@media (max-width: 860px) {
  /* Una sola columna que se desplaza entera. Con filas fijas la ficha se
     desbordaba encima de la foto y tapaba las miniaturas. */
  .pv {
    grid-template-columns: 1fr; grid-template-rows: auto auto;
    width: calc(100vw - 20px); max-height: calc(100vh - 20px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .pv-media { border-right: 0; border-bottom: 1px solid var(--glass-border); }
  .pv-marco { height: 40vh; min-height: 240px; flex: none; }
  .pv-minis { padding: 10px 12px; }
  .pv-mini { width: 52px; height: 52px; }
  .pv-info { padding: 22px; overflow: visible; }
  .pv-cerrar { position: sticky; top: 10px; float: right; margin-right: 10px; }
  .pv-nota { display: none; }
}

@media (max-width: 480px) {
  .pv-compra { flex-wrap: wrap; }
  .pv-compra input { width: 100%; }
}

/* ---------- Cotización ---------- */
.quote-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 150;
  display: flex; align-items: center; gap: 10px; border-radius: 999px;
  padding: 14px 20px; font-weight: 600; font-size: .88rem; color: var(--text);
  background: var(--glass-bg-strong);
  animation: fab-in .6s var(--ease-out);
}
@keyframes fab-in { from { opacity: 0; transform: translateY(16px); } }
.quote-fab svg { width: 19px; height: 19px; }
.quote-count { background: var(--gold); color: #1a1405; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: .74rem; font-weight: 700; }

.drawer-overlay { position: fixed; inset: 0; background: rgba(11, 27, 94, .32); z-index: 220; backdrop-filter: blur(4px); animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; } }
.drawer {
  position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(420px, calc(100% - 24px));
  z-index: 230; display: flex; flex-direction: column; border-radius: var(--radius-lg);
  animation: drawer-in .5s var(--ease-out);
}
@keyframes drawer-in { from { opacity: 0; transform: translateX(40px); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--glass-border); }
.drawer-head h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 0; }
.drawer-close { border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--muted); padding: 0 4px; }
.drawer-close:hover { color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-foot { padding: 18px 24px 22px; border-top: 1px solid var(--glass-border); display: grid; gap: 9px; }
.drawer-foot .fineprint { margin: 0 0 4px; }

.q-item { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--glass-border); }
.q-item-info { flex: 1; min-width: 0; }
.q-item-info strong { display: block; font-size: .93rem; color: var(--text); font-weight: 600; }
.q-item-info span { font-size: .76rem; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text); font-weight: 600; line-height: 1; }
.qty input { width: 52px; text-align: center; font: inherit; font-size: .88rem; border: 1px solid var(--glass-border); border-radius: 9px; padding: 5px 4px; background: transparent; color: var(--text); outline: none; }
.q-remove { border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; padding: 0 2px; }
.q-remove:hover { color: #e26a6a; }
.q-empty { text-align: center; color: var(--muted); padding: 50px 10px; font-size: .93rem; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .4); transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 12px); z-index: 300;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border); color: var(--text);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 12px 20px; border-radius: 999px; font-size: .86rem; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .3s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .manifiesto-grid, .momentos-grid, .cover-grid, .cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .se-bgword { font-size: clamp(5rem, 30vw, 14rem); }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    pointer-events: none;                 /* el header tiene none: hay que reactivarlo */
    background: rgba(247, 245, 240, .94); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    flex-direction: column; justify-content: center; padding: 100px 28px 40px;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
  }
  .nav.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav.open ~ .nav-actions .nav-toggle { background: var(--navy); border-color: var(--navy); }
  .nav.open ~ .nav-actions .nav-toggle span { background: #fff; }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-indicator { display: none; }
  .nav-links a {
    font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 400; padding: 8px 0;
    color: var(--text); opacity: 0; transform: translateY(24px);
    transition: opacity .6s ease, transform .7s var(--ease-out);
  }
  .nav.open .nav-links a { opacity: 1; transform: none; }
  .nav.open .nav-links a:nth-child(2) { transition-delay: .08s; }
  .nav.open .nav-links a:nth-child(3) { transition-delay: .14s; }
  .nav.open .nav-links a:nth-child(4) { transition-delay: .2s; }
  .nav.open .nav-links a:nth-child(5) { transition-delay: .26s; }
  .nav.open .nav-links a:nth-child(6) { transition-delay: .32s; }
  .nav.open .nav-links a:nth-child(7) { transition-delay: .38s; }
  .nav-mobile-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; font-size: .8rem; color: var(--muted); letter-spacing: .06em; }
  .nav-mobile-foot a { color: var(--gold-text); }
  .nav-pill { position: relative; z-index: 1; }
  .nav-shell { padding: 12px 12px 0; }
  .section-head-row { flex-direction: column; align-items: stretch; }
  .catalog-search { min-width: 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote-fab span:not(.quote-count) { display: none; }
  .quote-fab { padding: 15px; }
  .se-side { display: none; }
  .se-overlay { padding-top: 90px; }
  .testi-quote { grid-template-columns: 1fr; gap: 14px; }
  .faq { padding: 4px 18px; }
  .faq-q { font-size: 1.15rem; gap: 12px; }
  .faq-a p { padding: 0 8px 20px 38px; }
  .testi-quote figcaption { text-align: left; }
  .accordion { height: auto; flex-direction: column; perspective: none; }
  .ag-panel { min-height: 70px; transform: none !important; }
  .ag-panel.is-active { min-height: 300px; }
  .ag-media { width: 100%; height: var(--ag-media, 360px); transform: translate(-50%, -50%) translateY(var(--ag-shift, 0px)); }
}

@media (max-width: 480px) {
  .brand img { height: 40px; }
  .nav-actions .btn { padding: 10px 14px; font-size: .8rem; }
  .hero-ctas .btn { width: 100%; }
}
@media (max-width: 360px) {
  .nav-actions .btn span { display: none; }
  .nav-actions .btn { padding: 12px 14px; }
  .nav-actions .btn svg { width: 18px; height: 18px; }
}

/* =========================================================
   Móvil (≤ 640 px): dos columnas donde antes había una, menos
   aire entre secciones y controles con tamaño táctil.
   ========================================================= */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 26px; }
  .display-lg { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .display-md { font-size: clamp(1.7rem, 7vw, 2.1rem); }

  /* Cifras: 2 × 2 en vez de cuatro tarjetas apiladas */
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
  .stat { padding: 18px 16px; }
  .stat strong { font-size: 2rem; }
  .stat > span { font-size: .66rem; letter-spacing: .08em; }

  /* Categorías: dos columnas, tarjeta compacta sin descripción */
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { padding: 18px 16px; }
  .cat-icon { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 12px; }
  .cat-icon svg { width: 20px; height: 20px; }
  .cat-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
  .cat-card p { display: none; }
  .cat-link { font-size: .7rem; }

  /* Filtros: una tira horizontal con desplazamiento, no seis filas */
  .pills {
    flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -20px 16px; padding: 4px 20px 8px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; scroll-snap-align: start; padding: 10px 16px; }

  /* Catálogo: dos columnas, tarjeta compacta */
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod-thumb { aspect-ratio: 1 / 1; }
  .prod-tag { top: 8px; left: 8px; font-size: .56rem; padding: 4px 8px; }
  .prod-nuevo { top: 8px; right: 8px; font-size: .56rem; padding: 4px 8px; }
  .prod-lupa { display: none; }
  .prod-body { padding: 12px; gap: 4px; }
  .prod-body h3 { font-size: 1.02rem; line-height: 1.2; }
  .prod-foot { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }
  .prod-price { font-size: .86rem; }
  .prod-price span { font-size: .6rem; }
  .add-btn { padding: 11px 12px; font-size: .8rem; text-align: center; }
  .ver-mas { margin-top: 24px; }
  .ver-mas .btn { width: 100%; }

  /* Momentos: hélice algo más baja */
  .spiral { height: 440px; }

  /* Pasos y servicios: menos relleno */
  .steps li, .serv-card { padding: 20px 18px; }
  .step-num { font-size: 2rem; margin-bottom: 10px; }
  .steps h3, .serv-card h3 { font-size: 1.3rem; }

  /* Eventos: dos columnas */
  .event-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .event-card { min-height: 116px; padding: 14px; }
  .event-card h3 { font-size: 1.15rem; }
  .event-card p { font-size: .74rem; }

  /* Cobertura */
  .towns { gap: 6px; }
  .towns li { font-size: .78rem; padding: 6px 12px; }
  .cover-grid > div > .btn { width: 100%; }

  /* Pie: las tres columnas de enlaces en dos, el catálogo a dos columnas */
  .site-footer { padding: 48px 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-grid > div:first-child,
  .footer-grid nav[aria-label="Catálogo"] { grid-column: 1 / -1; }
  /* La lista ya es grid: se parte en dos columnas desde ahí, no con `columns` */
  .footer-grid nav[aria-label="Catálogo"] ul { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .footer-bottom { flex-direction: column; gap: 4px; margin-top: 32px; text-align: center; }

  /* Flotantes más discretos */
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  /* El aviso arriba: abajo tapaba el botón de enviar del panel de cotización */
  .toast { top: 84px; bottom: auto; transform: translate(-50%, -12px); max-width: calc(100vw - 28px); text-align: center; }
  .toast.show { transform: translate(-50%, 0); }
  .wa-float svg { width: 26px; height: 26px; }
  .quote-fab { left: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .marquee-track, .se-hint i { animation: none !important; }
  .prod-img, .pv-marco img { transition: none !important; }
  .preloader, .od-col { transition: none !important; }
  [data-reveal], [data-split] .w > span, .se-title-main .w > span { transition: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Catálogo: cargar más ---------- */
.ver-mas { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- Precio que sigue a la cantidad ---------- */
.pv-subtotal {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 18px; margin-bottom: 18px;
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .5);
}
.pv-sub-cuenta { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-sub-total {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 500;
  color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums;
}
.pv-sub-nota { font-size: .84rem; color: var(--muted); }

.q-item-cuenta { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-item-cuenta b { color: var(--text); font-weight: 600; }

.q-total { border-top: 1px solid var(--glass-border); padding-top: 14px; margin-bottom: 4px; }
.q-total-fila { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.q-total-fila span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.q-total-fila strong {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 500;
  color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums;
}
.q-total-nota { margin: 8px 0 0; font-size: .72rem; line-height: 1.5; color: var(--muted); }
