/* Asegurate Mejor — estilos del sitio.
   Tokens y componentes tomados del design system de la marca (artefacto "Asegurate Mejor", oct. 2026):
   project/tokens.json + project/components/bundle.css. Mobile-first. Modo claro y oscuro. */

/* ── Tokens: modo claro ───────────────────────────────────── */
:root {
  --brand-navy: #000099;
  --brand-green: #33CC66;
  --brand-sky: #3399FF;
  --surface: #FFFFFF;
  --surface-soft: #F3F6FB;
  --surface-mint: #E9F8EF;
  --surface-sky: #E8F2FF;
  --tile-mint: #E9F8EF;
  --tile-sky: #E8F2FF;
  --ink: #0A0F3C;
  --ink-muted: #4B5373;
  --line: #D9DFEA;
  --line-strong: #8A93B0;
  --action: #000099;
  --action-hover: #0A0F6E;
  --on-action: #FFFFFF;
  --accent: #33CC66;
  --on-accent: #000099;
  --text-positive: #0D7A3B;
  --text-info: #0B5FC2;
  --warn: #9A5200;
  --warn-tint: #FFF2DF;
  --danger: #B42318;
  --danger-tint: #FDECEA;
  --focus: #0B5FC2;
  --shadow-card: 0 1px 2px rgba(10,15,60,0.06), 0 10px 30px rgba(10,15,60,0.08);
  --shadow-float: 0 8px 24px rgba(0,0,153,0.25);

  --font-display: "Outfit", "Trebuchet MS", system-ui, sans-serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-20: 80px;
  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 28px; --radius-pill: 999px;

  /* Degradé de marca: solo hero y detrás del personaje. El texto encima va en brand-navy. */
  --degrade: linear-gradient(120deg, var(--brand-green) 0%, var(--brand-sky) 100%);
  color-scheme: light;
}

/* ── Tokens: modo oscuro (sigue al sistema salvo que se fuerce data-theme) ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #070A2B; --surface-soft: #10164A; --surface-mint: #0E2A22; --surface-sky: #0D1F45;
    --tile-mint: #CFEFDB; --tile-sky: #CFE3FA;
    --ink: #F3F5FF; --ink-muted: #A9B0D6; --line: #262D63; --line-strong: #6B74AD;
    --action: #33CC66; --action-hover: #5FE08D; --on-action: #070A2B; --on-accent: #070A2B;
    --text-positive: #5FE08D; --text-info: #7DBBFF; --warn: #FFB566; --warn-tint: #2B1D0A;
    --danger: #FF8A80; --danger-tint: #2E0F12; --focus: #7DBBFF;
    --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.35);
    --shadow-float: 0 8px 24px rgba(0,0,0,0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #070A2B; --surface-soft: #10164A; --surface-mint: #0E2A22; --surface-sky: #0D1F45;
  --tile-mint: #CFEFDB; --tile-sky: #CFE3FA;
  --ink: #F3F5FF; --ink-muted: #A9B0D6; --line: #262D63; --line-strong: #6B74AD;
  --action: #33CC66; --action-hover: #5FE08D; --on-action: #070A2B; --on-accent: #070A2B;
  --text-positive: #5FE08D; --text-info: #7DBBFF; --warn: #FFB566; --warn-tint: #2B1D0A;
  --danger: #FF8A80; --danger-tint: #2E0F12; --focus: #7DBBFF;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.35);
  --shadow-float: 0 8px 24px rgba(0,0,0,0.5);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 25px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--text-info); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: 32px; line-height: 38px; font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 760px) { h1 { font-size: 56px; line-height: 58px; letter-spacing: -0.02em; } h2 { font-size: 40px; line-height: 44px; } }
p { margin: 0 0 1em; }
.contenedor { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 760px) { .contenedor { padding: 0 40px; } }
.angosto { max-width: 680px; }
.oculto, [hidden] { display: none !important; }
.sr, .am-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-muted); }
.chico { font-size: 14px; line-height: 20px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-positive); margin: 0 0 16px; }
.lead { font-size: 19px; line-height: 29px; color: var(--ink-muted); }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Saltar al contenido */
.saltar { position: absolute; left: 8px; top: -60px; z-index: 30; background: var(--action); color: var(--on-action); padding: 10px 14px; border-radius: var(--radius-sm); }
.saltar:focus { top: 8px; }

/* ── Cabecera ─────────────────────────────────────────────── */
.cabecera { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
@media (min-width: 760px) { .cabecera .contenedor { height: 76px; } }
.logo { display: block; height: 40px; width: auto; }
@media (min-width: 760px) { .logo { height: 52px; } }
.logo-oscuro { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-claro { display: none; } :root:not([data-theme="light"]) .logo-oscuro { display: block; } }
:root[data-theme="dark"] .logo-claro { display: none; }
:root[data-theme="dark"] .logo-oscuro { display: block; }
.navlinks { display: flex; gap: 18px; align-items: center; font-weight: 600; }
.navlinks a:not(.am-help) { color: var(--ink); text-decoration: none; }
.navlinks a:not(.am-help):hover { color: var(--text-info); }
.navlinks .solo-escritorio { display: none; }
@media (min-width: 900px) { .navlinks { gap: 28px; } .navlinks .solo-escritorio { display: inline-flex; } }
/* Panel del equipo: logo en texto */
.marca { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--brand-navy); text-decoration: none; }
.marca b { color: var(--text-positive); }

/* ── Botones (design system: Button) ──────────────────────── */
.am-btn, .boton { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border: 2px solid transparent; border-radius: var(--radius-pill); font-family: var(--font-sans); font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s ease, transform .15s ease, border-color .15s ease; text-align: center; }
.am-btn:active, .boton:active { transform: translateY(1px); }
.am-btn--md, .boton { font-size: 16px; line-height: 20px; padding: 12px 22px; min-height: 48px; }
.am-btn--lg { font-size: 18px; line-height: 22px; padding: 16px 28px; min-height: 56px; }
.am-btn--sm, .boton.chico { font-size: 14px; line-height: 18px; padding: 8px 16px; min-height: 40px; }
.am-btn--primary, .boton { background: var(--action); color: var(--on-action); }
.am-btn--primary:hover, .boton:hover { background: var(--action-hover); }
.am-btn--accent, .boton.acento { background: var(--accent); color: var(--on-accent); }
.am-btn--accent:hover, .boton.acento:hover { filter: brightness(1.06); background: var(--accent); }
.am-btn--secondary, .boton.secundario { background: transparent; color: var(--ink); border-color: var(--ink); }
.am-btn--secondary:hover, .boton.secundario:hover { background: var(--surface-soft); }
.am-btn--ghost { background: transparent; color: var(--text-info); padding-left: 8px; padding-right: 8px; }
.am-btn--ghost:hover { text-decoration: underline; }
.am-btn__arrow { transition: transform .15s ease; }
.am-btn:hover .am-btn__arrow { transform: translateX(3px); }
.boton[disabled] { opacity: .45; cursor: not-allowed; }
.boton.ancho { width: 100%; }
/* WhatsApp con una persona: verde de cotizar con texto azul (nunca blanco sobre verde) */
.boton.wpp { background: var(--accent); color: var(--on-accent); }
.boton.wpp:hover { background: var(--accent); filter: brightness(1.06); }
.enlace { background: none; border: 0; padding: 0; color: var(--text-info); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.am-link { color: var(--text-info); font-weight: 600; text-underline-offset: 3px; }

/* ── Badges ───────────────────────────────────────────────── */
.am-badge, .etiqueta { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: var(--surface-soft); color: var(--ink-muted); }
.am-badge--cotiza, .etiqueta.verde { background: var(--accent); color: var(--on-accent); }
.am-badge--pronto, .etiqueta.gris { background: var(--warn-tint); color: var(--warn); }
.am-badge--gratis { background: var(--surface-sky); color: var(--text-info); box-shadow: inset 0 0 0 1.5px var(--text-info); }
.am-badge--neutral { background: var(--surface-soft); color: var(--ink-muted); }

/* ── Íconos de ramos (sobre su recuadro: son stickers) ────── */
.am-tile { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-md); flex: none; }
.am-tile img { width: 48px; height: 48px; }
.am-tile--lg { width: 84px; height: 84px; border-radius: 22px; }
.am-tile--green { background: var(--tile-mint); }
.am-tile--sky { background: var(--tile-sky); }

/* ── Tarjetas ─────────────────────────────────────────────── */
.tarjeta { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.am-ramo, .puerta { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.am-ramo:hover, a.puerta:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: transparent; }
.am-ramo--soon { background: var(--surface-soft); border-style: dashed; border-color: var(--line-strong); }
.puertas { display: grid; gap: var(--space-6); margin: var(--space-6) 0 var(--space-12); }
@media (min-width: 680px) { .puertas { grid-template-columns: 1fr 1fr; } }
.puerta .etiqueta { align-self: flex-start; }
.puerta h3 { margin: 4px 0 0; }
.puerta p { color: var(--ink-muted); margin: 0; flex: 1; }
.puerta .ir { font-weight: 700; color: var(--text-info); }
.puerta-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.puerta-cabeza .ramo-nombre { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); }

/* ── Hero (degradé de marca, texto en brand-navy) ─────────── */
.heroe { background: var(--degrade); color: var(--brand-navy); overflow: hidden; }
.heroe .contenedor { padding-top: 40px; padding-bottom: 40px; }
.heroe h1, .heroe p, .heroe .eyebrow { color: var(--brand-navy); }
.heroe p:not(.eyebrow) { font-size: 19px; line-height: 29px; max-width: 34em; }
.heroe .boton, .heroe .am-btn--primary { background: var(--brand-navy); color: #fff; } /* sobre el degradé, siempre azul (también en oscuro) */
.heroe .boton.secundario, .heroe .btn-en-degrade { background: #fff; color: var(--brand-navy); border-color: #fff; }
@media (min-width: 760px) { .heroe .contenedor { padding-top: 64px; padding-bottom: 64px; } }

/* Hero de la home (HomeEjemplo) */
.hero-home .contenedor { display: grid; gap: 0; padding-top: 32px; padding-bottom: 0; }
.hero-copy { padding-bottom: 8px; }
.hero-home h1 { font-size: 40px; line-height: 44px; margin-bottom: 16px; }
.hero-home .lead { color: var(--brand-navy); margin: 0 0 24px; }
.ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.ctas .am-btn { flex: 1 1 100%; }
.trust { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; color: var(--brand-navy); font-size: 14px; line-height: 20px; font-weight: 600; }
.trust span::before { content: "✓ "; font-weight: 800; }
.mascot-wrap { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; margin-top: -84px; pointer-events: none; }
.mascot { display: block; height: 200px; width: auto; filter: drop-shadow(0 16px 24px rgba(0,0,60,.25)); }
.bubble { display: none; }
@media (min-width: 900px) {
  .hero-home .contenedor { grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: end; padding-top: 72px; min-height: 560px; }
  .hero-copy { padding-bottom: 88px; align-self: center; }
  .hero-home h1 { font-size: 56px; line-height: 58px; letter-spacing: -0.02em; margin-bottom: 20px; }
  .ctas .am-btn { flex: 0 0 auto; }
  .trust { flex-direction: row; gap: 24px; margin-top: 32px; }
  .mascot-wrap { justify-content: center; margin-top: 0; }
  .mascot { height: 500px; }
  /* El globo va a la izquierda de la cabeza, a la altura de la boca: nunca sobre la cara */
  .bubble { display: block; position: absolute; z-index: 2; right: calc(50% + 78px); top: 96px; width: 180px; background: #ffffff; color: #0A0F3C; border-radius: 20px 20px 4px 20px; padding: 12px 14px; font-weight: 600; font-size: 15px; line-height: 21px; box-shadow: 0 10px 30px rgba(10,15,60,.18); }
}
@media (min-width: 560px) and (max-width: 899px) { .ctas .am-btn { flex: 1 1 0; } .mascot { height: 260px; } }

/* Hero de páginas internas con personaje (paletas) */
.heroe .personaje { width: min(200px, 50vw); height: auto; justify-self: center; filter: drop-shadow(0 12px 24px rgba(0, 0, 80, .25)); }
.heroe.con-personaje .contenedor { display: grid; grid-template-columns: 1fr 112px; column-gap: 12px; align-items: start; padding-top: 28px; padding-bottom: 28px; }
.heroe.con-personaje .contenedor > div { display: contents; }
.heroe.con-personaje .contenedor > div > * { grid-column: 1; }
.heroe.con-personaje .contenedor > div > h1 { grid-column: 1 / -1; }
.heroe.con-personaje .contenedor > div > .boton { grid-column: 1 / -1; width: 100%; }
.heroe.con-personaje .personaje { grid-column: 2; grid-row: 2; width: 100%; align-self: end; justify-self: end; }
@media (min-width: 760px) {
  .heroe.con-personaje .contenedor { grid-template-columns: 1.3fr 1fr; column-gap: 24px; padding-top: 64px; padding-bottom: 64px; }
  .heroe.con-personaje .contenedor > div > h1 { grid-column: 1; }
  .heroe.con-personaje .contenedor > div > .boton { grid-column: 1; width: auto; justify-self: start; }
  .heroe.con-personaje .personaje { grid-row: 1 / span 4; width: min(240px, 100%); align-self: center; justify-self: center; }
}

/* ── Secciones de la home ─────────────────────────────────── */
.seccion { padding: var(--space-12) 0; }
@media (min-width: 760px) { .seccion { padding: var(--space-20) 0; } }
.sec-soft { background: var(--surface-soft); }
.sub { color: var(--ink-muted); font-size: 19px; line-height: 29px; margin: 0 0 32px; max-width: 640px; }
.g3 { display: grid; gap: 20px; }
@media (min-width: 760px) { .g3 { grid-template-columns: repeat(3, 1fr); } }
.compare { display: grid; gap: 24px; padding-top: 14px; }
@media (min-width: 900px) { .compare { grid-template-columns: repeat(3, 1fr); } }
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 48px; } }

/* RamoPicker: "¿Qué te preocupa?" */
.am-picker { display: grid; gap: var(--space-6); }
.am-picker__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 559px) {
  .am-pick { padding: 14px 6px 12px; gap: 8px; border-radius: 20px; }
  .am-pick .am-tile { width: 52px; height: 52px; border-radius: 14px; }
  .am-pick .am-tile img { width: 40px; height: 40px; }
  .am-pick__name { font-size: 14px; line-height: 18px; }
  .am-pick__badge { height: 20px; font-size: 10px; padding: 0 7px; letter-spacing: .05em; max-width: 100%; }
}
@media (min-width: 560px) { .am-picker__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); } }
.am-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-6) var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.am-pick:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.am-pick[aria-selected="true"] { border-color: var(--action); box-shadow: var(--shadow-card); }
.am-pick--soon .am-tile { filter: saturate(.55); }
.am-pick__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 22px; text-align: center; }
.am-pick__badge { height: 22px; font-size: 11px; padding: 0 8px; }
.am-picker__panel { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-mint); }
@media (min-width: 640px) { .am-picker__panel { padding: var(--space-8); } }
.am-picker__eyebrow { margin: 0 0 8px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-positive); }
.am-picker__q { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 30px; letter-spacing: -0.01em; max-width: 620px; color: var(--ink); }
@media (min-width: 640px) { .am-picker__q { font-size: 28px; line-height: 34px; } }
.am-picker__body { margin: 0 0 24px; color: var(--ink-muted); font-size: 18px; line-height: 28px; max-width: 620px; }
.am-picker__actions { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.am-picker__art { display: none !important; }
@media (min-width: 640px) { .am-picker__art { display: inline-grid !important; width: 168px; height: 168px; border-radius: 44px; background: #ffffff; } .am-picker__art img { width: 112px; height: 112px; } }

/* StepCard */
.am-step { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-mint); }
.am-step__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-1); }
.am-step__n { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 36px; color: var(--text-positive); }
.am-step__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 26px; }
.am-step__body { margin: 0; color: var(--ink-muted); }

/* QuoteCard */
.am-quote { position: relative; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); border: 1.5px solid var(--line); }
.am-quote--rec { border: 2.5px solid var(--action); box-shadow: var(--shadow-card); padding-top: 36px; }
.am-quote__flag { position: absolute; top: -14px; left: var(--space-6); height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.am-quote__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.am-quote__insurer { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 700; }
.am-quote__plan { margin: 2px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.am-quote__price { text-align: right; display: flex; flex-direction: column; }
.am-quote__amount { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.am-quote__period { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.am-quote__list { list-style: none; margin: 0; padding: var(--space-4) 0 0; border-top: 1.5px solid var(--line); display: grid; gap: var(--space-2); }
.am-quote__item { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; line-height: 22px; }
.am-quote__item--no { color: var(--ink-muted); }
.am-quote__actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-top: auto; }
.am-mark { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; line-height: 1; }
.am-mark--yes { background: var(--surface-mint); color: var(--text-positive); box-shadow: inset 0 0 0 1.5px var(--text-positive); }
.am-mark--no { background: var(--danger-tint); color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.ejemplo-nota { display: inline-block; margin-bottom: 8px; }

/* AdvisorTip */
.am-tip { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-6) var(--space-4) var(--space-4); border-radius: var(--radius-md); background: var(--surface-mint); }
.am-tip .am-tile { width: 48px; height: 48px; border-radius: 14px; }
.am-tip .am-tile img { width: 36px; height: 36px; }
.am-tip__who { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-positive); }
.am-tip__text { margin: 4px 0 0; font-size: 16px; line-height: 24px; }

/* FaqItem */
.am-faq { border-bottom: 1.5px solid var(--line); }
.am-faq__q { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 20px 4px; cursor: pointer; font-weight: 650; font-size: 18px; line-height: 26px; }
.am-faq__q::-webkit-details-marker { display: none; }
.am-faq__plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--surface-sky); }
.am-faq__plus::before, .am-faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; border-radius: 2px; background: var(--text-info); transform: translate(-50%, -50%); transition: transform .2s ease; }
.am-faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.am-faq[open] .am-faq__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.am-faq__a { padding: 0 48px 20px 4px; color: var(--ink-muted); }

/* HumanHelpButton: "Hablar con una persona" (sin logo de WhatsApp; el punto dice que hay alguien) */
.am-help { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-family: var(--font-sans); font-weight: 700; font-size: 16px; text-decoration: none; transition: filter .15s ease; white-space: nowrap; }
.am-help:hover { filter: brightness(1.06); }
.am-help__dot { position: relative; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--on-accent); box-shadow: 0 0 0 4px rgba(255,255,255,0.55); flex: none; }
.am-help--sm { height: 44px; font-size: 15px; padding: 0 18px 0 14px; }
.am-help--float { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 20; box-shadow: var(--shadow-float); }
.cabecera .am-help { display: none; }
@media (min-width: 900px) { .cabecera .am-help { display: inline-flex; } .am-help--float { display: none; } }
@media (max-width: 899px) { main { padding-bottom: 80px; } }

/* ── Formularios (Field) ──────────────────────────────────── */
.campo, .am-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.campo label, .campo .rotulo, .am-field__label { font-weight: 650; font-size: 15px; line-height: 20px; }
.campo input, .campo select, .campo textarea, .am-field__ctrl { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; width: 100%; transition: border-color .15s ease; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--ink-muted); }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: var(--ink-muted); }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.campo textarea { resize: vertical; }
.campo .ayuda { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.campo.ia input { border-color: var(--text-positive); background: var(--surface-mint); }
.fila { display: grid; gap: var(--space-3); }
@media (min-width: 520px) { .fila.dos { grid-template-columns: 1fr 1fr; } }
input[type=range] { width: 100%; accent-color: var(--action); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--action); flex: none; }
.opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.opciones button { font: inherit; font-weight: 700; font-size: 16px; min-height: 52px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; line-height: 1.25; }
.opciones button small { font-weight: 500; font-size: 13px; color: var(--ink-muted); }
.opciones button[aria-pressed=true] { border-color: var(--action); background: var(--action); color: var(--on-action); }
.opciones button[aria-pressed=true] small { color: var(--on-action); opacity: .85; }

/* ── Avisos ───────────────────────────────────────────────── */
.aviso { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; line-height: 22px; background: var(--warn-tint); color: var(--warn); }
.aviso.error { background: var(--danger-tint); color: var(--danger); }
.aviso.ok { background: var(--surface-mint); color: var(--text-positive); }
.todo { outline: 2px dashed var(--warn); outline-offset: 2px; background: var(--warn-tint); color: var(--warn); border-radius: 6px; padding: 2px 6px; font-size: .9em; }

/* ── Flujo por pasos (paletas, completar, revisión) ───────── */
.paso { margin: var(--space-6) 0; }
.paso-num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--action); color: var(--on-action); font-family: var(--font-display); font-weight: 800; font-size: 15px; margin-right: 8px; vertical-align: 3px; }
.subir { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; border: 2px dashed var(--text-info); border-radius: var(--radius-lg); background: var(--surface-sky); padding: 28px 16px; cursor: pointer; min-height: 180px; position: relative; }
.subir input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.subir strong { font-size: 18px; color: var(--text-info); }
.subir.con-foto { border-style: solid; padding: 10px; }
.subir.con-foto img { max-height: 260px; border-radius: var(--radius-md); object-fit: contain; }
.cuota { text-align: center; padding: 22px 16px; border-radius: var(--radius-lg); background: var(--action); color: var(--on-action); }
.cuota .monto { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.cuota .monto small { font-size: 18px; font-weight: 500; letter-spacing: 0; }
.cuota .detalle { color: var(--on-action); opacity: .85; font-size: 15px; }
.lista-cubre { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lista-cubre li { padding-left: 32px; position: relative; }
.lista-cubre li::before { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.lista-cubre.si li::before { content: "✓"; background: var(--surface-mint); color: var(--text-positive); box-shadow: inset 0 0 0 1.5px var(--text-positive); }
.lista-cubre.no li::before { content: "✕"; background: var(--danger-tint); color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.lista-cubre.pasos { counter-reset: p; }
.lista-cubre.pasos li::before { counter-increment: p; content: counter(p); background: var(--surface-sky); color: var(--text-info); }
.transparencia { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .transparencia { grid-template-columns: 1fr 1fr; } .transparencia .ancho-total { grid-column: 1 / -1; } }
.lector { display: flex; gap: 10px; align-items: center; color: var(--ink-muted); font-size: 15px; }
.girando { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--surface-sky); border-top-color: var(--text-info); animation: gira .8s linear infinite; flex: none; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .girando { animation: none; } * { transition: none !important; } }

/* ── Pie: logo en blanco sobre brand-navy ─────────────────── */
.pie { background: var(--brand-navy); color: #fff; padding: 40px 0; }
:root[data-theme="dark"] .pie { background: var(--surface-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pie { background: var(--surface-soft); } }
.pie a { color: #fff; }
.pie .contenedor { display: grid; gap: 18px; }
.pie .logo { height: 44px; }
.pie p { color: #fff; opacity: .9; margin: 0; font-size: 14px; line-height: 20px; }
.pie .enlaces { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.pie .botones-ley { display: flex; flex-wrap: wrap; gap: 10px; }
.pie .botones-ley a { border: 1.5px solid rgba(255,255,255,.6); border-radius: var(--radius-pill); padding: 8px 14px; text-decoration: none; font-size: 14px; font-weight: 600; }
.pie .todo { background: rgba(255,255,255,.08); color: #FFD68A; outline-color: #FFD68A; }

/* ── Panel del equipo ─────────────────────────────────────── */
.panel { font-size: 15px; }
.panel table { width: 100%; border-collapse: collapse; }
.panel th, .panel td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.panel th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.panel tr.click { cursor: pointer; }
.panel tr.click:hover { background: var(--surface-sky); }
.pestanas { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.pestanas button { font: inherit; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius-pill); padding: 8px 14px; cursor: pointer; }
.pestanas button[aria-selected=true] { background: var(--action); color: var(--on-action); border-color: var(--action); }
.grilla-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.grilla-docs a { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; text-decoration: none; font-size: 13px; color: var(--ink); }
.grilla-docs img { height: 110px; width: 100%; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.desplaza { overflow-x: auto; }
dialog { border: 0; border-radius: var(--radius-lg); padding: 22px; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
dialog::backdrop { background: rgba(10, 15, 60, .45); }
textarea.json { font-family: ui-monospace, Menlo, monospace; font-size: 13px; min-height: 260px; }

/* ── Variante guardada (oct. 2026): encabezado de la home en menta lisa con franja verde. Para probarla, sacá el comentario.
/* ── Prueba (oct. 2026): encabezado de la home en menta lisa con franja verde, en lugar del degradé ── * /
.heroe.hero-home { background: var(--surface-mint); border-bottom: 6px solid var(--brand-green); }
.hero-home .eyebrow { color: var(--text-positive); }
.hero-home .btn-en-degrade { background: #fff; color: var(--brand-navy); border-color: var(--brand-navy); }
.hero-home .mascot { filter: drop-shadow(0 12px 18px rgba(10,15,60,.18)); }
/* En oscuro el menta es oscuro: el texto pasa a claro para que se lea * /
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-home h1, :root:not([data-theme="light"]) .hero-home .lead, :root:not([data-theme="light"]) .hero-home .trust { color: var(--ink); }
}
:root[data-theme="dark"] .hero-home h1, :root[data-theme="dark"] .hero-home .lead, :root[data-theme="dark"] .hero-home .trust { color: var(--ink); }

*/
