/* Subpáginas seguros-<id>.html v6 (2 dic 2026). Usa también seguros.css (tonos, migas, acciones).
   Cada pantalla cabe en 1440x900: portada sobre el color del bodegón, para quién es, pieza propia,
   "lo que más me dicen" en ocre, antes de cotizar y cierre con los otros seguros. */

/* ---------- Portada ---------- */
.sd6 { position: relative; overflow: hidden; color: var(--bosque); padding: calc(var(--nav-h) + clamp(28px, 5vh, 64px)) 0 0; }
.sd6.tone-bosque, .sd6.tone-noche { color: var(--crema); }
.sd6__in { position: relative; z-index: 2; }
main h1.sd6__t { font-size: clamp(2.6rem, 1rem + 7vw, 7.4rem) !important; font-weight: 900 !important; line-height: .88 !important; letter-spacing: -.025em !important; max-width: 9ch; margin: 0; }
.sd6.tone-bosque .sd6__t, .sd6.tone-noche .sd6__t { color: var(--ocre-claro); }
/* Nombres largos: un punto menos para no pisar el bodegón */
.sd--otros main h1.sd6__t, main .sd--otros h1.sd6__t, main .sd--gastos-medicos h1.sd6__t { font-size: clamp(2.3rem, 1rem + 5vw, 5.8rem) !important; max-width: 11ch; }
.sd6__lead { margin: clamp(16px, 2.6vh, 28px) 0 clamp(22px, 3.4vh, 32px); font-size: clamp(1.12rem, 1rem + .5vw, 1.4rem); line-height: 1.4; font-weight: 500; max-width: 26ch; }
.sd6.tone-ocre .sd6__lead { color: #2c1f0c; }
.sd6__img { position: relative; z-index: 1; margin-top: 8px; }
.sd6__img img { display: block; width: 100%; height: auto; -webkit-mask: linear-gradient(180deg, #0000 0%, #000 30%); mask: linear-gradient(180deg, #0000 0%, #000 30%); }
.sd6.tone-ocre .pill--ghost { --pill-fg: var(--bosque); --pill-shadow: inset 0 0 0 1.5px rgba(41, 53, 26, .45); }
@media (min-width: 1000px) {
  .sd6 { min-height: min(100svh, 940px); display: flex; align-items: center; padding-bottom: clamp(40px, 6vh, 72px); }
  .sd6__in { width: 100%; }
  .sd6__img { position: absolute; inset: 0 0 0 auto; width: 64%; margin: 0; }
  .sd6__img img { height: 100%; object-fit: cover; object-position: 72% 55%; -webkit-mask: linear-gradient(90deg, #0000 0%, #000 38%); mask: linear-gradient(90deg, #0000 0%, #000 38%); }
}

/* ---------- Para quién es ---------- */
.sd-para { background: var(--crema); padding: clamp(72px, 11vh, 140px) 0; }
.sd-para__grid { display: grid; gap: clamp(20px, 3vw, 64px); align-items: start; }
main h2.sd-para__t { font-size: clamp(2rem, 1.2rem + 3vw, 4.2rem) !important; color: var(--bosque); margin: 0; max-width: 8ch; }
.sd-para__copy { display: grid; gap: clamp(20px, 3vh, 32px); }
.sd-para__big { margin: 0; font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2.1rem); line-height: 1.25; letter-spacing: -.012em; color: var(--bosque); font-weight: 500; max-width: 26ch; text-wrap: pretty; }
.sd-para__key { margin: 0; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--g-bosque6); color: var(--crema); font-size: 1.08rem; line-height: 1.55; max-width: 46ch; }
@media (min-width: 960px) { .sd-para__grid { grid-template-columns: .8fr 1.2fr; } }

/* ---------- Auto: qué cubre cada paquete ---------- */
.au { background: #e8d8c6; color: var(--bosque); padding: clamp(56px, 8vh, 96px) 0; }
.au__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; }
main h2.au__t { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.6rem) !important; max-width: 14ch; margin: 0; }
.au__tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(41, 53, 26, .08); }
.au__tabs button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 99px; background: transparent; color: var(--bosque); font-weight: 600; cursor: pointer; transition: background var(--dur-3) var(--ease-std), color var(--dur-3) var(--ease-std); }
.au__tabs button[aria-pressed="true"] { background: var(--bosque); color: var(--crema); }
.au__stage { position: relative; max-width: 1180px; margin: clamp(8px, 2vh, 24px) auto 0; aspect-ratio: 2.3 / 1; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, #0000, #000 10%, #000 90%, #0000); mask: linear-gradient(90deg, #0000, #000 10%, #000 90%, #0000); }
/* Foto 3:2 ampliada al 130 % y recortada para que el auto llene la franja; los puntos se recalculan en la plantilla. */
.au__stage img { position: absolute; left: -15%; top: -60.6%; width: 130%; max-width: none; height: auto; display: block; }
.au__pt { position: absolute; left: var(--x); top: var(--y); width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.au__pt i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 252, 245, .55); border: 2.5px solid rgba(255, 252, 245, .9); transition: transform var(--dur-4) var(--ease-enter), background var(--dur-3); }
.au__pt.is-in i { background: var(--ocre-claro); border-color: var(--crema); }
.au__pt.is-sel i { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(41, 53, 26, .35); }
.au__pt:focus-visible { outline: 3px solid var(--bosque); outline-offset: 2px; border-radius: 50%; }
.au__info { max-width: 760px; margin: clamp(8px, 2vh, 20px) auto 0; position: relative; display: grid; gap: 10px; text-align: center; justify-items: center; }
.au__card[hidden] { display: none; }
.au__name { margin: 0; font-family: var(--fd); font-stretch: 115%; font-weight: 850; text-transform: uppercase; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1; }
.au__d { margin: 8px 0; font-size: var(--t-lead); color: var(--tinta-2); }
.au__st { margin: 0; font-weight: 700; }
.au__st span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 99px; }
.au__yes { background: var(--bosque); color: var(--crema); }
.au__no { background: rgba(41, 53, 26, .1); color: var(--tinta-2); }
.au__card.is-in .au__no, .au__card:not(.is-in) .au__yes { display: none !important; }
.au__note { margin: 6px 0 0; font-size: .92rem; color: var(--tinta-2); max-width: 52ch; }
@media (max-width: 700px) {
  .au__tabs { width: 100%; flex-wrap: nowrap; }
  .au__tabs button { flex: 1 1 auto; padding: 0 8px; font-size: .86rem; }
  .au__stage { margin-inline: calc(var(--gutter) * -1); }
  .au__pt { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .au__pt i { width: 20px; height: 20px; }
}

/* ---------- Líneas de tiempo (retiro, educativo, vida con ahorro) ---------- */
.tl { background: var(--g-noche); color: var(--crema); padding: clamp(64px, 10vh, 120px) 0; }
.tl__grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 960px) { .tl { min-height: min(100svh, 860px); display: flex; align-items: center; } .tl > .wrap { width: 100%; } .tl__grid { grid-template-columns: .8fr 1.2fr; } }
main h2.tl__t { font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.8rem) !important; margin: 0 0 clamp(24px, 4vh, 40px); max-width: 12ch; }
.tl__lab, .tl__set legend { display: block; font-size: .95rem; color: var(--crema-60); font-weight: 500; margin-bottom: 6px; padding: 0; }
.tl__out { display: block; font-family: var(--fd); font-stretch: 115%; font-weight: 850; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--ocre-claro); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.tl__range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0 0 20px; }
.tl__range::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--ocre-claro) 0 var(--p, 30%), rgba(255, 252, 245, .16) var(--p, 30%)); }
.tl__range::-moz-range-track { height: 10px; border-radius: 99px; background: rgba(255, 252, 245, .16); }
.tl__range::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--ocre-claro); }
.tl__range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--crema); border: 6px solid var(--ocre); }
.tl__range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--crema); border: 6px solid var(--ocre); }
.tl__range:focus-visible { outline: 3px solid var(--ocre-claro); outline-offset: 4px; border-radius: 8px; }
.tl__set { border: 0; margin: 0 0 20px; padding: 0; }
.tl__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl__chips label { position: relative; }
.tl__chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tl__chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 99px; border: 2px solid rgba(255, 252, 245, .22); font-weight: 600; transition: background var(--dur-3) var(--ease-std), color var(--dur-3) var(--ease-std), border-color var(--dur-3); }
.tl__chips input:checked + span { background: var(--ocre-claro); border-color: var(--ocre-claro); color: var(--bosque); }
.tl__chips input:focus-visible + span { outline: 3px solid var(--ocre-claro); outline-offset: 2px; }
.tl__big { margin: 0 0 clamp(20px, 3vh, 32px); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); line-height: 1.2; font-weight: 500; max-width: 22ch; }
.tl__big strong { font-family: var(--fd); font-stretch: 115%; font-weight: 900; color: var(--ocre-claro); font-size: 1.5em; line-height: 1; font-variant-numeric: tabular-nums; }
.tl__track { position: relative; display: grid; grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)) minmax(28px, 1.6fr); gap: 4px; align-items: end; height: clamp(120px, 20vh, 200px); padding-bottom: 30px; }
.tl__track::before, .tl__track::after { position: absolute; bottom: 0; font-size: .86rem; color: var(--crema-60); font-weight: 600; }
.tl__track::before { content: attr(data-a); left: 0; }
.tl__track::after { content: attr(data-b); right: 0; }
.tl__y { display: block; height: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(220, 161, 93, .95), rgba(189, 108, 37, .85)); transform-origin: bottom; }
.tl__goal { display: block; height: 100%; border-radius: 999px 999px 4px 4px; background: var(--crema); }
.tl__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: .95rem; color: var(--crema-80); }
.tl__legend span { display: inline-flex; align-items: center; gap: 8px; }
.tl__legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--ocre-claro); }
.tl__legend i.k2 { background: var(--crema); border-radius: 50%; }
.tl__note { margin: 14px 0 0; font-size: .9rem; color: var(--crema-60); max-width: 52ch; }
@media (prefers-reduced-motion: no-preference) {
  .tl__y { animation: tly 520ms var(--ease-enter) both; animation-delay: var(--d, 0ms); }
}
@keyframes tly { from { transform: scaleY(0); } }

/* ---------- Hogar, viaje y accidentes ---------- */
.ot { background: var(--g-noche); color: var(--crema); padding: clamp(64px, 10vh, 120px) 0; }
main h2.ot__t { font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.8rem) !important; max-width: 16ch; margin: 0 0 clamp(24px, 4vh, 44px); }
.ot__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-bottom: 1px solid var(--linea-clara); }
.ot__tabs button { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 4px 16px; border: 0; background: transparent; color: var(--crema-60); cursor: pointer; position: relative; text-align: left;
  font-family: var(--fd); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: clamp(.95rem, .7rem + 1vw, 1.6rem); line-height: 1; }
.ot__tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; border-radius: 4px; background: var(--ocre-claro); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-4) var(--ease-enter); }
.ot__tabs button[aria-selected="true"] { color: var(--crema); }
.ot__tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.ot__tabs button:focus-visible { outline: 3px solid var(--ocre-claro); outline-offset: 2px; }
.ot__ic { width: 30px; height: 30px; flex: none; }
.ot__tabs button[aria-selected="true"] .ot__ic { color: var(--ocre-claro); }
.ot__d { margin: clamp(24px, 4vh, 40px) 0 0; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); line-height: 1.2; font-weight: 500; max-width: 30ch; }
@media (max-width: 600px) { .ot__tabs button { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ---------- Lo que más me dicen ---------- */
.sd-myth { background: var(--g-ocre6); color: var(--bosque); padding: clamp(72px, 12vh, 150px) 0; }
.sd-myth__in { display: grid; gap: clamp(16px, 3vh, 28px); }
.sd-myth__lab { margin: 0; font-weight: 700; font-size: 1rem; color: #3a2a12; }
.sd-myth__q { margin: 0; }
.sd-myth__q p { margin: 0; font-family: var(--fd); font-stretch: 118%; font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, .9rem + 4.4vw, 5.6rem); line-height: .92; letter-spacing: -.02em; max-width: 16ch; text-wrap: balance; }
.sd-myth__q p::before { content: "\201C"; }
.sd-myth__q p::after { content: "\201D"; }
.sd-myth__a { margin: 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.45; max-width: 44ch; color: #2c1f0c; }

/* ---------- Antes de cotizar ---------- */
.sd-prep { background: var(--g-arena6); color: var(--bosque); padding: clamp(72px, 11vh, 130px) 0; }
.sd-prep__grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
.sd-prep__head { display: grid; gap: 24px; justify-items: start; }
main h2.sd-prep__t { font-size: clamp(2rem, 1.2rem + 3vw, 4.2rem) !important; margin: 0; max-width: 8ch; }
.sd-prep__cols { display: grid; gap: clamp(28px, 4vh, 40px); }
.sd-prep__h { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; color: var(--tinta-2); }
.sd-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sd-chips li { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 20px; border-radius: 99px; background: var(--crema); font-weight: 600; font-size: 1.02rem; box-shadow: 0 1px 2px rgba(41, 53, 26, .06); }
.sd-chips--ok li { background: var(--bosque); color: var(--crema); }
.sd-chips--ok li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--ocre-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329351a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (min-width: 960px) { .sd-prep__grid { grid-template-columns: .8fr 1.2fr; } }

/* ---------- Cierre y otros seguros ---------- */
.sd-end { background: var(--g-noche); color: var(--crema); padding: clamp(72px, 11vh, 130px) 0 clamp(56px, 8vh, 96px); }
.sd-end__top { display: grid; gap: 24px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 8vh, 88px); }
main h2.sd-end__t { font-size: clamp(2rem, 1.1rem + 3.4vw, 4.4rem) !important; max-width: 13ch; margin: 0; }
.sd-end__side p { margin: 0 0 22px; color: var(--crema-80); font-size: var(--t-lead); max-width: 36ch; }
@media (min-width: 960px) { .sd-end__top { grid-template-columns: 1.1fr .9fr; } }
main h2.sd-others__t { font-size: 1rem !important; font-family: inherit !important; text-transform: none; letter-spacing: 0 !important; font-weight: 600 !important; color: var(--crema-60); margin: 0 0 16px; }
.sd-others ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
@media (min-width: 700px) { .sd-others ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sd-others ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sd-others a { display: grid; gap: 10px; color: var(--crema); text-decoration: none; }
.sd-others__img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; }
.sd-others__img img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transition: transform 600ms var(--ease-enter); }
.sd-others__n { font-family: var(--fd); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: .98rem; line-height: 1.05; }
@media (hover: hover) { .sd-others a:hover img { transform: scale(1.05); } .sd-others a:hover .sd-others__n { color: var(--ocre-claro); } }
@media (min-width: 1000px) { .sd--otros .sd6__img { width: 54%; } }
