/* ══════════════════════════════════════════════════
   MANSIÓN AS — Design System v5 — NOCTURNO CARMESÍ
   Seducción · Blood Red · Bronce Masculino
   ══════════════════════════════════════════════════ */

:root {
  /* ── Noir palette (onyx + vinous undertone) ── */
  --noir:         #0A0507;
  --noir-2:       #140709;
  --noir-3:       #1C0A0D;
  --noir-card:    #241014;
  --noir-soft:    #2D1318;
  --noir-line:    rgba(242, 232, 220, 0.08);

  /* ── Ivory cream (text — warm, candlelight) ── */
  --ivory:        #F2E8DC;
  --ivory-soft:   rgba(242, 232, 220, 0.80);
  --ivory-muted:  rgba(242, 232, 220, 0.56);
  --ivory-dim:    rgba(242, 232, 220, 0.28);
  --ivory-faint:  rgba(242, 232, 220, 0.08);

  /* ── Blood crimson (seduction — replaces gold) ── */
  --gold:         #A8182B;
  --gold-bright:  #D9304A;
  --gold-pale:    #E87A7A;
  --gold-deep:    #6F0A18;
  --gold-glow:    rgba(168, 24, 43, 0.42);
  --gold-glow-2:  rgba(217, 48, 74, 0.58);
  --gold-dim:     rgba(168, 24, 43, 0.18);

  /* ── Bronze/copper (masculine accent — replaces wine) ── */
  --wine:         #6B3A1F;
  --wine-bright:  #B4793F;
  --wine-deep:    #3D1E0C;
  --wine-glow:    rgba(180, 121, 63, 0.38);

  /* ── Legacy aliases (safety net) ── */
  --black:        var(--noir);
  --black-light:  var(--noir-2);
  --black-card:   var(--noir-3);
  --white:        var(--ivory);
  --white-muted:  var(--ivory-muted);
  --white-dim:    var(--ivory-dim);
  --red:          var(--wine-bright);
  --red-bright:   var(--gold-bright);
  --red-deep:     var(--wine-deep);
  --red-glow:     var(--gold-glow);
  --red-glow-intense: var(--gold-glow-2);

  /* ── Fonts ──
     Cormorant Garamond: títulos (display, heading, italic, label)
     Satoshi: cuerpo, descripciones y textos pequeños */
  --font-display: 'Cormorant Garamond', 'Didot', serif;
  --font-heading: 'Cormorant Garamond', 'Trajan Pro', serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;
  --font-italic:  'Cormorant Garamond', serif;
  --font-label:   'Cormorant Garamond', serif;

  /* ── Easings ── */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-deco:      cubic-bezier(0.77, 0, 0.175, 1);
}

/* ══════════════════════════════════════════════════
   RESET
   ══════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--noir);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background:
    radial-gradient(ellipse at 20% 0%, #260a10 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, #1d0a12 0%, transparent 55%),
    var(--noir);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

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

a { color: inherit; }

s { text-decoration: line-through; color: var(--ivory-muted); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

::selection { background: var(--gold); color: var(--noir); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep), var(--gold));
  border-radius: 4px;
  border: 1px solid var(--noir);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-bright); }

/* ══════════════════════════════════════════════════
   GRAIN OVERLAY (tactile depth)
   ══════════════════════════════════════════════════ */
.grain-overlay {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.91  0 0 0 0 0.82  0 0 0 0.55 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  animation: grainShift 8s steps(6) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-2%, 1%); }
  32%  { transform: translate(1%, -2%); }
  48%  { transform: translate(-1%, 2%); }
  64%  { transform: translate(2%, 1%); }
  80%  { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ══════════════════════════════════════════════════
   PRELOADER
   ══════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    radial-gradient(circle at 50% 50%, #22090f, var(--noir) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-out-expo), visibility 0.7s var(--ease-out-expo);
}

.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__content { text-align: center; position: relative; }

.preloader__content::before,
.preloader__content::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  animation: preloaderRing 2.4s ease-in-out infinite;
}
.preloader__content::after {
  width: 180px; height: 180px;
  border-color: rgba(217, 48, 74, 0.2);
  animation-delay: 0.5s;
}

@keyframes preloaderRing {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.95); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.preloader__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.preloader__logo span {
  display: inline-block;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-bright) 50%, var(--gold-pale));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: goldShimmer 2.4s ease-in-out infinite;
  background-size: 200% 100%;
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.preloader__bar {
  width: 220px;
  height: 1px;
  background: var(--ivory-faint);
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.preloader__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold));
  animation: preloaderBar 1s var(--ease-out-expo) forwards;
  box-shadow: 0 0 18px var(--gold-glow-2);
}

@keyframes preloaderBar {
  0%   { width: 0%; }
  50%  { width: 60%; }
  100% { width: 100%; }
}

/* ══════════════════════════════════════════════════
   SCROLL PROGRESS
   ══════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-pale));
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--gold-glow-2), 0 0 24px var(--gold-glow);
}

/* ══════════════════════════════════════════════════
   NAVBAR — glassmorphism + gold underline
   ══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  padding: 1.2rem 2rem;
  transition: all 0.45s var(--ease-out-expo);
  transform: translateY(0);
  background: linear-gradient(to bottom, rgba(10, 8, 18, 0.55), transparent);
}

.navbar.scrolled {
  background: rgba(10, 8, 18, 0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(168, 24, 43, 0.18);
  padding: 0.75rem 2rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(168, 24, 43, 0.1) inset;
}

.navbar.hidden-nav { transform: translateY(-110%); }

.navbar__container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  position: relative;
  transition: letter-spacing 0.35s var(--ease-out-expo);
}

.navbar__logo .highlight,
.navbar__logo span {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-bright) 55%, var(--gold-pale));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.navbar__logo:hover { letter-spacing: 0.28em; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2.6rem;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ivory-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.navbar__links a:not(.btn):hover { color: var(--gold-bright); }

.navbar__links a:not(.btn)::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 5px; height: 5px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out-expo), top 0.35s var(--ease-out-expo);
}

.navbar__links a:not(.btn):hover::before { opacity: 1; top: -8px; }

.navbar__links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transition: width 0.4s var(--ease-out-expo), left 0.4s var(--ease-out-expo);
}

.navbar__links a:not(.btn):hover::after { width: 120%; left: -10%; }

.btn--nav {
  padding: 0.65rem 1.6rem !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.22em !important;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10002;
}

.navbar__toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--gold-bright);
  border-radius: 2px;
  transition: all 0.35s var(--ease-out-expo);
  transform-origin: center;
}

.navbar__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════
   SHARED — highlight + labels + titles + lines
   ══════════════════════════════════════════════════ */
.highlight {
  display: inline-block;
  background: linear-gradient(120deg, var(--gold-deep) 0%, var(--gold-bright) 40%, var(--gold-pale) 60%, var(--gold) 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(217, 48, 74, 0.2);
  animation: goldShimmer 6s ease-in-out infinite;
  font-style: normal;
  -webkit-text-stroke: 0.6px rgb(255 0 0 / 88%);
  paint-order: stroke fill;
}

.label {
  font-family: var(--font-italic);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(0.98rem, 1.8vw, 1.25rem);
  color: var(--gold);
  display: inline-block;
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0 1.8rem;
}

.label::before, .label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 1rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.label::before { left: 0; }
.label::after {
  right: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.02;
  color: var(--ivory);
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}

.section-line {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  margin: 1.4rem auto 0;
  position: relative;
}

.section-line::before,
.section-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  background: var(--gold-bright);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 8px var(--gold-glow-2);
}
.section-line::before { left: calc(50% - 3px); top: -3px; height: 6px; background: var(--gold); animation: diamondPulse 3s ease-in-out infinite; }
.section-line::after  { display: none; }

@keyframes diamondPulse {
  0%, 100% { box-shadow: 0 0 8px var(--gold-glow-2); }
  50% { box-shadow: 0 0 22px var(--gold-glow-2), 0 0 40px var(--gold-glow); }
}

/* ══════════════════════════════════════════════════
   SECTION DIVIDER (ornamental)
   ══════════════════════════════════════════════════ */
.section-divider {
  padding: 2.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  max-width: 900px;
  margin: 0 auto;
}

.section-divider__side {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 30%, var(--gold) 100%);
}
.section-divider__side--r {
  background: linear-gradient(90deg, var(--gold), var(--gold-dim) 70%, transparent);
}

.section-divider__orn {
  width: clamp(160px, 22vw, 240px);
  height: auto;
  color: var(--gold);
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

/* ══════════════════════════════════════════════════
   ART-DECO CORNER BRACKETS
   ══════════════════════════════════════════════════ */
.deco-corner {
  position: absolute;
  width: 64px; height: 64px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.85;
}

.deco-corner::before,
.deco-corner::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 8px var(--gold-glow);
}
.deco-corner::before { width: 100%; height: 1px; }
.deco-corner::after  { height: 100%; width: 1px; }

.deco-corner--tl { top: 24px; left: 24px; }
.deco-corner--tl::before { top: 0; left: 0; }
.deco-corner--tl::after  { top: 0; left: 0; }

.deco-corner--tr { top: 24px; right: 24px; }
.deco-corner--tr::before { top: 0; right: 0; }
.deco-corner--tr::after  { top: 0; right: 0; }

.deco-corner--bl { bottom: 24px; left: 24px; }
.deco-corner--bl::before { bottom: 0; left: 0; }
.deco-corner--bl::after  { bottom: 0; left: 0; }

.deco-corner--br { bottom: 24px; right: 24px; }
.deco-corner--br::before { bottom: 0; right: 0; }
.deco-corner--br::after  { bottom: 0; right: 0; }

/* ══════════════════════════════════════════════════
   GRADIENT ORBS (softer, gold-wine)
   ══════════════════════════════════════════════════ */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.gradient-orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(168, 24, 43, 0.16), transparent 70%);
  top: -200px; right: -120px;
  animation: orbFloat 14s ease-in-out infinite;
}
.gradient-orb--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(180, 121, 63, 0.22), transparent 70%);
  bottom: -140px; left: -120px;
  animation: orbFloat 17s ease-in-out infinite reverse;
}
.gradient-orb--3 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(168, 24, 43, 0.1), transparent 70%);
  top: 20%; right: -150px;
  animation: orbFloat 19s ease-in-out infinite;
}
.gradient-orb--4 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(94, 28, 46, 0.26), transparent 70%);
  bottom: -120px; left: -200px;
  animation: orbFloat 16s ease-in-out infinite reverse;
}
.gradient-orb--5 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(217, 48, 74, 0.1), transparent 70%);
  top: -240px; left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 18s ease-in-out infinite;
}
.gradient-orb--6 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(180, 121, 63, 0.18), transparent 70%);
  bottom: -200px; right: -100px;
  animation: orbFloat 22s ease-in-out infinite reverse;
}
.gradient-orb--7 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(168, 24, 43, 0.13), transparent 70%);
  top: -200px; right: -150px;
  animation: orbFloat 15s ease-in-out infinite;
}
.gradient-orb--8 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(94, 28, 46, 0.2), transparent 70%);
  bottom: -100px; left: 30%;
  animation: orbFloat 20s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(35px, -25px); }
  50% { transform: translate(-25px, 35px); }
  75% { transform: translate(22px, 18px); }
}

/* ══════════════════════════════════════════════════
   FLOATING ICONS — gold luxury dust
   ══════════════════════════════════════════════════ */
.floating-icons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.floating-icon {
  position: absolute;
  color: var(--gold-bright);
  animation: iconDrift ease-in-out infinite;
  filter: drop-shadow(0 0 10px var(--gold-glow-2)) drop-shadow(0 0 4px var(--gold-bright));
  opacity: 1;
}

.floating-icon--mobile { animation-name: iconDriftMobile; }

.floating-icon svg { width: 100%; height: 100%; }

@keyframes iconDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.06; }
  25%  { transform: translate(14px, -28px) rotate(10deg); opacity: 0.16; }
  50%  { transform: translate(-10px, -44px) rotate(-6deg); opacity: 0.08; }
  75%  { transform: translate(20px, -16px) rotate(7deg); opacity: 0.14; }
}

@keyframes iconDriftMobile {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.14; }
  25%  { transform: translate(8px, -14px) rotate(5deg); opacity: 0.28; }
  50%  { transform: translate(-5px, -24px) rotate(-3deg); opacity: 0.14; }
  75%  { transform: translate(10px, -9px) rotate(4deg); opacity: 0.25; }
}

/* ══════════════════════════════════════════════════
   BUTTONS — gold couture
   ══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.6rem;
  border: none;
  cursor: pointer;
  transition: all 0.45s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 45%, var(--gold-bright) 100%);
  color: var(--noir);
  box-shadow:
    0 6px 28px var(--gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold) 50%, var(--gold-bright));
  z-index: -1;
  transition: opacity 0.4s ease;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transition: left 0.9s var(--ease-out-expo);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 42px var(--gold-glow-2),
    0 0 0 1px var(--gold-bright),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  letter-spacing: 0.26em;
}
.btn--primary:hover::after { left: 150%; }
.btn--primary:active { transform: translateY(0); }

.btn--shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: btnShimmer 3.5s ease-in-out infinite;
}

@keyframes btnShimmer {
  0% { left: -100%; }
  60% { left: 200%; }
  100% { left: 200%; }
}

.btn--pulse { animation: btnPulse 2.8s ease-in-out infinite; }

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 6px 28px var(--gold-glow), 0 0 0 0 rgba(217, 48, 74, 0.5); }
  50%      { box-shadow: 0 10px 40px var(--gold-glow-2), 0 0 0 10px rgba(217, 48, 74, 0); }
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--gold-dim);
}

.btn--ghost::before {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out-expo);
  pointer-events: none;
}

.btn--ghost:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(168, 24, 43, 0.06);
}
.btn--ghost:hover::before { border-color: var(--gold-bright); }

.btn--large { padding: 1.3rem 3.6rem; font-size: 1rem; }

/* ══════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.95s var(--ease-out-expo),
    transform 0.95s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.cards-grid .flip-card:nth-child(1) { transition-delay: 0s; }
.cards-grid .flip-card:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .flip-card:nth-child(3) { transition-delay: 0.24s; }
.cards-grid .flip-card:nth-child(5) { transition-delay: 0.36s; }
.cards-grid .flip-card:nth-child(6) { transition-delay: 0.48s; }

/* ══════════════════════════════════════════════════
   HERO — deco palace
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: var(--noir);
}

.hero__bg-photo {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.webp?v=2') center 35% / cover no-repeat;
  z-index: 0;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
  filter: saturate(0.85) contrast(1.05) brightness(0.85) hue-rotate(-6deg);
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.14); }
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(6, 4, 9, 0.56) 0%, rgba(6, 4, 9, 0.7) 45%, rgba(6, 4, 9, 0.82) 75%, rgba(6, 4, 9, 0.92) 100%),
    linear-gradient(180deg, rgba(6, 4, 9, 0.8) 0%, rgba(6, 4, 9, 0.6) 20%, rgba(6, 4, 9, 0.66) 50%, rgba(6, 4, 9, 0.82) 78%, var(--noir) 100%),
    rgba(6, 4, 9, 0.26);
}

.hero__bg-overlay::after {
  /* subtle art-deco golden sunburst at the top center */
  content: '';
  position: absolute;
  top: -60vw; left: 50%;
  width: 120vw; height: 120vw;
  transform: translateX(-50%);
  background:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(168, 24, 43, 0.06) 0deg 2deg,
      transparent 2deg 10deg
    );
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 9rem 5rem 7rem;
  text-align: center;
}

.hero__text-block { margin: 0 auto 2.8rem; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.8vw, 6.4rem);
  line-height: 1.08;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--ivory);
  text-shadow:
    0 0 50px rgba(0, 0, 0, 0.95),
    0 6px 30px rgba(0, 0, 0, 0.7);
  margin: 0;
  width: 100%;
}

.hero__line { display: block; opacity: 0; }

.hero__line--xl {
  line-height: 1.08;
  margin-top: 0.08em;
}

.hero--animate .hero__line:nth-child(1) {
  animation: heroSlideFromLeft 1.1s var(--ease-out-expo) 0.5s forwards;
}
.hero--animate .hero__line:nth-child(2) {
  animation: heroSlideFromRight 1.1s var(--ease-out-expo) 0.68s forwards;
}
.hero--animate .hero__line:nth-child(3) {
  animation: heroSlideFromLeft 1.1s var(--ease-out-expo) 0.86s forwards;
}

.hero__sub-wrap {
  max-width: 800px;
  margin: 1.9rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.hero__sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.78rem);
  color: var(--ivory);
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(25px);
}

.hero__sub--punch {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.9vw, 2.05rem);
  letter-spacing: 0.01em;
}

.hero--animate .hero__sub {
  animation: heroFadeUp 0.95s var(--ease-out-expo) 0.95s forwards;
}

.hero--animate .hero__sub--punch {
  animation-delay: 1.15s;
}

@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideFromLeft {
  0%   { opacity: 0; transform: translateX(-60px); filter: blur(6px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes heroSlideFromRight {
  0%   { opacity: 0; transform: translateX(60px); filter: blur(6px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

/* ── Hero video wrap ── */
.hero__video-wrap {
  position: relative;
  max-width: 1060px;
  margin: 3.8rem auto 0;
  padding: 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(168, 24, 43, 0.25), rgba(168, 24, 43, 0) 30% 70%, rgba(217, 48, 74, 0.3));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(168, 24, 43, 0.3),
    0 0 80px rgba(168, 24, 43, 0.12);
}

.hero__video-wrap::before,
.hero__video-wrap::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold-bright);
  opacity: 0.85;
}
.hero__video-wrap::before { top: -12px; left: -12px; border-right: none; border-bottom: none; }
.hero__video-wrap::after  { bottom: -12px; right: -12px; border-left: none; border-top: none; }

.hero-video__player-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--noir);
  box-shadow: inset 0 0 0 1px rgba(168, 24, 43, 0.2);
}

.plyr-video { width: 100%; display: block; }

.plyr {
  --plyr-color-main: var(--gold-bright);
  --plyr-video-control-color: var(--ivory);
  --plyr-video-control-color-hover: var(--gold-bright);
  --plyr-video-control-background-hover: rgba(168, 24, 43, 0.25);
  --plyr-range-fill-background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  border-radius: 4px;
}

.plyr__control--overlaid {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-bright)) !important;
  color: var(--noir) !important;
  box-shadow: 0 0 30px var(--gold-glow-2), 0 0 0 4px rgba(168, 24, 43, 0.2);
}

.plyr__controls { backdrop-filter: blur(12px); }
.plyr__progress__buffer { background: rgba(168, 24, 43, 0.15); }

/* Defense in depth: the fullscreen control is removed from the Plyr config
   (js/main.js), but hide it too in case a control set ever regresses. */
.plyr__control[data-plyr="fullscreen"] { display: none !important; }

/* ── VSL: big centered pulsating "activar sonido" button + reminder ── */
.vsl-sound-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 150px;
  height: 150px;
  padding: 0;
  border: 2px solid rgba(217, 48, 74, 0.6);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(20, 7, 9, 0.88), rgba(36, 16, 20, 0.88));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ivory);
  cursor: pointer;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6), 0 0 0 0 var(--gold-glow-2);
  animation: vslSoundPulse 1.8s ease-in-out infinite;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.vsl-sound-btn.is-visible { display: inline-flex; }

.vsl-sound-btn:hover {
  background: linear-gradient(135deg, rgba(36, 16, 20, 0.92), rgba(52, 20, 26, 0.92));
  border-color: var(--gold-bright);
}

.vsl-sound-btn__icon { display: flex; align-items: center; justify-content: center; }
.vsl-sound-btn__icon svg { width: 48px; height: 48px; color: var(--gold-bright); }

.vsl-sound-btn__label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
}

@keyframes vslSoundPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6), 0 0 0 0 var(--gold-glow-2);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6), 0 0 0 20px rgba(217, 48, 74, 0);
  }
}

.vsl-sound-reminder {
  position: absolute;
  left: 50%;
  top: 14px;
  z-index: 20;
  transform: translate(-50%, -14px);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  background: rgba(10, 8, 18, 0.82);
  border: 1px solid rgba(217, 48, 74, 0.4);
  color: var(--ivory-soft);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-align: center;
  max-width: 90%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.vsl-sound-reminder.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 768px) {
  .vsl-sound-btn { width: 116px; height: 116px; gap: 0.6rem; }
  .vsl-sound-btn__icon svg { width: 36px; height: 36px; }
  .vsl-sound-btn__label { font-size: 0.68rem; }
  .vsl-sound-reminder { font-size: 0.74rem; padding: 0.5rem 0.8rem; top: 10px; }
}

/* ── Hero scroll cue ── */
.hero__scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--gold);
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero__scroll-cue:hover { opacity: 1; transform: translateX(-50%) translateY(-4px); }

.hero__scroll-cue-label {
  font-family: var(--font-heading);
  font-size: 0.64rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero__scroll-cue-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -50%; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--gold-pale), transparent);
  animation: scrollCueDrop 2.4s var(--ease-out-expo) infinite;
}

@keyframes scrollCueDrop {
  0%   { top: -50%; }
  100% { top: 150%; }
}

.hero__scroll-cue-dot {
  width: 5px; height: 5px;
  background: var(--gold-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold-glow-2);
}

/* ══════════════════════════════════════════════════
   ABOUT — editorial statement
   ══════════════════════════════════════════════════ */
.about {
  position: relative;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
  background: var(--noir);
}

.about__bg-photo {
  position: absolute;
  inset: 0;
  background: url('../images/about-mansion.png') center / cover no-repeat;
  opacity: 0.12;
  filter: saturate(0.6) contrast(1.05) hue-rotate(-10deg);
  z-index: 0;
}

.about__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(10, 8, 18, 0.3) 30%, rgba(10, 8, 18, 0.95) 90%),
    linear-gradient(180deg, var(--noir), rgba(10, 8, 18, 0.8));
}

.about__container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.about__header { margin-bottom: 3rem; }

.about__monogram {
  display: block;
  width: 70px; height: 70px;
  margin: 0 auto 1.2rem;
  color: var(--gold);
  filter: drop-shadow(0 0 14px var(--gold-glow));
  animation: monogramSpin 60s linear infinite;
}

@keyframes monogramSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.about__statement {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding: 3rem 3rem;
  background:
    linear-gradient(135deg, rgba(33, 27, 48, 0.65), rgba(20, 15, 33, 0.6));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-dim);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(217, 48, 74, 0.08);
}

.about__statement::before,
.about__statement::after {
  content: '';
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--gold);
}
.about__statement::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.about__statement::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.about__statement p {
  font-family: var(--font-italic);
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.65;
  color: var(--ivory-soft);
  margin-bottom: 1.2rem;
}
.about__statement p:last-child { margin-bottom: 0; }
.about__statement p strong {
  color: var(--ivory);
  font-weight: 600;
  font-family: var(--font-heading);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9em;
}

/* ══════════════════════════════════════════════════
   PROGRAMA — flip cards with deco frames
   ══════════════════════════════════════════════════ */
.programa {
  position: relative;
  padding: 6rem 2rem 7rem;
  overflow: hidden;
}

.programa__container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
}

.programa__header {
  text-align: center;
  margin-bottom: 4rem;
}

.programa__subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ivory-muted);
  max-width: 680px;
  margin: 1.5rem auto 0;
  line-height: 1.55;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cards-grid__divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

.cards-grid__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold-bright));
}
.cards-grid__divider-line:last-child {
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-dim), transparent);
}

.cards-grid__divider-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 0 1rem;
  position: relative;
}
.cards-grid__divider-label::before,
.cards-grid__divider-label::after {
  content: '◆';
  color: var(--gold);
  font-size: 0.5em;
  margin: 0 0.5rem;
  opacity: 0.8;
}

/* ── Flip Card ── */
.flip-card {
  position: relative;
  height: 420px;
  perspective: 1400px;
  cursor: pointer;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1s var(--ease-deco);
  transform-style: preserve-3d;
}

@media (hover: hover) {
  .flip-card:hover .flip-card__inner {
    transform: rotateY(180deg);
  }
}

.flip-card.flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.flip-card__front {
  background: var(--noir-3);
}

.flip-card__front img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out-expo);
  filter: saturate(0.75) contrast(1.05);
}

.flip-card:hover .flip-card__front img { transform: scale(1.08); }

.flip-card__front-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(10, 8, 18, 0.45) 55%, rgba(10, 8, 18, 0.95) 100%),
    linear-gradient(135deg, rgba(94, 28, 46, 0.12), transparent 60%);
  z-index: 1;
}

.flip-card__front::before,
.flip-card__front::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--gold-bright);
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}
.flip-card__front::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.flip-card__front::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.flip-card__number {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-pale));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px var(--gold-glow);
  letter-spacing: 0.02em;
}

.flip-card__title {
  position: absolute;
  bottom: 36px; left: 28px; right: 28px;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.22;
  color: var(--ivory);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flip-card__back {
  background:
    linear-gradient(135deg, rgba(33, 27, 48, 0.98), rgba(13, 11, 20, 0.98));
  transform: rotateY(180deg);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flip-card__back::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
}

.flip-card__back-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ivory);
  margin-bottom: 1.2rem;
}

.flip-card__back p {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ivory-soft);
  max-width: 88%;
}

/* ══════════════════════════════════════════════════
   FIESTAS — roman nocturne
   ══════════════════════════════════════════════════ */
.fiestas {
  position: relative;
  padding: 6rem 2rem 7rem;
  overflow: hidden;
}

.fiestas__container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
}

.fiestas__header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.fiestas__subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ivory-muted);
  max-width: 760px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

.fiestas__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.fiestas__side {
  padding: 2rem 1.5rem;
  opacity: 0.72;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.fiestas__side--left { text-align: right; }
.fiestas__side--right { text-align: left; }

.fiestas__side--active { opacity: 1; transform: translateY(-4px); }

.fiestas__side-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--gold-bright);
  margin-bottom: 1.2rem;
  line-height: 1.35;
}

.fiestas__side-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.2rem;
}

.fiestas__side-list li {
  position: relative;
  padding: 0.4rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ivory-soft);
  line-height: 1.55;
}

.fiestas__side--left .fiestas__side-list li { padding-right: 1.6rem; padding-left: 0; }
.fiestas__side--left .fiestas__side-list li::before {
  content: '◆';
  position: absolute;
  right: 0;
  top: 0.5rem;
  color: var(--gold);
  font-size: 0.6em;
}
.fiestas__side--right .fiestas__side-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--gold);
  font-size: 0.6em;
}

.fiestas__side-closing {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--gold);
  opacity: 0.9;
}

.fiestas__cards-pair {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 420px;
}

.fiestas__card {
  position: relative;
  height: 240px;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo), border-color 0.4s ease;
}

.fiestas__card::before,
.fiestas__card::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold-bright);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.fiestas__card::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; transform: translate(4px, 4px); }
.fiestas__card::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; transform: translate(-4px, -4px); }

.fiestas__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out-expo);
  filter: saturate(0.85) contrast(1.05);
}

.fiestas__card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 18, 0.25) 0%, rgba(10, 8, 18, 0.5) 60%, rgba(10, 8, 18, 0.95) 100%);
  z-index: 1;
  transition: background 0.5s ease;
}

.fiestas__card-content {
  position: absolute;
  bottom: 22px; left: 26px; right: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fiestas__card-number {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.fiestas__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ivory);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.fiestas__card-arrow {
  position: absolute;
  bottom: 22px; right: 26px;
  z-index: 2;
  font-size: 1.4rem;
  color: var(--gold-bright);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out-expo);
}

.fiestas__card:hover,
.fiestas__card--side-active {
  transform: translateY(-6px);
  border-color: var(--gold-bright);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--gold-bright);
}
.fiestas__card:hover img,
.fiestas__card--side-active img { transform: scale(1.08); filter: saturate(1) contrast(1.1); }
.fiestas__card:hover .fiestas__card-overlay,
.fiestas__card--side-active .fiestas__card-overlay {
  background: linear-gradient(180deg, rgba(10, 8, 18, 0.2) 0%, rgba(180, 121, 63, 0.3) 50%, rgba(10, 8, 18, 0.95) 100%);
}
.fiestas__card:hover::before,
.fiestas__card:hover::after,
.fiestas__card--side-active::before,
.fiestas__card--side-active::after {
  opacity: 0.95;
  transform: translate(0, 0);
}
.fiestas__card:hover .fiestas__card-arrow,
.fiestas__card--side-active .fiestas__card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.fiestas__card-btn-mobile {
  display: none;
  position: absolute;
  z-index: 4;
  inset: auto 0 0 0;
  padding: 14px 18px;
  background: rgba(168, 24, 43, 0.9);
  color: var(--noir);
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── Fiestas mobile overlay ── */
.fiestas__overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fiestas__overlay.active { opacity: 1; visibility: visible; }

.fiestas__overlay-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(0.9);
}

.fiestas__overlay-inner {
  position: absolute;
  inset: 0;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 8, 18, 0.2), rgba(10, 8, 18, 0.85));
  animation: overlaySlideUp 0.5s var(--ease-out-expo);
}

@keyframes overlaySlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fiestas__overlay-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.fiestas__overlay-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--ivory);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}

.fiestas__overlay-divider {
  width: 50px; height: 1px;
  background: var(--gold-bright);
  margin-bottom: 1.5rem;
}

.fiestas__overlay-body {
  max-width: 560px;
  color: var(--ivory-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}
.fiestas__overlay-body ul { list-style: none; padding: 0; margin: 1rem 0; }
.fiestas__overlay-body li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  text-align: left;
}
.fiestas__overlay-body li::before {
  content: '◆';
  position: absolute; left: 0;
  color: var(--gold);
  font-size: 0.7em;
  top: 0.3rem;
}
.fiestas__overlay-body em {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-italic);
  color: var(--gold);
}

.fiestas__overlay-back {
  margin-top: 1.8rem;
  padding: 0.85rem 1.8rem;
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--gold);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
}
.fiestas__overlay-back:hover {
  background: var(--gold);
  color: var(--noir);
}

/* ══════════════════════════════════════════════════
   MUJERES — deco mosaic
   ══════════════════════════════════════════════════ */
.mujeres {
  position: relative;
  padding: 6rem 2rem 7rem;
  overflow: hidden;
}

.mujeres__container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.mujeres__header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.mujeres__subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ivory-muted);
  max-width: 720px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

.mujeres__mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.6rem;
  min-height: 640px;
}

.mujeres__card {
  position: relative;
  padding: 2.6rem 2.4rem;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(33, 27, 48, 0.9), rgba(19, 16, 29, 0.95));
  border: 1px solid var(--gold-dim);
  overflow: hidden;
  transition: transform 0.55s var(--ease-out-expo), border-color 0.45s ease, box-shadow 0.5s var(--ease-out-expo);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.mujeres__card::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
  transition: border-color 0.45s ease;
}

.mujeres__card::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 120%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(168, 24, 43, 0.15), transparent 55%);
  pointer-events: none;
  transition: opacity 0.6s ease;
  opacity: 0.4;
}

.mujeres__card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-bright);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.65),
    0 0 0 1px var(--gold);
}
.mujeres__card:hover::before { border-color: var(--gold); }
.mujeres__card:hover::after { opacity: 1; }

.mujeres__card--1 { grid-column: 1; grid-row: 1 / span 2; }
.mujeres__card--2 { grid-column: 2; grid-row: 1; }
.mujeres__card--3 { grid-column: 2; grid-row: 2; }
.mujeres__card--4 { display: none; }

.mujeres__card-inner { position: relative; z-index: 2; }

.mujeres__card-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-pale));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.8rem;
  opacity: 0.7;
}

.mujeres__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ivory);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.mujeres__card-rule {
  width: 44px; height: 1px;
  background: var(--gold-bright);
  margin-bottom: 1.3rem;
  position: relative;
}
.mujeres__card-rule::after {
  content: '';
  position: absolute;
  top: 50%; left: -8px;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.mujeres__card-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ivory-soft);
  line-height: 1.68;
}

.mujeres__card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(168, 24, 43, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

/* Show the 4th card (layout was collapsed to 3 in a 2x2 with card--1 spanning; restore 4 in desktop) */
.mujeres__mosaic {
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: auto auto;
}
.mujeres__card--1 { grid-column: 1 / 2; grid-row: 1 / span 2; }
.mujeres__card--2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.mujeres__card--3 { grid-column: 2 / 3; grid-row: 2 / 3; }
.mujeres__card--4 { display: flex; grid-column: 3 / 4; grid-row: 1 / span 2; }

/* ══════════════════════════════════════════════════
   MENTORES — cinematic profile
   ══════════════════════════════════════════════════ */
.mentores {
  position: relative;
  padding: 6rem 2rem 7rem;
  overflow: hidden;
}

.mentores__container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.mentores__header {
  text-align: center;
  margin-bottom: 4rem;
}

.mentores__profile {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(33, 27, 48, 0.85), rgba(13, 11, 20, 0.9));
  backdrop-filter: blur(14px);
  border: 1px solid var(--gold-dim);
  padding: 3rem;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.mentores__profile::before,
.mentores__profile::after {
  content: '';
  position: absolute;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
}
.mentores__profile::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.mentores__profile::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.mentores__photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--gold-dim);
}

.mentores__photo::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px dashed var(--gold-dim);
  pointer-events: none;
  z-index: 2;
  animation: photoRing 30s linear infinite;
}

@keyframes photoRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.mentores__photo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.85) contrast(1.08);
  transition: transform 1s var(--ease-out-expo), filter 0.8s ease;
}

.mentores__photo:hover .mentores__photo-img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.1);
}

.mentores__photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(10, 8, 18, 0.95) 100%),
    linear-gradient(45deg, rgba(180, 121, 63, 0.2), transparent 60%);
  z-index: 1;
}

.mentores__photo-badge {
  position: absolute;
  bottom: 18px; left: 18px;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--gold-bright);
  background: rgba(10, 8, 18, 0.7);
  backdrop-filter: blur(6px);
}

.mentores__content {
  padding: 0 1rem;
}

.mentores__role {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

.mentores__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--ivory);
  margin-bottom: 1.2rem;
}

.mentores__divider {
  width: 60px; height: 1px;
  background: var(--gold-bright);
  margin-bottom: 1.8rem;
  position: relative;
}
.mentores__divider::after {
  content: '';
  position: absolute;
  top: 50%; left: -6px;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 10px var(--gold-glow-2);
}

.mentores__story p {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--ivory-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.mentores__quote {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--gold-bright);
  border-left: 2px solid var(--gold-bright);
  padding: 0.8rem 1.4rem;
  margin: 1.4rem 0;
  background: rgba(168, 24, 43, 0.05);
  line-height: 1.4;
}

.mentores__closing {
  font-family: var(--font-body);
  font-size: 1.05rem !important;
  font-weight: 400;
  color: var(--ivory) !important;
}

.mentores__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--gold-dim);
}

.mentores__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mentores__stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-pale));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
}

.mentores__stat-plus { font-size: 0.7em; }

.mentores__stat-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  margin-top: 0.4rem;
}

.mentores__stat-sep {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--gold-dim), transparent);
}

/* ══════════════════════════════════════════════════
   PILARES — same architecture as fiestas
   ══════════════════════════════════════════════════ */
.pilares {
  position: relative;
  padding: 6rem 2rem 7rem;
  overflow: hidden;
}

.pilares__container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
}

.pilares__header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.pilares__subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ivory-muted);
  max-width: 760px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

.pilares__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.pilares__side {
  padding: 2rem 1.5rem;
  opacity: 0.72;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.pilares__side--left { text-align: right; }
.pilares__side--right { text-align: left; }
.pilares__side--active { opacity: 1; transform: translateY(-4px); }

.pilares__side-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--gold-bright);
  margin-bottom: 1.2rem;
  line-height: 1.35;
}

.pilares__side-list { list-style: none; padding: 0; margin-bottom: 1.2rem; }

.pilares__side-list li {
  position: relative;
  padding: 0.4rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ivory-soft);
  line-height: 1.55;
}

.pilares__side--left .pilares__side-list li { padding-right: 1.6rem; padding-left: 0; }
.pilares__side--left .pilares__side-list li::before {
  content: '◆';
  position: absolute;
  right: 0;
  top: 0.5rem;
  color: var(--gold);
  font-size: 0.6em;
}
.pilares__side--right .pilares__side-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--gold);
  font-size: 0.6em;
}

.pilares__side-closing {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--gold);
  opacity: 0.9;
}

.pilares__cards-pair {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 420px;
}

.pilares__card {
  position: relative;
  height: 240px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo), border-color 0.4s ease;
}

.pilares__card::before,
.pilares__card::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold-bright);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.pilares__card::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; transform: translate(4px, 4px); }
.pilares__card::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; transform: translate(-4px, -4px); }

.pilares__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out-expo);
  filter: saturate(0.8) contrast(1.05);
}

.pilares__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 18, 0.25) 0%, rgba(10, 8, 18, 0.5) 60%, rgba(10, 8, 18, 0.95) 100%);
  z-index: 1;
  transition: background 0.5s ease;
}

.pilares__card-content {
  position: absolute;
  bottom: 22px; left: 26px; right: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pilares__card-number {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.pilares__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ivory);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.pilares__card-arrow {
  position: absolute;
  bottom: 22px; right: 26px;
  z-index: 2;
  font-size: 1.4rem;
  color: var(--gold-bright);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out-expo);
}

.pilares__card:hover,
.pilares__card--side-active {
  transform: translateY(-6px);
  border-color: var(--gold-bright);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--gold-bright);
}
.pilares__card:hover img,
.pilares__card--side-active img { transform: scale(1.08); filter: saturate(1) contrast(1.1); }
.pilares__card:hover .pilares__card-overlay,
.pilares__card--side-active .pilares__card-overlay {
  background: linear-gradient(180deg, rgba(10, 8, 18, 0.2) 0%, rgba(180, 121, 63, 0.3) 50%, rgba(10, 8, 18, 0.95) 100%);
}
.pilares__card:hover::before,
.pilares__card:hover::after,
.pilares__card--side-active::before,
.pilares__card--side-active::after {
  opacity: 0.95;
  transform: translate(0, 0);
}
.pilares__card:hover .pilares__card-arrow,
.pilares__card--side-active .pilares__card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
  position: relative;
  padding: 4.5rem 2rem 2rem;
  background:
    linear-gradient(180deg, var(--noir), #06040B);
  border-top: 1px solid var(--gold-dim);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  box-shadow: 0 0 18px var(--gold-glow-2);
}

.footer__container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gold-dim);
}

.footer__brand { max-width: 420px; }

.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1.2rem;
}

.footer__tagline {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ivory-muted);
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  justify-content: flex-end;
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2.5rem;
}

.footer__links a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  text-decoration: none;
  transition: color 0.35s ease, letter-spacing 0.35s ease;
}
.footer__links a:hover {
  color: var(--gold-bright);
  letter-spacing: 0.28em;
}

.footer__bottom {
  padding-top: 1.6rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ivory-dim);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__content { padding: 7rem 2.5rem 5rem; }
  .hero__title { font-size: clamp(1.9rem, 6.2vw, 3.6rem); }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid__divider { margin: 1rem 0; }

  .mujeres__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .mujeres__card--1 { grid-column: 1 / span 2; grid-row: 1; }
  .mujeres__card--2 { grid-column: 1; grid-row: 2; }
  .mujeres__card--3 { grid-column: 2; grid-row: 2; }
  .mujeres__card--4 { grid-column: 1 / span 2; grid-row: 3; }

  .fiestas__row,
  .pilares__row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .fiestas__side,
  .pilares__side {
    text-align: center !important;
    padding: 1rem 0.5rem;
  }
  .fiestas__side--left .fiestas__side-list li,
  .fiestas__side--right .fiestas__side-list li,
  .pilares__side--left .pilares__side-list li,
  .pilares__side--right .pilares__side-list li {
    padding-left: 1.5rem !important;
    padding-right: 0 !important;
  }
  .fiestas__side--left .fiestas__side-list li::before,
  .pilares__side--left .pilares__side-list li::before {
    left: 0.2rem !important;
    right: auto !important;
  }
  .fiestas__cards-pair,
  .pilares__cards-pair {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .mentores__profile {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }
  .mentores__photo { max-width: 400px; margin: 0 auto; }

  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__nav { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .navbar { padding: 0.9rem 1.2rem; }
  .navbar.scrolled { padding: 0.65rem 1.2rem; }

  .hero__content { padding: 7rem 0 5rem; width: 100%; max-width: 100%; }
  .hero__title {
    font-size: 6.5vw;
    line-height: 1.1;
    letter-spacing: -0.01em;
    width: 100%;
    max-width: 100%;
    padding: 0 0.15rem;
  }
  .hero__line--xl { font-size: 1.06em; }
  .hero__video-wrap { margin-top: 2.4rem; padding: 6px; }

  /* ── Mobile text sizing — bold & prominent ── */
  .hero__sub { font-size: clamp(1.45rem, 4.6vw, 1.85rem); }
  .hero__sub--punch { font-size: clamp(1.62rem, 5.2vw, 2.15rem); }
  .label     { font-size: clamp(1.37rem, 2.52vw, 1.75rem); }

  .programa__subtitle,
  .fiestas__subtitle,
  .mujeres__subtitle,
  .pilares__subtitle { font-size: clamp(1.47rem, 2.24vw, 1.82rem); }
  .testimonios__subtitle { font-size: clamp(1.47rem, 2.24vw, 1.75rem); }

  /* ── Red stroke on highlights ── */
  .highlight {
    -webkit-text-stroke: 0.6px rgb(255 0 0 / 88%);
    paint-order: stroke fill;
  }

  /* ── Overlay: a touch stronger than desktop — small screens sit closer to
     the bright house photo — but still lets the house read through ── */
  .hero__bg-overlay {
      background:
        radial-gradient(ellipse at 50% 36%, rgba(6, 4, 9, 0.59) 0%, rgba(6, 4, 9, 0.67) 45%, rgba(6, 4, 9, 0.76) 78%),
        linear-gradient(180deg, rgba(6, 4, 9, 0.82) 0%, rgba(6, 4, 9, 0.62) 22%, rgba(6, 4, 9, 0.67) 52%, rgba(6, 4, 9, 0.84) 80%, var(--noir) 100%),
        rgba(6, 4, 9, 0.32);
  }

  .navbar__toggle { display: flex; }
  .navbar__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 82%;
    max-width: 340px;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(10, 8, 18, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    transform: translateX(110%);
    transition: transform 0.55s var(--ease-out-expo);
    border-left: 1px solid var(--gold-dim);
    padding: 3rem 2rem;
  }
  .navbar__links.open { transform: translateX(0); }
  .navbar__links a { font-size: 0.95rem; letter-spacing: 0.25em; text-align: center; }

  .about { padding: 5rem 1.2rem 4rem; }
  .about__statement { padding: 2rem 1.3rem; }

  .programa, .fiestas, .pilares, .mujeres, .mentores { padding: 5rem 1.2rem; }

  .cards-grid { grid-template-columns: 1fr; gap: 1rem; }
  .cards-grid__divider { margin: 0.8rem 0; }
  .cards-grid__divider-label { font-size: 0.58rem; letter-spacing: 0.3em; }
  .flip-card { height: 380px; }

  .mujeres__mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 1rem;
  }
  .mujeres__card { min-height: 220px; padding: 2rem 1.4rem; }
  .mujeres__card--1,
  .mujeres__card--2,
  .mujeres__card--3,
  .mujeres__card--4 {
    grid-column: 1; grid-row: auto;
  }
  .mujeres__card-title { font-size: 1.2rem; }
  .mujeres__card-text { font-size: 0.95rem; }

  .fiestas__card-btn-mobile,
  .pilares__card-btn-mobile { display: block; }
  .fiestas__card-arrow,
  .pilares__card-arrow { display: none; }

  .mentores__name { font-size: clamp(2rem, 8vw, 2.6rem); }
  .mentores__profile { padding: 1.6rem; }
  .mentores__content { padding: 0; }
  .mentores__stats { flex-wrap: wrap; gap: 0.8rem; }
  .mentores__stat-num { font-size: 1.7rem; }

  .footer__top { padding-bottom: 2rem; }
  .footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1.5rem;
  }

  .deco-corner { width: 36px; height: 36px; }
  .deco-corner--tl { top: 12px; left: 12px; }
  .deco-corner--tr { top: 12px; right: 12px; }
  .deco-corner--bl { bottom: 12px; left: 12px; }
  .deco-corner--br { bottom: 12px; right: 12px; }

  .gradient-orb { filter: blur(90px); }

  .section-divider { padding: 1.6rem 1rem; }
  .section-divider__orn { width: clamp(140px, 40vw, 200px); }

  .btn--large { padding: 1.1rem 2.2rem; font-size: 0.9rem; }

  .hero__scroll-cue { bottom: 22px; }
  .hero__scroll-cue-line { height: 40px; }
  .hero__scroll-cue-label { font-size: 0.58rem; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 6.2vw; }
  .section-title { font-size: 2rem; }
  .mentores__stats { gap: 0.5rem; }
  .mentores__stat-label { font-size: 0.58rem; letter-spacing: 0.2em; }
}

/* ══════════════════════════════════════════════════
   SECTION ORDER OVERRIDE — v5
   hero → mujeres → pilares → mentores → about → footer
   ══════════════════════════════════════════════════ */
body {
  display: flex;
  flex-direction: column;
}
.hero        { order: 1; }
.mujeres     { order: 2; }
.pilares     { order: 3; }
.mentores    { order: 4; }
.about       { order: 5; }
.testimonios { order: 6; }
.footer      { order: 99; }

/* Hide decorative section dividers (order changed, no longer in logical flow) */
.section-divider { display: none; }

/* Hide programa & fiestas — requested */
.programa, .fiestas { display: none !important; }

/* Hide footer container contents — keep minimal footer shell or remove fully */
.footer__container { display: none !important; }

/* ══════════════════════════════════════════════════
   HERO TITLE — force 3 lines on desktop + black stroke
   ══════════════════════════════════════════════════ */
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.06em;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.85);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.95),
    0 0 26px rgba(0, 0, 0, 0.9),
    0 8px 40px rgba(0, 0, 0, 0.8);
}

.hero__line,
.hero__line--xl {
  display: block;
  width: 100%;
  font-size: clamp(2.3rem, 5.7vw, 4.7rem);
  line-height: 1.08;
}

.hero__line--xl {
  font-size: clamp(2.45rem, 6.1vw, 5.05rem);
}

.hero__sub {
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.75);
  paint-order: stroke fill;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.95),
    0 0 22px rgba(0, 0, 0, 0.75);
}

.hero__sub--punch {
  -webkit-text-stroke: 0.7px rgba(0, 0, 0, 0.8);
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.95),
    0 0 30px rgba(168, 24, 43, 0.35);
}

/* Tighten hero layout so three lines fit cleanly */
.hero__content { padding-top: 7rem; padding-bottom: 5rem; }

@media (max-width: 900px) {
  .hero__line,
  .hero__line--xl {
    font-size: 1em;
  }
  .hero__line--xl { font-size: 1.06em; }
}

/* ══════════════════════════════════════════════════
   MUJERES — 3-card layout override
   ══════════════════════════════════════════════════ */
@media (min-width: 720px) {
  .mujeres__mosaic {
    grid-template-columns: 1.45fr 1fr !important;
    grid-template-rows: 1fr 1fr;
  }
  .mujeres__card--1 { grid-column: 1 !important; grid-row: 1 / span 2 !important; }
  .mujeres__card--2 { grid-column: 2 !important; grid-row: 1 !important; }
  .mujeres__card--3 { grid-column: 2 !important; grid-row: 2 !important; }
}

/* Mujeres — overlay oscuro 40% sobre la sección */
.mujeres { position: relative; }
.mujeres::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 7, 0.4);
  pointer-events: none;
  z-index: 0;
}

/* Eleva contenido sobre los floating-icons (z:2) en todas las secciones */
.hero__content,
.about__container,
.mujeres__container,
.mentores__container,
.pilares__container,
.testimonios__container,
.hero__scroll-cue {
  position: relative;
  z-index: 3 !important;
}

/* ══════════════════════════════════════════════════
   ABOUT — Manifiesto en 3 actos (rediseño)
   ══════════════════════════════════════════════════ */
.about__statement { display: none; }

.about__kicker {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--ivory-muted);
  max-width: 780px;
  margin: 1.6rem auto 0;
  line-height: 1.6;
}

.about__manifesto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
  position: relative;
}

.about__manifesto::before {
  content: '';
  position: absolute;
  top: 8%; bottom: 8%;
  left: 33.33%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-dim), transparent);
}
.about__manifesto::after {
  content: '';
  position: absolute;
  top: 8%; bottom: 8%;
  left: 66.66%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-dim), transparent);
}

.about__act {
  padding: 2.4rem 1.8rem;
  text-align: center;
  position: relative;
  transition: transform 0.6s var(--ease-out-expo);
}

.about__act:hover { transform: translateY(-6px); }

.about__act-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.about__act-roman {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-deep), var(--gold-bright) 60%, var(--gold-pale));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px var(--gold-glow);
  display: block;
  filter: drop-shadow(0 4px 20px rgba(168, 24, 43, 0.35));
}

.about__act-phase {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.about__act-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 0.7rem;
  line-height: 1.1;
}

.about__act-rule {
  width: 40px;
  height: 1px;
  background: var(--gold-bright);
  margin: 0 auto 1.4rem;
  position: relative;
}
.about__act-rule::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  background: var(--gold-bright);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 8px var(--gold-glow-2);
}

.about__act-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ivory-soft);
  max-width: 32ch;
  margin: 0 auto;
}

.about__closing {
  max-width: 820px;
  margin: 5rem auto 0;
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}

.about__closing p {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.6;
  color: var(--ivory-soft);
}

.about__closing strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.12em;
  color: var(--ivory);
  text-transform: uppercase;
  font-size: 0.92em;
}

.about__closing-mark {
  color: var(--gold-bright);
  font-weight: 600;
  margin-right: 0.3rem;
}

@media (max-width: 900px) {
  .about__manifesto { grid-template-columns: 1fr; gap: 0.5rem; }
  .about__manifesto::before,
  .about__manifesto::after { display: none; }
  .about__act { border-bottom: 1px solid var(--gold-dim); }
  .about__act:last-child { border-bottom: none; }
}

/* ══════════════════════════════════════════════════
   MENTORES — Editorial layout (rediseño)
   ══════════════════════════════════════════════════ */
.mentores__profile { display: none; }

.mentores__editorial {
  max-width: 1240px;
  margin: 0 auto;
}

.mentores__hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: stretch;
  position: relative;
  margin-bottom: 4rem;
}

.mentores__hero-photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--gold-dim);
}

.mentores__hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.88) contrast(1.1);
  transition: transform 1.2s var(--ease-out-expo);
}

.mentores__hero-photo:hover img { transform: scale(1.05); }

.mentores__hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(10, 5, 7, 0.9) 100%),
    linear-gradient(120deg, rgba(168, 24, 43, 0.18), transparent 55%);
  pointer-events: none;
}

.mentores__hero-badge {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--gold-bright);
  background: rgba(10, 5, 7, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.mentores__hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}

.mentores__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0.4rem 0 1.4rem;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.mentores__tagline {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ivory-soft);
  line-height: 1.55;
  max-width: 44ch;
  margin-bottom: 2.2rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold-bright);
}

.mentores__pullquote {
  position: relative;
  max-width: 980px;
  margin: 0 auto 4rem;
  padding: 3rem 3.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(36, 16, 20, 0.6), rgba(13, 7, 9, 0.75));
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}

.mentores__pullquote-mark {
  position: absolute;
  top: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0 0 30px var(--gold-glow-2);
  opacity: 0.9;
}

.mentores__pullquote p {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  line-height: 1.5;
  color: var(--ivory);
  margin: 0;
  letter-spacing: 0.01em;
}

.mentores__pullquote-cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.mentores__story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.mentores__story-col {
  position: relative;
  padding: 2rem 1.2rem 0;
  border-top: 1px solid var(--gold-dim);
}

.mentores__story-num {
  position: absolute;
  top: -0.7rem;
  left: 0;
  background: var(--noir);
  padding-right: 0.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
}

.mentores__story-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1rem;
}

.mentores__story-col p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ivory-soft);
}

@media (max-width: 900px) {
  .mentores__hero { grid-template-columns: 1fr; gap: 2rem; }
  .mentores__hero-photo { aspect-ratio: 4/5; max-width: 380px; margin: 0 auto; }
  .mentores__story-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .mentores__pullquote { padding: 2.2rem 1.4rem; }
  .mentores__pullquote-mark { font-size: 4rem; top: -1rem; }
  .mentores__tagline { padding-left: 1rem; }
}

/* ══════════════════════════════════════════════════
   PILARES — Desktop Carousel + Mobile Stack
   ══════════════════════════════════════════════════ */
.pilares__row { display: none; }

/* Desktop carousel */
.pilares__carousel {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.pilares__viewport {
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: linear-gradient(135deg, rgba(36, 16, 20, 0.5), rgba(13, 7, 9, 0.7));
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.pilares__viewport.is-dragging { cursor: grabbing; }

.pilares__track {
  display: flex;
  transition: transform 0.85s var(--ease-out-expo);
  will-change: transform;
}

.pilares__slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.pilares__slide-photo {
  position: relative;
  overflow: hidden;
}

.pilares__slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
  transition: transform 1.2s var(--ease-out-expo);
}

.pilares__slide.is-active .pilares__slide-photo img { transform: scale(1.04); }

.pilares__slide-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 55%, rgba(10, 5, 7, 0.85) 100%),
    linear-gradient(180deg, rgba(10, 5, 7, 0.25), rgba(10, 5, 7, 0.55));
}

.pilares__slide-roman {
  position: absolute;
  top: 1.2rem;
  left: 1.4rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-bright);
  opacity: 0.85;
  z-index: 2;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.pilares__slide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.2rem;
  background: linear-gradient(145deg, rgba(36, 16, 20, 0.85), rgba(13, 7, 9, 0.95));
  position: relative;
}

.pilares__slide-step {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.pilares__slide-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ivory);
  margin-bottom: 1.2rem;
}

.pilares__slide-rule {
  width: 52px;
  height: 1px;
  background: var(--gold-bright);
  margin-bottom: 1.4rem;
  position: relative;
}
.pilares__slide-rule::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 6px; height: 6px;
  background: var(--gold-bright);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 8px var(--gold-glow-2);
}

.pilares__slide-lead {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.55;
  color: var(--ivory-soft);
  margin-bottom: 1.4rem;
}

.pilares__slide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pilares__slide-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ivory-soft);
  line-height: 1.55;
  border-bottom: 1px solid rgba(168, 24, 43, 0.1);
}
.pilares__slide-list li:last-child { border-bottom: none; }

.pilares__slide-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.1rem;
  width: 6px; height: 6px;
  background: var(--gold-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--gold-glow);
}

/* ── Slide text entrance — staggered fade-up so each change of pilar
   feels choreographed instead of an abrupt cut. Resets (opacity:0) as
   soon as a slide loses .is-active, so it replays every time you land
   back on it. ── */
.pilares__slide-step,
.pilares__slide-title,
.pilares__slide-rule,
.pilares__slide-lead,
.pilares__slide-list li {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.pilares__slide.is-active .pilares__slide-step  { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.pilares__slide.is-active .pilares__slide-title { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.pilares__slide.is-active .pilares__slide-rule  { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.pilares__slide.is-active .pilares__slide-lead  { opacity: 1; transform: translateY(0); transition-delay: 0.33s; }
.pilares__slide.is-active .pilares__slide-list li { opacity: 1; transform: translateY(0); }
.pilares__slide.is-active .pilares__slide-list li:nth-child(1) { transition-delay: 0.41s; }
.pilares__slide.is-active .pilares__slide-list li:nth-child(2) { transition-delay: 0.49s; }
.pilares__slide.is-active .pilares__slide-list li:nth-child(3) { transition-delay: 0.57s; }

@media (prefers-reduced-motion: reduce) {
  .pilares__slide-step,
  .pilares__slide-title,
  .pilares__slide-rule,
  .pilares__slide-lead,
  .pilares__slide-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Nav buttons */
.pilares__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(10, 5, 7, 0.85);
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 4;
  transition: all 0.35s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.pilares__nav:hover {
  background: var(--gold-bright);
  color: var(--noir);
  box-shadow: 0 0 20px var(--gold-glow-2);
  transform: translateY(-50%) scale(1.06);
}

.pilares__nav--prev { left: -24px; }
.pilares__nav--next { right: -24px; }

.pilares__dots {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.pilares__dot {
  width: 28px;
  height: 3px;
  background: var(--gold-dim);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.35s ease, width 0.35s ease;
}

.pilares__dot.active {
  background: var(--gold-bright);
  width: 52px;
  box-shadow: 0 0 10px var(--gold-glow-2);
}

.pilares__dot:hover { background: var(--gold); }

@media (max-width: 900px) {
  /* Mobile carousel — full-bleed image + dark overlay + text on top */
  .pilares__carousel {
    max-width: 100%;
    margin: 2rem auto 0;
    padding: 0 0.2rem;
  }

  .pilares__viewport {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    background: var(--noir);
  }

  .pilares__slide {
    display: block;
    position: relative;
    min-height: 560px;
  }

  .pilares__slide-photo {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .pilares__slide-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) contrast(1.08);
  }

  .pilares__slide.is-active .pilares__slide-photo img { transform: scale(1.03); }

  .pilares__slide-photo-overlay {
    background:
      linear-gradient(180deg, rgba(10, 5, 7, 0.35) 0%, rgba(10, 5, 7, 0.7) 45%, rgba(10, 5, 7, 0.94) 100%),
      linear-gradient(0deg, rgba(36, 16, 20, 0.25), rgba(36, 16, 20, 0.25));
  }

  .pilares__slide-roman {
    top: 0.9rem;
    left: 1.1rem;
    font-size: clamp(4.2rem, 15vw, 6.5rem);
    opacity: 0.75;
    -webkit-text-stroke: 1.2px var(--gold-bright);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
  }

  .pilares__slide-body {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 560px;
    background: transparent;
    padding: 2rem 1.4rem 2.4rem;
    justify-content: flex-end;
  }

  .pilares__slide-step {
    font-size: 0.65rem;
    letter-spacing: 0.38em;
    margin-bottom: 0.8rem;
    text-align: center;
    align-self: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  }

  .pilares__slide-title {
    font-size: clamp(1.55rem, 6.2vw, 2.1rem);
    margin-bottom: 1rem;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.8);
  }

  .pilares__slide-rule { margin-bottom: 1rem; }

  .pilares__slide-lead {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  }

  .pilares__slide-list li {
    font-size: 0.88rem;
    padding: 0.45rem 0 0.45rem 1.4rem;
    border-bottom-color: rgba(168, 24, 43, 0.22);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  }

  .pilares__slide-list li::before { top: 1rem; }

  .pilares__nav {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    top: 28%;
    background: rgba(10, 5, 7, 0.7);
  }

  .pilares__nav:hover,
  .pilares__nav:focus,
  .pilares__nav:active,
  .pilares__nav:focus-visible {
    background: rgba(10, 5, 7, 0.7);
    color: var(--gold-bright);
    box-shadow: none;
    outline: none;
    transform: translateY(-50%);
  }

  .pilares__nav--prev { left: 10px; }
  .pilares__nav--next { right: 10px; }

  .pilares__dots { margin-top: 1.4rem; gap: 0.5rem; }

  .pilares__dot { width: 22px; }
  .pilares__dot.active { width: 42px; }
}

/* ══════════════════════════════════════════════════
   TESTIMONIOS
   ══════════════════════════════════════════════════ */
.testimonios {
  position: relative;
  padding: 6rem 2rem 7rem;
  overflow: hidden;
  order: 6;
}

.testimonios__container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
}

.testimonios__header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonios__subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ivory-muted);
  max-width: 640px;
  margin: 1.4rem auto 0;
  line-height: 1.55;
}

.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.testimonio {
  position: relative;
  padding: 2.6rem 2.2rem 2rem;
  background: linear-gradient(140deg, rgba(36, 16, 20, 0.75), rgba(13, 7, 9, 0.92));
  border: 1px solid var(--gold-dim);
  backdrop-filter: blur(10px);
  transition: transform 0.6s var(--ease-out-expo), border-color 0.4s ease;
  overflow: hidden;
}

.testimonio::before,
.testimonio::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--gold-bright);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}
.testimonio::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.testimonio::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.testimonio:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}
.testimonio:hover::before,
.testimonio:hover::after { opacity: 1; }

.testimonio__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 0.5;
  color: var(--gold-bright);
  opacity: 0.7;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 20px var(--gold-glow);
}

.testimonio__text {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ivory-soft);
  margin-bottom: 2rem;
}

.testimonio__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--gold-dim);
}

.testimonio__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--noir);
  box-shadow: 0 0 14px var(--gold-glow);
  flex-shrink: 0;
}

.testimonio__author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.testimonio__author-info strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
}
.testimonio__author-info span {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ivory-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .testimonios__grid { grid-template-columns: 1fr; }
  .testimonio { padding: 2rem 1.5rem 1.6rem; }
}

/* ══════════════════════════════════════════════════
   SITE LOGO — centered masthead at top of hero
   ══════════════════════════════════════════════════ */
.site-logo {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1.6rem, 4vw, 2.8rem);
}

.site-logo__img {
  width: clamp(180px, 20vw, 320px);
  height: auto;
  filter:
    drop-shadow(0 6px 26px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 36px var(--gold-glow));
}

@media (max-width: 768px) {
  .site-logo { margin-bottom: 1.4rem; }
  .site-logo__img { width: clamp(140px, 34vw, 220px); }
}

/* ══════════════════════════════════════════════════
   CTA — "Postula ahora aquí" glow + bounce button
   ══════════════════════════════════════════════════ */
.cta-postula {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Extra breathing room under the VSL player specifically, so the CTA
   doesn't feel glued to the video frame. */
.cta-postula--hero { margin-top: 4.4rem; }

.btn-postula {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.3rem 3.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--noir);
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-bright) 45%, var(--gold-pale) 100%);
  background-size: 200% 200%;
  border-radius: 999px;
  border: 1px solid rgba(232, 122, 122, 0.5);
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(217, 48, 74, 0.55),
    0 0 0 6px rgba(217, 48, 74, 0.09),
    0 14px 34px rgba(168, 24, 43, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 8px rgba(0, 0, 0, 0.28),
    0 0 46px var(--gold-glow-2);
  animation: ctaBreathe 3.2s ease-in-out infinite, ctaGlowShift 4s ease-in-out infinite;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, letter-spacing 0.35s ease, border-color 0.35s ease;
}

/* Clipping layer for the decorative sheen/sweep — kept as its own element
   (rather than overflow:hidden on .btn-postula itself) so the ambient
   .btn-postula__glow behind it can still bleed outside the pill. Putting
   overflow:hidden directly on .btn-postula was clipping that glow flush
   to the button's edge and produced a hard-edged corner artifact. */
.btn-postula__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Glassy top highlight — reads as premium/lacquered rather than flat gold */
.btn-postula__sheen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 52%);
  mix-blend-mode: overlay;
}

/* Slow light sweep across the pill — subtle, not a cheap shimmer loop */
.btn-postula__sheen::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 35%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: btnPostulaSweep 4.2s ease-in-out infinite;
}

@keyframes btnPostulaSweep {
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

.btn-postula__glow {
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold-glow-2) 0%, transparent 70%);
  filter: blur(18px);
  z-index: -1;
  animation: ctaPulseGlow 3.2s ease-in-out infinite;
}

.btn-postula__text,
.btn-postula__arrow {
  position: relative;
  z-index: 1;
}

.btn-postula__arrow {
  display: inline-flex;
  transform: translateX(0);
  transition: transform 0.4s var(--ease-out-expo);
}

.btn-postula:hover {
  transform: translateY(-4px) scale(1.045);
  letter-spacing: 0.23em;
  border-color: var(--gold-pale);
  animation-play-state: paused, running;
  box-shadow:
    0 0 0 1px var(--gold-bright),
    0 0 0 8px rgba(217, 48, 74, 0.16),
    0 20px 48px rgba(168, 24, 43, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 8px rgba(0, 0, 0, 0.22),
    0 0 66px var(--gold-glow-2);
}

.btn-postula:hover .btn-postula__arrow { transform: translateX(6px); }

.btn-postula:active { transform: translateY(-1px) scale(1.015); }

.btn-postula:focus-visible {
  outline: 2px solid var(--gold-pale);
  outline-offset: 4px;
}

@keyframes ctaBreathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes ctaGlowShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes ctaPulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50%      { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-postula, .btn-postula__glow, .btn-postula__sheen::after { animation: none; }
}

@media (max-width: 768px) {
  .cta-postula { margin-top: 2.2rem; }
  .cta-postula--hero { margin-top: 3.2rem; }
  .btn-postula { padding: 1.1rem 2.6rem; font-size: 0.9rem; letter-spacing: 0.12em; gap: 0.55rem; }
}

/* ══════════════════════════════════════════════════
   MUJERES — background photos + neon card icons
   ══════════════════════════════════════════════════ */
.mujeres__card-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) contrast(1.08);
}

.mujeres__card-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 5, 7, 0.9), rgba(36, 16, 20, 0.74) 55%, rgba(10, 5, 7, 0.92)),
    radial-gradient(ellipse at 30% 20%, rgba(168, 24, 43, 0.18), transparent 60%);
}

.mujeres__card--1 .mujeres__card-photo { background-image: url('../images/mujeres-1.webp'); }
.mujeres__card--2 .mujeres__card-photo { background-image: url('../images/mujeres-2.webp'); }
.mujeres__card--3 .mujeres__card-photo { background-image: url('../images/mujeres-3.webp'); }

/* Keep the decorative frame, hover highlight and cursor-glow above the new photo layer */
.mujeres__card::before,
.mujeres__card::after,
.mujeres__card-glow {
  z-index: 1;
}

.mujeres__card-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.7rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 6px var(--gold-glow-2)) drop-shadow(0 0 14px var(--gold-glow));
  animation: mujeresIconPulse 2.6s ease-in-out infinite;
}

.mujeres__card-icon svg { width: 100%; height: 100%; }

@keyframes mujeresIconPulse {
  0%, 100% { filter: drop-shadow(0 0 6px var(--gold-glow-2)) drop-shadow(0 0 14px var(--gold-glow)); opacity: 0.85; }
  50%      { filter: drop-shadow(0 0 14px var(--gold-glow-2)) drop-shadow(0 0 30px var(--gold-glow)); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mujeres__card-icon { animation: none; }
}

@media (max-width: 768px) {
  .mujeres__card-icon { width: 32px; height: 32px; top: 1.1rem; right: 1.2rem; }
}

/* ══════════════════════════════════════════════════
   TESTIMONIOS — video cards
   ══════════════════════════════════════════════════ */
.testimonio--video {
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonio__video-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px var(--gold-dim), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.testimonio__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.testimonio__video-caption {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  text-align: center;
}
