/* ============================================================
   RC FINANZAS & COMEX — Design System
   Editorial financiero premium · mobile-first · sin dependencias
   ============================================================ */

/* ---------- 1. Variables ---------- */
:root {
  /* Marca */
  --navy: #1A2A4A;
  --navy-dark: #111D35;
  --gold: #B89650;
  --gold-light: #D2B978;
  --gold-dark: #8C6E32;
  --gold-text: #7A5F2A;   /* dorado para texto chico sobre fondos claros (AA) */
  --white-warm: #F8F6F2;
  --grey-warm: #f2f0ec;
  --text-light: #E8E6E2;
  --text-body: #3a3a3a;
  --text-muted: #666;

  /* Degradés oficiales */
  --grad-gold: linear-gradient(100deg, #DBBA73 0%, #996B2F 100%);
  --grad-navy: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);

  /* Tipografía */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', Arial, Helvetica, sans-serif;

  /* Layout */
  --container: 1100px;
  --section-y: 64px;          /* móvil */
  --nav-h: 72px;

  /* Texturas */
  --dots-gold: radial-gradient(circle, rgba(184, 150, 80, 0.14) 1.5px, transparent 1.6px);
  --dots-navy: radial-gradient(circle, rgba(26, 42, 74, 0.12) 1.5px, transparent 1.6px);
}

@media (min-width: 900px) {
  :root { --section-y: 110px; }
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white-warm);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3 { font-family: var(--font-serif); color: var(--navy); line-height: 1.15; font-weight: 600; }

/* El "&" de marca SIEMPRE en sans */
.ampersand { font-family: var(--font-sans); font-weight: 600; }

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 3. Utilidades de layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: var(--section-y) 0; position: relative; }
.section--warm { background: var(--white-warm); }
.section--grey { background: var(--grey-warm); }
.section--navy { background: var(--grad-navy); }

/* Filete dorado fino (separador de marca) */
.rule-gold {
  width: 64px;
  height: 3px;
  background: var(--grad-gold);
  border: 0;
  margin: 18px 0 0;
}
.rule-gold--center { margin-left: auto; margin-right: auto; }

/* Dot grid decorativo: siempre en UNA esquina, nunca cubriendo todo */
.dots {
  position: absolute;
  width: min(280px, 38vw);
  height: min(280px, 38vw);
  background-image: var(--dots-navy);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
}
.dots--gold { background-image: var(--dots-gold); }
.dots--tr { top: 32px; right: 0; }
.dots--bl { bottom: 32px; left: 0; }

/* ---------- 4. Encabezados de sección ---------- */
/* Rótulo de sección: chip con borde dorado */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: rgba(184, 150, 80, 0.10);
  border: 1px solid rgba(184, 150, 80, 0.55);
  border-radius: 999px;
  padding: 9px 22px;
  margin-bottom: 20px;
}
.eyebrow--light {
  color: var(--gold-light);
  background: rgba(210, 185, 120, 0.08);
  border-color: rgba(210, 185, 120, 0.5);
}

.section-title {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  max-width: 20ch;
}
.section-title--light { color: var(--white-warm); }
.section-title .gold-word { color: var(--gold-light); }

.section-lead {
  margin-top: 20px;
  font-size: 1.125rem;
  max-width: 62ch;
  color: var(--text-muted);
}
.section-lead--light { color: var(--text-light); }

.section-head { position: relative; z-index: 1; margin-bottom: 44px; }
@media (min-width: 900px) {
  .section-head { margin-bottom: 60px; }
}

/* ---------- 5. Botones y CTAs ---------- */
.btn-gold {
  display: inline-block;
  background: var(--grad-gold);
  color: var(--navy-dark);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 3px;
  box-shadow: 0 2px 14px rgba(17, 29, 53, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-gold:hover {
  color: var(--navy-dark);
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 29, 53, 0.3);
}

.cta-microcopy {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--text-light);
  opacity: 0.85;
}

/* WhatsApp: siempre secundario, estilo link */
.link-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-light);
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: rgba(232, 230, 226, 0.45);
  text-underline-offset: 4px;
}
.link-whatsapp:hover { color: #fff; text-decoration-color: var(--gold-light); }
.link-whatsapp svg { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gold-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 110, 50, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-arrow:hover { color: var(--navy); border-color: var(--navy); }
.link-arrow::after { content: "\2192"; font-size: 1.05em; line-height: 1; }

/* Botón secundario definido (p. ej. LinkedIn en Sobre mí) */
.btn-line {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--navy);
  border-radius: 3px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9875rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-line:hover {
  background: var(--navy);
  color: var(--white-warm);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 29, 53, 0.2);
}

/* ---------- 6. Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy-dark);
  transition: box-shadow 0.25s ease;
}
.navbar.scrolled { box-shadow: 0 3px 18px rgba(17, 29, 53, 0.45); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 54px; width: auto; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-light);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--navy-dark);
  list-style: none;
  display: none;
  flex-direction: column;
  padding: 10px 22px 26px;
  border-top: 1px solid rgba(232, 230, 226, 0.08);
  box-shadow: 0 14px 24px rgba(17, 29, 53, 0.4);
}
.nav-menu.open { display: flex; }

.nav-link {
  display: block;
  padding: 13px 2px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.0625rem;
  border-bottom: 1px solid rgba(232, 230, 226, 0.07);
}
.nav-link:hover { color: var(--gold-light); }
.nav-link[aria-current="page"] { color: var(--gold-light); font-weight: 600; }

.nav-cta {
  display: inline-block;
  margin-top: 18px;
  background: var(--grad-gold);
  color: var(--navy-dark);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 1rem;
}
.nav-cta:hover { color: var(--navy-dark); filter: brightness(1.06); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    background: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .nav-link { padding: 6px 0; border-bottom: 2px solid transparent; font-size: 0.9875rem; }
  .nav-link[aria-current="page"] { border-bottom-color: var(--gold); }
  .nav-cta { margin-top: 0; padding: 11px 20px; font-size: 0.9375rem; }
}

/* ---------- 7. Hero (home) ---------- */
.hero {
  background: var(--grad-navy);
  padding: calc(var(--nav-h) + 56px) 0 72px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero { padding: calc(var(--nav-h) + 96px) 0 110px; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 52px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
}

.hero h1 {
  color: var(--white-warm);
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  font-weight: 600;
}
.hero h1 .gold-word { color: var(--gold-light); }

.hero-lead {
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 54ch;
}

.hero-actions { margin-top: 36px; }

/* Foto con marco dorado desplazado (composición editorial) */
.hero-figure {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  justify-self: center;
}
@media (min-width: 900px) { .hero-figure { justify-self: end; } }

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  border: 2px solid var(--gold);
  border-radius: 4px;
  z-index: 0;
}
.hero-figure img {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.hero-figure .dots {
  width: 150px; height: 150px;
  top: -44px; left: -44px;
  right: auto; bottom: auto;
}

/* ---------- 8. Banda de métricas ---------- */
.metrics {
  background: var(--white-warm);
  border-top: 3px solid;
  border-image: var(--grad-gold) 1;
  padding: 52px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 24px;
}
@media (min-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .metric + .metric { border-left: 1px solid rgba(26, 42, 74, 0.12); padding-left: 32px; }
}
.metric-number {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.metric-label {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 24ch;
}

/* ---------- 9. Señales (tarjetas asimétricas con cita) ---------- */
.signals-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}
@media (min-width: 900px) {
  .signals-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

.signal {
  background: #fff;
  border-top: 3px solid;
  border-image: var(--grad-gold) 1;
  padding: 30px 30px 32px;
  box-shadow: 0 6px 22px rgba(26, 42, 74, 0.09);
}
.signal-quote {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  line-height: 1.6;
  color: var(--navy);
}

.signals-closer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  max-width: 760px;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, #DBBA73, #996B2F) 1;
  padding-left: 26px;
  font-size: 1.125rem;
  color: var(--text-body);
}
.signals-closer strong { color: var(--navy); }

/* ---------- 10. Servicios (resumen editorial en filas) ---------- */
.service-rows { position: relative; z-index: 1; }
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 28px;
  align-items: baseline;
  padding: 30px 0;
  border-top: 1px solid rgba(26, 42, 74, 0.14);
}
.service-row:last-child { border-bottom: 1px solid rgba(26, 42, 74, 0.14); }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 110px 1.1fr 1.3fr auto; padding: 38px 0; }
}
.service-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.service-row h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.service-row p { color: var(--text-muted); grid-column: 2; }
.service-row .link-arrow { grid-column: 2; justify-self: start; }
@media (min-width: 900px) {
  .service-row p { grid-column: auto; }
  .service-row .link-arrow { grid-column: auto; align-self: baseline; }
}

/* ---------- 11. Cómo trabajo (3 pasos) ---------- */
.steps-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

.step-num {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.step h3 { margin-top: 14px; font-size: 1.3rem; }
.step p { margin-top: 10px; color: var(--text-muted); }

/* ---------- 12. Casos reales ---------- */
.cases-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .case--wide { grid-column: 1 / -1; }
  .case--wide .case-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.case {
  background: var(--white-warm);
  border-radius: 4px;
  padding: 32px 30px 34px;
}
/* Chips doradas de tarjeta (rótulos) */
.signal-tag, .mode-tag, .case-company, .alliance-card-eyebrow {
  display: inline-block;
  font-size: 0.84375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: rgba(184, 150, 80, 0.10);
  border: 1px solid rgba(184, 150, 80, 0.5);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 16px;
}

/* Elevación al pasar el cursor o enfocar (tarjetas) */
.signal, .approach, .mode, .case, .alliance-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.signal:hover, .approach:hover, .mode:hover, .case:hover, .alliance-card:hover,
.signal:focus-within, .approach:focus-within, .mode:focus-within, .case:focus-within, .alliance-card:focus-within {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 16px 36px rgba(17, 29, 53, 0.16);
}
.case h3 { font-size: clamp(1.25rem, 2.2vw, 1.45rem); margin-bottom: 18px; }
.case-body p { font-size: 0.9875rem; color: var(--text-body); }
.case-body p + p { margin-top: 14px; }
@media (min-width: 900px) { .case--wide .case-body p + p { margin-top: 0; } }
.case-body strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 5px;
}
.case-figure { color: var(--gold-text); font-weight: 700; }

/* ---------- 13. Banda de alianzas (marquee infinito) ---------- */
.alliance-band { text-align: center; }

.marquee {
  position: relative;
  overflow: hidden;
  margin: 34px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
.marquee-set { display: flex; align-items: center; flex-shrink: 0; }
.marquee-set img { height: 52px; width: auto; margin-right: 48px; }
.marquee-set img.logo-lib { height: 64px; }
.marquee-set img.logo-transaltic { height: 74px; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sin animación: logos estáticos en grilla, se oculta el set duplicado */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; }
  .marquee-set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px 48px;
  }
  .marquee-set img { margin-right: 0; }
  .marquee-set[aria-hidden="true"] { display: none; }
}

/* ---------- 14. Sobre mí (resumen y página) ---------- */
.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }

.about-figure { position: relative; max-width: 340px; margin: 0 auto; }
.about-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(-14px, 14px);
  border: 2px solid var(--gold);
  border-radius: 4px;
}
.about-figure img { position: relative; border-radius: 4px; }

.about-text p + p { margin-top: 16px; }
.about-text .link-arrow { margin-top: 24px; }

/* ---------- 15. FAQ (accordion accesible) ---------- */
.faq-list {
  position: relative;
  z-index: 1;
  max-width: 820px;
  border-top: 1px solid rgba(26, 42, 74, 0.16);
}
.faq-item { border-bottom: 1px solid rgba(26, 42, 74, 0.16); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 20px 4px;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
}
.faq-question:hover { color: var(--gold-text); }

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold-text);
  transition: transform 0.25s ease;
}
.faq-icon::before { top: 10px; left: 3px; width: 16px; height: 2px; }
.faq-icon::after { top: 3px; left: 10px; width: 2px; height: 16px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 34px 22px 4px; color: var(--text-body); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }

/* ---------- 16. Cierre estándar ---------- */
.cta-final {
  background: var(--grad-navy);
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
}
.cta-final-inner { position: relative; z-index: 1; max-width: 720px; }
.cta-final h2 {
  color: var(--white-warm);
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
}
.cta-final h2 .gold-word { color: var(--gold-light); }
.cta-final .section-lead { color: var(--text-light); }
.cta-final-actions { margin-top: 36px; }
.cta-final .link-whatsapp { display: inline-flex; margin-top: 26px; }

/* ---------- 17. Hero de páginas interiores ---------- */
.page-hero {
  background: var(--grad-navy);
  padding: calc(var(--nav-h) + 52px) 0 60px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .page-hero { padding: calc(var(--nav-h) + 80px) 0 84px; } }
.page-hero-inner { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 {
  color: var(--white-warm);
  font-size: clamp(1.9rem, 4.8vw, 2.9rem);
}
.page-hero h1 .gold-word { color: var(--gold-light); }
.page-hero .section-lead { color: var(--text-light); }
.page-hero .hero-actions { margin-top: 32px; }

/* ---------- 18. Página Servicios ---------- */
.service-detail {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px 60px;
  padding: 44px 0;
  border-top: 1px solid rgba(26, 42, 74, 0.14);
}
.service-detail:last-of-type { border-bottom: 1px solid rgba(26, 42, 74, 0.14); }
@media (min-width: 900px) {
  .service-detail { grid-template-columns: 0.9fr 1.1fr; padding: 56px 0; }
}
.service-detail-head .service-num { display: block; margin-bottom: 12px; }
.service-detail-head h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.service-detail-head p { margin-top: 14px; color: var(--text-muted); }

.service-list { list-style: none; }
.service-list li {
  padding: 13px 0 13px 26px;
  position: relative;
  border-bottom: 1px solid rgba(26, 42, 74, 0.09);
}
.service-list li:last-child { border-bottom: 0; }
.service-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 24px;
  width: 12px;
  height: 2px;
  background: var(--grad-gold);
}

.modes-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) { .modes-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.mode {
  background: #fff;
  border-top: 3px solid;
  border-image: var(--grad-gold) 1;
  padding: 34px 32px 36px;
  box-shadow: 0 6px 22px rgba(26, 42, 74, 0.09);
}
.mode h3 { font-size: 1.45rem; margin-bottom: 14px; }
.mode p { color: var(--text-body); }
.mode p + p { margin-top: 12px; }

/* ---------- 19. Página Sobre mí ---------- */
.bio-text { max-width: 720px; position: relative; z-index: 1; }
.bio-text p + p { margin-top: 18px; }
.bio-text strong { color: var(--navy); }

.milestones {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  max-width: 820px;
}
.milestone {
  padding: 26px 0 26px 30px;
  border-left: 2px solid rgba(26, 42, 74, 0.15);
  position: relative;
}
.milestone::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 36px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-gold);
}
.milestone h3 { font-size: 1.25rem; }
.milestone p { margin-top: 8px; color: var(--text-muted); }

.about-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ---------- 20. Página Alianzas (carrusel, como la versión original) ---------- */

/* Índice sticky de partners */
.partner-index {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--white-warm);
  border-bottom: 1px solid rgba(26, 42, 74, 0.08);
  box-shadow: 0 6px 16px rgba(17, 29, 53, 0.05);
}
.partner-index-inner { padding-block: 14px; }
.partner-index-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 2px 20px;
  margin: 0 -20px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.partner-index-track::-webkit-scrollbar { display: none; }

.partner-index-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 18px;
  border: 1px solid rgba(26, 42, 74, 0.14);
  border-radius: 10px;
  background: var(--white-warm);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.partner-index-name {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}
.partner-index-tag {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.partner-index-chip:hover,
.partner-index-chip:focus-visible {
  border-color: var(--gold);
  background: #fff;
}
.partner-index-chip.is-active {
  border-color: var(--gold);
  background: rgba(184, 150, 80, 0.1);
}
.partner-index-chip.is-active .partner-index-name { color: var(--gold-text); }

.alliances-carousel { position: relative; z-index: 1; }

.alliances-list {
  display: flex;
  gap: 28px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.alliances-list::-webkit-scrollbar { display: none; }

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(26, 42, 74, 0.12);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(17, 29, 53, 0.18);
  transition: background 0.2s ease, color 0.2s ease;
}
.carousel-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.carousel-nav:hover { background: var(--navy); color: #fff; }
.carousel-nav--prev { left: -12px; }
.carousel-nav--next { right: -12px; }
.carousel-nav[hidden] { display: none; }

.alliance-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 56px) / 3);
  scroll-snap-align: start;
  scroll-margin-top: calc(var(--nav-h) + 112px);
  background: #fff;
  border: 1px solid rgba(26, 42, 74, 0.08);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 6px 22px rgba(26, 42, 74, 0.07);
}
.alliance-card-logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.alliance-card-logo img { max-width: 82%; max-height: 90px; width: auto; object-fit: contain; }
.alliance-card-logo.logo-transaltic-wrap { height: 112px; }
.alliance-card-logo.logo-transaltic-wrap img { max-height: 112px; max-width: 92%; }

.alliance-card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.alliance-card-title { font-size: 1.5rem; text-align: center; margin-bottom: 14px; }
.alliance-card-eyebrow { align-self: center; margin-top: -4px; text-align: center; }
.alliance-card-lead { color: var(--text-body); margin-bottom: 14px; }
.alliance-card-row { font-size: 0.9375rem; color: var(--text-body); margin-bottom: 10px; }
.alliance-card-row strong { color: var(--navy); }

.partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 16px 0 14px;
  font-size: 0.9375rem;
}
.partner-link { font-weight: 600; }

.alliance-card-note {
  font-size: 0.875rem;
  color: var(--gold-text);
  font-style: italic;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 42, 74, 0.08);
}

/* Botón "Ver más" dentro de cada tarjeta (solo móvil) */
.card-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 24px;
  border-radius: 40px;
  border: 1px solid var(--gold);
  background: #fff;
  color: var(--gold-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.card-toggle:hover { background: var(--gold); color: #fff; }
.card-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  transition: transform 0.25s ease;
}
.alliance-card.card-open .card-toggle svg { transform: rotate(180deg); }

@media (max-width: 980px) {
  .alliance-card { flex-basis: calc((100% - 28px) / 2); }
}
@media (max-width: 768px) {
  /* En celular: una tarjeta abajo de la otra, compactada con "Ver más" */
  .alliances-list { flex-direction: column; overflow: visible; scroll-snap-type: none; gap: 20px; padding: 0; }
  .alliance-card { flex-basis: auto; width: 100%; padding: 28px 22px; }
  .carousel-nav { display: none; }
  .card-toggle { display: inline-flex; }
  .alliance-card:not(.card-open) .alliance-card-body {
    max-height: 150px;
    overflow: hidden;
    position: relative;
  }
  .alliance-card:not(.card-open) .alliance-card-body::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 66px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
  }
}

.ally-criteria {
  position: relative;
  z-index: 1;
  max-width: 760px;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, #DBBA73, #996B2F) 1;
  padding-left: 26px;
  font-size: 1.125rem;
}

/* ---------- 21. Página Capacitación IA ---------- */
.approach-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}
@media (min-width: 900px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
.approach {
  background: #fff;
  border-top: 3px solid;
  border-image: var(--grad-gold) 1;
  padding: 30px 30px 32px;
  box-shadow: 0 6px 22px rgba(26, 42, 74, 0.09);
}
.approach h3 { font-size: 1.3rem; margin-bottom: 12px; }
.approach p { color: var(--text-body); }

/* ---------- 22. Página Contacto ---------- */
.contact-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
}
@media (min-width: 900px) { .contact-panel { grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: start; } }

.contact-channels { list-style: none; margin-top: 8px; }
.contact-channels li { border-bottom: 1px solid rgba(232, 230, 226, 0.14); }
.contact-channels a, .contact-channels span.channel-static {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 17px 2px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.0625rem;
}
.contact-channels a:hover { color: var(--gold-light); }
.channel-label {
  flex-shrink: 0;
  font-size: 0.78125rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-light);
  min-width: 92px;
}

/* ---------- 23. Footer ---------- */
.footer {
  background: var(--navy-dark);
  border-top: 3px solid;
  border-image: var(--grad-gold) 1;
  padding: 56px 0 32px;
  color: var(--text-light);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; } }

.footer-logo img { height: 76px; width: auto; }
.footer-tagline { margin-top: 16px; opacity: 0.75; max-width: 30ch; }

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { color: var(--text-light); text-decoration: none; opacity: 0.85; }
.footer-nav a:hover { color: var(--gold-light); opacity: 1; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(232, 230, 226, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.875rem;
  opacity: 0.75;
}
.footer-fiscal img { width: 42px; height: auto; }
.footer-ssl { margin-top: 14px; font-size: 0.8125rem; }
.footer-ssl a { color: var(--text-light); opacity: 0.6; }

/* ---------- 24. Animaciones de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .reveal-left { transform: translateX(-30px); }
.js .reveal-right { transform: translateX(30px); }
.js .reveal-zoom { transform: scale(0.93) translateY(12px); }
.js .reveal.visible { opacity: 1; transform: none; }

/* Filete dorado: se dibuja al entrar la sección */
.js .reveal .rule-gold {
  width: 0;
  transition: width 0.8s cubic-bezier(0.25, 0.6, 0.3, 1) 0.3s;
}
.js .reveal.visible .rule-gold { width: 64px; }

/* Hijos escalonados dentro de un bloque .reveal (FAQ, canales) */
.js .faq-list.reveal .faq-item,
.js .reveal .contact-channels li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .faq-list.reveal.visible .faq-item,
.js .reveal.visible .contact-channels li {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .faq-list.reveal .faq-item,
  .js .reveal .contact-channels li { opacity: 1; transform: none; }
  .js .reveal .rule-gold { width: 64px; }
}
