/* Fuentes alojadas en el propio sitio (antes se pedían a Google Fonts) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/outfit-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/outfit-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==========================================================================
   SEGUROS CON LIZA — BASE CSS (RESET, TIPOGRAFÍA FLUIDA & LAYOUT)
   ========================================================================== */

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-neutral-800);
  background-color: var(--color-white);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* Selección */
::selection {
  background-color: var(--color-primary-100);
  color: var(--color-primary-900);
}

/* Encabezados */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-950);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1, h2, h3 { text-wrap: balance; }
h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 700; }
h4 { font-size: var(--text-xl); font-weight: 600; }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 600; }

p {
  margin-bottom: var(--space-md);
  color: var(--color-neutral-700);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-neutral-600);
  font-weight: 400;
}

/* Enlaces */
a {
  color: var(--color-secondary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary-700);
}

/* Imágenes y Medios */
img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Listas */
ul, ol {
  list-style: none;
}

/* Contenedores de Rejilla y Contenido */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container-narrow {
  max-width: var(--container-md);
}

.container-wide {
  max-width: var(--container-2xl);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

/* Secciones */
.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
}

.section-dark {
  background-color: var(--color-primary-950);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: var(--color-neutral-300);
}

.section-muted {
  background-color: var(--color-neutral-50);
}

.section-gradient {
  background: linear-gradient(145deg, var(--color-primary-950) 0%, var(--color-primary-900) 50%, var(--color-secondary-900) 100%);
  color: var(--color-white);
}

/* Utilidades de Flex y Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) and (max-width: 1024px) {
  .grid-md-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-emerald { color: var(--color-accent-emerald-600) !important; }
.text-gold { color: var(--color-accent-gold-500) !important; }
.text-muted { color: var(--color-neutral-500) !important; }
.text-white { color: var(--color-white) !important; }

/* Indicadores de Énfasis */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-tag-gold {
  background-color: var(--color-accent-gold-100);
  color: var(--color-accent-gold-700);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-tag-emerald {
  background-color: var(--color-accent-emerald-100);
  color: var(--color-accent-emerald-700);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-tag-blue {
  background-color: var(--color-primary-50);
  color: var(--color-secondary-700);
  border: 1px solid rgba(3, 105, 161, 0.2);
}


/* ==========================================================================
   FASE 1 (2026-10-10): accesibilidad, iconos, tipografía y movimiento
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 3000;
  padding: 0.65rem 1rem;
  background: var(--color-primary-950);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.skip-link:focus { top: 1rem; color: var(--color-white); }

/* Iconos en línea (Phosphor, licencia MIT) */
.ph { display: inline-block; vertical-align: -0.2em; flex: none; }

/* Anillo de foco visible para teclado */
:focus-visible {
  outline: 3px solid var(--color-secondary-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible, .hero-section :focus-visible { outline-color: #7dd3fc; }
input[type="range"]:focus-visible { outline-offset: 6px; }

/* Cifras con ancho fijo para que no "bailen" al cambiar */
.calc-savings-number, .calc-value-display, .calc-breakdown-val, .tabular { font-variant-numeric: tabular-nums; }

/* Pulsación con respuesta en todos los controles */
.toggle-option:active, .faq-item:active { transform: scale(0.98); }

/* Movimiento reducido: sin desplazamientos ni animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
