/* Vitalink Seguros — estilos del sitio (colores tomados del brochure) */
:root {
  --navy: #0f2463;
  --navy-2: #1a3278;
  --purple: #8d54d5;
  --purple-dark: #6f3cb8;
  --lavender: #f4eefc;
  --lavender-2: #e9ddfa;
  --ink: #1d2747;
  --muted: #4e5878;
  --line: #e4dcf3;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 36, 99, 0.08);
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-dark); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.kicker {
  font-family: var(--head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--white); padding: 8px 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 700; font-size: 1rem;
  text-decoration: none; border-radius: 999px;
  padding: 14px 26px; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-ghost { color: var(--navy); border: 2px solid var(--lavender-2); }
.btn-ghost:hover { border-color: var(--purple); }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.wordmark { font-family: var(--head); line-height: 1; }
.wordmark b { font-size: 1.45rem; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.wordmark b span { color: var(--purple); }
.wordmark small { display: block; font-size: .62rem; letter-spacing: .42em; color: var(--navy); margin-top: 3px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-family: var(--head); font-weight: 600; font-size: .92rem; color: var(--navy); text-decoration: none; }
.nav a:hover { color: var(--purple); }
.nav .btn { padding: 10px 18px; font-size: .9rem; color: var(--white); }

/* Portada */
.hero { overflow: hidden; padding-top: clamp(48px, 7vw, 90px); }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -200px;
  width: 560px; height: 560px; border-radius: 50%; background: var(--lavender); z-index: -1;
}
.hero::after {
  content: ""; position: absolute; left: -160px; bottom: -60px;
  width: 300px; height: 300px; border-radius: 50%; background: var(--lavender); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-logo { justify-self: center; width: min(420px, 100%); }

/* Banda de aseguradoras */
.band { background: var(--navy); color: var(--white); border-top: 6px solid var(--purple); padding: 40px 0; }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band .kicker { color: #c9b2f1; margin-bottom: 16px; }
.partners { display: flex; gap: 14px; flex-wrap: wrap; }
.partner { background: var(--white); border-radius: 14px; width: 130px; height: 74px; display: grid; place-items: center; padding: 10px 16px; }
.partner img { max-height: 52px; width: auto; }
.badge {
  width: 130px; height: 130px; border-radius: 50%;
  border: 2px solid var(--purple); display: grid; place-content: center; text-align: center;
  font-family: var(--head);
}
.badge b { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.badge span { font-size: .78rem; font-weight: 600; }
.band-lines { color: #d5d9ea; margin: 22px 0 0; font-size: .95rem; }

/* Tarjetas */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card { background: var(--lavender); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon { width: 34px; height: 34px; color: var(--purple); margin-bottom: 14px; }
.icon svg, .tile-icon svg { width: 100%; height: 100%; }

.backing {
  background: var(--navy); color: #dfe3f2; border-radius: 24px;
  padding: clamp(28px, 5vw, 48px); margin-top: 40px;
}
.backing h3 { color: var(--white); font-size: 1.55rem; }
.backing-partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.backing-partners .partner { width: auto; height: 120px; flex-direction: column; gap: 8px; }
.backing-partners .partner span { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: .95rem; }

/* Soluciones */
.solutions { background: linear-gradient(180deg, var(--white), #fbf8ff); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.tile { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--white); box-shadow: var(--shadow); }
.tile-icon { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; padding: 13px; color: var(--white); margin-bottom: 18px; }
.tile-icon.navy { background: var(--navy); }
.tile-icon.purple { background: var(--purple); }
.tile h3 { font-size: 1.45rem; }
.tile > p { color: var(--muted); }
.tile ul { margin: 0; padding-left: 20px; }
.tile li { margin: 4px 0; }
.note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--lavender); border-radius: var(--radius); padding: 22px 26px; margin-top: 26px;
}
.note svg { flex: none; width: 24px; height: 24px; color: var(--purple); margin-top: 2px; }
.note p { margin: 0; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; max-width: 760px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.steps .num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--purple); color: var(--white);
  display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.25rem;
}
.steps li:last-child .num { background: var(--navy); }
.steps h3 { margin: 4px 0 2px; }
.steps p { margin: 0; color: var(--muted); }

/* Contacto */
.contact { background: var(--navy); color: #dfe3f2; border-top: 6px solid var(--purple); }
.contact h2 { color: var(--white); }
.contact .kicker { color: #c9b2f1; margin: 28px 0 6px; }
.advisor { font-family: var(--head); font-weight: 700; font-size: 1.6rem; color: var(--white); margin: 0 0 22px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--white);
  background: var(--purple); border-radius: 16px; padding: 18px 22px; transition: background .15s;
}
.contact-card:hover { background: var(--purple-dark); }
.contact-card.outline { background: transparent; border: 2px solid var(--purple); }
.contact-card.outline:hover { background: var(--navy-2); }
.contact-card svg { width: 26px; height: 26px; flex: none; }
.contact-card small { display: block; font-size: .82rem; opacity: .9; }
.contact-card b { font-family: var(--head); font-size: 1.3rem; }
.contact-card.wide { grid-column: 1 / -1; justify-content: center; }

/* Pie de página */
.site-footer { background: #0b1b4d; color: #b8bfd8; padding: 36px 0; font-size: .92rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer .wordmark b { color: var(--white); font-size: 1.25rem; }
.site-footer .wordmark b span { color: #b892ef; }
.site-footer .wordmark small { color: var(--white); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #d6dbee; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.tagline { color: #b892ef; font-family: var(--head); font-weight: 600; }

/* Botón flotante de WhatsApp */
.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.float-wa svg { width: 32px; height: 32px; }

/* Páginas legales */
.legal-hero { background: var(--lavender); padding: 56px 0 40px; }
.legal-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.legal-hero p { color: var(--muted); margin: 0; }
.legal { padding: 48px 0 80px; }
.legal .container, .legal-hero .container { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.5em; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--lavender); font-family: var(--head); color: var(--navy); }
.legal .table-wrap { overflow-x: auto; }
.legal .box { background: var(--lavender); border-radius: 14px; padding: 18px 22px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: 260px; }
  .cards-3, .tiles { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .contact-grid, .backing-partners { grid-template-columns: 1fr; }
  .band-row { justify-content: center; text-align: center; }
  .partners { justify-content: center; }
  .partner { width: 96px; height: 64px; }
  .wordmark small { letter-spacing: .3em; }
  .nav .btn span { display: none; }
}
