/* ==========================================================================
   KORALVIA — Estilos compartidos
   Saca tu potencial a la superficie
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --navy: #1B2A4A;
  --navy-deep: #111C33;
  --navy-soft: #2A3D63;
  --gold: #B8860B;
  --gold-light: #D4A843;
  --gold-pale: #F5EAD0;
  --cream: #FDF8EF;
  --cream-dark: #F6EEDD;
  --white: #FFFFFF;

  --ink: #1B2A4A;
  --text: #46506A;
  --muted: #6E778B;
  --line: rgba(27, 42, 74, 0.1);
  --line-light: rgba(255, 255, 255, 0.12);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(27, 42, 74, 0.05), 0 2px 8px rgba(27, 42, 74, 0.05);
  --shadow: 0 4px 12px rgba(27, 42, 74, 0.05), 0 14px 34px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 10px 24px rgba(27, 42, 74, 0.08), 0 28px 60px rgba(27, 42, 74, 0.16);
  --shadow-gold: 0 10px 30px rgba(184, 134, 11, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --container: 1200px;
  --gutter: 20px;
}

/* ---------- 2. Reset y base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 8vw, 4.75rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h3 { font-size: clamp(1.45rem, 3vw, 1.7rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }

em { font-style: italic; }
h1 em, h2 em { color: var(--gold); font-style: italic; }

::selection { background: var(--gold-light); color: var(--navy-deep); }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding: 80px 0; position: relative; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--tight { padding: 56px 0; }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { font-size: 1.075rem; color: var(--muted); margin: 0; }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.7); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.section-head:not(.section-head--left) .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--gold-light); }

.grid { display: grid; gap: 24px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; grid-template-columns: 1fr; }

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- 4. Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.28);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  background: #A57709;
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gold);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--navy);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s, height 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(27, 42, 74, 0.96);
  box-shadow: 0 8px 30px rgba(10, 18, 36, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.site-header.is-scrolled::after { opacity: 1; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1;
  transition: color 0.3s;
}
.logo::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--gold-light);
  transition: transform 0.4s var(--ease);
}
.logo:hover { color: var(--gold-pale); }
.logo:hover::after { transform: translateY(-6px); }

/* Hamburguesa */
.nav-toggle {
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle-box { position: relative; width: 24px; height: 16px; }
.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.45s var(--ease), opacity 0.25s, top 0.45s var(--ease), width 0.3s;
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 7px; width: 70%; }
.nav-toggle-box span:nth-child(3) { top: 14px; }
.nav-toggle:hover .nav-toggle-box span:nth-child(2) { width: 100%; }
.nav-open .nav-toggle-box span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-open .nav-toggle-box span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-open .nav-toggle-box span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Navegación (móvil primero: panel lateral) */
.main-nav {
  position: fixed;
  top: 0; right: 0;
  z-index: 1;
  width: min(380px, 100%);
  height: 100dvh;
  padding: calc(var(--header-h) + 16px) 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  background: var(--navy-deep);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.55s var(--ease), visibility 0s 0.55s;
}
.nav-open .main-nav {
  transform: none;
  visibility: visible;
  transition: transform 0.55s var(--ease), visibility 0s;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 16, 30, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0s 0.4s;
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity 0.4s; }

.nav-list { list-style: none; display: flex; flex-direction: column; }
.nav-list > li {
  border-bottom: 1px solid var(--line-light);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.nav-open .nav-list > li { opacity: 1; transform: none; }
.nav-open .nav-list > li:nth-child(1) { transition-delay: 0.12s; }
.nav-open .nav-list > li:nth-child(2) { transition-delay: 0.17s; }
.nav-open .nav-list > li:nth-child(3) { transition-delay: 0.22s; }
.nav-open .nav-list > li:nth-child(4) { transition-delay: 0.27s; }
.nav-open .nav-list > li:nth-child(5) { transition-delay: 0.32s; }
.nav-open .nav-list > li:nth-child(6) { transition-delay: 0.37s; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 16px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  text-align: left;
  transition: color 0.3s;
}
.nav-link:hover, .nav-link.is-active { color: var(--gold-light); }
.nav-link .chevron { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.has-dropdown.is-open .chevron { transform: rotate(180deg); }

.dropdown {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.has-dropdown.is-open .dropdown { grid-template-rows: 1fr; }
.dropdown-inner { overflow: hidden; }
.dropdown-list { list-style: none; padding: 0 0 12px; }

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.3s, color 0.3s;
}
.dropdown-link:hover, .dropdown-link.is-active { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.dropdown-icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(212, 168, 67, 0.12);
  color: var(--gold-light);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.dropdown-icon svg { width: 20px; height: 20px; }
.dropdown-link:hover .dropdown-icon { background: var(--gold); color: var(--white); transform: rotate(-6deg) scale(1.05); }
.dropdown-text strong { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.dropdown-text small { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); line-height: 1.35; }

.nav-cta { align-self: flex-start; }

/* ---------- 6. Hero principal ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 140px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy-deep);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 45% at 72% 100%, rgba(212, 168, 67, 0.42), transparent 70%),
    radial-gradient(ellipse 40% 30% at 15% 85%, rgba(184, 134, 11, 0.18), transparent 70%),
    linear-gradient(172deg, #1B2A4A 0%, #16233F 38%, #121D36 62%, #2B2B35 86%, #5A4720 100%);
}

.hero-rays {
  position: absolute;
  inset: -20% -10% 0;
  z-index: -2;
  background:
    linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.05) 44%, transparent 48%),
    linear-gradient(95deg, transparent 55%, rgba(255, 255, 255, 0.04) 58%, transparent 63%),
    linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.035) 25%, transparent 30%),
    linear-gradient(100deg, transparent 70%, rgba(212, 168, 67, 0.05) 73%, transparent 78%);
  animation: rays 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes rays {
  from { opacity: 0.6; transform: translateX(-2%) skewX(-2deg); }
  to   { opacity: 1;   transform: translateX(2%)  skewX(2deg); }
}

.hero-glow {
  position: absolute;
  right: 8%; bottom: 6%;
  z-index: -1;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.35), rgba(184, 134, 11, 0.08) 45%, transparent 70%);
  filter: blur(20px);
  animation: glow 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}

.bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bubbles span {
  position: absolute;
  bottom: -40px;
  left: var(--x, 50%);
  width: var(--s, 10px);
  height: var(--s, 10px);
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 67, 0.45);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(212, 168, 67, 0.08) 60%, transparent 70%);
  opacity: 0;
  animation: bubble var(--d, 14s) linear var(--delay, 0s) infinite;
}
@keyframes bubble {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.85; }
  50%  { transform: translate(18px, -55vh); }
  90%  { opacity: 0.6; }
  100% { transform: translate(-12px, -110vh); opacity: 0; }
}

.hero-content { position: relative; max-width: 860px; }
.hero h1 { color: var(--white); margin-bottom: 0.35em; }
.hero h1 em { color: var(--gold-light); display: inline-block; }
.hero-lead {
  max-width: 600px;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
  list-style: none;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.hero-stats span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }

.hero-title-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title-line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero-title-line:nth-child(2) > span { animation-delay: 0.15s; }
@keyframes rise { to { transform: none; } }

.hero-fade { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; }
.hero-fade--1 { animation-delay: 0.1s; }
.hero-fade--2 { animation-delay: 0.4s; }
.hero-fade--3 { animation-delay: 0.55s; }
.hero-fade--4 { animation-delay: 0.75s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 96px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold-light), transparent);
  animation: cue 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

.wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 1;
  width: 100%;
  height: 90px;
  color: var(--cream);
  pointer-events: none;
}
.wave--white { color: var(--white); }
.wave path:nth-child(1) { opacity: 0.35; }
.wave path:nth-child(2) { opacity: 0.6; }

/* ---------- 7. Hero de página interior ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 120px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  background: var(--navy-deep);
  isolation: isolate;
}
.page-hero .hero-bg {
  background:
    radial-gradient(ellipse 55% 60% at 85% 110%, rgba(212, 168, 67, 0.34), transparent 70%),
    linear-gradient(170deg, #1B2A4A 0%, #15213B 60%, #3A3326 100%);
}
.page-hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  mix-blend-mode: luminosity;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 7vw, 4rem); max-width: 820px; }
.page-hero p { max-width: 640px; font-size: 1.12rem; color: rgba(255, 255, 255, 0.75); }
.page-hero-icon {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  border: 1px solid rgba(212, 168, 67, 0.4);
  background: rgba(212, 168, 67, 0.12);
  color: var(--gold-light);
}
.page-hero-icon svg { width: 30px; height: 30px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.3); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb [aria-current] { color: var(--gold-light); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin-top: 36px;
  list-style: none;
}
.hero-facts li {
  padding: 16px 18px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.hero-facts span { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.hero-facts strong { display: block; margin-top: 4px; font-size: 1.02rem; font-weight: 600; color: var(--white); }

/* ---------- 8. Tarjetas ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 168, 67, 0.45);
}
.section--white .card { background: var(--cream); }
.section--white .card.card--white { background: var(--white); }

/* Tarjeta de área */
.area-card { padding: 32px 28px 28px; overflow: hidden; }
.area-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s, transform 0.6s var(--ease);
}
.area-card:hover::before { opacity: 1; transform: translate(-20px, -20px); }
.area-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--gold-light);
  transition: background-color 0.4s, color 0.4s, transform 0.5s var(--ease);
}
.area-icon svg { width: 26px; height: 26px; }
.area-card:hover .area-icon { background: var(--gold); color: var(--white); transform: rotate(-8deg) scale(1.06); }
.area-card h3 { margin-bottom: 10px; }
.area-card p { color: var(--muted); font-size: 0.97rem; }
.area-card .link-arrow { margin-top: auto; }
.area-num {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-light);
}
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Tarjeta de curso */
.course-card { overflow: hidden; }
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft) 60%, #6B5420);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(17, 28, 51, 0.45));
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gold-pale);
  color: #7A5A08;
}
.badge--navy { background: var(--navy); color: var(--gold-light); }
.badge--float { position: absolute; top: 16px; left: 16px; z-index: 1; }
.badge--float-right { left: auto; right: 16px; }

.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card-body h3 a { transition: color 0.3s; }
.card-body h3 a:hover { color: var(--gold); }
.card-body p { font-size: 0.95rem; color: var(--muted); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}
.meta li { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; color: var(--gold); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.price s { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 6px; }

.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.rating svg { width: 15px; height: 15px; color: var(--gold-light); fill: currentColor; }

/* Tarjeta de testimonio */
.testimonial { padding: 32px 28px; }
.testimonial-quote {
  width: 36px; height: 36px;
  margin-bottom: 18px;
  color: var(--gold-light);
}
.testimonial blockquote {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-light);
  background: var(--navy-soft);
}
.testimonial figcaption strong { display: block; color: var(--ink); line-height: 1.3; }
.testimonial figcaption span { font-size: 0.85rem; color: var(--muted); }
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--gold-light); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* Tarjeta de blog */
.post-card { overflow: hidden; }
.post-card .card-media { aspect-ratio: 16 / 9; }
.post-card .meta { margin-bottom: 10px; }

.post-featured {
  display: grid;
  overflow: hidden;
}
.post-featured .card-media { aspect-ratio: 16 / 10; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.post-featured .card-body { padding: 32px; }
.post-featured h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

/* Valores, features */
.feature { padding: 30px 26px; }
.feature-icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--gold-pale);
  color: var(--gold);
  transition: transform 0.5s var(--ease), background-color 0.4s, color 0.4s;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature:hover .feature-icon { background: var(--gold); color: var(--white); transform: translateY(-4px) rotate(-6deg); }
.feature h3 { font-size: 1.45rem; margin-bottom: 8px; }
.feature p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Equipo */
.team-card { overflow: hidden; text-align: center; }
.team-card .card-media { aspect-ratio: 1 / 1.05; }
.team-card .card-media::after { background: linear-gradient(180deg, transparent 60%, rgba(17, 28, 51, 0.35)); }
.team-card .card-body { padding: 22px 20px 26px; align-items: center; }
.team-card h3 { font-size: 1.4rem; margin-bottom: 2px; }
.team-role { font-size: 0.85rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.team-card p { font-size: 0.9rem; margin: 0; }

/* ---------- 9. Pasos / método ---------- */
.steps { list-style: none; display: grid; gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.step-depth {
  position: absolute;
  top: 30px; right: 26px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hoja de ruta (timeline vertical) */
.roadmap { list-style: none; position: relative; margin: 8px 0 0; padding-left: 34px; }
.roadmap::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold-light), rgba(212, 168, 67, 0.15));
}
.roadmap li { position: relative; padding-bottom: 28px; }
.roadmap li:last-child { padding-bottom: 0; }
.roadmap li::before {
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px var(--cream);
  transition: background-color 0.4s, transform 0.4s var(--ease);
}
.roadmap li:hover::before { background: var(--gold); transform: scale(1.15); }
.roadmap h4 { margin-bottom: 4px; }
.roadmap small { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.roadmap p { margin: 0; font-size: 0.96rem; }

/* Timeline historia */
.timeline { list-style: none; display: grid; gap: 20px; }
.timeline li {
  padding: 24px 26px;
  border-left: 3px solid var(--gold-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--cream);
  transition: transform 0.4s var(--ease), background-color 0.4s;
}
.timeline li:hover { transform: translateX(6px); background: var(--gold-pale); }
.timeline strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.timeline h4 { margin-bottom: 4px; }
.timeline p { margin: 0; font-size: 0.95rem; }

/* ---------- 10. Media / split ---------- */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), #6B5420);
  box-shadow: var(--shadow-lg);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-lg);
}
.media-badge {
  position: absolute;
  left: -8px; bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.media-badge strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); line-height: 1; }
.media-badge span { font-size: 0.82rem; color: var(--muted); }
.media-badge .feature-icon { margin: 0; width: 44px; height: 44px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.checklist { list-style: none; display: grid; gap: 12px; margin: 22px 0 30px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  padding: 4px;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--gold);
}
.checklist--x svg { background: #F7E3E0; color: #A8473A; }

/* Contadores */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  list-style: none;
}
.stat {
  padding: 26px 22px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(212, 168, 67, 0.5); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.3rem, 6vw, 3.2rem); font-weight: 600; color: var(--gold-light); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- 11. Filtros ---------- */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
  flex: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold-light); color: var(--gold); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

[data-filter-item] { transition: opacity 0.4s, transform 0.4s var(--ease); }
[data-filter-item].is-hiding { opacity: 0; transform: scale(0.96); }
[data-filter-item].is-hidden { display: none; }

.empty-state { display: none; text-align: center; padding: 40px 0; color: var(--muted); }
.empty-state.is-visible { display: block; }

/* ---------- 12. Área: layout con sidebar ---------- */
.area-layout { display: grid; gap: 48px; }
.prose h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-top: 0; }
.prose > * + h2 { margin-top: 64px; }
.prose h3 { margin-top: 1.6em; }
.prose p { font-size: 1.04rem; }
.prose .lead { font-size: 1.2rem; color: var(--text); }

.models { display: grid; gap: 18px; margin-top: 26px; }
.model { padding: 24px; }
.model h3 { font-size: 1.35rem; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.model h3 svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.model p { font-size: 0.94rem; color: var(--muted); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 18px; }
.chips li {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.3s var(--ease);
}
.chips li:hover { border-color: var(--gold-light); background: var(--gold-pale); transform: translateY(-2px); }

.callout {
  margin: 32px 0;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.callout::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.3), transparent 70%);
}
.callout strong { color: var(--gold-light); }
.callout p { margin: 0; position: relative; z-index: 1; }

.two-col { display: grid; gap: 20px; margin-top: 20px; }
.two-col .card { padding: 26px; }
.two-col h3 { font-size: 1.35rem; margin-top: 0; }

.sidebar { display: grid; gap: 24px; align-content: start; }
.widget {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.widget h3 { font-size: 1.4rem; margin-bottom: 16px; }
.widget-areas { list-style: none; display: grid; gap: 6px; }
.widget-areas a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background-color 0.3s, transform 0.35s var(--ease);
}
.widget-areas a:hover { background: var(--cream); transform: translateX(4px); }
.widget-areas .dropdown-icon { width: 36px; height: 36px; background: var(--gold-pale); color: var(--gold); }
.widget-areas a:hover .dropdown-icon { background: var(--gold); color: var(--white); }
.widget-areas .arrow { margin-left: auto; width: 16px; height: 16px; color: var(--gold); opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.widget-areas a:hover .arrow { opacity: 1; transform: translateX(3px); }

.widget--cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%, #4A3A18 140%);
  color: rgba(255, 255, 255, 0.78);
  border: 0;
}
.widget--cta h3 { color: var(--white); }
.widget--cta p { font-size: 0.95rem; }
.widget--cta .newsletter-form input { background: rgba(255, 255, 255, 0.08); }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq details[open] { border-color: rgba(212, 168, 67, 0.5); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8860B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq-body { padding: 0 24px 22px; }
.faq-body p { margin: 0; color: var(--muted); }

/* ---------- 14. CTA band ---------- */
.cta-band {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(ellipse 50% 80% at 50% 120%, rgba(212, 168, 67, 0.4), transparent 70%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  isolation: isolate;
}
.cta-band h2 { color: var(--white); max-width: 760px; margin-inline: auto; }
.cta-band p { max-width: 580px; margin: 0 auto 34px; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- 15. Formularios ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; position: relative; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A4A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9AA1B1; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.18);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #C0503F; background: #FDF3F1; }
.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea { border-color: #3F8F6B; }
.field-error {
  display: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: #B5402F;
}
.field.is-invalid .field-error { display: block; animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.char-count { position: absolute; right: 12px; bottom: 10px; font-size: 0.75rem; color: var(--muted); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; cursor: pointer; }
.check input {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
.check a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.field.is-invalid .check { color: #B5402F; }

.form-success {
  display: none;
  padding: 40px 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--cream);
  animation: fadeUp 0.6s var(--ease);
}
.form-success.is-visible { display: block; }
.form-success .feature-icon { margin: 0 auto 18px; width: 64px; height: 64px; background: var(--gold); color: var(--white); }
.form-success .feature-icon svg { width: 30px; height: 30px; }

.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Newsletter */
.newsletter-form { display: grid; gap: 10px; }
.nl-field { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.2);
}
.newsletter-form.is-invalid input { border-color: #E0806F; box-shadow: 0 0 0 4px rgba(224, 128, 111, 0.18); animation: shake 0.4s; }
.newsletter-form.is-valid input { border-color: #6FC39C; }
.form-msg { min-height: 1.3em; margin: 0; font-size: 0.85rem; }
.newsletter-form.is-invalid .form-msg { color: #F0A193; }
.newsletter-form.is-valid .form-msg { color: #8FD8B5; }

/* Newsletter sobre fondo claro */
.newsletter-form--light input { background: var(--white); border-color: var(--line); color: var(--ink); }
.newsletter-form--light input::placeholder { color: #9AA1B1; }
.newsletter-form--light.is-invalid .form-msg { color: #B5402F; }
.newsletter-form--light.is-valid .form-msg { color: #2F7A57; }

/* ---------- 16. Contacto ---------- */
.contact-layout { display: grid; gap: 32px; }
.form-card { padding: 32px 24px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.contact-info { display: grid; gap: 16px; align-content: start; }
.info-card { flex-direction: row; gap: 16px; padding: 22px; align-items: flex-start; }
.info-card .feature-icon { margin: 0; flex: none; }
.info-card h3 { font-size: 1.25rem; margin-bottom: 2px; }
.info-card p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.info-card a { color: var(--gold); font-weight: 600; }

/* ---------- 17. Footer ---------- */
.site-footer {
  position: relative;
  padding: 80px 0 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 40px; padding-bottom: 56px; }
.footer-brand .logo { font-size: 2.3rem; display: inline-block; margin-bottom: 14px; }
.footer-slogan { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--gold-light); margin-bottom: 12px; }
.footer-brand p { max-width: 320px; }
.footer-col h3 {
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { position: relative; transition: color 0.3s, padding-left 0.35s var(--ease); }
.footer-links a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--gold-light);
  transition: width 0.35s var(--ease);
}
.footer-links a:hover { color: var(--gold-light); padding-left: 16px; }
.footer-links a:hover::before { width: 10px; }

.socials { display: flex; gap: 10px; margin-top: 22px; list-style: none; }
.socials a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.35s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.footer-newsletter p { margin-bottom: 18px; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; }
.footer-legal a:hover { color: var(--gold-light); }

/* Volver arriba */
.to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 900;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s var(--ease), visibility 0s 0.4s, background-color 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s, transform 0.4s var(--ease), background-color 0.3s; }
.to-top:hover { background: var(--navy); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 18. Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal--left { transform: translateX(-40px); }
.js .reveal--right { transform: translateX(40px); }
.js .reveal--zoom { transform: scale(0.94); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Cuando una tarjeta ya ha aparecido, el hover vuelve a ser rápido */
.js .card.reveal.is-visible { transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s; transition-delay: 0s; }

/* ---------- 18b. Blog: artículos, próximamente y propuestas ---------- */
.coming-soon {
  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(212, 168, 67, 0.6);
  background: var(--white);
}
.section--white .coming-soon { background: var(--cream); }
.coming-soon .feature-icon { margin: 0 auto 18px; width: 60px; height: 60px; }
.coming-soon .feature-icon svg { width: 28px; height: 28px; }
.coming-soon h3 { margin-bottom: 8px; }
.coming-soon p { max-width: 520px; margin: 0 auto; color: var(--muted); }
.coming-soon .btn { margin-top: 24px; }
.coming-soon--compact { padding: 30px 24px; text-align: left; max-width: none; }
.coming-soon--compact .feature-icon { margin: 0 0 14px; }
.coming-soon--compact p { margin: 0; }

.blog-empty { margin-top: 8px; }
.blog-more { text-align: center; margin: 48px 0 0; }

.page-hero--article h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.page-hero--article .badge { margin-bottom: 18px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  list-style: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}
.article-meta li { display: inline-flex; align-items: center; gap: 8px; }
.article-meta svg { width: 16px; height: 16px; color: var(--gold-light); }
.article-preview {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.article-section { padding-top: 24px; }
.article-cover { margin: -96px 0 48px; position: relative; z-index: 2; }
.article-cover img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), #6B5420);
  box-shadow: var(--shadow-lg);
}

.article-body { font-size: 1.08rem; color: var(--text); }
.article-body > p:first-child { font-size: 1.2rem; color: var(--ink); }
.article-body h2 { font-size: clamp(1.75rem, 4vw, 2.2rem); margin: 1.8em 0 0.5em; }
.article-body h3 { font-size: 1.45rem; margin: 1.5em 0 0.4em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-body li { margin-bottom: 0.5em; }
.article-body li::marker { color: var(--gold); }
.article-body a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(184, 134, 11, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}
.article-body a:hover { text-decoration-color: var(--gold); }
.article-body strong { color: var(--ink); }
.article-body blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
}
.article-body p:last-child em { font-size: 0.92rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.article-body th, .article-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.article-body th { background: var(--navy); color: var(--white); font-weight: 600; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body .num { text-align: right; font-variant-numeric: tabular-nums; }

.article-sources {
  margin-top: 48px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.article-sources h2 { font-size: 1.5rem; margin-bottom: 14px; }
.article-sources ul { list-style: none; display: grid; gap: 10px; }
.article-sources li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.article-sources svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--gold); }
.article-sources a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-light); text-underline-offset: 3px; }
.article-sources a:hover { color: var(--gold); }
.article-area { display: grid; gap: 18px; justify-items: start; }
.article-area .btn { position: relative; z-index: 1; }

.proposal-page { padding-top: calc(var(--header-h) + 56px); }
.proposal-head { margin-bottom: 32px; }
.proposal-head h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.proposal-card { overflow: hidden; margin-bottom: 28px; }
.proposal-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.proposal-card .badge { align-self: flex-start; margin-bottom: 12px; }
.proposal-card h2 { font-size: 1.8rem; }
.proposal-card:hover { transform: none; }
.proposal-form { margin-bottom: 18px; }
.proposal-note { font-size: 0.9rem; color: var(--muted); }
.proposal-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 19. Responsive: tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .models { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .nl-field { flex-direction: row; }
  .nl-field .btn { flex: none; }
  .sidebar .nl-field, .footer-newsletter .nl-field { flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .form-card { padding: 44px 40px; }
  .media-badge { left: -24px; }
  .post-featured { grid-template-columns: 1.1fr 1fr; }
  .post-featured .card-media { aspect-ratio: auto; height: 100%; min-height: 320px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .post-featured .card-body { justify-content: center; padding: 40px; }
}

/* ---------- 20. Responsive: escritorio ---------- */
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .section { padding: 112px 0; }
  .section--tight { padding: 72px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split--reverse > :first-child { order: 2; }
  .area-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
  .contact-layout { grid-template-columns: 1.5fr 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 48px; }
  .scroll-cue { display: flex; }
  .page-hero { padding: calc(var(--header-h) + 90px) 0 150px; }
  .site-header.is-scrolled { height: 70px; }
}

/* Navegación de escritorio */
@media (min-width: 1140px) {
  .nav-toggle, .nav-backdrop { display: none; }

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    overflow: visible;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .nav-list { flex-direction: row; align-items: center; gap: 4px; }
  .nav-list > li { border: 0; opacity: 1; transform: none; position: relative; }

  .nav-link {
    width: auto;
    padding: 10px 14px;
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-pill);
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 1.5px;
    background: var(--gold-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
  }
  .nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
  .dropdown-toggle::after { right: 34px; }
  .nav-link .chevron { width: 15px; height: 15px; }

  .dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    display: block;
    width: 560px;
    padding: 14px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 0.35s, transform 0.45s var(--ease), visibility 0s 0.35s;
  }
  .dropdown::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -16px;
    height: 16px;
  }
  .dropdown::after {
    content: "";
    position: absolute;
    top: -6px; left: 50%;
    width: 14px; height: 14px;
    background: var(--white);
    border-radius: 3px;
    transform: translateX(-50%) rotate(45deg);
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.35s, transform 0.45s var(--ease), visibility 0s;
  }
  .has-dropdown:hover .chevron { transform: rotate(180deg); }
  .dropdown-inner { overflow: visible; }
  .dropdown-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0; }
  .dropdown-link { color: var(--ink); }
  .dropdown-link:hover, .dropdown-link.is-active { background: var(--cream); color: var(--ink); }
  .dropdown-icon { background: var(--gold-pale); color: var(--gold); }
  .dropdown-text small { color: var(--muted); }

  .nav-cta { align-self: center; }
}

@media (min-width: 1280px) {
  .nav-list { gap: 8px; }
}

/* ---------- 21. Movimiento reducido ---------- */
@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;
  }
  .js .reveal { opacity: 1; transform: none; }
  .bubbles { display: none; }
  .hero-title-line > span, .hero-fade { transform: none; opacity: 1; }
}
