/* ============================================================
   SEGUROS DE AUTO — LANDING PAGE  (lp-*)
   Page composition on top of tokens.css + centurion.css.
   Only tokens from the Centurion Design System are used here.
   ============================================================ */

html { scroll-padding-top: 96px; }
body { overflow-x: hidden; }
/* width/height attributes reserve space; CSS keeps the proportions */
img[width][height] { height: auto; }
section[id] { scroll-margin-top: 82px; }

/* ---------- Header ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--ci-border);
  transition: box-shadow var(--ci-dur);
}
.lp-header.is-scrolled { box-shadow: 0 1px 0 var(--ci-border), var(--ci-shadow-menu); }
.lp-nav { position: relative; padding: 0; }
.lp-nav__brand { flex: none; display: block; }
.lp-nav__brand img { height: auto; }
.lp-nav .ci-nav__links { margin-left: auto; margin-right: 12px; }
.lp-nav__menu-only { display: none; }
.lp-nav__cta { gap: 0; }

@media (max-width: 991px) {
  .lp-nav { min-height: 70px; }
  .lp-nav .ci-nav__logo { width: 132px; }
  .lp-nav .ci-nav__links {
    position: absolute; top: 100%; left: calc(var(--ci-gutter) * -1); right: calc(var(--ci-gutter) * -1);
    display: none; flex-direction: column; gap: 2px;
    margin: 0; padding: 10px var(--ci-gutter) 18px;
    background: #fff;
    box-shadow: 0 1px 0 var(--ci-border), var(--ci-shadow-menu);
  }
  .lp-nav.is-open .ci-nav__links { display: flex; }
  .lp-nav .ci-nav__links a { display: block; padding: 12px; font-size: 16px; color: var(--ci-ink); border-radius: 8px; }
  .lp-nav .ci-nav__links a:hover { background: var(--ci-teal-11); color: var(--ci-teal); }
}
@media (max-width: 520px) {
  .lp-nav .ci-nav__actions .ci-btn--ink { display: none; }
  .lp-nav__menu-only { display: list-item; }
  .lp-nav .ci-nav__actions { gap: 8px; }
}
@media (max-width: 420px) {
  .lp-nav .ci-nav__logo { width: 120px; }
  .lp-nav__long { display: none; }
  .lp-nav .ci-nav__actions .ci-btn--primary { min-height: 40px; padding: 8px 16px; }
}

/* ---------- A · Hero ---------- */
.lp-hero { min-height: 0; }
.lp-hero .ci-hero__form {
  max-width: none;
  padding: 56px 32px 64px max(var(--ci-gutter), calc((100vw - var(--ci-container)) / 2 + var(--ci-gutter)));
  gap: 0;
}
.lp-hero__inner { width: 100%; max-width: 540px; }
.lp-hero .ci-eyebrow { margin-bottom: 12px; }
.lp-hero__title {
  margin: 0 0 24px;
  font-size: clamp(2rem, 1.45rem + 1.7vw, 2.5rem);
  line-height: var(--ci-lh-tight);
  letter-spacing: .01em;
  color: var(--ci-ink);
  text-wrap: balance;
}
.lp-hero__title b { color: var(--ci-teal); }
.lp-hero .ci-lead { margin: 0 0 22px; }
.lp-hero__done { margin-top: 4px; justify-items: start; text-align: left; }
.lp-hero__done .ci-btnrow { margin-top: 4px; }
.lp-hero__done img { width: 48px; height: 48px; }
.lp-hero .ci-hero__visual { min-height: 640px; }
.lp-hero .ci-hero__photo { width: 100%; max-width: 820px; right: 0; bottom: 2%; }

@media (max-width: 991px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero .ci-hero__form { padding: 40px var(--ci-gutter) 44px; }
  .lp-hero__inner { max-width: 600px; margin: 0 auto; }
  /* Height follows the photo, with room above it for the arc to read as a C */
  .lp-hero .ci-hero__visual { min-height: calc(min(92vw, 560px) * .563 + 90px); }
  .lp-hero .ci-hero__photo { width: min(92vw, 560px); right: 4%; bottom: 2%; }
}

/* ---------- Lead form inline validation (DS: Forms & tools) ---------- */
#centurion-lead-form-wrapper .centurion-input.is-invalid,
#centurion-lead-form-wrapper .centurion-select.is-invalid { border-color: var(--ci-error); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
#centurion-lead-form-wrapper .lp-error {
  display: block;
  margin: 6px 0 0 14px;
  font-size: var(--ci-fs-xs);
  line-height: 1.35;
  font-weight: 600;
  color: var(--ci-error);
}
#centurion-lead-form-wrapper .centurion-consent + .lp-error,
#centurion-lead-form-wrapper .centurion-recaptcha + .lp-error { margin: -6px 0 0; }

/* ---------- Bands ---------- */
.lp-band--mint { background: var(--ci-teal-11); }
.lp-band--cream { background: var(--ci-cream); }
.lp-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.lp-head .ci-title { margin-bottom: 12px; text-wrap: balance; }
.ci-cta h2, .ci-subtitle { text-wrap: balance; }
.lp-head .ci-eyebrow { margin-bottom: 10px; }
.lp-head p { margin: 0; font-size: var(--ci-fs-lead); line-height: 1.5; color: var(--ci-ink); }
.lp-head .ci-subtitle { margin: 0; }

/* ---------- Personal o comercial ---------- */
.lp-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lp-use {
  display: flex; flex-direction: column;
  border-radius: var(--ci-r-sm);
  background: var(--ci-teal-10);
  overflow: hidden;
}
.lp-use__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--ci-r-sm) var(--ci-r-sm) 0 0; }
.lp-use__body { display: grid; align-content: start; gap: 12px; padding: 24px 26px 28px; }
.lp-use__body .ci-chip { justify-self: start; background: #fff; color: var(--ci-teal); }
.lp-use__title { margin: 0; font-size: var(--ci-fs-h3); color: var(--ci-ink); }
.lp-use__body p { margin: 0; color: var(--ci-ink); }
.lp-use__label { font-family: var(--ci-font-display); font-weight: 700; font-size: var(--ci-fs-sm); color: var(--ci-teal); }
.lp-use .ci-checklist li { font-size: var(--ci-fs-body); }
.lp-note { max-width: 880px; margin: 28px auto 26px; }

@media (max-width: 767px) {
  .lp-uses { grid-template-columns: 1fr; }
  .lp-use__body { padding: 20px 20px 24px; }
}

/* ---------- Opciones: coverage plans ---------- */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.lp-plan { display: flex; flex-direction: column; gap: 16px; background: #fff; box-shadow: var(--ci-shadow-soft); }
.lp-plan .ci-coverage__head { margin-bottom: 0; }
.lp-plan .ci-coverage__icon { box-shadow: none; background: var(--ci-teal-11); }
.lp-plan__type {
  display: block;
  font-family: var(--ci-font-display); font-weight: 700;
  font-size: var(--ci-fs-label); letter-spacing: var(--ci-ls-eyebrow); text-transform: uppercase;
  color: var(--ci-teal);
}
.lp-plan .ci-coverage__title { font-size: 1.5rem; color: var(--ci-ink); }
.lp-plan__intro { margin: 0; font-size: var(--ci-fs-sm); line-height: 1.5; color: var(--ci-teal); }
.lp-plan .ci-checklist { gap: 10px; }
.lp-plan__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ci-border); }
.lp-plan__label { font-family: var(--ci-font-display); font-weight: 700; font-size: var(--ci-fs-sm); color: var(--ci-ink); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-chips .ci-chip { font-size: var(--ci-fs-xs); }
.lp-cons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-cons li { position: relative; padding-left: 24px; font-size: var(--ci-fs-sm); line-height: 1.4; color: var(--ci-ink); }
.lp-cons li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; background: url("./assets/svg/ui/info-ink.svg") center/contain no-repeat; }
.lp-fine { max-width: 760px; margin: 26px auto 24px; text-align: center; font-size: var(--ci-fs-xs); line-height: 1.45; color: var(--ci-teal); }

@media (max-width: 991px) {
  .lp-plans { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
}

/* ---------- Compara: comparison table ---------- */
.lp-compare {
  max-width: 980px; margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--ci-r-sm);
  box-shadow: var(--ci-shadow-soft);
  background: #fff;
}
.lp-compare:focus-visible { outline: 3px solid var(--ci-focus); outline-offset: 3px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: var(--ci-fs-sm); color: var(--ci-ink); }
.lp-table th, .lp-table td { padding: 14px 16px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--ci-border); }
.lp-table tbody tr:last-child > * { border-bottom: 0; }
.lp-table thead th {
  background: var(--ci-ink); color: var(--ci-cream);
  font-family: var(--ci-font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  border-bottom: 0;
}
.lp-table thead th:first-child { background: var(--ci-ink); }
.lp-table tbody th { text-align: left; font-weight: 600; width: 30%; }
.lp-table .lp-table__type td { font-family: var(--ci-font-display); font-weight: 700; color: var(--ci-teal); }
.lp-table .lp-table__type > * { background: var(--ci-teal-10); }
.lp-table td:nth-child(2) { background: rgba(227, 248, 246, .45); }
.lp-table .lp-table__type td:nth-child(2) { background: var(--ci-teal-10); }

.lp-abbr { display: none; text-decoration: none; }
.lp-mark { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.lp-mark::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background-position: center; background-repeat: no-repeat; }
.lp-mark--yes::before { background-color: var(--ci-teal); background-image: url("./assets/svg/ui/check-white.svg"); background-size: 16px; }
.lp-mark--no { color: var(--ci-ink); font-weight: 400; }
.lp-mark--no::before {
  background:
    linear-gradient(45deg, transparent 45%, #6B7F86 45%, #6B7F86 55%, transparent 55%) center / 10px 10px no-repeat,
    linear-gradient(-45deg, transparent 45%, #6B7F86 45%, #6B7F86 55%, transparent 55%) center / 10px 10px no-repeat,
    #E3E8EA;
}
.lp-mark--opt { color: var(--ci-teal); }
.lp-mark--opt::before {
  background:
    linear-gradient(var(--ci-teal), var(--ci-teal)) center / 10px 2px no-repeat,
    linear-gradient(var(--ci-teal), var(--ci-teal)) center / 2px 10px no-repeat,
    var(--ci-teal-11);
  box-shadow: inset 0 0 0 1.5px var(--ci-teal);
}
.lp-mark--na { color: var(--ci-ink); font-weight: 400; }
.lp-mark--na::before { background: #E3E8EA; }

@media (max-width: 767px) {
  .lp-table { font-size: var(--ci-fs-xs); }
  .lp-table th, .lp-table td { padding: 12px 6px; }
  .lp-table tbody th { padding-left: 12px; width: 31%; }
  .lp-table thead th { font-size: .8125rem; letter-spacing: 0; }
  .lp-mark { flex-direction: column; gap: 4px; white-space: normal; line-height: 1.2; }
}
@media (max-width: 600px) {
  .lp-full { display: none; }
  .lp-abbr { display: inline; }
}

/* ---------- Asistencia en Carretera y Viaje ---------- */
.lp-assist .lp-head p { color: var(--ci-teal-9); }
.lp-assist .ci-title b { color: var(--ci-cream); }
.lp-assist__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.lp-assist__panel { padding: 28px 30px 30px; border-radius: var(--ci-r-lg); background: var(--ci-ink); }
.lp-assist__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.lp-assist__panel h3 { margin: 0; font-weight: 400; font-size: var(--ci-fs-h3); color: var(--ci-cream); }
.lp-assist__panel h3 b { font-weight: 700; }
.lp-assist__panel > p { margin: 0 0 18px; color: var(--ci-teal-9); font-size: var(--ci-fs-sm); }
.lp-assist__badge {
  flex: none;
  padding: 6px 12px;
  border-radius: var(--ci-r-pill);
  background: var(--ci-aqua);
  color: var(--ci-ink);
  font-family: var(--ci-font-display); font-weight: 700; font-size: 1rem; line-height: 1;
}
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-checks li { position: relative; padding-left: 30px; color: var(--ci-cream); line-height: 1.45; }
.lp-checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ci-deep) url("./assets/svg/ui/check-white.svg") center / 14px no-repeat;
}
.lp-assist .lp-fine { color: var(--ci-teal-9); margin-top: 28px; }

@media (max-width: 767px) {
  .lp-assist__grid { grid-template-columns: 1fr; }
  .lp-assist__panel { padding: 22px 20px 24px; }
  .lp-assist .ci-products__arc { opacity: .5; }
}

/* ---------- Cubiertas adicionales ---------- */
.lp-adds__arc { right: 0; top: 0; height: 100%; width: auto; transform: scaleX(-1); }
.lp-adds { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 24px; }
.lp-add { display: grid; align-content: start; gap: 12px; padding: 26px 28px 28px; }
.lp-add--gap { grid-row: span 2; }
.lp-add__head { display: flex; align-items: center; gap: 14px; }
.lp-add__icon { flex: none; width: 52px; height: 52px; padding: 7px; border-radius: var(--ci-r-sm); background: var(--ci-teal-11); object-fit: contain; }
.lp-add h3 { margin: 0; font-size: var(--ci-fs-h3); color: var(--ci-ink); line-height: 1.2; }
.lp-add p { margin: 0; color: var(--ci-ink); }
.lp-add .ci-chip { justify-self: start; font-size: var(--ci-fs-xs); }

.lp-gap { margin: 8px 0 0; padding: 20px 22px 22px; border-radius: var(--ci-r-sm); background: var(--ci-teal-10); }
.lp-gap__cap { margin: 0 0 12px; font-family: var(--ci-font-display); font-weight: 700; font-size: var(--ci-fs-label); letter-spacing: var(--ci-ls-eyebrow); text-transform: uppercase; color: var(--ci-teal); }
.lp-gap__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: var(--ci-fs-sm); color: var(--ci-ink); }
.lp-gap__total b { font-family: var(--ci-font-display); font-size: 1.375rem; }
.lp-gap__bar { display: flex; height: 40px; border-radius: var(--ci-r-pill); overflow: hidden; box-shadow: inset 0 0 0 1px var(--ci-border); }
.lp-gap__paid { flex: 0 0 80%; background: var(--ci-teal); }
.lp-gap__left { flex: 0 0 20%; background: repeating-linear-gradient(-45deg, var(--ci-teal-9) 0 6px, #fff 6px 12px); box-shadow: inset 2px 0 0 #fff; }
.lp-gap__legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.lp-gap__legend li { display: flex; align-items: center; gap: 10px; font-size: var(--ci-fs-sm); color: var(--ci-ink); }
.lp-gap__legend li b { margin-left: auto; font-family: var(--ci-font-display); font-size: 1.0625rem; }
.lp-gap__swatch { flex: none; width: 16px; height: 16px; border-radius: 4px; }
.lp-gap__swatch--paid { background: var(--ci-teal); }
.lp-gap__swatch--left { background: repeating-linear-gradient(-45deg, var(--ci-teal-9) 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 1px var(--ci-teal-4); }
.lp-gap__note { margin: 14px 0 0 !important; font-size: var(--ci-fs-sm); line-height: 1.5; }
.lp-gap__note b { color: var(--ci-teal); }
.lp-adds-foot { margin-top: 30px; text-align: center; }
.lp-adds-foot p { margin: 0 0 16px; font-family: var(--ci-font-display); font-size: 1.125rem; color: var(--ci-ink); }

@media (max-width: 860px) {
  .lp-adds { grid-template-columns: 1fr; }
  .lp-add--gap { grid-row: auto; }
}
@media (max-width: 767px) {
  .lp-adds__arc { display: none; }
  .lp-add { padding: 22px 20px 24px; }
}

/* ---------- I · CTA band ---------- */
.ci-cta .lp-cta__contact { margin: 22px 0 0; font-family: var(--ci-font-body); font-size: var(--ci-fs-body); letter-spacing: 0; color: var(--ci-teal-9); }
.lp-cta__contact a { color: var(--ci-cream); font-weight: 700; }
.lp-cta__contact a:hover { color: #fff; }

/* ---------- K · Footer ---------- */
.lp-footer { padding-bottom: 90px; }
.lp-footer .ci-footer__grid { grid-template-columns: 170px repeat(3, minmax(0, 1fr)); gap: 32px; }
.lp-footer h4 { font-size: 1rem; }
.lp-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-footer__list span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ci-aqua); }
.lp-footer__list a, .lp-footer__list address { font-style: normal; line-height: 1.45; }
.lp-footer .ci-social { flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lp-footer__close {
  margin: 40px 0 0; padding-top: 26px;
  border-top: 1px solid rgba(254, 249, 236, .25);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px;
}
.lp-footer__close p { margin: 0; }
.lp-footer__promise { font-family: var(--ci-font-display); font-size: 1.25rem; color: var(--ci-cream); }
.lp-footer__promise b { color: var(--ci-aqua); }
.lp-footer__fine { max-width: 62ch; font-size: var(--ci-fs-xs); line-height: 1.5; color: var(--ci-teal-9); }
.lp-footer .ci-footer__legal { margin-top: 22px; }

@media (max-width: 1000px) {
  .lp-footer .ci-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .lp-footer .ci-footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- WhatsApp float ---------- */
.lp-wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; transition: transform var(--ci-dur) var(--ci-ease); }
.lp-wa:hover { transform: translateY(-2px); }
