:root {
  --bg: #1f2844;
  --surface: #ffffff;
  --primary: #263055;
  --primary-2: #1f2844;
  --accent: #f161ac;
  --text: #0d0f1a;
  --muted: #5c647c;
  --shadow: 0 18px 60px rgba(38, 48, 85, 0.25);
  --radius: 18px;
  font-size: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', 'DM Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(45,54,95,0.88) 0%, rgba(25,32,60,0.9) 55%, rgba(22,29,51,0.94) 100%),
    url('assets/hero-family.png') center/cover no-repeat;
  padding: 24px clamp(18px, 3vw, 42px) 64px;
  color: #f7f8fb;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
}

.brand img { height: 86px; width: auto; }
.brand-footer img { height: 56px; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.cta, .ghost {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-size: 0.95rem;
}

.cta {
  background: linear-gradient(120deg, var(--accent) 0%, #f48fc4 100%);
  color: #fff;
  box-shadow: 0 12px 35px rgba(241, 97, 172, 0.35);
}
.cta:hover { transform: translateY(-2px); }

.ghost {
  color: #f7f8fb;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255, 255, 255, 0.08);
}
.ghost:hover { background: rgba(255, 255, 255, 0.14); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 520px));
  gap: 24px;
  align-items: start;
  justify-content: center;
  margin: 32px auto 0;
  max-width: 1200px;
}

.hero-copy h1 {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.7vw, 2.8rem);
  line-height: 1.1;
  margin: 12px 0;
  color: #fff;
}

.lede { color: #d9dff5; margin: 10px 0 18px; }
.lede-contrast { color: #111; }

.pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(241, 97, 172, 0.16);
  color: #ffe5f2;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.pill-strong { background: #f161ac; color: #fff; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.badges span {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  font-weight: 600;
  color: #f7f8fb;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-card {
  background: #fff;
  padding: 18px 18px 20px;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15,15,40,0.3);
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
.quote-form {
  display: grid;
  gap: 10px;
}
.quote-form h2 { margin: 6px 0; font-family: 'Space Grotesk', sans-serif; color: var(--primary); }
.quote-form label { display: grid; gap: 6px; font-weight: 600; color: var(--text); font-size: 0.95rem; }
.quote-form input,
.quote-form select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,45,108,0.2);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fbfcff;
}
.quote-form button {
  margin-top: 6px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent) 0%, #f48fc4 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quote-form button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(241,97,172,0.35); }
.quote-form .small { color: var(--muted); font-size: 0.85rem; margin: 0; }

.section {
  padding: clamp(44px, 7vw, 72px) clamp(18px, 3vw, 42px);
  background: #f6f8fc;
}
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 8px 0 6px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--primary); }
.section-head.highlight { background: #f161ac; color: #fff; padding: 18px; border-radius: 18px; }
.section-head.highlight h2, .section-head.highlight .lede { color: #fff; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.partners {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 24px;
  margin-bottom: 10px;
}
.partners img {
  width: 100%;
  max-width: 1020px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15,45,108,0.08);
  border: 1px solid rgba(15,45,108,0.08);
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15,45,108,0.08);
  border: 1px solid rgba(15,45,108,0.08);
}
.card h3 { margin: 10px 0 6px; font-family: 'Space Grotesk', sans-serif; color: var(--primary); }
.card p { margin: 0; color: var(--muted); }
.card img { width: 64px; height: 64px; margin-bottom: 6px; }

.switch { background: #eef1f9; }
.switch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.faq-grid { display: grid; gap: 12px; }
.faq-grid details {
  background: #fff;
  border: 1px solid rgba(15,45,108,0.08);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(15,45,108,0.08);
}
.faq-grid summary { cursor: pointer; font-weight: 700; color: var(--text); }
.faq-grid p { margin: 8px 0 0; color: var(--muted); }
.faqs {
  padding: clamp(40px, 8vw, 72px) clamp(18px, 3vw, 42px);
}
.status { margin-top: 6px; color: var(--muted); }
.status.success { color: #1b9e5a; }
.status.error { color: #d64545; }

/* Vida landing */
.hero.life {
  background:
    linear-gradient(135deg, rgba(31, 40, 68, 0.92) 0%, rgba(22, 29, 51, 0.93) 55%, rgba(18, 25, 44, 0.95) 100%),
    url('assets/seguro_vida.jpg') center/cover no-repeat;
}

.pill.glow {
  box-shadow: 0 12px 32px rgba(241, 97, 172, 0.35);
}

.life-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.life-metrics .card {
  border: 1px solid rgba(15, 45, 108, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), #f5f7ff);
  color: var(--text);
  box-shadow: 0 14px 32px rgba(15, 45, 108, 0.14);
}

.life-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.life-steps article {
  background: var(--surface);
  border: 1px solid rgba(15, 45, 108, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(15, 45, 108, 0.08);
  position: relative;
}

.life-steps article .step {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 0.85rem;
}

.life-cta-band {
  background: linear-gradient(120deg, #1f2844 0%, #303a66 100%);
  color: #f7f8ff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 32px rgba(15, 45, 108, 0.18);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.life-cta-band h3 { margin: 0; font-family: 'Space Grotesk', sans-serif; }
.life-cta-band p { margin: 6px 0 0; color: #dfe3f8; }

.life-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

.life-cta-actions .ghost { border-color: rgba(255,255,255,0.35); color: #fff; }

.life-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.life-badges .stat {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 700;
}

.life-coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.life-coverage .card {
  background: #ffffff;
  color: var(--text);
}

.life-coverage .card strong { color: var(--primary); }


.footer {
  padding: 32px clamp(18px, 3vw, 42px) 48px;
  background: #161d33;
  color: #f6f8ff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.footer a { color: #f6f8ff; opacity: 0.9; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { display: block; margin-top: 4px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav { position: static; }
  .nav-actions { flex-wrap: wrap; justify-content: flex-end; }
  .hero { padding-bottom: 40px; padding-top: 24px; }
  .hero-card { justify-self: stretch; max-width: 100%; }
  .hero-copy h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .section-head.highlight { padding: 14px; }
}
