/* ================= EL OMBÚ — Design System ================= */

/* ---- Brand fonts ---- */
@font-face {
  font-family: "Maderon";
  src: url("assets/fonts/Maderon-Regular.otf") format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Maderon";
  src: url("assets/fonts/Maderon-Italic.otf") format("opentype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Acumin Pro Wide";
  src: url("assets/fonts/Acumin-Pro-Wide-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette — fondos negros + texto crema (combinación adjunta) */
  --ink:          #1E1E1C;   /* casi negro — fondo principal */
  --ink-2:        #262624;   /* banda alterna (un punto más claro) */
  --ink-3:        #2F2F2C;   /* bloques / tarjetas de contraste */
  --olive:        #363D2E;   /* verde oliva — disponible como acento puntual */
  --olive-deep:   #2B3124;
  --cream-raw:    #FFE7CA;   /* crema / arena — texto */
  --gold-raw:     #EDBC40;   /* mostaza / dorado — ACENTO principal */
  --gold-deep:    #D9A82E;   /* dorado oscurecido (hover) */
  --brown:        #442D25;   /* marrón oscuro */

  /* Semantic tokens (consumed across the site) */
  --bg-primary:   var(--ink);
  --bg-secondary: var(--ink-2);
  --bg-tertiary:  var(--ink-3);
  --ember:        var(--gold-raw);   /* acento dorado: stars, hover, focus, CTA */
  --ember-deep:   var(--gold-deep);
  --gold:         var(--gold-raw);
  --cream:        var(--cream-raw);
  --cream-muted:  #B8A88F;
  --border:       rgba(255,231,202,0.16);

  --font-display: "Maderon", "Oswald", "Anton", system-ui, sans-serif;
  --font-body:    "Acumin Pro Wide", "Helvetica Neue", "Inter", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --maxw: 1320px;
  --pad-x: clamp(24px, 5vw, 80px);
  --pad-y: clamp(80px, 14vh, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Selection */
::selection { background: var(--ember); color: var(--bg-primary); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ember); color: var(--bg-primary);
  padding: 12px 20px; font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ================= Typography ================= */
.overline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.overline::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--ember);
  display: inline-block;
}
.overline.no-rule::before { display: none; }

h1, h2, h3, h4 {
  color: var(--cream);
  margin: 0;
  text-wrap: balance;
}

/* ===== Jerarquía tipográfica =====
   Heading  → Maderon (display, primaria), sentence case
   Subheading → Acumin Pro Wide (secundaria), regular
   Body     → Acumin Pro Wide, regular/light
*/
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
h1 em, h2 em {
  font-style: normal;
  font-weight: 400;
  color: var(--gold);
}

/* H3/H4 — Subheading: Acumin Pro Wide, regular */
h3, h4 {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--cream);
}

h1 {
  font-size: clamp(52px, 8.5vw, 116px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.008em;
}

h3 {
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.3;
}

p { margin: 0; text-wrap: pretty; }
.body-l { font-size: 18px; line-height: 1.6; color: var(--cream-muted); }
.body-m { font-size: 16px; line-height: 1.7; color: var(--cream-muted); }

.fuego-accent {
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
  position: relative;
  display: inline-block;
}
.fuego-accent::after {
  content: "";
  position: absolute;
  left: 4%; right: 4%;
  bottom: -0.05em;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 50 2, 100 7 T 198 6' stroke='%23EDBC40' stroke-width='2' fill='none' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
  opacity: 0.9;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease, border-color .22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 12px 32px -12px rgba(237,188,64,0.5);
}
.btn-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 16px 40px -10px rgba(237,188,64,0.65);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,231,202,0.4);
}
.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(255,231,202,0.06);
}
.btn-lg { padding: 20px 32px; font-size: 16px; }
.btn .arrow { transition: transform .22s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.link-inline {
  color: var(--cream-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.link-inline:hover { color: var(--ember); border-color: var(--ember); }

.text-link {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 14px; font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.02em;
  transition: color .2s;
}
.text-link::after {
  content: "→";
  transition: transform .25s ease;
}
.text-link:hover { color: var(--ember); }
.text-link:hover::after { transform: translateX(4px); }

/* ================= Layout ================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section { position: relative; }
.section-pad { padding: var(--pad-y) 0; }
.section-head { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 64px; }

/* ================= Nav ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, border-color .3s ease, padding .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15,10,7,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: height .3s ease, opacity .25s ease;
}
.logo:hover .logo-img { opacity: 0.85; }
.nav.scrolled .logo-img {
  height: 34px;
}
.logo-img-lg {
  height: 56px;
}
/* Legacy flame (kept for any inline use, hidden in injected nav) */
.flame {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 14px var(--ember);
  animation: flicker 2.6s ease-in-out infinite;
  margin-right: 8px;
}
@keyframes flicker {
  0%,100% { opacity: 1; transform: scale(1); }
  45% { opacity: 0.78; transform: scale(0.92); }
  60% { opacity: 1; transform: scale(1.06); }
}
.nav-links {
  display: flex; gap: 36px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px; color: var(--cream-muted); font-weight: 400;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  display: flex; align-items: center; gap: 16px;
}
.hamburger { display: none; background: transparent; border: 0; color: var(--cream); cursor: pointer; padding: 8px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  display: flex; flex-direction: column;
  padding: 24px;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  gap: 24px;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--cream);
}
.mobile-menu nav a:hover { color: var(--ember); }
.mobile-menu-footer { padding-top: 24px; border-top: 1px solid var(--border); }

/* ================= Hero ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 92px;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  padding: clamp(40px, 8vh, 96px) clamp(24px, 4vw, 64px) 64px var(--pad-x);
  display: flex; flex-direction: column; justify-content: center;
  gap: 32px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: inline-block;
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hero-sub {
  max-width: 480px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cream-muted);
  animation: fade-up .8s ease .42s both;
}
.hero-cta-row {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  animation: fade-up .8s ease .54s both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-social-proof {
  display: flex; align-items: center; gap: 14px;
  color: var(--cream-muted);
  font-size: 13px;
  animation: fade-up .8s ease .66s both;
}
.stars { color: var(--ember); letter-spacing: 2px; font-size: 14px; }
.divider-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--cream-muted); opacity: 0.6; }

.hero-image {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background-color: #1a0f08;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.45  0 0 0 0 0.15  0 0 0 0.30 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>"),
    radial-gradient(120% 80% at 70% 30%, rgba(255,140,60,0.45), transparent 60%),
    radial-gradient(80% 60% at 30% 80%, rgba(120,40,15,0.45), transparent 65%),
    linear-gradient(160deg, #1f1410 0%, #0c0807 60%, #2a1810 100%);
  background-size: 320px 320px, auto, auto, auto;
}
.hero-image img,
.hero-image .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.12) brightness(0.98);
}
/* Imagen estática (si se usa como fallback explícito) mantiene ken-burns */
.hero-image > img {
  animation: ken-burns 24s ease-in-out infinite alternate;
}
@keyframes ken-burns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.18); }
}
/* Difuminado izquierdo: oscurece el fondo del vídeo bajo el texto y se desvanece hacia la derecha */
.hero-image::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg-primary) 0%, rgba(15,10,7,0.92) 24%, rgba(15,10,7,0.62) 46%, rgba(15,10,7,0.28) 66%, rgba(15,10,7,0.08) 84%, transparent 100%),
    linear-gradient(0deg, rgba(15,10,7,0.55), rgba(15,10,7,0.08) 38%);
  z-index: 2; pointer-events: none;
}
/* Glow cálido de brasas en la esquina opuesta */
.hero-image::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 72% 62%, rgba(255,170,90,0.18), transparent 55%);
  z-index: 2; pointer-events: none;
  mix-blend-mode: screen;
}

.hero-side-meta {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: 40px;
  z-index: 3;
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.7;
}

/* Below hero scroll indicator */
.scroll-indicator {
  position: absolute;
  left: var(--pad-x);
  bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  color: var(--cream-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 3;
}
.scroll-indicator .bar {
  width: 1px; height: 32px; background: var(--cream-muted);
  position: relative; overflow: hidden;
}
.scroll-indicator .bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: -32px;
  height: 16px;
  background: var(--ember);
  animation: scroll-down 2.2s ease-in-out infinite;
}
@keyframes scroll-down {
  0% { top: -16px; } 100% { top: 32px; }
}

/* ================= Trust Strip ================= */
.trust {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.trust-inner {
  display: flex; flex-direction: column; gap: 28px; align-items: center;
}
.trust-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  opacity: 0.8;
}
.trust-logos {
  display: flex; gap: clamp(28px, 6vw, 72px); align-items: center; flex-wrap: wrap; justify-content: center;
}
.trust-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity .25s;
}
.trust-logo:hover { opacity: 0.9; }
.trust-logo.serif-italic { font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-size: 22px; }
.trust-logo.cond { letter-spacing: 0.25em; font-weight: 400; }
.trust-logo.bold { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.18em; font-size: 14px; }
.trust-logo.script { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 26px; letter-spacing: -0.02em; }

.trust-logo-img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* Force any PNG (dark or colored) to render in white on the dark trust strip */
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity .25s ease;
}
.trust-logo-img:hover { opacity: 1; }

/* ================= Services ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3/4.2;
  cursor: pointer;
  isolation: isolate;
}
.service-card .service-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
  filter: saturate(1.05) contrast(1.05);
}
.service-card::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,10,7,0.25) 0%, rgba(15,10,7,0.4) 45%, rgba(15,10,7,0.92) 100%);
  transition: background .4s;
}
.service-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(245,213,175,0.18) 100%);
  opacity: 0; transition: opacity .4s;
}
.service-card:hover::after { opacity: 1; }
.service-card:hover .service-img { transform: scale(1.06); }
.service-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
  gap: 14px;
}
.service-number {
  position: absolute; top: 26px; left: 32px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--ember);
  z-index: 2;
}
.service-content h3 {
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 600;
}
.service-content p {
  color: var(--cream-muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 90%;
}

/* ================= Story ================= */
.story {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.story-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.story-img-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(1.05);
}
.story-img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(245,213,175,0.1), rgba(15,10,7,0.2));
}
.story-img-tag {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(15,10,7,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  z-index: 2;
}
.story-text {
  display: flex; flex-direction: column; gap: 28px;
}
.story-text h2 { font-weight: 500; }
.story-text p { font-size: 17px; color: var(--cream-muted); line-height: 1.7; }
.story-signature {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.signature-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  color: var(--gold);
}
.signature-role {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* ================= Showcase Gallery ================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-rows: 140px;
}
.gal-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}
.gal-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.gal-item::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(15,10,7,0.85) 100%);
  opacity: 0.4; transition: opacity .35s;
}
.gal-item::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(245,213,175,0.18);
  opacity: 0; transition: opacity .35s;
}
.gal-item:hover img { transform: scale(1.08); }
.gal-item:hover::before { opacity: 1; }
.gal-item:hover::after { opacity: 1; }
.gal-item .gal-caption {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.gal-item:hover .gal-caption { opacity: 1; transform: translateY(0); }
.gal-caption .ev { display: block; color: var(--ember); font-weight: 500; }

/* spans */
.span-c4 { grid-column: span 4; }
.span-c5 { grid-column: span 5; }
.span-c6 { grid-column: span 6; }
.span-c7 { grid-column: span 7; }
.span-c8 { grid-column: span 8; }
.span-r2 { grid-row: span 2; }
.span-r3 { grid-row: span 3; }

/* ================= Testimonials ================= */
.testimonials {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testi-track {
  position: relative;
  overflow: hidden;
}
.testi-cards {
  display: flex;
  gap: 24px;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
  will-change: transform;
}
.testi-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  transition: border-color .3s, transform .3s;
}
.testi-card:hover { border-color: rgba(255,231,202,0.4); transform: translateY(-3px); }
.testi-quote-mark {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.5;
  color: var(--ember);
  margin-bottom: -24px;
  font-weight: 400;
}
.testi-quote {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--cream);
  flex: 1;
}
.testi-attr { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid var(--border); }
.testi-name { font-size: 15px; font-weight: 500; color: var(--cream); }
.testi-meta { font-size: 12.5px; color: var(--cream-muted); }
.testi-stars { color: var(--ember); letter-spacing: 3px; font-size: 13px; margin-top: 4px; }

.testi-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px;
}
.testi-counter {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 16px;
  color: var(--cream-muted);
  letter-spacing: 0.1em;
}
.testi-counter strong { color: var(--cream); font-weight: 500; }
.testi-nav { display: flex; gap: 12px; }
.testi-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s, color .2s;
}
.testi-btn:hover { border-color: var(--ember); color: var(--ember); }
.testi-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ================= Sample Menu ================= */
.menu-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.menu-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(255,231,202,0.08), transparent 50%);
  pointer-events: none;
}
.menu-header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap; gap: 16px;
  position: relative;
}
.menu-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--cream);
}
.menu-tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px) clamp(40px, 6vw, 96px);
  position: relative;
}
.menu-course {
  display: flex; flex-direction: column; gap: 18px;
}
.course-name {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 500;
}
.course-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.course-items li {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--cream);
  position: relative;
  padding-left: 20px;
  line-height: 1.4;
}
.course-items li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 6px; height: 1px;
  background: var(--ember);
}
.menu-foot {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--cream-muted);
  font-style: italic;
  position: relative;
}

/* ================= Contact Form ================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
/* Evita que el correo largo / los campos rígidos desborden en pantallas muy estrechas */
.contact-grid > * { min-width: 0; }
.contact-info-value { overflow-wrap: anywhere; }
.contact-aside {
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 32px;
}
.contact-info-list {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.contact-info-item { display: flex; flex-direction: column; gap: 4px; }
.contact-info-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-muted);
}
.contact-info-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px; color: var(--cream);
}
.contact-info-value a:hover { color: var(--ember); }

.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: span 2; }
.field label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-muted);
  font-weight: 500;
}
.field label .req { color: var(--ember); margin-left: 4px; }
.field input, .field select, .field textarea {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color .2s, background .2s;
  width: 100%;
  min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember);
  background: rgba(255,231,202,0.04);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(184,172,156,0.45); }
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4 6l4 4 4-4' stroke='%23B8AC9C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field select option { background: var(--bg-tertiary); color: var(--cream); }
.field-error {
  color: var(--ember);
  font-size: 12.5px;
  display: none;
  letter-spacing: 0.01em;
}
.field.error input, .field.error select, .field.error textarea { border-color: var(--ember); }
.field.error .field-error { display: block; }
.form-foot {
  grid-column: span 2;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding-top: 8px;
}
.form-foot .legal { font-size: 12px; color: var(--cream-muted); max-width: 360px; line-height: 1.5; }

.form-success {
  grid-column: span 2;
  display: none;
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(255,231,202,0.18), rgba(255,231,202,0.06));
  border: 1px solid var(--ember);
  border-radius: var(--radius-md);
  color: var(--cream);
}
.form-success.show { display: block; animation: fade-up .5s ease both; }
.form-success .check {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--ember);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-primary);
  font-size: 28px;
  font-weight: 700;
}
.form-success h3 { font-weight: 600; margin-bottom: 8px; }
.form-success p { color: var(--cream-muted); font-size: 15px; max-width: 480px; margin: 0 auto; }

/* ================= FAQ ================= */
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 28px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(19px, 1.8vw, 23px);
  color: var(--cream);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  transition: color .2s;
}
.faq-q:hover { color: var(--ember); }
.faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s, border-color .2s, transform .3s;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute;
  background: var(--cream);
  transition: background .2s;
}
.faq-icon::before { width: 12px; height: 1px; }
.faq-icon::after { width: 1px; height: 12px; transition: transform .3s; }
.faq-item.open .faq-icon { background: var(--ember); border-color: var(--ember); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: var(--bg-primary); }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  color: var(--cream-muted);
  font-size: 16.5px;
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 0 32px 0;
}
.faq-a-inner { max-width: 720px; }

/* ================= Final CTA ================= */
.final-cta {
  position: relative;
  padding: clamp(120px, 18vh, 200px) 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.final-cta-bg {
  position: absolute; inset: 0;
  background: url("assets/fotos/NR_7513.jpg") center/cover;
  filter: brightness(0.45) saturate(1.1);
}
.final-cta-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(245,213,175,0.4) 0%, rgba(15,10,7,0.85) 70%),
    linear-gradient(180deg, rgba(15,10,7,0.6), rgba(15,10,7,0.9));
}
.final-cta-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px; align-items: center;
}
.final-cta h2 {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 600;
  text-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.final-cta p { font-size: 18px; color: var(--cream-muted); max-width: 560px; }

/* ================= Footer ================= */
.footer {
  background: var(--ink);
  padding: 64px 0 32px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: var(--pad-x); right: var(--pad-x);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember) 50%, transparent);
  opacity: 0.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .tagline { color: var(--cream-muted); font-size: 14px; max-width: 280px; line-height: 1.6; }
.brand-seal {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  margin-top: -2px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--cream); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--ember); }
.footer-contact-row { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-row a { font-family: var(--font-body); font-weight: 600; font-size: 17px; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.footer-socials a:hover { border-color: var(--ember); color: var(--ember); }
.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--cream-muted);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-bottom-links a:hover { color: var(--ember); }

/* ================= Reveal on scroll ================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: .0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .hero { min-height: 92vh; }
  .hero-image { aspect-ratio: auto; order: 0; min-height: 0; }
  /* En pantallas estrechas el texto va sobre todo el vídeo: velo más uniforme y de abajo a arriba */
  .hero-image::before {
    background:
      linear-gradient(90deg, var(--bg-primary) 0%, rgba(15,10,7,0.78) 30%, rgba(15,10,7,0.45) 60%, rgba(15,10,7,0.3) 100%),
      linear-gradient(0deg, rgba(15,10,7,0.85) 0%, rgba(15,10,7,0.35) 45%, rgba(15,10,7,0.2) 100%);
  }
  .hero-content { padding: 120px var(--pad-x) 80px; max-width: 640px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-rows: 120px; }
  .menu-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Optimización móvil de la home — estados base (escritorio: ocultos) ===== */
.nav-cta-pill { display: none; }
.story-more { display: none; }
.quick-contact { display: none; }

@media (max-width: 720px) {
  :root { --pad-y: 72px; }
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: inline-flex; }
  .services-grid { grid-template-columns: 1fr; }
  /* La tarjeta crece para acomodar el texto: nada de recortes ni solapes con el número */
  .service-card { aspect-ratio: auto; }
  .service-content { min-height: 62vw; padding: 76px 26px 30px; }
  .service-content h3 { font-size: 32px; }
  .service-number { top: 28px; left: 26px; }
  /* Velo más uniforme: el texto ocupa casi toda la tarjeta, asegura legibilidad arriba y abajo */
  .service-card::before {
    background: linear-gradient(180deg, rgba(15,10,7,0.5) 0%, rgba(15,10,7,0.6) 42%, rgba(15,10,7,0.9) 100%);
  }
  .testi-card { flex: 0 0 100%; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .field.full { grid-column: span 1; }
  .form-foot { grid-column: span 1; flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .form-success { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  /* --- Galería en swipe horizontal: una fila deslizable, recorta mucho scroll --- */
  .gallery {
    display: flex;
    grid-template-columns: none;
    grid-auto-rows: auto;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding-left: var(--pad-x);
    margin: 0 calc(-1 * var(--pad-x));
    padding: 4px var(--pad-x) 14px;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gal-item {
    flex: 0 0 80%;
    height: 280px;
    scroll-snap-align: start;
    grid-column: auto;
    grid-row: auto;
  }
  /* En táctil no hay hover: leyenda y velo siempre visibles */
  .gal-item .gal-caption { opacity: 1; transform: none; }
  .gal-item::before { opacity: 0.85; }

  /* --- CTA "Presupuesto" en la barra: aparece al pasar el hero (convive con WhatsApp) --- */
  .nav-cta { gap: 10px; }
  .nav-cta-pill {
    display: inline-flex;
    align-items: center;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 9px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 8px 24px -10px rgba(237,188,64,0.6);
    opacity: 0;
    transform: translateX(10px) scale(0.96);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
  }
  .nav.past-hero .nav-cta-pill {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  /* --- Historia condensada: titular + frase de marca + enlace a Nosotros --- */
  .story-img-wrap { aspect-ratio: 16/10; }
  .story-p-long { display: none; }
  .story-text .story-signature { display: none; }
  .story-more { display: inline-flex; }

  /* --- Bloque de contacto rápido antes de la galería --- */
  .quick-contact {
    display: block;
    text-align: center;
    padding: 44px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .quick-contact-text {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--cream);
    margin: 0 0 20px;
  }
  .quick-contact .btn { width: 100%; justify-content: center; }
  .quick-contact-tel {
    display: block;
    margin-top: 16px;
    color: var(--cream-muted);
    font-size: 14px;
  }
  .quick-contact-tel:hover { color: var(--ember); }
  .scroll-indicator { display: none; }
  .hero-side-meta { display: none; }
  .hero h1 { font-size: clamp(44px, 11vw, 60px); }
  .hero-content { padding: 110px var(--pad-x) 64px; gap: 24px; }
  .hero-cta-row { gap: 14px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .hero-cta-row .link-inline { width: 100%; text-align: center; }
  .hero-social-proof { flex-wrap: wrap; gap: 8px 12px; font-size: 13px; }
  .section-head { margin-bottom: 40px; }
  .section-head-row { margin-bottom: 40px; }
  .testi-quote-mark { font-size: 64px; margin-bottom: 4px; }
  .testi-quote { font-size: 17px; }
  .testi-controls { margin-top: 28px; flex-wrap: wrap; gap: 16px; }
  .trust-logos { gap: 36px 28px; }
  .trust-logo-img { height: clamp(40px, 11vw, 56px); }
}

/* ================= Floating WhatsApp widget ================= */
.wa-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);          /* invertido: fondo crema */
  color: #3F4A52;                    /* logo gris pizarra */
  box-shadow: 0 6px 20px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.06) inset;
  z-index: 9000;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.wa-btn:hover {
  background: #FFF3E2;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.42), 0 0 0 1px rgba(237,188,64,0.25) inset;
}
.wa-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wa-tip {
  position: fixed;
  bottom: 92px; right: 24px;
  max-width: 236px;
  background: var(--ink-3);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.45;
  padding: 13px 32px 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 9000;
  pointer-events: none;
}
.wa-tip.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.wa-tip p { margin: 0; }

.wa-tip-close {
  position: absolute;
  top: 0; right: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: none;
  color: var(--cream-muted);
  font-size: 19px; line-height: 1;
  cursor: pointer;
  transition: color .2s ease;
}
.wa-tip-close:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .wa-btn, .wa-tip { transition: opacity .2s ease; }
  .wa-btn:hover { transform: none; }
}

@media (max-width: 600px) {
  .wa-btn { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .wa-tip { bottom: 80px; right: 16px; max-width: 210px; }
}

/* ================= Cookie consent ================= */
.cc-banner {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 9500;
  width: 420px; max-width: calc(100vw - 48px);
}
.cc-banner[hidden] { display: none; }
.cc-banner:not([hidden]) .cc-card { animation: cc-in .4s ease both; }
@keyframes cc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cc-banner:not([hidden]) .cc-card { animation: none; }
}
.cc-card {
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.cc-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.cc-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 26px;
  color: var(--cream);
  margin: 10px 0 10px;
  line-height: 1;
}
.cc-text { font-size: 14px; line-height: 1.6; color: var(--cream-muted); }
.cc-text a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cc-text a:hover { color: var(--cream); }
.cc-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.cc-row { display: flex; gap: 10px; }
.cc-btn {
  flex: 1;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent; color: var(--cream);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.cc-btn:hover { border-color: var(--cream); background: rgba(255,231,202,0.06); }
.cc-btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cc-btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ink); }
.cc-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Preferences modal */
.cc-modal {
  position: fixed; inset: 0; z-index: 9600;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(10,8,6,0.72);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.cc-modal.open { opacity: 1; pointer-events: auto; }
.cc-modal-card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 560px; width: 100%;
  max-height: 86vh; overflow-y: auto;
  padding: clamp(24px, 4vw, 40px);
}
.cc-cat {
  display: flex; gap: 18px; justify-content: space-between; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cc-cat:last-of-type { border-bottom: 0; }
.cc-cat h4 { font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--cream); }
.cc-cat p { font-size: 13px; line-height: 1.5; color: var(--cream-muted); margin-top: 5px; max-width: 42ch; }
.cc-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.cc-modal-actions .cc-btn { flex: 1 1 140px; }

/* Toggle switch */
.cc-switch { position: relative; width: 46px; height: 26px; flex: none; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--ink-3); border: 1px solid var(--border);
  transition: background .2s ease, border-color .2s ease;
  pointer-events: none;
}
.cc-switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cream-muted);
  transition: transform .2s ease, background .2s ease;
}
.cc-switch input:checked + span { background: rgba(237,188,64,0.25); border-color: var(--gold); }
.cc-switch input:checked + span::after { transform: translateX(20px); background: var(--gold); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch.fixed { opacity: 0.65; }

/* Footer preferences link */
.cc-prefs-link {
  background: none; border: 0; padding: 0;
  font: inherit; cursor: pointer;
  color: inherit;
}

@media (max-width: 600px) {
  .cc-banner { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .cc-card { padding: 22px; }
}
