:root {
  --cyan: #13c2cf;
  --teal: #0e7c8c;
  --teal-deep: #0a4f5c;
  --lime: #8cc63f;
  --green: #4fae2e;
  --mist: #f2fafa;
  --sand: #f7fbef;
  --ink: #1d3b41;
  --muted: #4b6468;
  --line: #d7ebec;
  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

h1, h2, h3 { line-height: 1.15; color: var(--teal-deep); margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-lime { background: var(--lime); color: var(--teal-deep); }
.btn-lime:hover { background: #7db535; }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 84px;
}
.brand img { height: 52px; width: auto; }
.menu { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--lime); }
.nav-cta { padding: .6rem 1.1rem; font-size: .92rem; white-space: nowrap; }
.menu-toggle {
  display: none; background: none; border: 2px solid var(--teal); border-radius: 10px;
  padding: .45rem .7rem; color: var(--teal); font: inherit; font-weight: 600; cursor: pointer;
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--teal-deep);
  padding: clamp(2.2rem, 4.5vw, 3.2rem) 0 clamp(2.4rem, 4.5vw, 3.2rem);
  color: #fff;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(10,79,92,.78) 0%, rgba(10,79,92,.45) 55%, rgba(10,79,92,.15) 100%);
}
.hero h1 { color: #fff; }
.hero h1 span { color: #8fe9f0; }
.hero .kicker { color: #c5f08e; }
.hero .lead { color: #e3f5f6; }
.hero-top { max-width: 760px; margin-bottom: 1.6rem; }
.hero .choice h2 { color: var(--teal-deep); }
.hero .choice p { color: var(--muted); }
.hero-top .lead { font-size: 1.05rem; max-width: 52ch; margin-bottom: 0; }
.kicker { font-weight: 600; color: var(--green); margin-bottom: .9rem; font-size: .98rem; display: block; }
.hero h1 span { color: var(--cyan); }

.choices { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
.choice {
  background: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem;
}
.choice .icon { width: 44px; height: 44px; }
.choice h2 { font-size: 1.35rem; margin: .2rem 0 0; }
.choice p { margin: 0; }
.choice .btn { margin-top: auto; align-self: flex-start; }
.choice-vida { border-top: 4px solid var(--cyan); }
.choice-salud { border-top: 4px solid var(--lime); }

/* Secciones */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 60ch; margin-bottom: 2.4rem; }

/* Banner de isapres en movimiento */
.isapres { padding: 2.6rem 0 2.8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.isapres-title { margin-bottom: 1.4rem; }
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
.marquee-track { display: flex; width: max-content; gap: 1rem; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.isapre-logo {
  flex: none; height: 84px; min-width: 220px; padding: 0 1.6rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-weight: 700; color: var(--teal-deep); font-size: 1.05rem; text-align: center; white-space: nowrap;
}
.isapre-logo img { max-height: 56px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* Productos (páginas de seguro) */
.product-hero { background: var(--mist); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.product-hero .icon { width: 64px; height: 64px; margin-bottom: 1.2rem; }
.product-hero .lead { font-size: 1.15rem; max-width: 56ch; }
.points { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
.points li { border-top: 3px solid var(--cyan); padding-top: 1.1rem; }
.points li:nth-child(2) { border-top-color: var(--lime); }
.points li:nth-child(3) { border-top-color: var(--teal); }
.points h3 { margin-bottom: .4rem; }
.points p { margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0; max-width: 62ch; }
.checklist li { padding: .55rem 0 .55rem 1.8rem; position: relative; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--lime);
}

/* Pasos */
.steps { display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 3px solid var(--cyan); padding-top: 1.2rem; }
.steps li:nth-child(2) { border-top-color: var(--lime); }
.steps li:nth-child(3) { border-top-color: var(--teal); }
.steps .paso { font-weight: 700; color: var(--green); font-size: .9rem; margin-bottom: .3rem; display: block; }
.steps h3 { margin-bottom: .4rem; }
.steps p { margin: 0; }

/* Quiénes somos */
.about-grid { display: grid; gap: 3rem; grid-template-columns: 1.1fr .9fr; align-items: start; }
.values { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.values li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem;
}
.values h3 { margin-bottom: .2rem; font-size: 1.05rem; }
.values p { margin: 0; font-size: .97rem; }

/* Formulario */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: .9fr 1.1fr; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .1rem; }
.contact-list .k { font-size: .85rem; color: var(--green); font-weight: 600; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--teal); text-decoration: underline; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--teal-deep); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  border: 1.5px solid #bcd9dc; border-radius: 10px; padding: .75rem .9rem; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(19,194,207,.2); }
.form textarea { min-height: 120px; resize: vertical; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .9rem; }
.form .check input { width: auto; margin-top: .3rem; }
.form .btn { justify-self: start; }
.form-status { grid-column: 1 / -1; font-weight: 600; margin: 0; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.error-msg { color: #b3261e; font-size: .85rem; margin: 0; font-weight: 500; display: none; }

/* Pie */
.site-footer { background: var(--teal-deep); color: #cfe7ea; padding: 2.6rem 0 1.4rem; font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer-grid img { height: 52px; width: auto; background: #fff; padding: .45rem .7rem; border-radius: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.legal { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .82rem; opacity: .85; margin-bottom: 0; color: #cfe7ea; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(10,79,92,.28);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .choices, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .steps, .points { grid-template-columns: 1fr; }
  .menu { display: none; }
  .menu.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: .6rem 20px 1rem;
  }
  .menu.open a { display: block; padding: .7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-block; }
  .nav-cta { margin-left: auto; }
  .nav { position: relative; }
  .nav-cta { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand img { height: 44px; }
  .nav { min-height: 72px; }
  .form { grid-template-columns: 1fr; }
  .isapre-logo { min-width: 180px; }
}

/* Foto del equipo */
.team-photo { margin: 2rem 0 0; max-width: 360px; }
.team-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.team-photo figcaption { margin-top: .75rem; font-size: .95rem; color: var(--muted); }
.team-photo figcaption strong { color: var(--teal-deep); display: block; font-weight: 700; }

/* Quiénes somos (inicio) */
.about-feature {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.about-photo { margin: 0; }
.about-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 25%;
  border-radius: 22px; border: 1px solid var(--line);
}
.about-photo figcaption { margin-top: .9rem; color: var(--muted); font-size: .95rem; }
.about-photo figcaption strong { display: block; color: var(--teal-deep); font-weight: 700; }
.about-copy h2 { margin-bottom: .8rem; }
.about-copy > p { max-width: 58ch; }
.about-copy .values {
  grid-template-columns: repeat(3, 1fr); gap: .9rem; margin: 2rem 0;
}
.about-copy .values li { padding: 1.1rem 1.1rem 1.2rem; border-top: 3px solid var(--cyan); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-copy .values li:nth-child(2) { border-top-color: var(--lime); }
.about-copy .values li:nth-child(3) { border-top-color: var(--teal); }
.about-copy .values h3 { font-size: 1.02rem; }
.about-copy .values p { font-size: .92rem; line-height: 1.5; }
@media (max-width: 960px) {
  .about-feature { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
}
@media (max-width: 720px) {
  .about-copy .values { grid-template-columns: 1fr; }
}

.form .check .error-msg { flex-basis: 100%; padding-left: 1.6rem; }

/* Páginas de contenido (SEO) */
.prose p, .prose li { max-width: 68ch; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose strong { color: var(--teal-deep); }
.prose a { color: var(--teal); font-weight: 600; }
.prose .checklist { margin-bottom: 1rem; }

.compare { overflow-x: auto; margin: 1.4rem 0 2rem; }
.compare table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--mist); color: var(--teal-deep); font-weight: 700; }
.compare tbody th { color: var(--teal-deep); font-weight: 700; white-space: nowrap; }
.compare td { color: var(--muted); }

.points-wrap { margin: 1.6rem 0 2rem; }
.points-wrap .points h3 { font-size: 1.05rem; }

.faq { max-width: 72ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--teal-deep); list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; }

.inline-cta { background: var(--mist); border-radius: 18px; padding: clamp(2rem, 4vw, 3rem); text-align: center; }
.inline-cta h2 { margin-bottom: .6rem; }
.inline-cta p { max-width: 52ch; margin: 0 auto 1.6rem; }

/* Preguntas frecuentes (inicio) */
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.faq-col { display: grid; gap: 1.6rem; align-content: start; }
.faq-item { border-top: 2px solid var(--cyan); padding-top: .9rem; }
.faq-col .faq-item:nth-child(2) { border-top-color: var(--lime); }
.faq-col .faq-item:nth-child(3) { border-top-color: var(--teal); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.faq-item p { margin: 0; font-size: .97rem; }
@media (max-width: 720px) { .faq-cols { grid-template-columns: 1fr; } }

/* Encabezado (barra superior) más delgado */
html { scroll-padding-top: 64px; }
.nav { min-height: 60px; }
.brand img { height: 40px; }
.menu { gap: 1.25rem; }
.menu a { font-size: .9rem; }
.nav-cta { padding: .5rem 1rem; font-size: .88rem; }
@media (max-width: 960px) {
  .nav { min-height: 56px; }
  .brand img { height: 36px; }
}

/* Banner de inicio: opciones en tarjetas compactas y ordenadas */
.hero { padding: clamp(2rem, 4vw, 2.8rem) 0; }
.hero-top { margin-bottom: 1.6rem; }
.hero .choices { grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero .choice {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .5rem; padding: 1.25rem 1.5rem;
}
.hero .choice .icon { width: 40px; height: 40px; margin-bottom: .2rem; }
.hero .choice h2 { font-size: 1.3rem; margin: 0; white-space: normal; }
.hero .choice p { margin: 0; font-size: .95rem; line-height: 1.5; }
.hero .choice .btn { margin-top: .6rem; align-self: flex-start; padding: .7rem 1.3rem; font-size: .95rem; white-space: normal; text-align: center; }
@media (max-width: 720px) {
  .hero .choices { grid-template-columns: 1fr; }
}

/* ===== Responsive general ===== */
img, video, svg { max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; }
.nav { position: relative; }

/* Encabezado: el menú se pliega antes para que nada se encime */
@media (max-width: 1140px) {
  .menu { gap: .9rem; }
  .menu a { font-size: .86rem; }
}
@media (max-width: 1040px) {
  .menu { display: none; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .nav-cta { display: none; }
  .menu.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: .4rem 20px 1rem; z-index: 25;
    box-shadow: 0 14px 24px rgba(10,79,92,.10);
  }
  .menu.open a { display: block; padding: .8rem 0; width: 100%; font-size: 1rem; border-bottom: 1px solid var(--line); }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .about-feature, .contact-grid { grid-template-columns: 1fr; }
  .points, .steps { grid-template-columns: 1fr 1fr; }
  .points li:nth-child(3) { grid-column: 1 / -1; }
  .steps li:nth-child(3) { grid-column: 1 / -1; }
}

/* Celular */
@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  body { font-size: 16px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 1.8rem 0 2.2rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero-top .lead, .product-hero .lead { font-size: 1rem; }
  .section { padding: 2.6rem 0; }
  .product-hero { padding: 2.2rem 0; }
  .points, .steps, .faq-cols { grid-template-columns: 1fr; }
  .points li:nth-child(3), .steps li:nth-child(3) { grid-column: auto; }
  .choice { padding: 1.2rem; }
  .choice .btn, .product-hero .btn, .inline-cta .btn, .hero-actions .btn { width: 100%; }
  .inline-cta { padding: 1.6rem 1.2rem; }
  .inline-cta .hero-actions { flex-direction: column; }
  .form { grid-template-columns: 1fr; padding: 1.2rem; }
  .form .btn { width: 100%; justify-self: stretch; }
  .faq summary { font-size: 1rem; }
  .brand img { height: 36px; }
  .isapre-logo { height: 70px; min-width: 150px; padding: 0 1rem; }
  .marquee::before, .marquee::after { width: 40px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-bottom: 5.5rem; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .team-photo { max-width: 300px; }
}

/* Celular pequeño */
@media (max-width: 380px) {
  .wrap { width: min(100% - 24px, var(--wrap)); }
  .brand img { height: 32px; }
  .hero h1 { font-size: 1.55rem; }
  .menu.open { padding-left: 16px; padding-right: 16px; }
}

/* Pantallas grandes */
@media (min-width: 1600px) {
  .wrap { width: min(100% - 40px, 1280px); }
}
