/* ============================================================
   EVERVIDA GROUP INSURANCE AGENCY — HOJA DE ESTILOS
   Landing page: Seguro de Vida / IUL / Planificación de Retiro
   ============================================================
   Enfoque: Mobile-first, rendimiento, accesibilidad.

   PLACEHOLDER — REEMPLAZAR MÁS ADELANTE:
   - Logotipo (actualmente wordmark en texto, ver .logo)
   - Teléfono / número de call tracking
   ============================================================ */

:root {
  --color-navy: #0f2a43;
  --color-navy-dark: #091b2d;
  --color-navy-soft: #eaeef2;
  --color-white: #ffffff;
  --color-gold: #d4af37;
  --color-gold-soft: #f7efd9;

  --color-cta: #f97316;
  --color-cta-hover: #ea580c;
  --color-cta-text: #ffffff;

  --color-text: #1c2b38;
  --color-text-muted: #57697a;
  --color-border: #dfe4ea;
  --color-bg: #fbfbfa;

  --color-focus: #1b6fa8;

  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(15, 42, 67, 0.10);
  --shadow-md: 0 8px 24px rgba(15, 42, 67, 0.12);
  --shadow-lg: 0 16px 40px rgba(15, 42, 67, 0.18);

  --sticky-call-bar-height: 64px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-navy); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em 0; color: var(--color-navy); }
p { margin: 0 0 1em 0; }
button { font-family: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

body.has-sticky-call { padding-bottom: var(--sticky-call-bar-height); }

@media (min-width: 900px) {
  body.has-sticky-call { padding-bottom: 0; }
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--color-navy); color: #fff;
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  z-index: 200; transition: top 0.15s ease;
}

.skip-link:focus { top: 0.6rem; }

html, body { overflow-x: hidden; }

/* ============================================================
   BOTONES Y CTA DE LLAMADA
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  min-height: 48px;
  line-height: 1.2;
}

.btn:active { transform: translateY(1px); }

.btn-primary, .call-button {
  background-color: var(--color-cta);
  color: var(--color-cta-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover, .call-button:hover {
  background-color: var(--color-cta-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-outline:hover { background-color: var(--color-navy); color: #fff; }
.btn-outline.on-dark { border-color: #ffffff; color: #ffffff; }
.btn-outline.on-dark:hover { background-color: #ffffff; color: var(--color-navy-dark); }

.btn-lg { padding: 1.15rem 2rem; font-size: 1.15rem; width: 100%; }

@media (min-width: 560px) { .btn-lg { width: auto; } }

.btn .icon-phone { font-size: 1.1em; }

.cta-group {
  display: flex; flex-direction: column; gap: 0.85rem; align-items: stretch;
}

@media (min-width: 560px) {
  .cta-group { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

.cta-group.centered { justify-content: center; }

.cta-subtext { font-size: 0.9rem; color: var(--color-text-muted); margin-top: 0.5rem; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.75rem 1.25rem;
  max-width: var(--container-max); margin: 0 auto;
}

/* Lockup de marca: ProtegeFuturo.com (marca/sitio digital)
   "by" Evervida Group Insurance Agency (la agencia de seguros). */
.logo { display: flex; flex-direction: column; line-height: 1.15; color: var(--color-text); min-width: 0; }
.logo strong { font-size: 1.1rem; font-weight: 800; color: var(--color-navy); letter-spacing: -0.01em; white-space: nowrap; }
.logo .logo__tld { color: var(--color-gold); font-weight: 800; }
.logo .logo__by {
  font-size: 0.6rem; letter-spacing: 0.04em; color: var(--color-text-muted);
  font-weight: 700; text-transform: none; margin-top: 0.15rem; line-height: 1.25;
}
.logo .logo__by em { font-style: normal; font-weight: 500; color: var(--color-text-muted); }

@media (min-width: 400px) {
  .logo strong { font-size: 1.2rem; }
  .logo .logo__by { font-size: 0.66rem; letter-spacing: 0.05em; }
}

@media (min-width: 900px) {
  .logo { flex-shrink: 0; }
  .logo strong { font-size: 1.3rem; }
  .logo .logo__by { font-size: 0.7rem; }
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.header-phone { display: none; font-weight: 700; color: var(--color-navy); white-space: nowrap; font-size: 1.05rem; }
.header-call-btn-mobile { display: inline-flex; padding: 0.55rem 0.7rem; }
.header-call-btn-mobile .call-text { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  color: var(--color-navy);
}

.nav-toggle svg { width: 24px; height: 24px; }

.main-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-white); border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md); padding: 0.5rem 1.25rem 1.25rem; display: none;
}

.main-nav.is-open { display: block; }
.main-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.main-nav a { display: block; padding: 0.75rem 0.25rem; font-weight: 600; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.main-nav li:last-child a { border-bottom: none; }

@media (min-width: 900px) {
  .site-header__inner { padding: 1rem 1.5rem; position: relative; }
  .header-phone { display: inline; }
  .header-call-btn-mobile { display: none; }
  .nav-toggle { display: none; }
  .main-nav {
    position: static; display: block; box-shadow: none; border-bottom: none;
    padding: 0; background: transparent; flex: 1; margin: 0 2rem;
  }
  .main-nav ul { flex-direction: row; justify-content: center; gap: 2rem; }
  .main-nav a { border-bottom: none; padding: 0.4rem 0.1rem; }
  .header-actions { gap: 1.1rem; }
}

/* Tablet / laptop pequeña: compacta el nav y las acciones para que el
   lockup de marca, el menú y el teléfono convivan sin desbordarse. */
@media (min-width: 900px) and (max-width: 1099px) {
  .logo strong { font-size: 1.15rem; }
  .logo .logo__by { font-size: 0.63rem; }
  .main-nav { margin: 0 0.75rem; }
  .main-nav ul { gap: 1.1rem; }
  .main-nav a { font-size: 0.9rem; }
  .header-actions { gap: 0.75rem; }
  .header-phone { font-size: 0.95rem; }
  .header-actions .btn { padding: 0.8rem 1.1rem; font-size: 0.95rem; }
}

/* ============================================================
   BARRA DE LLAMADA FIJA — SOLO MÓVIL
   ============================================================ */

.sticky-call-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background-color: var(--color-cta);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.22);
}

.sticky-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  color: var(--color-cta-text); font-weight: 800; font-size: 1.02rem;
  padding: 0.95rem 1rem; min-height: var(--sticky-call-bar-height);
}

@media (min-width: 900px) { .sticky-call-bar { display: none; } }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #fff; padding: 2.5rem 0 3rem; position: relative; overflow: hidden;
}

.hero::before {
  content: ""; position: absolute; top: -40%; right: -15%;
  width: 60%; padding-bottom: 60%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 70%);
  border-radius: 50%; pointer-events: none;
}

.hero__inner { display: grid; gap: 2rem; align-items: center; position: relative; }

@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }

.eyebrow {
  display: inline-block; background: rgba(212, 175, 55, 0.16);
  color: var(--color-gold); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem; border-radius: 999px; margin-bottom: 1rem;
}

.hero h1 { font-size: 1.8rem; margin-bottom: 0.75rem; color: #fff; }

@media (min-width: 640px) { .hero h1 { font-size: 2.3rem; } }
@media (min-width: 900px) { .hero h1 { font-size: 2.7rem; } }

.hero__lead { font-size: 1.05rem; color: rgba(255, 255, 255, 0.82); max-width: 54ch; }

.hero__phone-callout {
  display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0;
  padding: 0.85rem 1.1rem; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-md);
  max-width: max-content;
}

.hero__phone-callout .phone-number { font-size: 1.35rem; font-weight: 800; color: #fff; }
.hero__phone-callout .phone-label {
  display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.65);
}

.hero__agent-note { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); margin-top: 0.75rem; }

.hero__visual {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg); padding: 1.75rem;
}

.hero__visual h2 { font-size: 1.05rem; color: var(--color-gold); }
.hero__visual ul { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1rem; }
.hero__visual li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.95rem; color: rgba(255,255,255,0.9); }
.hero__visual .check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.18); color: var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */

.section { padding: 3rem 0; }
.section--alt { background-color: var(--color-navy-soft); }
.section--navy { background-color: var(--color-navy); color: rgba(255, 255, 255, 0.9); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255, 255, 255, 0.78); }

.section-heading { text-align: center; max-width: 680px; margin: 0 auto 2.25rem; }
.section-heading h2 { font-size: 1.55rem; }

@media (min-width: 900px) { .section-heading h2 { font-size: 1.95rem; } }

.section-heading p { color: var(--color-text-muted); }
.section--navy .section-heading p, .section--alt .section-heading p { color: inherit; }
.section--navy .section-heading p { color: rgba(255, 255, 255, 0.78); }

.eyebrow-gold {
  display: inline-block; color: var(--color-gold); font-weight: 700;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

/* ---- Bloques de contenido con visual a un lado (Vida / IUL / Retiro) ---- */

.content-block { display: grid; gap: 2rem; align-items: center; }

@media (min-width: 900px) {
  .content-block { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .content-block.reverse .content-block__visual { order: 2; }
}

.content-block__visual {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.section--navy .content-block__visual {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.content-block__visual .visual-icon {
  width: 60px; height: 60px; border-radius: var(--radius-md);
  background: var(--color-gold-soft); color: var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 1rem;
}

.content-block__visual ul { display: flex; flex-direction: column; gap: 0.75rem; }
.content-block__visual li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; }
.content-block__visual .dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-gold); margin-top: 0.5em;
}

.content-block__copy h2 { font-size: 1.6rem; }
@media (min-width: 900px) { .content-block__copy h2 { font-size: 1.9rem; } }

.content-block__copy ul { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.25rem 0; }
.content-block__copy li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.98rem; }
.content-block__copy .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-gold-soft); color: var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.75rem; margin-top: 0.1em;
}

/* ---- Caja educativa (costos, caps, condiciones) ---- */

.education-box {
  background: var(--color-navy-soft);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  color: var(--color-text-muted);
}

.education-box strong { color: var(--color-navy); }

.section--navy .education-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  border-left-color: var(--color-gold);
  color: rgba(255, 255, 255, 0.82);
}

.section--navy .education-box strong { color: #fff; }

/* ---- Video educativo de IUL (formato 16:9 responsive) ---- */

.video-frame {
  max-width: 920px;
  margin: 2rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-navy-dark);
}

.video-frame video,
.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  background: var(--color-navy-dark);
}

/* ---- Video de presentación de agentes ----
   El archivo alojado en YouTube está codificado en 16:9 (aunque el
   contenido principal sea vertical con fondos laterales difuminados),
   así que el contenedor usa aspect-ratio: 16/9 para mostrarlo completo
   tal como está en YouTube, sin franjas negras ni recorte/zoom.
   Móvil: ~100% del ancho disponible (el .container ya deja ~20px de
   margen lateral). Escritorio: ancho máximo de 680px, centrado. */

#agentes .section-heading { margin-bottom: 1.5rem; }

.video-frame--vertical {
  aspect-ratio: 16 / 9;
  width: min(100%, 680px);
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

/* Fallback para navegadores sin soporte de aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .video-frame--vertical { position: relative; height: 0; padding-bottom: 56.25%; }
  .video-frame--vertical iframe { position: absolute; inset: 0; }
}

/* ---- CTA telefónico bajo el video de agentes ---- */

.agentes-cta { margin-top: 1.75rem; text-align: center; }

.agentes-cta__text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy);
  max-width: 46ch;
  margin: 0 auto 1rem;
}

/* ---- Proceso paso a paso ---- */

.steps { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.75rem 1.5rem; text-align: center;
}

.step__number {
  width: 44px; height: 44px; border-radius: 50%; background: var(--color-navy);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin: 0 auto 1rem; font-size: 1.15rem;
  border: 2px solid var(--color-gold);
}

.step h3 { font-size: 1.05rem; }
.step p { color: var(--color-text-muted); font-size: 0.93rem; margin-bottom: 0; }

/* ---- Confianza / credenciales ---- */

.trust-grid { display: grid; gap: 1rem; max-width: 900px; margin: 0 auto; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: 1fr 1fr; } }

.trust-item-row {
  display: flex; align-items: flex-start; gap: 0.85rem;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
}

.trust-item-row .badge-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-gold-soft); color: var(--color-gold);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

.trust-item-row strong { display: block; color: var(--color-navy); font-size: 0.98rem; }
.trust-item-row span { font-size: 0.88rem; color: var(--color-text-muted); }

/* ---- FAQ (usa <details>/<summary> nativo, sin JS) ---- */

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }

.faq-item {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 0.25rem 1.25rem;
}

.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: var(--color-navy);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-gold); flex-shrink: 0; font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--color-text-muted); padding-bottom: 1.1rem; margin: 0; }

/* ---- CTA final ---- */

.cta-final {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 2.5rem 1.5rem; text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.cta-final h2 { color: #fff; font-size: 1.6rem; }
@media (min-width: 900px) { .cta-final h2 { font-size: 2rem; } }
.cta-final p { color: rgba(255, 255, 255, 0.85); max-width: 58ch; margin-left: auto; margin-right: auto; }
.cta-final .cta-group { justify-content: center; margin-top: 1.5rem; }

/* ---- Disclaimers ----
   .disclaimer-box vive dentro del footer oscuro (.site-footer): usa
   tonos claros translúcidos en vez del panel claro anterior para que
   quede discreto e integrado, sin destacar ni competir visualmente
   con los botones de llamada. */

.disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2rem;
}

.disclaimer-box__title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.6rem;
}

.disclaimer-box p { margin-bottom: 0.6rem; }
.disclaimer-box p:last-child { margin-bottom: 0; }

.inline-disclaimer { font-size: 0.85rem; color: var(--color-text-muted); font-style: italic; }
.section--navy .inline-disclaimer { color: rgba(255, 255, 255, 0.65); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-navy-dark); color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem; font-size: 0.9rem;
}

.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.85rem; }
.site-footer .footer-brand strong { display: block; color: #fff; font-size: 1.15rem; }
.site-footer .footer-brand span { display: block; color: var(--color-gold); font-size: 0.82rem; margin-top: 0.2rem; }

.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--color-gold); text-decoration: underline; }

.footer-list li { margin-bottom: 0.55rem; }
.footer-credentials { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2.25rem;
  padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer-bottom-links { display: flex; gap: 1.25rem; }

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */

.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.legal-content li { margin-bottom: 0.4em; }
.legal-updated { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* ============================================================
   UTILIDADES
   ============================================================ */

.text-center { text-align: center; }
.mt-lg { margin-top: 2rem; }
