/* MiBolsillo · web pública. Sistema de diseño: tokens abajo; nada de colores sueltos en los componentes. */
:root {
  /* Color */
  --navy-900: #0b2a5b; --navy-800: #0f3573; --navy-700: #14408a; --navy-100: #dce7f8;
  --ink: #10203a; --muted: #4b5b75; --line: #d9e1ee; --bg: #f5f7fb; --surface: #fff;
  --green-700: #167a4b; --green-300: #8fd6b2; --green-100: #e3f4eb;
  --focus: #2f6fdf; --on-dark: #ffffff; --on-dark-2: #c9d6ee;
  /* Tipografía */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Espaciado (escala de 8) y radios */
  --s1: .25rem; --s2: .5rem; --s3: 1rem; --s4: 1.5rem; --s5: 2rem; --s6: 3rem; --s7: 5rem;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 42, 91, .06), 0 8px 24px rgba(11, 42, 91, .08);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--font-body); color: var(--ink); background: var(--surface); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .sec--dark :focus-visible, .cta :focus-visible, .foot :focus-visible { outline-color: #fff; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 820px); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy-900); padding: var(--s3); z-index: 100; }
.skip:focus { left: var(--s3); top: var(--s3); }

/* Botones (alto táctil mínimo 44 px) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: .75rem 1.5rem;
  border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 44px; padding: .5rem 1.25rem; font-size: .95rem; }
.btn--primary { background: var(--navy-900); color: #fff; }
.btn--primary:hover { background: var(--navy-700); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--navy-100); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn.is-off { cursor: default; opacity: .92; }
.btn.is-off:hover { background: #fff; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: var(--s4); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--navy-900); }
.brand img { border-radius: 9px; }
.brand--light { color: #fff; }
.nav { display: flex; gap: var(--s4); margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; padding: .6rem .25rem; }
.nav a:hover { color: var(--navy-900); }
.top .btn { margin-left: var(--s2); }

/* Portada */
.hero { background: radial-gradient(1200px 520px at 85% -10%, #1b4fa8 0%, transparent 60%), var(--navy-900); color: var(--on-dark); }
.hero__in { display: grid; gap: var(--s6); grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: var(--s7); }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--green-700); margin-bottom: var(--s3); }
.eyebrow--light { color: var(--green-300); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.hero h1 em, .cta h2 em { font-style: normal; color: var(--green-300); }
.lead { margin-top: var(--s4); font-size: 1.2rem; line-height: 1.6; color: var(--on-dark-2); max-width: 36rem; }
.lead--sm { font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.badges { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s5); color: var(--on-dark-2); font-size: .95rem; }
.badges li { display: inline-flex; align-items: center; gap: .4rem; }
.badges .icon { width: 18px; height: 18px; color: var(--green-300); }

/* Teléfono ilustrativo (solo CSS) */
.hero__art { margin: 0; justify-self: center; text-align: center; }
.hero__art figcaption { margin-top: var(--s3); font-size: .8rem; color: var(--on-dark-2); }
.phone { width: 270px; background: #f5f7fb; border: 8px solid #0a1f45; border-radius: 34px; padding: var(--s3); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); text-align: left; color: var(--ink); }
.phone__bar { width: 64px; height: 5px; background: #0a1f45; border-radius: 3px; margin: 0 auto var(--s3); opacity: .5; }
.phone__hero { display: flex; flex-direction: column; gap: 2px; background: var(--navy-900); color: #fff; border-radius: 16px; padding: var(--s3); }
.phone__small { font-size: .7rem; opacity: .75; }
.phone__big { font-size: 1.35rem; font-weight: 600; }
.phone__chips { display: flex; gap: 6px; margin-top: 6px; }
.phone__chips i { font-style: normal; font-size: .65rem; padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.phone__chips i:first-child { background: #fff; color: var(--navy-900); }
.phone__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: var(--s3) 0; }
.phone__actions i { height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.phone__row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; margin-bottom: 8px; }
.phone__row b { width: 30px; height: 30px; border-radius: 9px; background: #dff3e8; flex: none; }
.phone__row b.b2 { background: #fbe3df; } .phone__row b.b3 { background: var(--navy-100); }
.phone__row span { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.phone__row u { display: block; height: 6px; border-radius: 3px; background: #e4e9f2; width: 80%; }
.phone__row u + u { width: 45%; }
.phone__row em { font-style: normal; font-size: .72rem; font-weight: 600; }
.phone .pos { color: var(--green-700); } .phone .neg { color: #b3261e; }

/* Secciones */
.sec { padding-block: var(--s7); }
.sec--tint { background: var(--bg); }
.sec--dark { background: var(--navy-900); color: var(--on-dark); }
.sec__head { max-width: 44rem; margin-bottom: var(--s6); }
.sec__head h2, .sec--dark h2, .cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.sec__intro { margin-top: var(--s3); color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: var(--s4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); box-shadow: var(--shadow); }
.card h3 { font-size: 1.25rem; margin: var(--s3) 0 var(--s2); }
.card p { color: var(--muted); }
.card__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--navy-100); color: var(--navy-800); }
.card__icon .icon { width: 24px; height: 24px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); counter-reset: s; }
.steps li { position: relative; padding-top: var(--s2); }
.steps__n { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-900); color: #fff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: var(--s3); }
.steps h3 { font-size: 1.3rem; margin-bottom: var(--s2); }
.steps p { color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); max-width: 880px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow); }
.plan--main { border: 2px solid var(--navy-900); }
.plan__badge { position: absolute; top: var(--s3); right: var(--s3); font-size: .75rem; font-weight: 700; padding: .2rem .7rem; border-radius: 99px; background: var(--green-100); color: var(--green-700); }
.plan h3 { font-size: 1.4rem; }
.plan__price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; margin: var(--s2) 0 var(--s4); color: var(--navy-900); }
.plan__price small { font-family: var(--font-body); font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan li { display: flex; gap: .6rem; padding: .35rem 0; color: var(--ink); }
.plan .icon { width: 20px; height: 20px; color: var(--green-700); flex: none; margin-top: 3px; }

.sec__split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
.checks { display: grid; gap: var(--s3); }
.checks li { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md); background: rgba(255, 255, 255, .05); }
.checks .icon { color: var(--green-300); flex: none; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s3); align-items: center; padding: var(--s4) 0; min-height: 56px; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--navy-700); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 var(--s4); color: var(--muted); max-width: 40rem; }

.cta { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; padding-block: var(--s6); }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.cta p { margin-top: var(--s2); color: var(--on-dark-2); font-size: 1.1rem; }

.foot { background: #081d42; color: var(--on-dark-2); padding-block: var(--s5); }
.foot__in { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center; justify-content: space-between; }
.foot__brand p { margin-top: var(--s2); font-size: .95rem; }
.foot__contact { display: flex; gap: var(--s4); }
.foot a { text-decoration: underline; text-underline-offset: 3px; }
.foot__by { letter-spacing: .12em; font-weight: 600; color: #fff; font-size: .9rem; }

/* Responsivo (móvil primero en lo importante: sin desplazamiento horizontal) */
@media (max-width: 960px) {
  .hero__in, .sec__split { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 600px) {
  .sec { padding-block: var(--s6); }
  .hero__in { padding-block: var(--s6); }
  .grid--3 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .top .btn { width: auto; }
  .cta__in .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
