/* Actuaría Franca, guía del capítulo de candidatos de la ACA
   Tokens tomados del design system de Actuaría Franca */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
  --peach-50: #fcf3e9;
  --peach-100: #fbe6d3;
  --peach-200: #f6d2af;
  --peach-300: #f3b98d;
  --peach-400: #eda477;
  --peach-500: #e38a5c;
  --peach-600: #c96f42;
  --peach-700: #a8582f;
  --peach-800: #7a3f22;
  --peach-900: #4a2614;
  --cream-0: #ffffff;
  --cream-50: #fbf6ec;
  --cream-100: #f6eedf;
  --ink-900: #2a1e15;
  --ink-700: #4a3b2e;
  --ink-500: #7a6a5a;
  --ink-300: #c7bba9;
  --ink-200: #e6ddcc;

  --color-bg: var(--cream-50);
  --color-surface: var(--cream-0);
  --color-text: var(--ink-900);
  --color-text-secondary: var(--ink-700);
  --color-text-muted: var(--ink-500);
  --color-border: var(--ink-200);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(168, 88, 47, 0.10);
  --shadow-md: 0 8px 24px rgba(168, 88, 47, 0.14);
  --shadow-lg: 0 16px 48px rgba(168, 88, 47, 0.18);

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --lado: 24px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--peach-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--peach-800); }
:focus-visible { outline: 3px solid var(--peach-700); outline-offset: 3px; border-radius: 6px; }

.icono { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.saltar {
  position: absolute; left: var(--lado); top: -60px; z-index: 50;
  background: var(--ink-900); color: var(--cream-50); padding: 10px 16px; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none; transition: top 150ms ease;
}
.saltar:focus { top: 12px; color: var(--cream-50); }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 24px; border-radius: var(--radius-pill); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.boton:active { transform: scale(0.98); }
.boton--primario { background: var(--peach-700); color: #fff; box-shadow: var(--shadow-sm); }
.boton--primario:hover { background: var(--peach-800); color: #fff; }
.boton--suave { background: var(--peach-100); color: var(--peach-800); }
.boton--suave:hover { background: var(--peach-200); color: var(--peach-900); }
.boton--fantasma { background: transparent; color: var(--peach-800); border-color: var(--ink-300); }
.boton--fantasma:hover { background: var(--peach-100); color: var(--peach-900); }
.boton--sm { font-size: 0.875rem; padding: 9px 16px; }

/* Cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 20;
  background: #fbf6ec;
  border-bottom: 1px solid #e6ddcc;
}
.cabecera__in {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
/* Logo igual al de actuariafranca.com y fm.actuariafranca.com */
.marca { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #2a1e15; text-decoration: none; }
.marca img { height: 40px; width: auto; display: block; }
.marca span { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.marca:hover { color: #2a1e15; }
.cabecera .boton { display: none; }
@media (min-width: 561px) { .cabecera .boton { display: inline-flex; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 48px var(--lado) 56px;
  background-image:
    linear-gradient(rgba(201, 111, 66, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 111, 66, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
}
.hero__disco {
  position: absolute; top: -140px; right: -160px; width: 360px; height: 360px;
  border-radius: 50%; background: var(--peach-200); opacity: 0.55; pointer-events: none;
}
.hero__in { position: relative; max-width: 1160px; margin: 0 auto; display: grid; gap: 40px; align-items: center; }
.insignia {
  display: inline-block; background: var(--peach-100); color: var(--peach-800);
  font-size: 0.8125rem; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-pill);
}
.hero h1 {
  margin: 18px 0 16px;
  font-weight: 800; font-size: clamp(2.05rem, 7.4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__lead { font-size: 1.0625rem; line-height: 1.65; color: var(--color-text-secondary); max-width: 34em; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.acciones .boton { flex: 1 1 auto; }
.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.cifras dt { font-weight: 800; font-size: 1.875rem; line-height: 1.1; color: var(--peach-600); }
.cifras dd { font-size: 0.8125rem; line-height: 1.4; color: var(--color-text-muted); margin-top: 6px; }
.hero__imagen { display: none; }

@media (min-width: 560px) {
  .acciones .boton { flex: 0 0 auto; }
}
@media (min-width: 960px) {
  .hero { padding: 88px 32px 96px; }
  .hero__in { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .hero__disco { width: 460px; height: 460px; top: -180px; right: -180px; }
  .hero__lead { font-size: 1.125rem; }
  .cifras dd { font-size: 0.875rem; }
  .hero__imagen {
    display: block; aspect-ratio: 1376 / 768; width: 100%;
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    background: var(--cream-100) url("img/banner.webp") center / cover no-repeat;
  }
}

/* Columna de lectura */
.lectura { max-width: 760px; margin: 0 auto; padding: 0 var(--lado) 24px; }
.seccion { padding: 48px 0 8px; }
.seccion > p, .seccion > h3 { max-width: 40em; }
.seccion > p + p { margin-top: 14px; }
.seccion > * + .tarjeta, .seccion > * + ol, .seccion > * + ul, .seccion > * + .precios, .seccion > * + .faq, .seccion > * + aside { margin-top: 20px; }
.seccion > .tarjeta + p, .seccion > ol + p, .seccion > ul + p, .seccion > .precios + p, .seccion > ol + h3 { margin-top: 20px; }
.ceja { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--peach-700); margin-bottom: 8px; }
.seccion h2 { font-weight: 700; font-size: clamp(1.625rem, 5.4vw, 2.25rem); line-height: 1.15; margin-bottom: 16px; text-wrap: balance; }
.seccion h3 { font-weight: 600; font-size: 1.125rem; line-height: 1.3; margin-top: 28px; }
.aparte { color: var(--color-text-secondary); }
@media (min-width: 960px) { .seccion { padding-top: 72px; } }

.tarjeta { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 24px; }

/* Compromisos */
.compromisos { display: grid; gap: 14px; }
.compromisos li { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
.compromisos__num { font-weight: 800; font-size: 2rem; line-height: 1; color: var(--peach-300); min-width: 2.2ch; }
.compromisos p { color: var(--color-text-secondary); line-height: 1.5; }
@media (min-width: 680px) {
  .compromisos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compromisos li { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
  .compromisos__num { font-size: 2.5rem; }
}

/* Notas */
.nota { display: flex; gap: 14px; background: var(--peach-50); border-radius: var(--radius-lg); padding: 22px; }
.nota__icono { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--peach-100); color: var(--peach-700); flex-shrink: 0; }
.nota__icono .icono { width: 20px; height: 20px; }
.nota__titulo { font-weight: 600; margin-bottom: 4px; }
.nota p:not(.nota__titulo) { color: var(--color-text-secondary); }
* + .nota { margin-top: 24px; }

/* Lista con checks */
.lista-check { display: grid; gap: 16px; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; color: var(--color-text-secondary); line-height: 1.55; }
.lista-check .icono { color: var(--peach-600); width: 22px; height: 22px; margin-top: 1px; }

/* Pasos */
.pasos { position: relative; display: grid; gap: 0; }
.pasos li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 28px; }
.pasos li:last-child { padding-bottom: 0; }
.pasos li::before {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px; width: 2px;
  background: var(--peach-200); border-radius: 2px;
}
.pasos li:last-child::before { display: none; }
.pasos__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--peach-700); color: #fff; font-weight: 700; font-size: 1.125rem;
  box-shadow: 0 0 0 6px var(--color-bg);
}
.pasos h3 { margin: 8px 0 4px; font-size: 1.125rem; }
.pasos p { color: var(--color-text-secondary); }
.pasos .boton { margin-top: 12px; }
.seccion > .pasos + .aparte { margin-top: 28px; }

/* Precios */
.precios { display: grid; gap: 14px; }
.precio__etiqueta { font-size: 0.875rem; font-weight: 600; color: var(--color-text-secondary); }
.precio__valor { font-weight: 800; font-size: 2.25rem; line-height: 1.15; letter-spacing: -0.01em; margin: 6px 0 8px; color: var(--color-text); font-variant-numeric: tabular-nums; }
.precio__nota { font-size: 0.875rem; line-height: 1.5; color: var(--color-text-muted); }
.precio--destacado { background: var(--peach-100); box-shadow: none; }
.precio--destacado .precio__etiqueta { color: var(--peach-800); }
.precio--destacado .precio__valor { color: var(--peach-800); }
.precio--destacado .precio__nota { color: var(--peach-800); }
@media (min-width: 600px) { .precios { grid-template-columns: 1fr 1fr; } }

/* Beneficios */
.beneficios { display: grid; gap: 12px; }
.beneficios li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--color-surface); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-sm);
  color: var(--color-text-secondary); line-height: 1.5;
}
.beneficios__icono { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--peach-100); color: var(--peach-700); flex-shrink: 0; }
.beneficios__icono .icono { width: 20px; height: 20px; }
@media (min-width: 600px) { .beneficios { grid-template-columns: 1fr 1fr; } }

/* Preguntas */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 600; line-height: 1.4; border-radius: var(--radius-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icono { color: var(--peach-700); transition: transform 150ms ease; }
.faq details[open] summary .icono { transform: rotate(180deg); }
.faq summary:hover { background: var(--peach-50); }
.faq details p { padding: 0 20px 20px; color: var(--color-text-secondary); }

/* Contacto */
.contacto { display: grid; gap: 18px; }
.contacto li { display: flex; gap: 14px; align-items: center; }
.contacto__icono { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--peach-100); color: var(--peach-700); flex-shrink: 0; }
.contacto__icono .icono { width: 20px; height: 20px; }
.contacto__para { font-size: 0.8125rem; color: var(--color-text-muted); line-height: 1.4; }
.contacto a { font-weight: 600; word-break: break-word; }

/* Fuentes */
.seccion--fuentes { padding-top: 56px; }
.h-pequeno { font-size: 1.125rem !important; margin-bottom: 8px !important; }
.pie-nota { font-size: 0.875rem; color: var(--color-text-muted); }
.fuentes { margin-top: 12px; display: grid; gap: 8px; font-size: 0.875rem; }
.fuentes li { padding-left: 16px; position: relative; }
.fuentes li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--peach-400); }

/* Invitación al grupo */
.cta { padding: 48px var(--lado) 64px; }
.cta__in {
  max-width: 760px; margin: 0 auto; background: var(--peach-100); border-radius: var(--radius-xl);
  padding: 32px 24px; display: grid; gap: 20px; justify-items: start; position: relative; overflow: hidden;
}
.cta__in::after {
  content: ""; position: absolute; right: -70px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid var(--peach-200); pointer-events: none;
}
.cta__in > * { position: relative; z-index: 1; }
.cta img { height: 44px; width: auto; }
.cta h2 { font-weight: 700; font-size: 1.625rem; line-height: 1.2; color: var(--ink-900); margin-bottom: 6px; text-wrap: balance; }
.cta p { color: var(--peach-900); max-width: 34em; }
@media (min-width: 760px) {
  .cta__in { grid-template-columns: auto 1fr auto; align-items: center; padding: 36px 40px; gap: 28px; }
  .cta img { height: 56px; }
}

/* Pie, igual al de actuariafranca.com y fm.actuariafranca.com */
.pie { background: #2a1e15; color: #e6ddcc; line-height: normal; }
.pie__in { max-width: 1160px; margin: 0 auto; padding: 48px 24px 32px; display: flex; flex-direction: column; gap: 24px; }
.pie__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.pie__fila--redes { gap: 12px 24px; border-top: 1px solid #4a3b2e; padding-top: 24px; }
.pie__marca { display: flex; align-items: center; gap: 12px; }
.pie__marca img { height: 40px; width: auto; display: block; }
.pie__textos { display: flex; flex-direction: column; gap: 2px; }
.pie__nombre { font-weight: 700; font-size: 18px; color: #fbf6ec; }
.pie__firma { font-size: 14px; color: #c7bba9; }
.pie__contacto { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.pie__contacto a { color: #f3b98d; font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: auto; }
.pie__contacto a:hover { color: #f3b98d; }
.pie__sigueme { margin: 0; font-size: 16px; color: #e6ddcc; }
.pie__sigueme span { font-weight: 700; color: #fbf6ec; }
.pie__redes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pie__redes li { display: flex; }
.pie__red {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid #4a3b2e; border-radius: 999px; font-size: 15px; font-weight: 600; color: #fbf6ec; text-decoration: none;
}
.pie__red:hover { background: #4a3b2e; color: #fbf6ec; }
.pie__red svg { flex-shrink: 0; }
.pie__legal { margin: 0; font-size: 13px; line-height: 1.6; color: #c7bba9; }
.pie__legal a { color: #f3b98d; font-weight: 600; text-underline-offset: auto; }
.pie__legal a:hover { color: #f3b98d; }
.pie :focus-visible { outline-color: var(--peach-300); }

@media print {
  .cabecera, .hero__disco, .hero__imagen, .acciones, .cta, .saltar { display: none !important; }
  .tarjeta, .beneficios li, .faq details { box-shadow: none; border: 1px solid var(--ink-200); }
  .faq details p { display: block; }
}
