/* ============================================================
   FONT FACE — coloca los archivos en design/fonts/
   Descarga Manrope en: https://fonts.google.com/specimen/Manrope
   Exporta: woff2, pesos 200 300 400 500 600 700 800
   ============================================================ */
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-ExtraLight.woff2') format('woff2'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-Light.woff2')      format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-Regular.woff2')    format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-Medium.woff2')     format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-SemiBold.woff2')   format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-Bold.woff2')       format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-ExtraBold.woff2')  format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --nav-h: 6.185rem; /* height of sticky nav - used for viewport calculations */
  --nav-bg: #292666;
  --primary:                  #141143;
  --primary-container:        #292759;
  --primary-fixed:            #e3dfff;
  --primary-fixed-dim:        #c4c1fd;
  --inverse-primary:          #c4c1fd;
  --secondary:                #5c5b7f;
  --secondary-container:      #d6d3fd;
  --secondary-fixed:          #e3dfff;
  --secondary-fixed-dim:      #c6c2ec;
  --on-secondary-fixed-variant:#454366;
  --on-secondary-fixed:       #191838;
  --tertiary:                 #3b0005;
  --tertiary-container:       #62000d;
  --tertiary-fixed:           #ffdad7;
  --tertiary-fixed-dim:       #ffb3af;
  --on-tertiary-fixed:        #410006;
  --on-tertiary-fixed-variant:#8d141e;
  --on-tertiary-container:    #f76463;
  --surface:                  #fbf8ff;
  --surface-dim:              #d9d8eb;
  --surface-bright:           #fbf8ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low:    #f4f2ff;
  --surface-container:        #edecff;
  --surface-container-high:   #e8e6f9;
  --surface-container-highest:#e2e1f3;
  --surface-variant:          #e2e1f3;
  --surface-tint:             #5b598e;
  --on-surface:               #1a1b27;
  --on-surface-variant:       #47464f;
  --on-background:            #1a1b27;
  --background:               #fbf8ff;
  --inverse-surface:          #2e2f3d;
  --inverse-on-surface:       #f1efff;
  --outline:                  #787680;
  --outline-variant:          #c8c5d0;
  --error:                    #ba1a1a;
  --error-container:          #ffdad6;
  --on-error:                 #ffffff;
  --on-error-container:       #93000a;
  --on-primary:               #ffffff;
  --on-primary-container:     #918fc8;
  --on-primary-fixed:         #171446;
  --on-primary-fixed-variant: #434174;
  --on-secondary:             #ffffff;
  --on-tertiary:              #ffffff;

  /* Custom design tokens */
  --surface-detail:           #D7D9C4;
  --soft-detail:              #C8C7D9;
  --wine-red:                 #8d141e;

  /* Border radius (from tailwind config) */
  --radius:    0.125rem;
  --radius-lg: 0.25rem;
  --radius-xl: 0.5rem;
  --radius-2xl:1rem;
  --radius-3xl:1.5rem;
  --radius-full:0.75rem;

  /* Transform variables */
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate:      0;
  --tw-skew-x:      0;
  --tw-skew-y:      0;
  --tw-scale-x:     1;
  --tw-scale-y:     1;

  /* Gradient variables */
  --tw-gradient-from: transparent;
  --tw-gradient-via:  transparent;
  --tw-gradient-to:   transparent;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--nav-bg);
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: var(--nav-h) 0 0;
  overflow-x: hidden;
  background: var(--background);
  background-clip: content-box;
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
svg { display: inline-block; vertical-align: middle; }

html::before,
body::before {
  content: none;
  position: fixed;
  top: -4px;
  left: 0;
  right: auto;
  width: calc(100vw + 48px);
  z-index: 2147483647;
  height: 0;
  background: var(--nav-bg);
  pointer-events: none;
}

/* ============================================================
   ICON SVG — Material Symbols replacements
   ============================================================ */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-lg  { width: 1.5rem; height: 1.5rem; }
.icon-xl  { width: 2rem;   height: 2rem; }
.icon-2xl { width: 6rem;   height: 6rem; }

/* ============================================================
   COMPONENT — MOSAIC BG & CAROUSEL
   ============================================================ */
.mosaic-bg {
  background-image: radial-gradient(circle at 2px 2px, #c8c5d0 1px, transparent 0);
  background-size: 40px 40px;
}

/* ============================================================
   HOME MEMORY INTRO
   ============================================================ */
.memory-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
  background: transparent;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  transition: opacity 1.35s ease, visibility 1.35s ease;
}

.memory-intro-seen .memory-intro {
  display: none;
}

.memory-intro::before,
.memory-intro::after,
.memory-intro__mist {
  content: '';
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.memory-intro::before {
  background-image: radial-gradient(circle, rgba(20,17,67,0.08) 0 1px, transparent 1.5px);
  background-size: 58px 58px;
  opacity: 0.08;
  animation: memory-drift 9s linear infinite;
}

.memory-intro::after {
  background:
    radial-gradient(ellipse at 24% 72%, rgba(255,255,255,0.74), transparent 34%),
    radial-gradient(ellipse at 68% 18%, rgba(255,255,255,0.58), transparent 36%);
  filter: blur(18px);
  opacity: 0.18;
}

.memory-intro__mist {
  background:
    linear-gradient(108deg, transparent 0%, rgba(255,255,255,0.52) 34%, transparent 63%),
    linear-gradient(18deg, transparent 10%, rgba(215,217,196,0.18) 42%, transparent 78%);
  opacity: 0.22;
  transform: translateX(-4%);
  animation: memory-mist 6.8s ease-in-out infinite alternate;
}

.memory-intro__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: clamp(300px, 48vh, 430px);
  padding: clamp(1.6rem, 3.2vw, 3rem) max(1.5rem, calc((100vw - 980px) / 2));
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(280px, 1.28fr);
  align-items: center;
  gap: clamp(1.5rem, 4.5vw, 4rem);
  background:
    linear-gradient(100deg, rgba(255,255,255,0.64), rgba(251,248,255,0.48) 48%, rgba(250,248,243,0.54));
  border-top: 1px solid rgba(255,255,255,0.62);
  border-bottom: 1px solid rgba(20,17,67,0.06);
  box-shadow:
    0 18px 54px rgba(20,17,67,0.075),
    inset 0 1px 0 rgba(255,255,255,0.58);
  backdrop-filter: blur(16px) saturate(1.04);
  -webkit-backdrop-filter: blur(16px) saturate(1.04);
  pointer-events: auto;
}

.memory-intro__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(141,20,30,0.045) 51%, transparent 52%),
    radial-gradient(ellipse at 22% 50%, rgba(255,255,255,0.42), transparent 34%);
  pointer-events: none;
}

.memory-intro__visual {
  position: relative;
  min-height: clamp(210px, 30vw, 330px);
  display: grid;
  place-items: center;
  margin: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.975);
  animation:
    memory-arrive 1.35s 0.18s ease forwards,
    memory-float 4.8s 1.55s ease-in-out infinite;
}

.memory-intro__halo {
  position: absolute;
  width: min(46%, 170px);
  height: 9%;
  bottom: 16%;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(20,17,67,0.16), rgba(20,17,67,0.03) 52%, transparent 72%);
  filter: blur(16px);
  transform: scaleX(1.12);
  opacity: 0.55;
}

.memory-intro__balloon {
  position: relative;
  z-index: 1;
  width: min(66%, 245px);
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(20,17,67,0.11));
}

.memory-intro__quote {
  position: relative;
  margin: 0;
  max-width: 560px;
  padding-left: clamp(1rem, 1.6vw, 1.45rem);
  color: var(--primary);
  opacity: 0;
  transform: translateY(18px);
  animation: memory-arrive 1.35s 0.52s ease forwards;
}

.memory-intro__quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.45rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(141,20,30,0.72), rgba(215,217,196,0.42));
}

.memory-intro__quote p {
  margin: 0;
  font-size: clamp(0.95rem, 1.42vw, 1.22rem);
  font-weight: 500;
  line-height: 1.66;
  letter-spacing: -0.02em;
}

.memory-intro__quote p + p {
  margin-top: clamp(0.85rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #292759;
}

.memory-intro__quote span {
  font-style: italic;
  font-weight: 800;
  color: var(--wine-red);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(141,20,30,0.25);
}

.memory-intro__skip {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  pointer-events: auto;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(20,17,67,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.46);
  color: rgba(20,17,67,0.58);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.memory-intro__close {
  position: absolute;
  top: clamp(0.75rem, 1.7vw, 1.15rem);
  right: clamp(0.85rem, 1.7vw, 1.25rem);
  z-index: 3;
  pointer-events: auto;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20,17,67,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  color: rgba(20,17,67,0.52);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.2s, background 0.2s, transform 0.2s, border-color 0.2s;
}

.memory-intro__close:hover {
  color: var(--wine-red);
  background: rgba(255,255,255,0.78);
  border-color: rgba(141,20,30,0.18);
  transform: translateY(-1px);
}

.memory-intro__skip:hover {
  color: var(--wine-red);
  background: rgba(255,255,255,0.76);
  transform: translateY(-1px);
}

.memory-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.memory-intro.is-leaving .memory-intro__visual {
  animation: memory-lift-away 1.25s ease forwards;
}

.memory-intro.is-leaving .memory-intro__quote {
  animation: memory-dissolve 1.15s ease forwards;
}

.memory-intro.is-hidden {
  display: none;
}

@keyframes memory-arrive {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes memory-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.006); }
}

@keyframes memory-lift-away {
  to {
    opacity: 0;
    transform: translateY(-24px) scale(1.012);
  }
}

@keyframes memory-dissolve {
  to {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(2px);
  }
}

@keyframes memory-drift {
  to { transform: translate3d(28px, -18px, 0); }
}

@keyframes memory-mist {
  to { transform: translateX(4%) translateY(-1.5%); }
}

@media (max-width: 760px) {
  .memory-intro {
    padding: 0;
    align-items: center;
  }

  .memory-intro__inner {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: auto;
    padding: 1.35rem 1.2rem 1.5rem;
    gap: 0.85rem;
    text-align: left;
  }

  .memory-intro__visual {
    min-height: clamp(145px, 38vw, 205px);
  }

  .memory-intro__balloon {
    width: min(42vw, 165px);
  }

  .memory-intro__halo {
    bottom: 9%;
    width: min(32vw, 125px);
  }

  .memory-intro__quote {
    padding-left: 1rem;
  }

  .memory-intro__quote p {
    font-size: clamp(0.9rem, 3.75vw, 1rem);
    line-height: 1.6;
  }

  .memory-intro__skip {
    right: 1rem;
    bottom: 0.85rem;
  }

  .memory-intro__close {
    top: 0.85rem;
    right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memory-intro,
  .memory-intro *,
  .memory-intro::before,
  .memory-intro::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.carousel-container {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-container::-webkit-scrollbar { display: none; }

.slide-content {
  transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.8s ease;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.block        { display: block; }
.inline-block { display: inline-block; }
.hidden       { display: none; }

.flex-col  { flex-direction: column; }
.flex-row  { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }

.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }

.self-start { align-self: flex-start; }
.mt-auto    { margin-top: auto; }

/* ============================================================
   POSITION
   ============================================================ */
.sticky   { position: sticky; }
.fixed    { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }

.top-0    { top: 0; }
.left-0   { left: 0; }
.right-0  { right: 0; }
.bottom-0 { bottom: 0; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-4    { top: 1rem; }
.left-4   { left: 1rem; }
.right-4  { right: 1rem; }
.top-12   { top: 3rem; }
.right-12 { right: 3rem; }

.z-0  { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ============================================================
   SIZING
   ============================================================ */
.w-full  { width: 100%; }
.h-full  { height: 100%; }
.w-10    { width: 2.5rem; }
.h-10    { height: 2.5rem; }
.w-12    { width: 3rem; }
.h-12    { height: 3rem; }
.w-20    { width: 5rem; }
.h-1     { height: 0.25rem; }
.w-32    { width: 8rem; }
.w-40    { width: 10rem; }
.w-64    { width: 16rem; }
.h-64    { height: 16rem; }
.h-48    { height: 12rem; }

.w-1\/3  { width: 33.333333%; }
.w-3\/4  { width: 75%; }
.h-3\/5  { height: 60%; }

.h-\[600px\]  { height: 600px; }
.h-\[2px\]    { height: 2px; }
.min-h-\[870px\] { min-height: 870px; }

.max-w-screen-2xl { max-width: 1536px; }
.max-w-xl  { max-width: 36rem; }
.max-w-md  { max-width: 28rem; }
.max-w-sm  { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }

.min-w-\[85\%\] { min-width: 85%; }
.min-w-\[65\%\] { min-width: 65%; }
.min-w-\[45\%\] { min-width: 45%; }

/* ============================================================
   OVERFLOW & SCROLL SNAP
   ============================================================ */
.overflow-hidden   { overflow: hidden; }
.overflow-x-auto   { overflow-x: auto; }
.object-cover      { object-fit: cover; }

.snap-x.snap-mandatory { scroll-snap-type: x mandatory; }
.snap-start             { scroll-snap-align: start; }

/* ============================================================
   SPACING — PADDING
   ============================================================ */
.p-2  { padding: 0.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-3  { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-8  { padding-left: 2rem;    padding-right: 2rem; }
.px-10 { padding-left: 2.5rem;  padding-right: 2.5rem; }
.px-12 { padding-left: 3rem;    padding-right: 3rem; }

.py-1  { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-4  { padding-top: 1rem;    padding-bottom: 1rem; }
.py-20 { padding-top: 5rem;    padding-bottom: 5rem; }
.py-24 { padding-top: 3rem;    padding-bottom: 3rem; }

.pb-1  { padding-bottom: 0.25rem; }
.pb-8  { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pt-8  { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }

/* ============================================================
   SPACING — MARGIN
   ============================================================ */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4    { margin-bottom: 1rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-8    { margin-bottom: 2rem; }
.mb-16   { margin-bottom: 4rem; }
.mt-8    { margin-top: 2rem; }
.mt-16   { margin-top: 4rem; }

.space-x-2 > * + * { margin-left: 0.5rem; }

/* ============================================================
   SPACING — GAP
   ============================================================ */
.gap-2  { gap: 0.5rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* ============================================================
   GRID TEMPLATES
   ============================================================ */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ============================================================
   TYPOGRAPHY — SIZE
   ============================================================ */
.text-\[10px\] { font-size: 10px; line-height: 1rem; }
.text-xs  { font-size: 0.75rem;   line-height: 1rem; }
.text-sm  { font-size: 0.875rem;  line-height: 1.25rem; }
.text-lg  { font-size: 1.125rem;  line-height: 1.75rem; }
.text-xl  { font-size: 1.25rem;   line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem;    line-height: 2rem; }
.text-4xl { font-size: 2.25rem;   line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem;   line-height: 1; }
.text-7xl { font-size: 4.5rem;    line-height: 1; }
.text-9xl { font-size: 8rem;      line-height: 1; }

/* ============================================================
   TYPOGRAPHY — WEIGHT
   ============================================================ */
.font-light     { font-weight: 300; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black     { font-weight: 900; }

/* ============================================================
   TYPOGRAPHY — FAMILY
   ============================================================ */
.font-body,
.font-headline,
.font-label,
.font-\[\'Manrope\'\] { font-family: 'Manrope', system-ui, sans-serif; }

/* ============================================================
   TYPOGRAPHY — LINE HEIGHT
   ============================================================ */
.leading-\[1\.1\]  { line-height: 1.1; }
.leading-tight     { line-height: 1.25; }
.leading-relaxed   { line-height: 1.625; }

/* ============================================================
   TYPOGRAPHY — TRACKING
   ============================================================ */
.tracking-tighter      { letter-spacing: -0.05em; }
.tracking-tight        { letter-spacing: -0.025em; }
.tracking-wider        { letter-spacing: 0.05em; }
.tracking-widest       { letter-spacing: 0.1em; }
.tracking-\[0\.2em\]  { letter-spacing: 0.2em; }

/* ============================================================
   TYPOGRAPHY — MISC
   ============================================================ */
.uppercase          { text-transform: uppercase; }
.text-center        { text-align: center; }
.underline          { text-decoration-line: underline; }
.decoration-2       { text-decoration-thickness: 2px; }
.underline-offset-4 { text-underline-offset: 4px; }
.decoration-\[\#8d141e\] { text-decoration-color: #8d141e; }

/* ============================================================
   COLORS — TEXT
   ============================================================ */
.text-white                    { color: #ffffff; }
.text-primary                  { color: var(--primary); }
.text-secondary                { color: var(--secondary); }
.text-on-surface               { color: var(--on-surface); }
.text-on-background            { color: var(--on-background); }
.text-secondary-fixed          { color: var(--secondary-fixed); }
.text-surface-container-high   { color: var(--surface-container-high); }
.text-surface-container-highest{ color: var(--surface-container-highest); }
.text-on-tertiary-fixed-variant{ color: var(--on-tertiary-fixed-variant); }
.text-\[\#8d141e\]             { color: #8d141e; }
.text-\[\#C8C7D9\]             { color: #C8C7D9; }
.text-\[\#D7D9C4\]             { color: #D7D9C4; }

/* ============================================================
   COLORS — BACKGROUND (solid)
   ============================================================ */
.bg-white                    { background-color: #ffffff; }
.bg-background               { background-color: var(--background); }
.bg-primary                  { background-color: var(--primary); }
.bg-secondary-fixed          { background-color: var(--secondary-fixed); }
.bg-surface-container-lowest { background-color: var(--surface-container-lowest); }
.bg-surface-container-low    { background-color: var(--surface-container-low); }
.bg-surface-container-high   { background-color: var(--surface-container-high); }
.bg-\[\#8d141e\]             { background-color: #8d141e; }
.bg-\[\#69678C\]             { background-color: #69678C; }
.bg-\[\#D7D9C4\]             { background-color: #D7D9C4; }
.bg-\[\#C8C7D9\]             { background-color: #C8C7D9; }
.bg-\[\#292759\]             { background-color: #292759; }

/* ============================================================
   COLORS — BACKGROUND (with opacity)
   ============================================================ */
.bg-white\/70  { background-color: rgba(255,255,255,0.70); }
.bg-white\/30  { background-color: rgba(255,255,255,0.30); }
.bg-white\/20  { background-color: rgba(255,255,255,0.20); }
.bg-white\/10  { background-color: rgba(255,255,255,0.10); }
.bg-\[\#8d141e\]\/10            { background-color: rgba(141,20,30,0.10); }
.bg-on-tertiary-fixed-variant\/10 { background-color: rgba(141,20,30,0.10); }

/* ============================================================
   GRADIENTS
   (Tailwind chains these via CSS vars; we implement the same)
   ============================================================ */
.bg-gradient-to-tr {
  background-image: linear-gradient(
    to top right,
    var(--tw-gradient-from),
    var(--tw-gradient-via, var(--tw-gradient-to)),
    var(--tw-gradient-to)
  );
}
.bg-gradient-to-t {
  background-image: linear-gradient(
    to top,
    var(--tw-gradient-from),
    var(--tw-gradient-via, var(--tw-gradient-to)),
    var(--tw-gradient-to)
  );
}
.from-primary      { --tw-gradient-from: #141143; }
.from-primary\/90  { --tw-gradient-from: rgba(20,17,67,0.90); }
.via-primary-container\/90 { --tw-gradient-via: rgba(41,39,89,0.90); }
.via-primary\/20   { --tw-gradient-via: rgba(20,17,67,0.20); }
.to-transparent    { --tw-gradient-to: transparent; }

/* ============================================================
   OPACITY
   ============================================================ */
.opacity-10  { opacity: 0.10; }
.opacity-20  { opacity: 0.20; }
.opacity-40  { opacity: 0.40; }
.opacity-70  { opacity: 0.70; }
.opacity-90  { opacity: 0.90; }
.opacity-100 { opacity: 1.00; }

/* ============================================================
   BORDER
   ============================================================ */
.border        { border-width: 1px;  border-style: solid; }
.border-b      { border-bottom-width: 1px;  border-bottom-style: solid; }
.border-b-2    { border-bottom-width: 2px;  border-bottom-style: solid; }
.border-t      { border-top-width: 1px;     border-top-style: solid; }
.border-\[20px\] { border-width: 20px; border-style: solid; }

.border-white               { border-color: #ffffff; }
.border-white\/10           { border-color: rgba(255,255,255,0.10); }
.border-white\/20           { border-color: rgba(255,255,255,0.20); }
.border-white\/30           { border-color: rgba(255,255,255,0.30); }
.border-white\/40           { border-color: rgba(255,255,255,0.40); }
.border-primary\/10         { border-color: rgba(20,17,67,0.10); }
.border-outline-variant\/30 { border-color: rgba(200,197,208,0.30); }
.border-\[\#D7D9C4\]\/30   { border-color: rgba(215,217,196,0.30); }
.border-\[\#8d141e\]        { border-color: #8d141e; }

/* ============================================================
   BORDER RADIUS  (values from tailwind config extend)
   ============================================================ */
.rounded        { border-radius: var(--radius); }
.rounded-lg     { border-radius: var(--radius-lg); }
.rounded-xl     { border-radius: var(--radius-xl); }
.rounded-2xl    { border-radius: var(--radius-2xl); }
.rounded-3xl    { border-radius: var(--radius-3xl); }
.rounded-full   { border-radius: var(--radius-full); }
.rounded-bl-\[100px\] { border-bottom-left-radius: 100px; }

/* ============================================================
   SHADOWS
   ============================================================ */
.shadow-xl  { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.10); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.hover\:shadow-primary\/5:hover { box-shadow: 0 25px 50px -12px rgba(20,17,67,0.05); }
.hover\:shadow-xl:hover  { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* ============================================================
   FILTERS
   ============================================================ */
.grayscale          { filter: grayscale(100%); }
.brightness-90      { filter: brightness(0.90); }
.backdrop-blur-\[20px\] { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* ============================================================
   TRANSFORM HELPERS
   (Tailwind 3 uses a combined transform via CSS vars)
   ============================================================ */
.transform,
.-skew-x-12,
.translate-x-24,
.-translate-y-4 {
  transform:
    translateX(var(--tw-translate-x))
    translateY(var(--tw-translate-y))
    rotate(var(--tw-rotate))
    skewX(var(--tw-skew-x))
    skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x))
    scaleY(var(--tw-scale-y));
}
.-skew-x-12    { --tw-skew-x: -12deg; }
.translate-x-24 { --tw-translate-x: 6rem; }
.-translate-y-4 { --tw-translate-y: -1rem; }

/* ============================================================
   TRANSITIONS
   ============================================================ */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-300  { transition-duration: 300ms; }
.duration-500  { transition-duration: 500ms; }
.duration-700  { transition-duration: 700ms; }
.duration-1000 { transition-duration: 1000ms; }
.duration-\[2s\] { transition-duration: 2000ms; }

/* ============================================================
   HOVER STATES
   ============================================================ */
.hover\:scale-105:hover        { transform: scale(1.05); }
.hover\:scale-125:hover        { transform: scale(1.25); }
.hover\:brightness-110:hover   { filter: brightness(1.10); }
.hover\:bg-primary:hover       { background-color: var(--primary); }
.hover\:bg-white\/10:hover     { background-color: rgba(255,255,255,0.10); }
.hover\:bg-\[\#8d141e\]:hover  { background-color: #8d141e; }
.hover\:bg-\[\#c8c9b3\]:hover  { background-color: #c8c9b3; }
.hover\:text-white:hover               { color: #ffffff; }
.hover\:text-\[\#8d141e\]:hover        { color: #8d141e; }
.hover\:text-\[\#D7D9C4\]:hover        { color: #D7D9C4; }
.hover\:translate-x-1:hover            { transform: translateX(0.25rem); }
.hover\:opacity-100:hover              { opacity: 1; }
.hover\:border-white:hover             { border-color: #ffffff; }

/* ============================================================
   ACTIVE STATES
   ============================================================ */
.active\:scale-95:active { transform: scale(0.95); }

/* ============================================================
   GROUP HOVER
   ============================================================ */
.group:hover .group-hover\:scale-110   { transform: scale(1.10); }
.group:hover .group-hover\:scale-125   { transform: scale(1.25); }
.group:hover .group-hover\:grayscale-0 { filter: grayscale(0); }
.group:hover .group-hover\:-translate-y-4 { transform: translateY(-1rem); }
.group:hover .group-hover\:text-\[\#8d141e\] { color: #8d141e; }
.group:hover .group-hover\:shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ============================================================
   RESPONSIVE — md (≥768px)
   ============================================================ */
@media (min-width: 768px) {
  .md\:flex        { display: flex; }
  .md\:block       { display: block; }
  .md\:hidden      { display: none; }
  .md\:flex-row    { flex-direction: row; }
  .md\:items-end   { align-items: flex-end; }
  .md\:min-w-\[65\%\] { min-width: 65%; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   RESPONSIVE — lg (≥1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .lg\:px-12       { padding-left: 3rem; padding-right: 3rem; }
  .lg\:text-7xl    { font-size: 4.5rem; line-height: 1; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:min-w-\[45\%\] { min-width: 45%; }
}

/* ============================================================
   DARK MODE (preserves original dark: classes)
   ============================================================ */
/* ============================================================
   FULL-WIDTH SLIDER
   ============================================================ */

/* ── Container & track ── */
.fullslider-section {
  height: calc(45dvh - var(--nav-h) / 2);
  min-height: 324px;
  position: relative;
  overflow: hidden;
}

/*
  Track is 800% wide (8 slides × 100%).
  We move it via --fs-slide CSS custom property set by JS.
  translateX(-n × 12.5%) = slide n × one-viewport-width.
*/
.fs-track {
  display: flex;
  width: calc(7 * 100%);
  height: 100%;
  transform: translateX(calc(var(--fs-slide, 0) * (-100% / 7)));
  transition: transform 0.72s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.fs-slide {
  width: calc(100% / 7); /* 7 slides */
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  font-family: 'Manrope', system-ui, sans-serif;
}

/* ── Slide backgrounds ── */
.fs-dark    { background: linear-gradient(135deg, #0e0d30 0%, var(--primary-container) 100%); }
.fs-cream   { background: var(--surface-detail); }
.fs-deep    { background: linear-gradient(135deg, #08071f 0%, #1a1845 100%); }
.fs-highlight { background: linear-gradient(135deg, #0d0b20 0%, #1e060a 100%); }
.fs-course--primary { background: linear-gradient(135deg, #0e0d30 0%, #1d1b52 100%); }
.fs-course--indigo  { background: linear-gradient(135deg, #2e2c50 0%, #4a4870 100%); }
.fs-course--lavender { background: var(--soft-detail); }

/* ── Inner layouts ── */
.fs-inner {
  position: absolute;
  inset: 0;
  display: flex;
  transform: translateX(calc(2vw));
  align-items: center;
  padding: 0 max(2rem, 6vw);
  gap: 2.5rem;
}
.fs-inner--stats {
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  padding: 0 max(2rem, 6vw);
}
.fs-inner--highlight {
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  max-width: 880px;
  padding: 0 max(2rem, 6vw);
}

/* ── Labels ── */
.fs-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wine-red);
  background: rgba(141, 20, 30, 0.14);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.fs-label--dark {
  color: var(--primary);
  background: rgba(20, 17, 67, 0.10);
}

/* ── Headlines ── */
.fs-headline {
  font-size: clamp(1.25rem, 2.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: white;
  max-width: 560px;
  margin-bottom: 0.75rem;
}
.fs-headline--dark { color: var(--primary); }
.fs-headline--lg   { font-size: clamp(1.375rem, 2.4vw, 2.5rem); }

/* ── Body text ── */
.fs-body {
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  max-width: 480px;
}
.fs-body--dark { color: var(--secondary); }

/* ── Text block ── */
.fs-text-block { flex: 1; max-width: 640px; }
.fs-text-block--center { max-width: 100%; }
.fs-text-block--center .fs-headline {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Decorative large number ── */
.fs-deco { flex-shrink: 0; pointer-events: none; user-select: none; }
.fs-deco--bg {
  position: absolute;
  right: max(1rem, 4vw);
  top: 50%;
  transform: translateY(-50%);
}
.fs-deco-number {
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
}
.fs-cream .fs-deco-number { color: rgba(20, 17, 67, 0.055); }

/* ── Stats grid (slide 3) ── */
.fs-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.fs-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  border-top: 3px solid var(--wine-red);
  text-align: left;
}
.fs-stat-number {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1;
}
.fs-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* ── Split slide (slide 4) ── */
.fs-split .fs-inner { padding: 0; gap: 0; }
.fs-split-left {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem max(2rem, 5vw);
  background: var(--primary);
}
.fs-split-left .fs-headline { color: white; }
.fs-split-left .fs-body     { color: rgba(255, 255, 255, 0.65); }
.fs-split-right {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: var(--surface-container-low);
}

/* Pattern cards inside right panel */
.fs-pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  width: 100%;
  max-width: 420px;
}
.fp-card {
  padding: 0.65rem 1rem;
  background: white;
  border-radius: 0.625rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(20, 17, 67, 0.07);
  border-left: 3px solid var(--wine-red);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fp-card:hover { transform: translateX(4px); box-shadow: 0 6px 20px rgba(20,17,67,0.12); }

/* ── Highlight slide (slide 5) ── */
.fs-highlight-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: white;
  background: var(--wine-red);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.fs-highlight-client {
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.fs-highlight-results {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.fs-result { display: flex; flex-direction: column; gap: 0.15rem; }
.fs-result span {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--wine-red);
  line-height: 1;
}
.fs-result small {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: normal;
  line-height: 1.3;
}

/* ── Course slides (6-8) ── */
.fs-course-content { max-width: 780px; width: 100%; }
.fs-course-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.fs-course-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.fs-course-badge--dark {
  color: var(--secondary);
  border-color: rgba(20, 17, 67, 0.20);
}
.fs-course-name {
  font-size: clamp(1.25rem, 2.2vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: white;
  margin-bottom: 0.6rem;
}
.fs-course-name--dark { color: var(--primary); }

.fs-course-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wine-red);
  background: rgba(141, 20, 30, 0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

/* ── CTA button ── */
.fs-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.9rem 2.25rem;
  background: var(--wine-red);
  color: white;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.fs-cta:hover {
  background: #7a1119;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(141,20,30,0.35);
}
.fs-cta--dark { background: var(--primary); }
.fs-cta--dark:hover { background: #1d1b52; box-shadow: 0 8px 24px rgba(20,17,67,0.35); }

/* ── New slide backgrounds ── */
.fs-lavender    { background: linear-gradient(135deg, #C2B7D4 0%, #DBD1E9 100%); }
.fs-deep-purple { background: linear-gradient(135deg, #2F2D52 0%, #424067 100%); }

/* ── "Ver más" link ── */
.fs-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wine-red);
  transition: gap 0.2s, opacity 0.2s;
}
.fs-link:hover { gap: 0.65rem; opacity: 0.85; }
.fs-link--dark { color: var(--primary); }

/* ── Bullet list inside slides ── */
.fs-list {
  list-style: none;
  margin: 0.5rem 0 0.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.fs-list li {
  font-size: clamp(0.75rem, 1.05vw, 0.875rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  padding-left: 1.1rem;
  position: relative;
}
.fs-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
}

/* ── Pendiente / Próximamente badge ── */
.fs-pending {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  background: rgba(92, 91, 127, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}

/* ── CTA row inside slides (link + button side by side) ── */
.fs-cta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

/* ── WhatsApp floating button ── */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
}
.wa-float svg {
  width: 1.875rem;
  height: 1.875rem;
  flex-shrink: 0;
}

/* ── Navigation arrows ── */
.fslider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.fslider-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.07);
}
.fslider-arrow--prev { left: 1.5rem; }
.fslider-arrow--next { right: 1.5rem; }

/* ── Slide counter ── */
.fs-counter {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  z-index: 20;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8125rem;
}
#fs-current-num { color: white; font-size: 1.125rem; }
.fs-counter-sep { margin: 0 0.1rem; }

/* ── Dots ── */
.fslider-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 20;
}
.fslider-dot,
.fs-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.30);
  border: none;
  cursor: pointer;
  transition: background 0.25s, width 0.3s;
  padding: 0;
}
.fslider-dot.fs-active,
.fs-dot.fs-dot--active { background: white; width: 24px; }

/* ── Progress bar ── */
.fslider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 20;
}
.fslider-progress-bar {
  height: 100%;
  background: var(--wine-red);
  width: 0%;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .fs-inner { padding: 0 3rem; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .fullslider-section {
    height: clamp(280px, 72vw, 310px);
    min-height: 0;
  }

  .fs-inner          { padding: 0 1.5rem; gap: 2rem; }
  .fs-inner--stats   { padding: 0 1.5rem; }
  .fs-inner--highlight { padding: 0 1.5rem; }
  .fs-deco           { display: none; }
  .fs-deco--bg       { display: none; }
  .fs-stats-grid     { grid-template-columns: 1fr; gap: 1rem; }
  .fs-highlight-results { gap: 1.5rem; }
  .fslider-arrow     { display: none; }
  .fs-counter        { top: 1rem; right: 1rem; }
  /* Split slide: stack vertically */
  .fs-split .fs-inner { flex-direction: column; }
  .fs-split-left,
  .fs-split-right    { flex: none; width: 100%; height: 50%; }
  .fs-split-left     { padding: 2rem 1.5rem 1rem; }
  .fs-split-right    { padding: 1rem 1.5rem 2rem; }
  .fs-pattern-grid   { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  .fp-card           { font-size: 0.75rem; padding: 0.75rem; }
}
@media (max-width: 480px) {
  .fullslider-section {
    height: clamp(260px, 70vw, 292px);
  }

  .fs-inner {
    transform: none;
    padding: 1.1rem 1.25rem 2rem;
  }

  .fs-label {
    margin-bottom: 0.45rem;
  }

  .fs-headline {
    margin-bottom: 0.55rem;
  }

  .fs-body {
    line-height: 1.45;
  }

  .fs-list {
    gap: 0.18rem;
    margin-top: 0.3rem;
  }

  .fs-link {
    margin-top: 0.55rem;
  }

  .fslider-dots {
    bottom: 0.8rem;
  }

  .fs-stats-grid { grid-template-columns: 1fr 1fr; }
  .fs-stat:last-child { grid-column: span 2; }
  .fs-pattern-grid { grid-template-columns: 1fr 1fr; }
  .fs-highlight-results { gap: 1rem; }
}

.dark .dark\:bg-slate-950    { background-color: #020617; }
.dark .dark\:bg-slate-950\/70 { background-color: rgba(2,6,23,0.70); }
.dark .dark\:text-white      { color: #ffffff; }
.dark .dark\:text-slate-400  { color: #94a3b8; }

/* ============================================================
   MISSING UTILITIES
   ============================================================ */
.space-y-8 > * + * { margin-top: 2rem; }
.h-px               { height: 1px; }
.bg-outline-variant\/30 { background-color: rgba(200,197,208,0.30); }

/* text with opacity */
.text-primary\/60    { color: rgba(20,17,67,0.60); }
.text-white\/20      { color: rgba(255,255,255,0.20); }
.text-white\/60      { color: rgba(255,255,255,0.60); }
.text-white\/80      { color: rgba(255,255,255,0.80); }
.text-surface-container-high\/90 { color: rgba(232,230,249,0.90); }
.hover\:bg-\[\#c8c9b3\]:hover { background-color: #c8c9b3; }

/* ============================================================
   HERO MEDIA — layered image / video interaction
   ============================================================ */

/*
  Three layers share the same absolute footprint.
  Opacity is the only property animated — no layout shifts.
*/
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* isolate stacking context so layers don't bleed out */
  isolation: isolate;
}

.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* separate transitions per layer allow asymmetric timing */
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity; /* hint GPU compositing — avoids repaint */
}

/* Layer 1 — visible by default */
#hero-start  { opacity: 1; filter: grayscale(30%); }

/* Layer 2 — video, hidden until hover */
#hero-video  { opacity: 0; }

/* Layer 3 — final frame, hidden until video ends */
#hero-end    { opacity: 0; }

/* Gradient always on top for text legibility */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    var(--primary) 0%,
    rgba(41, 39, 89, 0.88) 45%,
    transparent 100%
  );
  pointer-events: none; /* let clicks pass through to section */
}

/* ── Interaction states (set by JS via data-state attribute) ── */

/* Playing: image fades out, video fades in */
.hero-media[data-state="playing"] #hero-start { opacity: 0; }
.hero-media[data-state="playing"] #hero-video { opacity: 1; }

/* Finished: video fades out, final frame fades in */
.hero-media[data-state="finished"] #hero-start { opacity: 0; }
.hero-media[data-state="finished"] #hero-video { opacity: 0; transition-duration: 0.3s; }
.hero-media[data-state="finished"] #hero-end   { opacity: 1; }

/* ============================================================
   HERO SECTION — exact viewport fit
   ============================================================ */
.hero-section {
  position: relative;
  height: calc(100dvh - var(--nav-h));
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Scroll-down cue — Norman: feedback signals discoverable content */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.40);
  cursor: pointer;
  animation: cue-bounce 2.4s ease-in-out infinite;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}
.scroll-cue:hover { color: rgba(255,255,255,0.75); }
.scroll-cue span {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@keyframes cue-bounce {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   CAROUSEL SECTION — exact viewport fit
   ============================================================ */
.carousel-section {
  height: calc(100dvh - var(--nav-h));
  min-height: 520px;
  overflow: hidden;
  background: rgba(255,255,255,0.30);
  display: flex;
  flex-direction: column;
}

.carousel-header {
  flex-shrink: 0;
  padding: 2.5rem 2rem 1.5rem;
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.carousel-track {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.carousel-track .carousel-container {
  height: 100%;
}

.carousel-slide {
  height: 100%;
}

.carousel-card {
  height: 100%;
}

/* ============================================================
   HERO ESPECIALIZACIÓN
   ============================================================ */
.hero-espec {
  position: relative;
  width: 100%;
  min-height: clamp(460px, 32vh, 440px);
  background: linear-gradient(108deg, #fdfaf5 0%, #faf7fc 55%, #f4f2ff 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(20, 17, 67, 0.07);
}

/* Dot texture muy sutil heredada del lenguaje de la web */
.hero-espec::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(20,17,67,0.045) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.hero-espec__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  min-height: clamp(490px, 32vh, 440px);
  max-width: 100%;
}

/* ── Zona de texto — izquierda ── */
.hero-espec__text {
  flex: 0 0 57%;
  max-width: 57%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(2rem, 4vh, 3.5rem) max(2rem, 6vw) clamp(2rem, 4vh, 3.5rem) max(2.5rem, 7vw);
  position: relative;
  z-index: 2;
}

/* ── Zona de imagen — derecha ── */
.hero-espec__image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  overflow: hidden;
}

.hero-espec__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  /* Tratamiento institucional: levemente desaturado, cálido */
  filter: sepia(12%) contrast(0.92) brightness(1.04) saturate(0.88);
  /* Fade suave desde la izquierda — efecto de disolución */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.25) 12%,
    rgba(0,0,0,0.72) 28%,
    black 48%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.25) 12%,
    rgba(0,0,0,0.72) 28%,
    black 48%
  );
}

/* ── Label tipo badge ── */
.hero-espec__label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
  background: var(--wine-red);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

/* ── Título principal ── */
.hero-espec__title {
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--primary);
  max-width: 580px;
}

/* ── Subtítulo ── */
.hero-espec__subtitle {
  font-size: clamp(0.9375rem, 1.6vw, 1.3125rem);
  font-weight: 600;
  font-style: italic;
  color: var(--wine-red);
  line-height: 1.3;
}

/* ── Descripción ── */
.hero-espec__desc {
  font-size: clamp(0.8rem, 1.1vw, 0.9375rem);
  font-weight: 500;
  color: var(--secondary);
  line-height: 1.6;
  max-width: 480px;
}

/* ── Frase destacada dentro de la descripción ── */
.hero-espec__desc strong {
  font-weight: 700;
  color: var(--primary);
}

.hero-espec__desc em {
  font-style: normal;
  color: var(--wine-red);
}

/* ── Strip de datos (modalidad) ── */
.hero-espec__meta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--secondary);
  background: rgba(20, 17, 67, 0.05);
  border: 1px solid rgba(20, 17, 67, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 0.5rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* ── Fila: botón + tagline ── */
.hero-espec__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* ── Botón WhatsApp — consulta inscripción ── */
.hero-espec__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--primary);
  color: white;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-espec__cta:hover {
  background: #0e0c2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 17, 67, 0.28);
}
.hero-espec__cta svg {
  color: #4dd97a;
  flex-shrink: 0;
}

/* ── Tagline institucional inferior ── */
.hero-espec__tagline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.03em;
  opacity: 0.75;
}

.hero-espec__tagline::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wine-red);
  flex-shrink: 0;
  opacity: 0.6;
  border-radius: 999px;
}

/* ── Responsive — tablet ── */
@media (max-width: 900px) {
  .hero-espec__text  { flex: 0 0 65%; max-width: 65%; }
  .hero-espec__image { width: 45%; }
}

/* ── Responsive — mobile ── */
@media (max-width: 640px) {
  .hero-espec {
    min-height: auto;
  }
  .hero-espec__inner {
    flex-direction: column;
    min-height: auto;
  }
  .hero-espec__text {
    flex: none;
    max-width: 100%;
    padding: 2rem 1.5rem 1.25rem;
    gap: 0.65rem;
  }
  .hero-espec__image {
    position: relative;
    width: 100%;
    height: 220px;
    /* En mobile: fade de arriba en lugar de izquierda */
    order: -1;
  }
  .hero-espec__image img {
    object-position: center 20%;
    -webkit-mask-image: linear-gradient(
      to bottom,
      black 30%,
      rgba(0,0,0,0.6) 70%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      black 30%,
      rgba(0,0,0,0.6) 70%,
      transparent 100%
    );
  }
  .hero-espec__title {
    font-size: clamp(1.375rem, 6vw, 1.75rem);
  }
}

/* ============================================================
   NAV — base, logo, hamburger
   ============================================================ */
.sticky.top-0 > .flex.justify-between.items-center {
  position: relative;
  width: 100%;
  max-width: none;
  height: var(--nav-h);
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-top: 0;
  padding-bottom: 0;
  gap: 0;
  background: var(--nav-bg);
  overflow: visible;
}

nav.sticky.top-0 {
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--nav-bg);
  border-bottom: 0;
  isolation: isolate;
  overflow: visible;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: var(--nav-bg);
  overflow: hidden;
}

.nav-logo::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 34px;
  background: linear-gradient(90deg, rgba(41, 38, 102, 0), var(--nav-bg) 82%);
  pointer-events: none;
}

.nav-logo-img {
  position: relative;
  z-index: 1;
  height: 100%;
  max-height: none;
  width: auto;
  margin: 0;
  display: block;
  clip-path: none;
  object-fit: contain;
  object-position: left center;
}

.nav-toggle-btn {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: var(--secondary-fixed);
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  background: none;
}
.nav-toggle-btn:hover { background: rgba(227, 223, 255, 0.12); }

/* ============================================================
   NAV DESKTOP DROPDOWN SYSTEM (nd-)
   ============================================================ */

/* ── Top-level item wrapper ── */
nav.sticky.top-0.w-full.z-50 {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding-top: 0;
  background: var(--nav-bg) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 -10px 0 var(--nav-bg), 0 1px 0 rgba(255,255,255,0.05), 0 8px 40px rgba(20, 17, 67, 0.32);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

nav.sticky.top-0.w-full.z-50.nav--scrolled {
  background: rgba(18, 15, 58, 0.98) !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 -10px 0 rgba(18, 15, 58, 0.98), 0 1px 0 rgba(255,255,255,0.04), 0 12px 48px rgba(10, 8, 40, 0.55) !important;
}

nav.sticky.top-0.w-full.z-50::before {
  content: none;
  position: fixed;
  left: 0;
  right: auto;
  width: calc(100vw + 48px);
  top: 0;
  height: 0;
  background: var(--nav-bg);
  pointer-events: none;
  z-index: 0;
}

nav.sticky.top-0.w-full.z-50::after {
  content: '';
  position: absolute;
  left: 0;
  right: auto;
  width: calc(100vw + 48px);
  bottom: -2px;
  height: 2px;
  background: var(--nav-bg);
  pointer-events: none;
  z-index: 0;
}

nav.sticky.top-0.w-full.z-50 > .flex {
  position: relative;
  z-index: 1;
}

.nd-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* ── Trigger (button with chevron) and plain link ── */
.nd-trigger,
.nd-trigger-label,
.nd-trigger-text,
.nd-toggle,
.nd-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 3.1rem;
  padding: 0.52rem 0.68rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.024em;
  color: var(--secondary-fixed);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0.45rem;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.1;
  position: relative;
}

.nd-trigger-row {
  display: inline-flex;
  align-items: center;
  min-height: 3.1rem;
  border-radius: 0.45rem;
  transition: color 0.15s, background 0.15s;
}

.nd-trigger-label,
.nd-trigger-text {
  min-height: 3.1rem;
  padding: 0.52rem 0.28rem 0.52rem 0.68rem;
  justify-content: center;
  text-align: center;
}

.nd-two-line {
  display: inline-block;
  line-height: 1.08;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.018em;
}

.nd-trigger-text {
  cursor: default;
  user-select: none;
}

.nd-toggle {
  min-height: 3.1rem;
  min-width: 1.8rem;
  padding: 0.52rem 0.52rem 0.52rem 0.18rem;
  justify-content: center;
}

.nd-trigger:hover,
.nd-trigger-row:hover,
.nd-link:hover,
.nd-item.is-open > .nd-trigger,
.nd-item.is-open > .nd-trigger-row,
.nd-trigger.nav-active,
.nd-trigger-label.nav-active,
.nd-link.nav-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Active indicator — bottom bar */
.nd-link.nav-active::after,
.nd-trigger.nav-active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.25rem;
  height: 2px;
  background: var(--surface-detail);
  border-radius: 2px;
  opacity: 0.9;
}

.nd-trigger-row:hover .nd-trigger-label,
.nd-trigger-row:hover .nd-trigger-text,
.nd-trigger-row:hover .nd-toggle,
.nd-item.is-open > .nd-trigger-row .nd-trigger-label,
.nd-item.is-open > .nd-trigger-row .nd-trigger-text,
.nd-item.is-open > .nd-trigger-row .nd-toggle,
.nd-trigger.nav-active,
.nd-trigger-label.nav-active {
  color: #ffffff;
}

/* Contacto styled as a pill CTA */
.nd-link--cta {
  background: linear-gradient(135deg, #8d141e 0%, #6b0f17 100%);
  color: white !important;
  font-weight: 700;
  min-height: 2.8rem;
  padding: 0.52rem 1.1rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 14px rgba(141, 20, 30, 0.4), 0 1px 0 rgba(255,255,255,0.12) inset;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.nd-link--cta::after { display: none; }
.nd-link--cta:hover {
  background: linear-gradient(135deg, #a5181f 0%, #7d1218 100%) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(141, 20, 30, 0.5), 0 1px 0 rgba(255,255,255,0.12) inset !important;
}

.nd-link--cta.nav-active {
  color: white !important;
}

/* Chevron icon */
.nd-chevron {
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.15s;
  flex-shrink: 0;
}
.nd-trigger:hover .nd-chevron,
.nd-trigger-row:hover .nd-chevron,
.nd-item.is-open > .nd-trigger .nd-chevron,
.nd-item.is-open > .nd-trigger-row .nd-chevron,
.nd-trigger.nav-active .nd-chevron {
  opacity: 1;
}
.nd-item.is-open > .nd-trigger .nd-chevron,
.nd-item.is-open > .nd-trigger-row .nd-chevron {
  transform: rotate(180deg);
}

/* ── First-level dropdown panel ── */
.nd-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 250px;
  max-width: 340px;
  background: #fff;
  border-radius: 1.125rem;
  box-shadow: 0 0 0 1px rgba(20,17,67,0.06), 0 4px 16px rgba(20,17,67,0.1), 0 20px 48px rgba(20,17,67,0.16);
  border: 1px solid rgba(20,17,67,0.06);
  padding: 0.35rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
  pointer-events: none;
}
/* Wide variant for dropdowns with sub-menus (e.g. Formaciones) */
.nd-dropdown--wide { min-width: 310px; max-width: 400px; }

.nd-item.is-open > .nd-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Puente invisible que cubre el gap entre trigger y dropdown
   Evita que el mouseleave se dispare al cruzar el espacio */
.nd-dropdown::after {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}

/* Small arrow pointing up */
.nd-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: #fff;
  border-left: 1px solid rgba(20,17,67,0.07);
  border-top: 1px solid rgba(20,17,67,0.07);
  z-index: 1;
}

/* ── Links inside first-level dropdown ── */
.nd-dropdown > li > a {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  line-height: 1.4;
  white-space: normal;
}
.nd-dropdown > li > a:hover {
  background: rgba(141, 20, 30, 0.07);
  color: var(--wine-red);
}

/* Separator */
.nd-sep {
  height: 1px;
  background: rgba(20,17,67,0.07);
  margin: 0.3rem 0.5rem;
  list-style: none;
}

/* ── Sub-item (has nested sub-dropdown) ── */
.nd-subitem {
  position: relative;
  list-style: none;
}

/* Button for items that have a sub-dropdown */
.nd-subtrigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
  line-height: 1.4;
  gap: 0.5rem;
  white-space: normal;
}

.nd-subtrigger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 0.5rem;
  transition: background 0.12s, color 0.12s;
}

.nd-subtrigger-label,
.nd-subtrigger-text,
.nd-subtoggle {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  text-decoration: none;
  transition: color 0.12s;
  line-height: 1.4;
}

.nd-subtrigger-label,
.nd-subtrigger-text {
  flex: 1;
  text-align: left;
  white-space: normal;
}

.nd-subtrigger-text {
  cursor: default;
  user-select: none;
}

.nd-subtoggle {
  flex-shrink: 0;
  justify-content: center;
  cursor: pointer;
  padding-left: 0.5rem;
  min-width: 2.4rem;
}

.nd-subtrigger:hover,
.nd-subtrigger-row:hover,
.nd-subitem.is-open > .nd-subtrigger,
.nd-subitem.is-open > .nd-subtrigger-row {
  background: rgba(141, 20, 30, 0.07);
  color: var(--wine-red);
}

.nd-subtrigger-row:hover .nd-subtrigger-label,
.nd-subtrigger-row:hover .nd-subtrigger-text,
.nd-subtrigger-row:hover .nd-subtoggle,
.nd-subitem.is-open > .nd-subtrigger-row .nd-subtrigger-label,
.nd-subitem.is-open > .nd-subtrigger-row .nd-subtrigger-text,
.nd-subitem.is-open > .nd-subtrigger-row .nd-subtoggle {
  color: var(--wine-red);
}

/* Chevron pointing right for sub-items */
.nd-subchevron {
  flex-shrink: 0;
  opacity: 0.4;
  transition: transform 0.15s, opacity 0.15s;
}
.nd-subitem.is-open > .nd-subtrigger .nd-subchevron,
.nd-subitem.is-open > .nd-subtrigger-row .nd-subchevron {
  transform: rotate(-90deg);
  opacity: 1;
}

/* ── Second-level sub-dropdown ── */
.nd-subdropdown {
  position: absolute;
  left: calc(100% + 0.25rem);
  top: -0.4rem;
  min-width: 230px;
  max-width: 310px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(20,17,67,0.06), 0 12px 40px rgba(20,17,67,0.13);
  border: 1px solid rgba(20,17,67,0.07);
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 201;
  pointer-events: none;
}
.nd-subitem.is-open > .nd-subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* Puente lateral que cubre el gap entre sub-item y sub-dropdown */
.nd-subdropdown::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 0;
  bottom: 0;
  width: 0.5rem;
}
.nd-subdropdown li { list-style: none; }
.nd-subdropdown a {
  display: block;
  padding: 0.575rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  line-height: 1.4;
  white-space: normal;
}
.nd-subdropdown a:hover {
  background: rgba(141, 20, 30, 0.07);
  color: var(--wine-red);
}

/* ============================================================
   NAV MOBILE PANEL (nm-)
   ============================================================ */
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.25rem 2rem 1.5rem;
  flex-direction: column;
  border-top: 1px solid rgba(215,217,196,0.24);
  box-shadow: 0 12px 32px rgba(20,17,67,0.09);
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-menu.nav-open { display: flex; }

/* ── Mobile item wrapper ── */
.nm-item {
  border-bottom: 1px solid rgba(200,197,208,0.2);
}
.nm-item:last-child { border-bottom: none; }

/* ── Mobile plain link (no sub-menu) ── */
.nm-link {
  display: block;
  padding: 0.9rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--secondary-fixed);
  text-decoration: none;
  transition: color 0.18s;
}
.nm-link:hover,
.nm-link.nav-active { color: #ffffff; }

/* ── Mobile trigger (has sub-menu) ── */
.nm-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--secondary-fixed);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.18s;
}
.nm-trigger:hover,
.nm-trigger.is-open,
.nm-trigger.nav-active { color: #ffffff; }

.nm-chevron {
  flex-shrink: 0;
  opacity: 0.4;
  transition: transform 0.22s ease, opacity 0.18s;
}
.nm-trigger.is-open .nm-chevron {
  transform: rotate(180deg);
  opacity: 0.85;
}

/* ── Mobile split-trigger: texto navega, chevron abre submenú ── */
.nm-trigger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nm-trigger-label,
.nm-trigger-text {
  flex: 1;
  padding: 0.9rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--secondary-fixed);
  text-decoration: none;
  transition: color 0.18s;
  line-height: 1.3;
}

.nm-trigger-label:hover,
.nm-trigger-label.nav-active { color: #ffffff; }

.nm-trigger-text { cursor: default; user-select: none; }
.nm-trigger-text:hover { color: #ffffff; }

.nm-toggle {
  flex-shrink: 0;
  padding: 0.75rem 0 0.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--secondary-fixed);
  transition: color 0.18s;
  min-width: 44px;
  justify-content: flex-end;
}

.nm-toggle:hover,
.nm-toggle.is-open { color: #ffffff; }

.nm-toggle .nm-chevron { opacity: 0.4; }

.nm-toggle.is-open .nm-chevron {
  transform: rotate(180deg);
  opacity: 0.85;
}

/* ── Mobile first sub-menu ── */
.nm-sub {
  padding: 0 0 0.5rem 0.875rem;
  overflow: hidden;
}

/* Links inside nm-sub */
.nm-sub > .nm-sub-link {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary-fixed-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,197,208,0.14);
  transition: color 0.15s;
  line-height: 1.4;
}
.nm-sub > .nm-sub-link:last-of-type { border-bottom: none; }
.nm-sub > .nm-sub-link:hover { color: #ffffff; }

/* ── Mobile sub-item that has its own sub-sub-menu ── */
.nm-sub-item {
  border-bottom: 1px solid rgba(200,197,208,0.14);
}
.nm-sub-item:last-child { border-bottom: none; }

.nm-sub2-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary-fixed-dim);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
  line-height: 1.4;
  gap: 0.5rem;
}

.nm-sub2-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.nm-sub2-label,
.nm-sub2-text {
  flex: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary-fixed-dim);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.4;
}

.nm-sub2-text {
  cursor: default;
  user-select: none;
}

.nm-subtoggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  padding: 0.5rem 0 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--secondary-fixed-dim);
  cursor: pointer;
}

.nm-sub2-trigger:hover,
.nm-sub2-trigger.is-open,
.nm-sub2-row:hover .nm-sub2-label,
.nm-sub2-row:hover .nm-sub2-text,
.nm-sub2-row:hover .nm-subtoggle,
.nm-subtoggle.is-open { color: #ffffff; }
.nm-sub2-trigger.is-open .nm-chevron,
.nm-subtoggle.is-open .nm-chevron { transform: rotate(180deg); opacity: 0.85; }

/* ── Mobile second sub-menu ── */
.nm-sub2 {
  padding: 0 0 0.375rem 0.875rem;
}
.nm-sub2 a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(227, 223, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,197,208,0.1);
  transition: color 0.15s;
  line-height: 1.4;
}
.nm-sub2 a:last-child { border-bottom: none; }
.nm-sub2 a:hover { color: #ffffff; }

/* ── Responsive: hamburger + desktop nav visibility ── */
.nd-desktop-nav {
  display: none;
}

@media (min-width: 1280px) {
  .nd-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: clamp(0.25rem, 0.6vw, 0.85rem);
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin-left: auto;
    padding-inline: clamp(0.7rem, 1.25vw, 1.55rem) clamp(1rem, 2vw, 2rem);
    position: relative;
    z-index: 2;
  }
  .nav-toggle-btn { display: none; }
}

@media (min-width: 1280px) and (max-width: 1399px) {
  .sticky.top-0 > .flex.justify-between.items-center {
    padding-left: 0;
    padding-right: 0.85rem;
    gap: 0;
  }

  .nd-desktop-nav {
    gap: 0.28rem;
    padding-inline: 0.65rem 0.4rem;
  }

  .nd-trigger,
  .nd-trigger-label,
  .nd-trigger-text,
  .nd-toggle,
  .nd-link {
    padding-inline: 0.54rem;
    font-size: 0.78rem;
    letter-spacing: 0.018em;
  }
}

@media (max-width: 1279px) {
  .sticky.top-0 > .flex.justify-between.items-center {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0.85rem;
    gap: 0.7rem;
  }

  .nav-logo {
    order: 2;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100vw - 4.35rem);
    overflow: hidden;
  }

  .nav-logo::after {
    content: none;
  }

  .nav-logo-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    max-height: none;
  }

  .sticky.top-0 > .flex.justify-between.items-center > .flex.items-center {
    order: 1;
    flex: 0 0 auto;
    width: 2.65rem;
    position: relative;
    z-index: 3;
  }

  .nav-toggle-btn {
    display: flex;
    flex: 0 0 2.65rem;
    width: 2.65rem;
    height: 2.65rem;
    margin-left: 0;
    color: #fff;
    background: rgba(255,255,255,0.08);
    position: relative;
    z-index: 3;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 5.115rem;
  }

  .sticky.top-0 > .flex.justify-between.items-center {
    padding-left: 0;
    padding-right: 0.75rem;
    gap: 0.55rem;
  }

  .nav-toggle-btn {
    flex-basis: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .sticky.top-0 > .flex.justify-between.items-center > .flex.items-center {
    width: 2.5rem;
  }

  .nav-logo-img {
    height: 100%;
    width: auto;
    max-width: calc(100vw - 4.45rem);
    max-height: none;
  }

  .nav-mobile-menu {
    background: var(--nav-bg);
    padding: 0.4rem 1.25rem 1.35rem;
  }
}

@media (min-width: 1280px) {
  #nav-menu {
    display: none !important;
  }
}

/* ============================================================
   CAROUSEL: "Pre-Inscribirse" flotante en base del slide
   ============================================================ */
.fs-preinscribir-float {
  position: absolute;
  bottom: max(1.5rem, 2.5vh);
  left: max(2rem, 6vw);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: white;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.fs-preinscribir-float:hover {
  background: #0e0d30;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 17, 67, 0.35);
}

/* "Ver más" inline dentro del párrafo */
.fs-link--inline {
  display: inline-flex;
  margin-top: 0;
  vertical-align: middle;
  font-size: inherit;
  font-size: 0.8rem;
}

/* ============================================================
   SITE FOOTER — El Plano Institucional
   ============================================================ */

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #141143 0%, #09071e 100%);
  font-family: 'Manrope', system-ui, sans-serif;
}

/* Crimson accent line — top edge */
.site-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(to right, #8d141e 0%, rgba(141, 20, 30, 0.35) 55%, transparent 100%);
}

/* Ghost watermark — same pattern as .fs-deco-number */
.footer-ghost {
  position: absolute;
  right: -1%;
  bottom: 2.5rem;
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

/* Inner wrapper */
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (min-width: 768px) {
  .footer-inner { padding: 0 3.5rem; }
}

/* ── Upper zone: Brand + CTA ── */
.footer-upper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .footer-upper {
    flex-direction: row;
    align-items: flex-start;
    gap: 6rem;
  }
}

/* Brand block — uses the established border-left: 3px motif */
.footer-brand {
  flex: 1 1 auto;
  border-left: 3px solid #8d141e;
  padding-left: 1.75rem;
  max-width: 28rem;
}

.footer-wordmark {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.125rem;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(200, 199, 217, 0.5);
  margin-bottom: 2rem;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.2);
}
.footer-location-sep { color: rgba(255, 255, 255, 0.1); }

/* CTA card */
.footer-cta-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.75rem;
  padding: 2rem 2.25rem;
  background: rgba(255, 255, 255, 0.025);
  align-self: flex-start;
}

@media (min-width: 768px) {
  .footer-cta-card {
    align-self: center;
    min-width: 270px;
  }
}

.footer-cta-eyebrow {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(141, 20, 30, 0.7);
}

.footer-cta-text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #D7D9C4;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8d141e;
  transition: gap 0.2s ease;
  cursor: pointer;
}
.footer-cta-btn:hover { gap: 0.875rem; }

/* ── Lower zone: three columns ── */
.footer-lower {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
  .footer-lower { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.footer-col-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(141, 20, 30, 0.65);
  margin-bottom: 1.5rem;
}

/* Nav links */
.footer-nav-list {
  display: flex;
  flex-direction: column;
}

.footer-nav-link {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(200, 199, 217, 0.5);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s ease, padding-left 0.2s ease;
  cursor: pointer;
}
.footer-nav-link:last-child { border-bottom: none; }
.footer-nav-link:hover { color: #D7D9C4; padding-left: 0.3rem; }

/* Contact */
.footer-contact-address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(200, 199, 217, 0.48);
  margin-bottom: 1rem;
}

.footer-contact-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(200, 199, 217, 0.48);
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
  cursor: pointer;
}
.footer-contact-link:hover { color: #D7D9C4; }

/* Social links */
.footer-social-list { display: flex; flex-direction: column; }

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.footer-social-link:last-child { border-bottom: none; }
.footer-social-link:hover { opacity: 1; }

.footer-social-abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: rgba(200, 199, 217, 0.54);
  width: 1.625rem;
  height: 1.625rem;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.footer-social-abbr::before {
  content: '';
  width: 1.05rem;
  height: 1.05rem;
  background: currentColor;
  -webkit-mask: var(--footer-social-icon) center / contain no-repeat;
  mask: var(--footer-social-icon) center / contain no-repeat;
}

.footer-social-link:nth-child(1) .footer-social-abbr {
  --footer-social-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M7 2.8h10A4.2 4.2 0 0 1 21.2 7v10a4.2 4.2 0 0 1-4.2 4.2H7A4.2 4.2 0 0 1 2.8 17V7A4.2 4.2 0 0 1 7 2.8Z'/%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M8.2 12a3.8 3.8 0 1 0 7.6 0a3.8 3.8 0 0 0-7.6 0Z'/%3E%3Cpath fill='black' d='M17.35 6.25a1.1 1.1 0 1 0 0.01 0Z'/%3E%3C/svg%3E");
}

.footer-social-link:nth-child(2) .footer-social-abbr {
  --footer-social-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M15.4 8.1h2.4V4.2c-.42-.06-1.86-.18-3.54-.18c-3.5 0-5.9 2.14-5.9 6.08v3.42H4.5v4.36h3.86V24h4.72v-6.12h3.7l.59-4.36h-4.29v-2.98c0-1.26.35-2.44 2.32-2.44Z'/%3E%3C/svg%3E");
}

.footer-social-link:nth-child(3) .footer-social-abbr {
  --footer-social-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M23.5 6.2a3 3 0 0 0-2.1-2.13C19.55 3.58 12 3.58 12 3.58s-7.55 0-9.4.49A3 3 0 0 0 .5 6.2C0 8.08 0 12 0 12s0 3.92.5 5.8a3 3 0 0 0 2.1 2.13c1.85.49 9.4.49 9.4.49s7.55 0 9.4-.49a3 3 0 0 0 2.1-2.13c.5-1.88.5-5.8.5-5.8s0-3.92-.5-5.8ZM9.58 15.54V8.46L15.86 12l-6.28 3.54Z'/%3E%3C/svg%3E");
}

.footer-social-link:nth-child(4) .footer-social-abbr {
  --footer-social-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M16.5 2.1c.35 2.45 1.72 3.91 4.08 4.07v3.52a7.36 7.36 0 0 1-4.02-1.22v6.77c0 3.43-2.1 5.95-5.55 6.47c-3.17.48-6.16-1.28-6.99-4.12c-1.02-3.49 1.27-6.9 4.93-7.35c.7-.08 1.35-.04 2 .13v3.72a2.7 2.7 0 0 0-1.9-.18c-1.28.36-2.05 1.54-1.78 2.82c.25 1.2 1.37 2 2.62 1.88c1.42-.14 2.31-1.15 2.31-2.69V2.1h4.3Z'/%3E%3C/svg%3E");
}

.footer-social-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(200, 199, 217, 0.48);
  transition: color 0.2s ease;
}

.footer-social-link:hover .footer-social-abbr { color: rgba(141, 20, 30, 0.65); }
.footer-social-link:hover .footer-social-name  { color: #D7D9C4; }

/* ── Memory strip ── */
.footer-memory-strip {
  min-height: 0.9cm;
  max-height: none;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0;
  overflow: visible;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: rgba(215, 217, 196, 0.48);
      background-color: rgba(215, 217, 196, 0.08);
}

.footer-memory-balloon {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 0.72;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.16));
}

.footer-memory-text {
  display: block;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .footer-memory-strip {
    min-height: 0.9cm;
    max-height: none;
    gap: 0.45rem;
    align-items: flex-start;
    padding: 0.3rem 0;
    overflow: visible;
  }

  .footer-memory-balloon {
    width: 1.15rem;
    height: 1.15rem;
  }

  .footer-memory-text {
    font-size: 0.625rem;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* ── Legal bar ── */
.footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
}

@media (min-width: 640px) {
  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bar-copy {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.2);
}

.footer-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-bar-link {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s ease;
  cursor: pointer;
}
.footer-bar-link:hover { color: rgba(255, 255, 255, 0.5); }

.footer-bar-sep { font-size: 0.5rem; color: rgba(255, 255, 255, 0.1); }
