/* =========================================================
   CotizadorIsapres — Hoja de estilos principal
   Paleta: azul corporativo, celeste, verde éxito, blanco, gris
   Tipografía: Poppins (títulos) + Inter (texto)
   ========================================================= */

:root {
  /* Colores */
  --azul: #0A2540;          /* azul corporativo profundo */
  --azul-brillante: #2563EB;
  --azul-700: #1D4ED8;
  --celeste: #E8F1FF;
  --celeste-200: #CFE2FF;
  --verde: #16B364;         /* verde éxito (CTA) */
  --verde-700: #0E9554;
  --naranjo: #F97316;
  --naranjo-700: #EA580C;
  --blanco: #FFFFFF;
  --gris-claro: #F6F8FB;
  --gris-borde: #E6EBF1;
  --texto: #1A2B3C;         /* texto gris oscuro */
  --texto-suave: #5B6B7B;

  /* Tipografía */
  --font-title: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Sombras suaves */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .06), 0 1px 3px rgba(10, 37, 64, .08);
  --shadow-md: 0 4px 16px rgba(10, 37, 64, .08);
  --shadow-lg: 0 18px 50px rgba(10, 37, 64, .14);

  /* Otros */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-title); color: var(--azul); line-height: 1.15; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 800px; }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--verde); color: #fff; box-shadow: 0 6px 18px rgba(22,179,100,.32); }
.btn-primary:hover { background: var(--verde-700); box-shadow: 0 10px 26px rgba(22,179,100,.42); transform: translateY(-2px); }
#quote-next { background: var(--naranjo); box-shadow: 0 6px 18px rgba(249,115,22,.34); }
#quote-next:hover { background: var(--naranjo-700); box-shadow: 0 10px 26px rgba(249,115,22,.44); }

.btn-outline { background: transparent; color: var(--azul); border-color: var(--gris-borde); }
.btn-outline:hover { border-color: var(--azul-brillante); color: var(--azul-brillante); transform: translateY(-2px); }

.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.btn-whatsapp { background: #fff; color: #128C3E; border-color: var(--gris-borde); }
.btn-whatsapp:hover { border-color: #25D366; color: #128C3E; transform: translateY(-2px); }

/* ============ HEADER ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  background: transparent; transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.85); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--azul); font-family: var(--font-title); }
.logo-mark { display: inline-flex; color: var(--azul); }
.logo-text { font-size: 20px; font-weight: 600; }
.logo-text strong { color: var(--verde); font-weight: 800; }
.logo--light, .logo--light .logo-text { color: #fff; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--azul); opacity: .82; transition: opacity .2s, color .2s; }
.site-header:not(.scrolled) .nav-links a { color: var(--azul); }
.nav-links a:hover { opacity: 1; color: var(--azul-brillante); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { width: 24px; height: 2px; background: var(--azul); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header:not(.scrolled) .nav-toggle span { background: var(--azul); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 64px;
  background:
    radial-gradient(1100px 520px at 85% -10%, var(--celeste) 0%, rgba(232,241,255,0) 60%),
    linear-gradient(180deg, #fff 0%, var(--gris-claro) 100%);
  overflow: hidden;
}
.hero-shell { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 580px; margin-inline: auto; text-align: center; }
.hero-copy.reveal,
.hero-visual--picture.reveal { opacity: 1; transform: none; }

.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--gris-borde); color: var(--azul); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(22,179,100,.18); }

.hero-copy h1 { font-size: clamp(2.25rem, 4.4vw, 3.65rem); font-weight: 800; margin: 18px 0 16px; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--texto-suave); max-width: 560px; margin-inline: auto; text-wrap: pretty; }

.hero-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 24px 0 28px; }
.hero-benefits--compact { max-width: 560px; margin-inline: auto; }
.hero-benefits li { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--azul); }
.hero-benefits svg { width: 18px; height: 18px; color: var(--verde); flex: none; }

.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-cta--single .btn { min-width: 220px; }
.hero-cta.center { justify-content: center; }

.hero-trust { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; color: var(--texto-suave); font-size: 14px; }
.avatars { display: flex; }
.avatars img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -10px; box-shadow: var(--shadow-sm); }
.avatars img:first-child { margin-left: 0; }

.hero-visual { position: relative; min-width: 0; }
.hero-picture {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(390px, 34vw, 520px);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.hero-picture::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 100%);
}
.hero-photo {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: center center;
  aspect-ratio: auto;
}

/* ============ FORMULARIO ============ */
.quote-card {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: clamp(22px, 3vw, 32px); margin-top: 22px;
}
.hero-shell > .quote-card { width: 100%; max-width: 980px; margin: 0 auto; }
.quote-card.reveal { opacity: 1; transform: none; }
.quote-head { text-align: center; }
.quote-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.quote-head p { color: var(--texto-suave); font-size: 14px; margin-top: 4px; }
.quote-form { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.form-step { display: flex; flex-direction: column; gap: 14px; }
.form-step[hidden] { display: none !important; }
.form-progress { display: grid; gap: 8px; color: var(--azul); font-size: 13px; font-weight: 700; }
.progress-track { height: 8px; border-radius: 999px; background: var(--gris-claro); overflow: hidden; }
.progress-bar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--verde), var(--azul-brillante)); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--azul); }
.field .opt { color: var(--texto-suave); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 14.5px; color: var(--texto);
  padding: 11px 12px; border: 1.5px solid var(--gris-borde); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .18s, box-shadow .18s; width: 100%;
  resize: vertical; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul-brillante); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.1); }
.field .field-help { color: var(--texto-suave); font-size: 12px; line-height: 1.25; }
.field .error { color: #E5484D; font-size: 12px; min-height: 0; }
.field .error:not(:empty) { min-height: 14px; }
.form-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.quote-form .btn { white-space: normal; text-align: center; line-height: 1.25; }

.form-secure { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--texto-suave); font-size: 12.5px; }
.form-secure svg { color: var(--verde); flex: none; }
.form-message { font-size: 14px; border-radius: var(--radius-sm); padding: 0; }
.form-message.show { padding: 12px 14px; margin-top: 4px; }
.form-message.success { background: #E7F8EF; color: var(--verde-700); border: 1px solid #BFE9D2; }
.form-message.error { background: #FDECEC; color: #B42318; border: 1px solid #F6C9C7; }
.form-message.info { background: #EEF6FF; color: #175CD3; border: 1px solid #B2DDFF; }

.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; }
.btn.loading .btn-label { opacity: .7; }
.btn.loading .spinner { display: inline-block; animation: spin .7s linear infinite; }

/* ============ LOGOS ISAPRES ============ */
.isapre-logos { padding: 48px 0; background: linear-gradient(180deg, #fff 0%, var(--gris-claro) 100%); border-top: 1px solid var(--gris-borde); border-bottom: 1px solid var(--gris-borde); }
.logos-title { text-align: center; color: var(--texto-suave); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px; opacity: 0.7; }
.logos-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; align-items: center; justify-items: center; border: 1px solid var(--gris-borde); border-radius: 16px; background: #fff; padding: 20px 24px; box-shadow: var(--shadow-sm); }
.logo-chip { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: auto; padding: 12px 16px; background: transparent; border: none; border-right: 1px solid var(--gris-borde); transition: transform .2s; }
.logo-chip:last-child { border-right: none; }
.logo-chip:hover { transform: scale(1.03); }
.logo-chip img { max-height: 32px; width: auto; object-fit: contain; transition: opacity .2s; }
.logo-chip:hover img { opacity: 0.85; }
.logo-chip span { font-family: var(--font-title); font-weight: 600; color: var(--azul); font-size: 13px; text-align: center; white-space: nowrap; opacity: 0; position: absolute; }

@media (max-width: 1024px) {
  .logos-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 16px; }
  .logo-chip { border-right: none; border-bottom: 1px solid var(--gris-borde); border-radius: 8px; background: var(--gris-claro); }
}
@media (max-width: 768px) {
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-chip img { max-height: 28px; }
}

/* ============ SECCIONES GENÉRICAS ============ */
.section { padding: 88px 0; }
.section-alt { background: var(--gris-claro); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; color: var(--azul-brillante); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; text-wrap: balance; }
.section-head p { color: var(--texto-suave); margin-top: 12px; font-size: 1.05rem; text-wrap: pretty; }

/* grids reutilizables */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============ BENEFICIOS ============ */
.benefit-card { background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.benefit-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--celeste); color: var(--azul-brillante); margin-bottom: 16px; }
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.benefit-card p { color: var(--texto-suave); font-size: 14.5px; }

/* ============ TIMELINE ============ */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; list-style: none; margin: 0; padding: 0; }
.timeline li { background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow-sm); position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--azul); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.timeline h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline p { color: var(--texto-suave); font-size: 14.5px; }

/* ============ COMPARADOR ISAPRES ============ */
.isapre-card { background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.isapre-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.isapre-card-logo { max-height: 56px; width: auto; object-fit: contain; margin-bottom: 12px; filter: none; }
.isapre-card h3 { font-size: 1.2rem; }
.isapre-tag { color: var(--azul-brillante); font-weight: 600; font-size: 13px; margin: 4px 0 14px; }
.isapre-card ul { display: flex; flex-direction: column; gap: 9px; }
.isapre-card li { position: relative; padding-left: 24px; font-size: 14px; color: var(--texto-suave); }
.isapre-card li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 9px; border-left: 2px solid var(--verde); border-bottom: 2px solid var(--verde); transform: rotate(-45deg); }
.isapre-card--cta { background: linear-gradient(160deg, var(--azul) 0%, #133a63 100%); color: #fff; justify-content: center; text-align: center; }
.isapre-card--cta h3 { color: #fff; }
.isapre-card--cta p { color: rgba(255,255,255,.82); font-size: 14.5px; margin: 8px 0 18px; }

/* ============ TIPOS DE CLIENTES ============ */
.client-card { background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; gap: 6px; }
.client-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--celeste-200); }
.client-icon { font-size: 34px; margin-bottom: 6px; }
.client-card h3 { font-size: 1.15rem; }
.client-card p { color: var(--texto-suave); font-size: 14.5px; }
.client-link { color: var(--verde-700); font-weight: 600; font-size: 14px; margin-top: 8px; }

/* ============ ESTADÍSTICAS ============ */
.stats { background: linear-gradient(135deg, var(--azul) 0%, #123a64 100%); color: #fff; padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-title); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); display: block; color: #fff; }
.stat-label { color: rgba(255,255,255,.78); font-size: 15px; }

/* ============ TESTIMONIOS ============ */
.slider { position: relative; max-width: 760px; margin: 0 auto; overflow: hidden; }
.slider-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.testimonial { min-width: 100%; padding: 8px 12px; text-align: center; }
.stars { color: #F5A623; font-size: 20px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial blockquote { font-family: var(--font-title); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--azul); line-height: 1.4; max-width: 640px; margin: 0 auto 22px; text-wrap: balance; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: 12px; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption span { display: flex; flex-direction: column; text-align: left; }
.testimonial figcaption strong { color: var(--azul); }
.testimonial figcaption small { color: var(--texto-suave); }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--gris-borde); cursor: pointer; transition: width .3s, background .3s; }
.slider-dots button.active { width: 26px; border-radius: 999px; background: var(--azul-brillante); }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .2s; }
.faq-item.open { box-shadow: var(--shadow-md); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 18px 22px; background: transparent; border: none; cursor: pointer; font-family: var(--font-title); font-weight: 600; font-size: 1.02rem; color: var(--azul); }
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--azul-brillante); border-radius: 2px; transition: transform .3s; }
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--texto-suave); font-size: 15px; }

/* ============ BLOG ============ */
.blog-card { position: relative; display: block; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; cursor: pointer; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center 28%; }
.blog-card a { text-decoration: none; color: inherit; }
.blog-card:hover h3 { color: var(--azul-brillante); }
.blog-body { padding: 20px 22px 24px; }
.blog-meta { font-size: 12.5px; color: var(--texto-suave); }
.blog-cat { color: var(--azul-brillante); font-weight: 700; }
.blog-body h3 { font-size: 1.12rem; margin: 8px 0; line-height: 1.3; }
.blog-body p { color: var(--texto-suave); font-size: 14.5px; }
.blog-author { display: block; margin-top: 14px; font-size: 13px; color: var(--texto-suave); font-weight: 500; }

/* ============ CTA FINAL ============ */
.cta-final { background: radial-gradient(800px 400px at 50% 0%, #133a63 0%, var(--azul) 70%); color: #fff; text-align: center; padding: 84px 0; }
.cta-final h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cta-final p { color: rgba(255,255,255,.82); max-width: 540px; margin: 14px auto 28px; font-size: 1.1rem; }

/* ============ FOOTER ============ */
.site-footer { background: var(--azul); color: rgba(255,255,255,.78); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { font-size: 14.5px; margin-top: 16px; max-width: 360px; }
.footer-disclaimer { font-size: 12.5px; color: rgba(255,255,255,.55); }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.78); font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a { color: rgba(255,255,255,.78); }
.footer-social a:hover { color: var(--verde); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding: 22px 24px; font-size: 13px; color: rgba(255,255,255,.6); }

/* ============ WHATSAPP FLOTANTE ============ */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 28px rgba(37,211,102,.5);
  animation: pulse-ws 2.4s infinite; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============ ARTÍCULO / BLOG POST ============ */
.article-hero {
  background: linear-gradient(180deg, var(--celeste) 0%, var(--blanco) 100%);
  padding: calc(var(--header-h) + 48px) 0 40px;
  border-bottom: 1px solid var(--gris-borde);
}
.breadcrumbs { font-size: 13.5px; color: var(--texto-suave); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--azul-brillante); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { color: var(--gris-borde); }
.article-hero .blog-cat { margin-bottom: 16px; }
.article-hero h1 { font-size: clamp(28px, 5vw, 46px); max-width: 820px; }
.article-hero h1 .title-accent { color: var(--verde); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; color: var(--texto-suave); font-size: 14.5px; }
.article-meta .author-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--texto); }
.article-meta .author-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center; font-family: var(--font-title); font-size: 14px; }

.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; padding: 48px 0 64px; }
.article-body { max-width: 720px; }
.article-cover { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); margin-bottom: 32px; }
.article-body h2 { font-size: clamp(22px, 3vw, 30px); margin: 36px 0 14px; }
.article-body h3 { font-size: 20px; margin: 26px 0 10px; }
.article-body p { color: var(--texto); margin-bottom: 18px; font-size: 17px; }
.article-body ul.bullets, .article-body ol.steps { margin: 0 0 22px; padding-left: 0; }
.article-body ul.bullets li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 16.5px; }
.article-body ul.bullets li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--verde); }
.article-body ul.bullets li::after { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.article-body ol.steps { counter-reset: step; list-style: none; }
.article-body ol.steps li { counter-increment: step; position: relative; padding-left: 50px; margin-bottom: 18px; font-size: 16.5px; }
.article-body ol.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 10px; background: var(--azul-brillante); color: #fff; font-family: var(--font-title); font-weight: 700; display: grid; place-items: center; }
.article-body ol.steps li strong { display: block; color: var(--azul); margin-bottom: 2px; }
.article-body a.inline { color: var(--azul-brillante); font-weight: 600; }
.article-body a.inline:hover { text-decoration: underline; }
.article-body blockquote { border-left: 4px solid var(--verde); background: var(--gris-claro); padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 24px; color: var(--texto); font-size: 17px; }

.callout { display: flex; gap: 14px; background: var(--celeste); border: 1px solid var(--celeste-200); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.callout .callout-icon { font-size: 24px; line-height: 1; }
.callout h4 { color: var(--azul); margin-bottom: 4px; font-size: 16px; }
.callout p { margin: 0; font-size: 15px; color: var(--texto-suave); }

.article-cta { background: var(--azul); color: #fff; border-radius: var(--radius); padding: 32px; text-align: center; margin: 40px 0; }
.article-cta h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.article-cta p { color: rgba(255,255,255,.82); margin-bottom: 20px; }
.article-cta .btn { margin: 6px; }

.article-aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.aside-card { background: var(--blanco); border: 1px solid var(--gris-borde); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.aside-card h4 { font-size: 17px; margin-bottom: 8px; }
.aside-card p { font-size: 14.5px; color: var(--texto-suave); margin-bottom: 16px; }
.toc a { display: block; font-size: 14.5px; color: var(--texto-suave); padding: 7px 0; border-bottom: 1px solid var(--gris-borde); }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--azul-brillante); }

.related { background: var(--gris-claro); padding: 56px 0; border-top: 1px solid var(--gris-borde); }
.related h2 { font-size: 26px; margin-bottom: 24px; }

.mobile-cta{display:none}
.form-secure a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* R23: Logos de Isapres en carrusel horizontal infinito */
.logos-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gris-borde);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.logos-marquee .logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: logos-scroll 20s linear infinite;
  will-change: transform;
}

.logos-marquee:hover .logos-track {
  animation-play-state: paused;
}

.logos-marquee .logo-chip {
  flex: 0 0 auto;
  min-width: clamp(150px, 18vw, 220px);
  height: 58px;
  padding: 10px 28px;
  border: 0;
  border-right: 1px solid var(--gris-borde);
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logos-marquee .logo-chip img {
  max-height: 34px;
  max-width: 145px;
  width: auto;
  object-fit: contain;
}

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

@media (max-width: 768px) {
  .logos-marquee {
    border-radius: 16px;
    padding: 12px 0;
  }

  .logos-marquee .logo-chip {
    min-width: 145px;
    height: 54px;
    padding-inline: 22px;
  }

  .logos-marquee .logo-chip img {
    max-height: 30px;
    max-width: 132px;
  }
}

@media (max-width: 430px) {
  .logos-marquee .logo-chip {
    min-width: 132px;
    height: 50px;
    padding-inline: 18px;
  }

  .logos-marquee .logo-chip img {
    max-height: 28px;
    max-width: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos-marquee .logos-track {
    animation: none;
    transform: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .logos-marquee .logo-chip {
    scroll-snap-align: center;
  }
}

/* R25: Overlay global para cierre del menú hamburguesa */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  background: rgba(10, 37, 64, .34);
  opacity: 0;
  transition: opacity .28s ease;
}

.menu-overlay.open {
  display: block;
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
}

/* R26: menú hamburguesa sin overlay/backdrop */
.menu-overlay,
.menu-overlay.open {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
}

/* R27: Unificar X animada del botón hamburguesa en todas las instancias */
.nav-toggle {
  gap: 5px;
}

.nav-toggle span {
  width: 24px !important;
  height: 2px;
  border-radius: 999px;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg) !important;
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0 !important;
  transform: scaleX(0) !important;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) !important;
}

@media (max-width: 560px) {
  .nav-toggle span {
    width: 24px !important;
  }
}

/* R28: Botón hamburguesa siempre alineado al extremo derecho */
.nav-inner {
  justify-content: flex-start;
}

.logo {
  flex: 0 0 auto;
}

.nav-links {
  flex: 0 1 auto;
}

.nav-actions {
  margin-left: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.nav-toggle {
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex: 0 0 auto;
}

@media (max-width: 1120px) {
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .nav-actions {
    margin-left: auto !important;
    display: flex;
    align-items: center;
    justify-content: flex-end !important;
    flex: 0 0 auto;
  }

  .nav-toggle {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 560px) {
  .nav-toggle {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* R29: Orden global consistente del header responsive */
@media (max-width: 1120px) {
  .nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  .logo {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  .logo-text {
    white-space: nowrap !important;
  }

  .nav-actions {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
  }

  .nav-actions .btn-whatsapp {
    order: 1 !important;
    flex: 0 0 auto !important;
  }

  .nav-actions .btn:not(.btn-whatsapp) {
    order: 2 !important;
    flex: 0 0 auto !important;
  }

  .nav-actions .nav-toggle,
  .nav-toggle {
    order: 99 !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 720px) {
  .nav-actions .btn-whatsapp {
    display: none !important;
  }

  .nav-actions .btn:not(.btn-whatsapp) {
    padding-inline: 14px !important;
    min-height: 42px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 430px) {
  .nav-actions .btn:not(.btn-whatsapp) {
    display: none !important;
  }

  .nav-actions .nav-toggle,
  .nav-toggle {
    flex-basis: 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
}

/* R30: Prueba de nuevo SVG para marca del logotipo */
.logo-mark {
  flex: 0 0 auto;
}

.logo-mark-img {
  display: block;
  width: 37px;
  height: 37px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-mark-img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 430px) {
  .logo-mark-img {
    width: 30px;
    height: 30px;
  }
}


/* R35: Ajuste fino logo CotizadorIsapres */
.logo {
  gap: 1px;
}

.logo-text {
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.logo-text strong {
  color: var(--verde);
  font-weight: 600;
  margin-left: 1px;
}

@media (max-width: 768px) {
  .logo {
    gap: 1px;
  }

  .logo-text {
    font-size: 15.5px;
  }
}

@media (max-width: 430px) {
  .logo {
    gap: 0px;
  }

  .logo-text {
    font-size: 14.5px;
  }
}



/* R36: Escudo más cerca del texto */
/* Se reduce al mínimo seguro el espacio entre escudo y tipografía sin que se toquen. */

/* R41: Animación sutil del logotipo cada 15 segundos */
.site-header .logo {
  overflow: hidden;
}

.site-header .logo-mark {
  position: relative;
  z-index: 2;
  background: transparent;
}

.site-header .logo-text {
  position: relative;
  z-index: 1;
  display: inline-block;
  transform-origin: left center;
  will-change: transform, opacity;
  animation: logoTextCarousel 15s ease-in-out infinite;
}

@keyframes logoTextCarousel {
  0%, 78%, 100% {
    transform: translateX(0);
    opacity: 1;
  }

  84% {
    transform: translateX(-108%);
    opacity: 0;
  }

  88% {
    transform: translateX(-108%);
    opacity: 0;
  }

  89% {
    transform: translateX(10px);
    opacity: 0;
  }

  94% {
    transform: translateX(0);
    opacity: 1;
  }
}

.site-header .logo:hover .logo-text,
.site-header .logo:focus-visible .logo-text {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .site-header .logo-text {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* R42: Animación del logotipo también en el footer */
.site-footer .logo {
  overflow: hidden;
}

.site-footer .logo-mark {
  position: relative;
  z-index: 2;
  background: transparent;
}

.site-footer .logo-text {
  position: relative;
  z-index: 1;
  display: inline-block;
  transform-origin: left center;
  will-change: transform, opacity;
  animation: logoTextCarousel 15s ease-in-out infinite;
}

.site-footer .logo:hover .logo-text,
.site-footer .logo:focus-visible .logo-text {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .logo-text {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* R44: Quitar sombreado de logos en Características de las Isapres */
#isapre-cards .isapre-card-logo,
.isapre-card-logo {
  filter: none !important;
  box-shadow: none !important;
}



/* =========================================================
   V17: formulario simplificado de un solo envío.
   Paso 1 se completa en la web; Paso 2 es la asesoría telefónica.
   ========================================================= */
.quote-form--single-step {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.quote-form--single-step .field-row--single {
  grid-template-columns: minmax(0, 1fr);
}
.quote-form--single-step .field:not(.field-hp) {
  position: relative;
  gap: 4px;
}
.quote-form--single-step .field:not(.field-hp) > label {
  position: absolute;
  top: 24px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #607083;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top .16s ease, color .16s ease, background-color .16s ease, font-size .16s ease, padding .16s ease;
}
.quote-form--single-step .field:not(.field-hp) > input::placeholder {
  color: transparent;
  opacity: 0;
  transition: color .16s ease, opacity .16s ease;
}
.quote-form--single-step .field:not(.field-hp):focus-within > label,
.quote-form--single-step .field:not(.field-hp):has(input:not(:placeholder-shown)) > label {
  top: 0;
  padding: 0 6px;
  color: var(--azul-brillante);
  background: #fff;
  font-size: 11px;
}
.quote-form--single-step .field:not(.field-hp):focus-within > input::placeholder {
  color: #8a94a3;
  opacity: 1;
}
.quote-form--single-step .field:not(.field-hp):has(.invalid) > label {
  color: #b42318;
}
.quote-form--single-step #quote-submit {
  width: 100%;
  margin-top: 2px;
}
