/* ==========================================================================
   INDIGO BAGS — Landing estática
   CSS bundled: LUAM Framework base + tema Indigo Bags + componentes custom
   ========================================================================== */


/* ==========================================================================
   1. LUAM FRAMEWORK — Tokens base
   ========================================================================== */

:root {
  /* Colores reemplazados abajo en "THEME OVERRIDES" */

  /* Tipografía fluida */
  --text-xs: clamp(0.75rem, 0.71rem + 0.18vw, 0.875rem);
  --text-s:  clamp(0.875rem, 0.83rem + 0.22vw, 1rem);
  --text-m:  clamp(1rem, 0.94rem + 0.31vw, 1.125rem);
  --text-l:  clamp(1.25rem, 1.13rem + 0.63vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
  --text-xxl:clamp(2rem, 1.34rem + 3.3vw, 3.5rem);
  --text-hero:clamp(2.5rem, 1.62rem + 4.40vw, 4.5rem);

  /* Espaciados fluidos */
  --space-xs: clamp(0.75rem, 0.69rem + 0.31vw, 1rem);
  --space-s:  clamp(1rem, 0.88rem + 0.63vw, 1.5rem);
  --space-m:  clamp(1.5rem, 1.31rem + 0.94vw, 2.25rem);
  --space-l:  clamp(2rem, 1.75rem + 1.25vw, 3rem);
  --space-xl: clamp(3rem, 2.63rem + 1.88vw, 4.5rem);
  --space-xxl:clamp(4rem, 3.5rem + 2.5vw, 6rem);

  --pad-section-l:  var(--space-xl) 0;
  --pad-section-xl: var(--space-xxl) 0;

  --br-s: 0.5rem;
  --br-m: 1rem;
  --br-l: 1.5rem;
  --br-pill: 9999px;

  --shadow-s: 0 4px 6px -1px rgba(20,15,5,0.06);
  --shadow-m: 0 10px 25px -5px rgba(20,15,5,0.10);
  --shadow-l: 0 25px 50px -12px rgba(20,15,5,0.18);

  --container-width: 75rem;
}


/* ==========================================================================
   2. INDIGO BAGS — Theme overrides (colores + fuentes)
   ========================================================================== */

:root {
  /* Paleta: índigo profundo + kraft cálido + cuero caramelo */
  --primary:        #1B2A4E;   /* Índigo profundo (denim oscuro) */
  --primary-hover:  #111C38;
  --primary-light:  rgba(27,42,78,0.08);
  --primary-dark:   #0A1330;

  --action:         #A8754A;   /* Cuero caramelo — CTAs */
  --action-hover:   #8B5E38;

  --base:           #F5EFE2;   /* Crema kraft — fondo principal */
  --base-light:     #FFFBF2;   /* Superficie clara (cards) */
  --base-dark:      #141E36;   /* Fondo oscuro índigo-nocturno */

  --shade-light:    #E4D8BF;
  --shade-medium:   #9E8F72;
  --shade-dark:     #5A4E38;

  --text-dark:      #1A1812;   /* Texto principal, oscuro cálido */
  --text-light:     #F5EFE2;
  --text-shade:     #6B5F48;   /* Texto secundario, sepia */

  /* Acentos */
  --accent-denim:   #7691B3;
  --accent-terra:   #B8503C;

  /* Fuentes */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-script:  'Parisienne', 'Brush Script MT', cursive;
}


/* ==========================================================================
   3. RESETS
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

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

ul { list-style: none; }

::selection { background: var(--primary); color: var(--text-light); }


/* ==========================================================================
   4. LAYOUT — Contenedores, flex, grid
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-m);
  container-type: inline-size;
  container-name: base-container;
}

.container--wide { max-width: 90rem; }

.max-width-s { max-width: 37.5rem; }
.max-width-m { max-width: 50rem; }
.max-width-l { max-width: 62.5rem; }

.m-inline-auto { margin-inline: auto; }
.w-100 { width: 100%; }

.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.align-center{ align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }

[class*="gap-"] > .is-eyebrow + * {
  margin-top: calc(var(--current-gap, 0rem) * -1) !important;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.gap-xs { gap: var(--space-xs); --current-gap: var(--space-xs); }
.gap-s  { gap: var(--space-s);  --current-gap: var(--space-s); }
.gap-m  { gap: var(--space-m);  --current-gap: var(--space-m); }
.gap-l  { gap: var(--space-l);  --current-gap: var(--space-l); }
.gap-xl { gap: var(--space-xl); --current-gap: var(--space-xl); }

.pad-xs { padding: var(--space-xs); }
.pad-s  { padding: var(--space-s); }
.pad-m  { padding: var(--space-m); }
.pad-l  { padding: var(--space-l); }
.pad-xl { padding: var(--space-xl); }

.pad-section-l  { padding: var(--pad-section-l); }
.pad-section-xl { padding: var(--pad-section-xl); }


/* ==========================================================================
   5. TIPOGRAFÍA — Tamaños, clases SEO-visuales, pesos, colores
   ========================================================================== */

.text-xs  { font-size: var(--text-xs) !important;  line-height: 1.5; }
.text-s   { font-size: var(--text-s) !important;   line-height: 1.6; }
.text-m   { font-size: var(--text-m) !important;   line-height: 1.6; }
.text-l   { font-size: var(--text-l) !important;   line-height: 1.35; }
.text-xl  { font-size: var(--text-xl) !important;  line-height: 1.2;  letter-spacing: -0.01em; }
.text-xxl { font-size: var(--text-xxl) !important; line-height: 1.1;  letter-spacing: -0.015em; }
.text-hero{ font-size: var(--text-hero) !important;line-height: 1.02; letter-spacing: -0.02em; }

/* Headings visuales (no-semánticos). Ver patrón eyebrow en SKILL.md */
.is-h1, .is-h2, .is-h3, .is-h4 { font-family: var(--font-display); font-weight: 500; }

.is-h1 {
  font-size: var(--text-hero) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.02em !important;
  font-weight: 500 !important;
}

.is-h2 {
  font-size: var(--text-xxl) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
  font-weight: 500 !important;
}

.is-h3 {
  font-size: var(--text-xl) !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}

.is-h4 {
  font-size: var(--text-l) !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
}

.is-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.18em !important;
  margin-bottom: 0 !important;
  display: block !important;
  color: var(--action);
}

.weight-light   { font-weight: 300 !important; }
.weight-regular { font-weight: 400 !important; }
.weight-medium  { font-weight: 500 !important; }
.weight-semibold{ font-weight: 600 !important; }
.weight-bold    { font-weight: 700 !important; }

.text-primary { color: var(--primary); }
.text-action  { color: var(--action); }
.text-white   { color: var(--text-light); }
.text-shade   { color: var(--text-shade); }
.text-dark    { color: var(--text-dark); }
.text-center  { text-align: center; }
.uppercase    { text-transform: uppercase; }
.tracking-wide{ letter-spacing: 0.08em; }

.font-script { font-family: var(--font-script); font-weight: 400; }
.font-display{ font-family: var(--font-display); }

.italic { font-style: italic; }


/* ==========================================================================
   6. FONDOS, BORDES, SOMBRAS
   ========================================================================== */

.bg-base       { background-color: var(--base); }
.bg-base-light { background-color: var(--base-light); }
.bg-base-dark  { background-color: var(--base-dark); }
.bg-primary    { background-color: var(--primary); }
.bg-primary-light { background-color: var(--primary-light); }
.bg-action     { background-color: var(--action); }

.bg-glass {
  background-color: rgba(245,239,226,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245,239,226,0.12);
}

.br-s    { border-radius: var(--br-s); }
.br-m    { border-radius: var(--br-m); }
.br-l    { border-radius: var(--br-l); }
.br-pill { border-radius: var(--br-pill); }

.shadow-s { box-shadow: var(--shadow-s); }
.shadow-m { box-shadow: var(--shadow-m); }
.shadow-l { box-shadow: var(--shadow-l); }


/* ==========================================================================
   7. BOTONES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--br-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-m);
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
  text-align: center;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--text-light);
}
.btn--primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(27,42,78,0.45);
}

.btn--action {
  background-color: var(--action);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(168,117,74,0.28);
}
.btn--action:hover {
  background-color: var(--action-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(168,117,74,0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(245,239,226,0.35);
}
.btn--ghost:hover {
  background: rgba(245,239,226,0.08);
  border-color: rgba(245,239,226,0.6);
}

.btn--large { padding: 1.1rem 2.75rem; font-size: var(--text-m); }
.btn--small { padding: 0.6rem 1.25rem; font-size: var(--text-s); }


/* ==========================================================================
   8. MICRO-ANIMACIONES
   ========================================================================== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-fade    { animation: fadeIn 1s ease both; }

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


/* ==========================================================================
   9. COMPONENTES INDIGO BAGS
   ========================================================================== */


/* --- NAV --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,239,226,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(90,78,56,0.10);
  padding-block: 0.75rem;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-l);
  color: var(--primary);
}

.nav__brand img {
  width: 48px;
  height: 48px;
  border-radius: var(--br-pill);
}

.nav__brand-text { line-height: 1; }
.nav__brand-tag {
  display: block;
  font-family: var(--font-script);
  font-size: 0.8rem;
  color: var(--action);
  letter-spacing: 0.03em;
  margin-top: 2px;
}


/* --- HERO — editorial split 55/45 --- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--text-light);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(168,117,74,0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(118,145,179,0.15) 0%, transparent 55%),
    linear-gradient(180deg, #0F1730 0%, #1B2A4E 55%, #0F1730 100%);
  padding-block: clamp(3.5rem, 4vw + 2rem, 6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 9px);
  pointer-events: none;
  opacity: 0.7;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  align-items: center;
  position: relative;
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  align-items: center;
  text-align: center;
}

@media (min-width: 56rem) {
  .hero__content {
    align-items: flex-start;
    text-align: left;
    gap: var(--space-m);
  }
}

.hero__kicker {
  color: var(--action);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: var(--text-xs);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 300;
  color: var(--text-light);
}

.hero__headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--action);
}

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--action);
  line-height: 1;
  margin-top: -0.25rem;
}

.hero__lede {
  max-width: 42ch;
  color: rgba(245,239,226,0.82);
  font-size: var(--text-m);
  line-height: 1.55;
  font-weight: 300;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-s);
  color: rgba(245,239,226,0.6);
}

.hero__meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--action);
  box-shadow: 0 0 0 4px rgba(168,117,74,0.2);
}

/* Columna visual: imagen vertical + sello flotando */
.hero__visual {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 32rem;
  margin-inline: auto;
  border-radius: var(--br-l);
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(245,239,226,0.08);
  transform: translateZ(0);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,19,48,0.45) 100%);
  pointer-events: none;
}

.hero__seal {
  position: absolute;
  right: clamp(0.75rem, 2vw, 1.25rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  width: clamp(72px, 11vw, 110px);
  height: auto;
  border-radius: 50%;
  background: var(--base);
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  z-index: 1;
}


/* --- SPIRIT — sección editorial fusionada (filosofía + proceso) --- */

.spirit {
  background: var(--base);
  position: relative;
}

.spirit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  align-items: center;
}

@container base-container (min-width: 54rem) {
  .spirit__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.spirit__visual {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 28rem;
  width: 100%;
  margin-inline: auto;
  border-radius: var(--br-l);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(20,15,5,0.25);
}

.spirit__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spirit__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.spirit__lede {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.3;
  font-weight: 400;
  font-style: italic;
  color: var(--primary);
}

.spirit__lede em {
  font-style: normal;
  color: var(--action);
  font-weight: 500;
}

.spirit__principles {
  display: grid;
  gap: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid rgba(90,78,56,0.15);
}

.spirit__principle {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spirit__principle-label {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--action);
}

.spirit__principle-title {
  font-family: var(--font-display);
  font-size: var(--text-l);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.3;
}

.spirit__principle p {
  color: var(--text-shade);
  font-size: var(--text-m);
  line-height: 1.55;
}



/* --- LOOKBOOK (masonry con CSS columns) --- */

.masonry {
  column-count: 3;
  column-gap: var(--space-s);
}

@container base-container (max-width: 48rem) {
  .masonry { column-count: 2; }
}

@container base-container (max-width: 28rem) {
  .masonry { column-count: 1; }
}

.masonry__item {
  break-inside: avoid;
  margin-bottom: var(--space-s);
  position: relative;
  overflow: hidden;
  border-radius: var(--br-m);
  background: var(--primary-dark);
  display: block;
  cursor: zoom-in;
  transform: translateZ(0);
}

.masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry__item:hover img,
.masonry__item:focus-visible img { transform: scale(1.04); }

.masonry__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(10,19,48,0.35) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.masonry__item:hover::after { opacity: 1; }


/* --- MODAL / LIGHTBOX CAROUSEL --- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal__stage {
  position: relative;
  width: min(100%, 64rem);
  height: 100%;
  max-height: 100vh;
  padding: clamp(3.5rem, 5vw, 5rem) clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
}

.modal__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  width: 100%;
  flex: 1;
  min-height: 0;
}

.modal__img {
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  border-radius: var(--br-m);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  object-fit: contain;
  animation: modalZoom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalZoom {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.modal__caption {
  width: 100%;
  max-width: 44rem;
  color: rgba(245,239,226,0.95);
  font-family: var(--font-display);
  font-size: var(--text-l);
  line-height: 1.35;
  text-align: center;
  font-style: italic;
  font-weight: 400;
  padding: 0 var(--space-s);
}

.modal__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  flex-wrap: wrap;
  width: 100%;
}

.modal__handle {
  color: rgba(245,239,226,0.55);
  font-size: var(--text-s);
  font-family: var(--font-body);
  font-style: normal;
}

.modal__btn {
  background: var(--action);
  color: var(--text-light);
  padding: 0.65rem 1.4rem;
  border-radius: var(--br-pill);
  font-size: var(--text-s);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.modal__btn:hover {
  background: var(--action-hover);
  transform: translateY(-2px);
}

/* Controles */
.modal__close,
.modal__nav {
  position: absolute;
  background: rgba(245,239,226,0.1);
  border: 1px solid rgba(245,239,226,0.2);
  color: var(--text-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  font-size: 1.25rem;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.modal__close:hover,
.modal__nav:hover {
  background: rgba(245,239,226,0.2);
  border-color: rgba(245,239,226,0.4);
}

.modal__close {
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.modal__nav {
  top: 50%;
  transform: translateY(-50%);
}

.modal__nav:hover { transform: translateY(-50%) scale(1.05); }

.modal__nav--prev { left: 0.75rem; }
.modal__nav--next { right: 0.75rem; }

.modal__counter {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  color: rgba(245,239,226,0.5);
  letter-spacing: 0.1em;
  font-family: var(--font-body);
}

/* Oculta navegación en mobile muy pequeño — se puede swipe */
@media (max-width: 32rem) {
  .modal__caption { font-size: var(--text-m); }
  .modal__nav { width: 38px; height: 38px; }
}

/* Bloquear scroll del body cuando modal está abierto */
body.modal-open { overflow: hidden; }


/* --- A MEDIDA (sección editorial) --- */

.custom {
  background: var(--base-light);
}

.custom__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  align-items: center;
}

@container base-container (min-width: 54rem) {
  .custom__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.custom__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  align-items: flex-start;
}

.custom__content .is-h2 em {
  font-weight: 500;
}

.custom__lead {
  color: var(--text-shade);
  font-size: var(--text-m);
  line-height: 1.6;
  max-width: 48ch;
}

.custom__categories {
  font-family: var(--font-display);
  font-size: var(--text-l);
  font-style: italic;
  line-height: 1.5;
  color: var(--primary);
  max-width: 40ch;
  padding: var(--space-s) 0;
  border-top: 1px solid rgba(90,78,56,0.18);
  border-bottom: 1px solid rgba(90,78,56,0.18);
  font-weight: 300;
}

.custom__categories em {
  font-style: normal;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
}

.custom__visual {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  border-radius: var(--br-l);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(20,15,5,0.25);
}

.custom__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom__visual-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-m) var(--space-m) var(--space-s);
  background: linear-gradient(180deg, transparent 0%, rgba(10,19,48,0.85) 100%);
  color: rgba(245,239,226,0.95);
  font-family: var(--font-display);
  font-size: var(--text-m);
  line-height: 1.4;
  font-weight: 400;
}


/* --- CTA FINAL --- */

.cta-final {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168,117,74,0.28) 0%, transparent 55%),
    linear-gradient(180deg, var(--primary) 0%, var(--base-dark) 100%);
  color: var(--text-light);
  overflow: hidden;
  position: relative;
}

.cta-final__seal {
  width: clamp(80px, 10vw, 120px);
  height: auto;
  border-radius: var(--br-pill);
  background: var(--base);
  padding: 8px;
}


/* --- FOOTER --- */

.footer {
  background: var(--base-dark);
  color: rgba(245,239,226,0.6);
  padding-block: var(--space-m);
  font-size: var(--text-xs);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-m);
  color: var(--text-light);
}

.footer__brand .font-script { margin-left: 0.25em; color: var(--action); }

.footer a { color: rgba(245,239,226,0.85); font-weight: 500; }
.footer a:hover { color: var(--action); }


/* --- Utilidad: "seal" decorativo --- */

.seal-wrap {
  display: inline-block;
  position: relative;
}

.seal-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(168,117,74,0.5);
  pointer-events: none;
}


/* --- Divisor ornamental --- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--action);
  margin-block: var(--space-m);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}


/* ==========================================================================
   10. FIXES ESPECÍFICOS
   ========================================================================== */

/* Evitar gap vertical exagerado en secciones oscuras */
.text-white.text-shade { color: rgba(245,239,226,0.72) !important; }

/* Focus ring accesible */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
  border-radius: var(--br-s);
}
