/* Componentes de las páginas con el diseño nuevo (portada, seguros, landings, legales).
   Requiere marco.css. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; } /* scroll-padding: marco.css (depende de la cabecera fija) */
body { font: 16px/1.55 var(--sans); color: var(--tx); background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--celeste); color: var(--navy); }
:focus-visible { outline: 3px solid var(--azul-h); outline-offset: 3px; border-radius: 6px; }
.oscuro :focus-visible { outline-color: var(--azul-claro); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 0; }
.panel { position: relative; border-radius: 24px; overflow: hidden; background: var(--navy); color: #fff; min-height: 560px; display: grid; padding: 64px 64px 128px; isolation: isolate; }
.panel > img, .panel > picture > img { position: absolute; inset: 0 0 0 34%; width: 66%; height: 100%; object-fit: cover; object-position: 40% 55%; z-index: -2; }
.panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 34%, rgba(13,35,64,.5) 58%, rgba(13,35,64,.12) 100%); }
.panel .txt { align-self: center; max-width: 620px; }
.sello { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #cfe3f1; margin-bottom: 22px; }
.sello .ico { color: var(--acento); width: 18px; height: 18px; }
h1 { font-weight: 300; font-size: clamp(38px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -.02em; }
h1 b { font-weight: 600; }
.panel .sub { margin-top: 20px; font-size: 19px; color: #cfdbe8; max-width: 48ch; }

/* Barra de cotización montada sobre el borde inferior del panel */
.barra { position: relative; z-index: 2; margin-top: -72px; }
.barra .wrap > div { margin: 0 32px; }
.barra .caja { background: #fff; border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(13,35,64,.5), 0 0 0 1px var(--borde); padding: 10px; }
.barra form { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; }
.barra .celda { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 20px; border-right: 1px solid var(--borde); min-height: 68px; border-radius: 10px; transition: box-shadow var(--duration-quick) ease-out; }
.barra .celda label { font-size: 13px; font-weight: 600; color: var(--tx2); }
.barra select, .barra input { width: 100%; border: 0; font: 600 17px var(--sans); color: var(--tx); background: transparent; padding: 2px 0; min-width: 0; }
.barra select:focus-visible, .barra input:focus-visible { outline: 0; }
.barra .celda:focus-within { box-shadow: inset 0 0 0 2px var(--azul-h); border-right-color: transparent; }
.barra input::placeholder { color: #61738a; font-weight: 400; }
.barra .celda.is-error { box-shadow: inset 0 0 0 2px var(--error); }
.barra .btn { min-height: 68px; padding: 0 32px; margin-left: 10px; font-size: 17px; }
.barra .pie-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px 2px; font-size: 14px; color: var(--tx2); }
.barra .err { color: var(--error); font-weight: 600; }
.barra .err:empty { display: none; }
.barra .caja.enviado form, .barra .caja.enviado .pie-barra > span:not(.err) { display: none; }
.barra .ok { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 0 16px; font-size: 17px; }
.barra .ok[hidden] { display: none; }
.barra .ok .ico { width: 30px; height: 30px; color: #1f7a4d; }

/* Accesos rápidos */
.rapidos { padding: 36px 0 0; }
.rapidos .wrap { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 12px; align-items: center; }
.rapidos .tit { font-weight: 600; color: var(--navy); padding-right: 12px; }
.rapido { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--borde); font-weight: 500; transition: border-color var(--duration-quick) ease-out, background-color var(--duration-quick) ease-out; }
.rapido .ico { color: var(--azul-b); width: 24px; height: 24px; }
.rapido:hover { border-color: var(--azul-b); background: var(--celeste); }

/* Secciones */
.sec { padding: 112px 0 0; }
.cabeza { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
h2.grande { font-weight: 300; font-size: clamp(32px, 3.2vw, 44px); letter-spacing: -.02em; line-height: 1.1; }
h2.grande b { font-weight: 600; }
.cabeza p { color: var(--tx2); max-width: 46ch; font-size: 17px; }

/* Seguros */
.tarjetas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tarjeta { position: relative; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--borde); overflow: hidden; background: #fff; transition: box-shadow var(--duration-fast) var(--ease-smooth-out), transform var(--duration-fast) var(--ease-smooth-out); }
.tarjeta:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(13,35,64,.5); }
.tarjeta figure { aspect-ratio: 16 / 10; overflow: hidden; }
.tarjeta figure img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta .cuerpo { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tarjeta h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.tarjeta h3 a { display: flex; align-items: center; gap: 10px; }
.tarjeta h3 a::after { content: ''; position: absolute; inset: 0; }
.tarjeta h3 .ico { color: var(--azul-b); }
.tarjeta p { font-size: 15px; color: var(--tx2); }
.tarjeta ul { list-style: none; display: grid; gap: 6px; font-size: 15px; }
.tarjeta li { display: flex; gap: 8px; }
.tarjeta li .ico { width: 18px; height: 18px; color: var(--azul-b); margin-top: 2px; }
.tarjeta .ir { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--azul-h); display: inline-flex; gap: 6px; align-items: center; }
.tarjeta .extra { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--azul-h); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }


/* Confianza */
.confianza { margin-top: 112px; background: var(--navy); color: #fff; padding: 72px 0; }
.confianza .wrap { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 40px; align-items: start; }
.confianza h2 { font-weight: 300; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; }
.confianza h2 b { font-weight: 600; }
.dato .ico { color: var(--acento); width: 28px; height: 28px; margin-bottom: 12px; }
.dato b { display: block; font-size: 20px; font-weight: 600; }
.dato p { color: #c9d6e4; font-size: 15px; margin-top: 4px; }
.dato a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Proceso */
.pasos-caja { position: relative; padding-top: 36px; }
.pasos-caja::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--borde); }
.trazo { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--azul-b); transform-origin: left; }
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; }
.paso .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--celeste); color: var(--azul-h); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.paso h3 { font-size: 20px; font-weight: 600; margin-top: 18px; }
.paso p { margin-top: 6px; color: var(--tx2); font-size: 15px; max-width: 30ch; }

/* Contacto */
.contacto { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.contacto .lado p { color: var(--tx2); font-size: 17px; margin-top: 16px; max-width: 40ch; }
.alt { margin-top: 32px; display: grid; gap: 12px; }
.alt a { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; border: 1px solid var(--borde); transition: border-color var(--duration-quick) ease-out, background-color var(--duration-quick) ease-out; }
.alt a:hover { border-color: var(--azul-b); background: var(--celeste); }
.alt a .ico { width: 26px; height: 26px; color: var(--azul-b); }
.alt b { display: block; font-weight: 600; }
.alt span { font-size: 14px; color: var(--tx2); }
.tarjeta-form { border: 1px solid var(--borde); border-radius: 20px; padding: 36px; box-shadow: 0 24px 50px -36px rgba(13,35,64,.4); }
.form { display: grid; gap: 18px; }
.form[hidden], .exito[hidden] { display: none; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo label, legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
label small { font-weight: 400; color: var(--tx2); }
.t-input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--borde-campo); background: #fff; color: var(--tx); font: 400 16px/1.3 var(--sans); transition: border-color var(--duration-quick) ease-out; will-change: transform; }
.t-input::placeholder { color: #61738a; }
.t-input:hover { border-color: var(--tx2); }
.t-input:focus-visible { outline: 3px solid var(--azul-h); outline-offset: 1px; border-color: var(--azul-h); border-radius: 10px; }
textarea.t-input { min-height: 96px; resize: vertical; }
.t-input-wrap.is-error .t-input { border-color: var(--error); }
select.t-input { -webkit-appearance: none; appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d2340' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center; }
select.t-input:invalid, select.t-input:has(option[value=""]:checked) { color: #61738a; }
select.t-input option { color: var(--tx); }
.t-error-msg { display: block; margin-top: 6px; font-size: 14px; color: var(--error); font-weight: 600; }
.t-error-msg:empty { display: none; }
.is-shaking { animation: t-input-shake calc(var(--shake-dur-a) * 2 + var(--shake-dur-b) * 2) linear; }
@keyframes t-input-shake {
  0% { transform: translateX(0); animation-timing-function: var(--ease-smooth-out); }
  28.57% { transform: translateX(var(--shake-distance)); animation-timing-function: var(--ease-smooth-out); }
  57.14% { transform: translateX(calc(var(--shake-distance) * -1)); animation-timing-function: var(--ease-smooth-out); }
  78.57% { transform: translateX(var(--shake-overshoot)); animation-timing-function: var(--ease-smooth-out); }
  100% { transform: translateX(0); }
}
fieldset { border: 0; min-width: 0; }
.opciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.op { position: relative; }
.op input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.op span { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--borde-campo); font-weight: 500; font-size: 15px; transition: border-color var(--duration-quick) ease-out, background-color var(--duration-quick) ease-out; }
.op span .ico { color: var(--azul-b); width: 20px; height: 20px; }
.op:hover span { border-color: var(--tx2); }
.op input:checked + span { border-color: var(--azul-b); background: var(--celeste); }
.op input:focus-visible + span { outline: 3px solid var(--azul-h); outline-offset: 2px; }
.t-input-wrap.is-error .op span { border-color: var(--error); }
.enviar { width: 100%; min-height: 54px; font-size: 17px; }
.enviar[disabled] { opacity: .75; cursor: progress; }
.letra { display: inline-block; transition: opacity var(--duration-quick) ease-in-out, transform var(--duration-quick) ease-in-out, filter var(--duration-quick) ease-in-out; }
.letra.sale { opacity: 0; transform: translateY(-4px); filter: blur(2px); }
.letra.entra { opacity: 0; transform: translateY(4px); filter: blur(2px); }
.nota { font-size: 14px; color: var(--tx2); }
.nota a { color: var(--azul-h); text-decoration: underline; text-underline-offset: 3px; }
.aviso { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; background: #fdecea; color: #8c2a1b; font-size: 15px; }
.aviso[hidden] { display: none; }
.aviso a { color: inherit; font-weight: 700; text-decoration: underline; }
.exito { display: grid; justify-items: center; text-align: center; padding: 56px 8px; gap: 14px; }
.exito h3 { font-size: 28px; font-weight: 600; }
.exito h3:focus { outline: none; }
.exito p { color: var(--tx2); max-width: 38ch; }
/* Botón de WhatsApp de la pantalla de gracias: en celular el texto ocupa dos líneas. */
.exito .btn { margin-top: 6px; padding-block: 12px; line-height: 1.25; text-align: center; }
.t-success-check { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 999px; background: var(--azul-b); color: #fff; opacity: 0; }
.t-success-check svg { width: 36px; height: 36px; overflow: visible; }
.t-success-check svg path { stroke-dasharray: 22; stroke-dashoffset: 22; }
.t-success-check[data-state="in"] { animation: t-check-fade 500ms var(--ease-smooth-out) forwards, t-check-rotate 500ms var(--ease-smooth-out) forwards, t-check-blur 500ms var(--ease-smooth-out) forwards, t-check-bob 500ms cubic-bezier(0.34, 1.35, 0.64, 1) forwards; }
.t-success-check[data-state="in"] svg path { animation: t-check-draw 500ms var(--ease-smooth-out) 80ms forwards; }
@keyframes t-check-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes t-check-rotate { from { transform: rotate(80deg); } to { transform: rotate(0); } }
@keyframes t-check-blur { from { filter: blur(10px); } to { filter: blur(0); } }
@keyframes t-check-bob { from { translate: 0 40px; } to { translate: 0 0; } }
@keyframes t-check-draw { to { stroke-dashoffset: 0; } }

/* Consultas y reclamos */
.consultas { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; padding: 56px; border-radius: 24px; background: var(--gris); }
.consultas .lado p { color: var(--tx2); font-size: 17px; margin-top: 16px; max-width: 42ch; }
.consultas .lado ul { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.consultas .lado li { display: flex; gap: 10px; font-size: 15px; color: var(--tx2); }
.consultas .lado li .ico { color: var(--azul-b); width: 20px; height: 20px; margin-top: 1px; }
.consultas .tarjeta-form { background: #fff; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 340px; padding: 3px; border-radius: 11px; background: #e8edf2; isolation: isolate; }
.seg::before { content: ""; position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 8px; background: #fff; box-shadow: 0 3px 8px rgba(13,35,64,.12), 0 1px 1px rgba(13,35,64,.04), 0 0 0 .5px rgba(13,35,64,.08); transition: transform var(--duration-fast) var(--ease-smooth-out); }
.seg:has(label:nth-child(2) input:checked)::before { transform: translateX(100%); }
.seg label { position: relative; z-index: 1; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--tx2); transition: color var(--duration-fast) var(--ease-smooth-out); }
.seg input:checked + span { font-weight: 600; color: var(--navy); }
.seg label:hover input:not(:checked) + span { color: var(--tx); }
.seg input:focus-visible + span { outline: 3px solid var(--azul-h); outline-offset: 1px; }
@supports not selector(:has(*)) { .seg::before { display: none; } .seg input:checked + span { background: #fff; box-shadow: 0 3px 8px rgba(13,35,64,.12), 0 0 0 .5px rgba(13,35,64,.08); } }
@media (prefers-reduced-motion: reduce) { .seg::before { transition: none; } }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-height: 820px) and (min-width: 561px) {
  .panel { min-height: 0; padding-top: 44px; padding-bottom: 112px; }
  h1 { font-size: clamp(34px, 3.8vw, 50px); }
  .sello { margin-bottom: 14px; }
  .panel .sub { margin-top: 14px; font-size: 17px; }
}
@media (max-width: 1100px) {
  .panel { padding: 48px 40px 120px; }
  .panel > img, .panel > picture > img { inset: 0; width: 100%; }
  .panel::before { background: linear-gradient(90deg, rgba(13,35,64,.95) 0%, rgba(13,35,64,.75) 60%, rgba(13,35,64,.45) 100%); }
  .barra form { grid-template-columns: 1fr 1fr; }
  .barra .celda { border-bottom: 1px solid var(--borde); }
  .barra .celda:nth-child(2) { border-right: 0; }
  .barra .celda:first-child { grid-column: 1 / -1; border-right: 0; }
  .barra .btn { grid-column: 1 / -1; margin: 10px 0 0; min-height: 56px; }
  .tarjetas { grid-template-columns: 1fr 1fr; }
  .rapidos .wrap { grid-template-columns: 1fr 1fr; }
  .rapidos .tit { grid-column: 1 / -1; }
  .confianza .wrap { grid-template-columns: 1fr 1fr; }
  .contacto, .consultas { grid-template-columns: 1fr; }
  .consultas { padding: 40px; gap: 32px; }
  .pasos { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
/* Cabecera, panel móvil y pie: sus puntos de quiebre viven solo en marco.css */
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero .wrap { width: calc(100% - 16px); }
  .panel { padding: 26px 20px 92px; border-radius: 20px; }
  .panel::before { background: linear-gradient(180deg, rgba(13,35,64,.86) 0%, rgba(13,35,64,.93) 60%, rgba(13,35,64,.97) 100%); }
  .sello { margin-bottom: 12px; font-size: 13px; }
  h1 { font-size: 32px; }
  .panel .sub { font-size: 16px; margin-top: 12px; }
  .barra .celda { min-height: 60px; padding: 6px 14px; }
  .barra .btn { min-height: 52px; }
  .barra .wrap > div { margin: 0 8px; }
  .barra form { grid-template-columns: 1fr; }
  .barra .celda { border-right: 0; }
  .tarjetas, .confianza .wrap, .pasos, .opciones, .dos { grid-template-columns: 1fr; }
  .cabeza { flex-direction: column; align-items: start; }
  .tarjeta-form { padding: 24px 18px; }
  .consultas { padding: 28px 16px; border-radius: 20px; }
  .pasos-caja { padding-top: 0; padding-left: 28px; }
  .pasos-caja::before, .trazo { top: 0; bottom: 0; left: 0; right: auto; width: 2px; height: auto; transform-origin: top; }
  .sec { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
  .t-success-check { opacity: 1; }
  .t-success-check svg path { stroke-dashoffset: 0; }
}

/* ---------- Páginas de seguro y landings ---------- */
.panel.chico { min-height: 460px; }
.bloques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bloque { border: 1px solid var(--borde); border-radius: 16px; padding: 32px; }
.bloque h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.bloque h2 .ico { color: var(--azul-b); }
.bloque p { margin-top: 10px; color: var(--tx2); font-size: 16px; }
.bloque ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.bloque li { display: flex; gap: 10px; font-size: 16px; }
.bloque li .ico { width: 20px; height: 20px; color: var(--azul-b); margin-top: 2px; }
.aviso-pyme { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding: 24px 28px; border-radius: 16px; background: var(--celeste); }
.aviso-pyme b { display: block; font-size: 18px; font-weight: 600; color: var(--navy); }
.aviso-pyme span { color: var(--tx2); font-size: 15px; }
.preguntas { display: grid; gap: 12px; max-width: 880px; }
.pregunta { border: 1px solid var(--borde); border-radius: 14px; background: #fff; }
.pregunta summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary .ico { color: var(--azul-b); transition: transform var(--duration-fast) var(--ease-smooth-out); }
.pregunta[open] summary .ico { transform: scaleY(-1); }
.pregunta .resp { padding: 0 22px 20px; color: var(--tx2); font-size: 16px; max-width: 70ch; }
.otras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.otras a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--borde); font-weight: 600; transition: border-color var(--duration-quick) ease-out, background-color var(--duration-quick) ease-out; }
.otras a:hover { border-color: var(--azul-b); background: var(--celeste); }
.otras a .ico { color: var(--azul-b); }

/* ---------- Páginas legales ---------- */
.legal-pag { max-width: 800px; margin: 0 auto; padding: 64px 0 24px; }
.legal-pag h1 { font-weight: 300; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 28px; color: var(--navy); }
.legal-pag h2 { font-size: 22px; font-weight: 600; margin: 36px 0 12px; color: var(--navy); }
.legal-pag p, .legal-pag li { color: var(--tx2); line-height: 1.75; margin-bottom: 12px; }
.legal-pag ul { margin: 0 0 16px 22px; }
.legal-pag a { color: var(--azul-h); text-decoration: underline; text-underline-offset: 3px; }
.legal-pag .back-link { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 600; }

@media (max-width: 860px) {
  .bloques, .otras { grid-template-columns: 1fr; }
  .bloque { padding: 24px; }
}

/* Landing sin barra de cotización: en celular la foto se ve abajo del texto */
@media (max-width: 560px) {
  .panel.foto-abajo { min-height: 0; padding-bottom: 280px; }
  .panel.foto-abajo > img, .panel.foto-abajo > picture > img { inset: auto 0 0 0; width: 100%; height: 300px; object-position: 76% 28% !important; }
  .panel.foto-abajo::before { background: linear-gradient(180deg, var(--navy) 0%, var(--navy) calc(100% - 300px), rgba(13,35,64,.55) calc(100% - 250px), rgba(13,35,64,0) calc(100% - 140px)); }
}

.pregunta .resp a, .bloque a:not(.btn) { color: var(--azul-h); text-decoration: underline; text-underline-offset: 3px; }

/* Franja de compañías: la pista lleva la lista dos veces para que el bucle no se note */
.franja-cias .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); align-items: center; }
.cias { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cias-pista { display: flex; width: max-content; animation: cias-paso 42s linear infinite; }
.cias ul { display: flex; gap: 12px; list-style: none; padding-right: 12px; }
.cias li { display: flex; align-items: center; justify-content: center; height: 76px; padding: 0 26px; background: #fff; border-radius: 14px; }
.cias img { display: block; width: auto; height: auto; max-width: 150px; max-height: 44px; }
.cias img[src*="contempora"] { max-width: 160px; max-height: 66px; } /* el archivo trae márgenes transparentes */
@keyframes cias-paso { to { transform: translateX(-50%); } }
@media (max-width: 860px) { .franja-cias .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .cias { -webkit-mask-image: none; mask-image: none; }
  .cias-pista { animation: none; width: auto; }
  .cias ul { flex-wrap: wrap; padding-right: 0; }
  .cias ul[aria-hidden] { display: none; }
}

.pie-barra a { text-decoration: underline; text-underline-offset: 3px; }
/* ---------- Banners rotativos de la portada (.banners en index.html, rotación en src/js/banners.js) ---------- */
.banners { padding: 56px 0 0; }
.bn-pista { position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; overscroll-behavior-x: contain; }
.bn-pista::-webkit-scrollbar { display: none; }
.bn { position: relative; isolation: isolate; overflow: hidden; flex: 0 0 100%; scroll-snap-align: start; border-radius: 24px; color: #fff; min-height: 440px; padding: 44px 56px 24px; display: grid; grid-template-rows: 1fr auto; row-gap: 26px;
  background: radial-gradient(560px 420px at 92% 0%, rgba(26,140,205,.6) 0%, rgba(26,140,205,0) 68%), radial-gradient(520px 420px at 0% 100%, rgba(17,120,181,.32) 0%, rgba(17,120,181,0) 70%), linear-gradient(180deg, #0b1e38, var(--navy)); }
.bn::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; background: linear-gradient(180deg, rgba(13,35,64,0), rgba(13,35,64,.94) 72%); }
.bn-foto { position: absolute; inset: 0 0 0 44%; z-index: -2; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%); mask-image: linear-gradient(90deg, transparent 0%, #000 36%); }
.bn-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 66%; }
.bn-auto .bn-foto::after { content: ''; position: absolute; inset: 0; background: #12447a; mix-blend-mode: multiply; opacity: .5; }
.bn-simple .bn-foto::after { content: ''; position: absolute; inset: 0; background: rgba(13,35,64,.28); }
.bn-txt { align-self: center; max-width: 620px; }
.bn-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); white-space: nowrap; }
.bn-tag span { margin-right: -10px; }
.bn-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--azul-claro); flex: none; }
.bn-simple h2 { margin-top: 20px; font-weight: 300; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.bn-simple h2 b { font-weight: 600; }
.bn-sub { margin-top: 16px; font-size: 18px; color: #cfdbe8; max-width: 46ch; }
.bn-auto h2 { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center; font-weight: 700; text-wrap: wrap; }
.bn-auto .hasta { grid-column: 1 / -1; font-size: 24px; font-weight: 800; line-height: 1.1; }
.bn-auto .pct { font-size: clamp(104px, 10vw, 136px); font-weight: 900; line-height: .92; letter-spacing: -.045em; padding-right: .04em; background: linear-gradient(175deg, #fff 30%, #8fd0f5 95%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 rgba(8,24,46,.55)); }
.bn-auto .resto { font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.bn-auto .resto b { display: table; margin-top: 10px; font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1; padding: 8px 14px 10px; border-radius: 10px; background: linear-gradient(135deg, #1f8fbd, var(--azul-b) 55%, var(--azul-h)); transform: rotate(-2deg); box-shadow: 0 12px 24px rgba(3,14,30,.45), inset 0 1px 0 rgba(255,255,255,.35); white-space: nowrap; }
.bn-taller { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 17px; font-weight: 600; color: #dbe8f3; }
.bn-taller span { font-size: 15px; font-weight: 800; line-height: 1.2; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--navy); }
.bn-acc { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.mc-marco .bn .btn-blanco { background: #fff; color: var(--navy); min-height: 54px; padding: 0 28px; border-radius: 999px; font-size: 17px; font-weight: 700; box-shadow: 0 14px 30px rgba(3,14,30,.5); }
.mc-marco .bn .btn-blanco:hover { background: var(--celeste); }
.bn-plazo { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; }
.bn-plazo i { width: 9px; height: 9px; border-radius: 50%; background: #6fd0ff; box-shadow: 0 0 0 5px rgba(111,208,255,.28); flex: none; }
.bn-sello { position: absolute; right: 52px; top: 34px; width: 200px; height: 200px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--navy); text-wrap: wrap; background: radial-gradient(circle at 32% 24%, #fff 0%, #eaf5fd 70%, #d5eaf8 100%); transform: rotate(7deg); box-shadow: 0 0 0 6px rgba(255,255,255,.22), 0 20px 40px rgba(3,14,30,.55); }
.bn-sello::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 2px dashed #86bfe3; }
.bn-sello .ad { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--azul-h); }
.bn-sello .fila { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.bn-sello .fila b { font-size: 94px; font-weight: 900; line-height: .86; color: var(--azul-b); letter-spacing: -.04em; }
.bn-sello .fila span { font-size: 25px; font-weight: 900; line-height: .94; letter-spacing: -.03em; text-transform: uppercase; }
.bn-sello .q { margin-top: 7px; font-size: 14px; font-weight: 800; line-height: 1.2; color: #fff; background: var(--navy); padding: 4px 11px; border-radius: 999px; }
.bn-legal { font-size: 12.5px; line-height: 1.4; color: #c9dfee; max-width: 110ch; }
.bn-ctrl { display: none; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.banners.listo .bn-ctrl { display: flex; }
.bn-puntos { display: flex; align-items: center; gap: 8px; }
.bn-puntos button { position: relative; width: 28px; height: 6px; border-radius: 999px; border: 0; padding: 0; background: var(--borde-campo); cursor: pointer; transition: width var(--duration-fast) var(--ease-smooth-out), background-color var(--duration-quick) ease-out; }
.bn-puntos button::after { content: ''; position: absolute; inset: -12px -4px; } /* área de toque 30×36 px */
@media (pointer: coarse) { .bn-puntos button::after { inset: -19px -4px; } } /* 44 px de alto en pantallas táctiles, sin cambiar el punto */
.bn-puntos button[aria-current] { width: 48px; background: var(--navy); }
.bn-botones { display: flex; gap: 8px; }
.bn-botones button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--borde); background: #fff; color: var(--navy); cursor: pointer; transition: background-color var(--duration-quick) ease-out, border-color var(--duration-quick) ease-out; }
.bn-botones button:hover { background: var(--gris); border-color: var(--borde-campo); }
.bn-botones .ico { width: 20px; height: 20px; }
.bn-pausa .i-play { display: none; fill: currentColor; stroke-width: 1.2; }
.bn-pausa.en-pausa .i-play { display: block; }
.bn-pausa.en-pausa .i-pausa { display: none; }
@media (max-width: 1100px) {
  .bn { padding: 40px 40px 22px; }
  .bn-foto { inset: 0 0 0 38%; }
  .bn-sello { right: 30px; top: 28px; width: 172px; height: 172px; }
  .bn-sello .fila b { font-size: 80px; } .bn-sello .fila span { font-size: 21px; } .bn-sello .ad { font-size: 12px; } .bn-sello .q { font-size: 13px; }
}
@media (max-width: 860px) {
  .banners { padding-top: 40px; }
  .bn-pista { border-radius: 20px; }
  .bn { min-height: 0; padding: 28px 22px 18px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: 'txt' 'foto' 'legal'; row-gap: 0; border-radius: 20px; }
  .bn::after { height: 150px; }
  .bn-txt { grid-area: txt; max-width: none; align-self: start; }
  .bn-foto { grid-area: foto; position: relative; inset: auto; min-height: 190px; margin: 6px -22px 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%); mask-image: linear-gradient(180deg, transparent 0%, #000 42%); }
  .bn-foto img { position: absolute; inset: 0; object-position: 22% 70%; }
  .bn-simple .bn-foto { margin-bottom: -18px; }
  .bn-simple h2 { font-size: 30px; }
  .bn-sub { font-size: 16px; }
  .bn-tag { font-size: 12px; }
  .bn-tag span { display: none; }
  .bn-taller { display: none; }
  .bn-sello { right: 14px; top: 62px; width: 124px; height: 124px; }
  .bn-sello::before { inset: 5px; }
  .bn-sello .fila b { font-size: 58px; } .bn-sello .fila span { font-size: 15px; } .bn-sello .ad { font-size: 9px; } .bn-sello .q { font-size: 10px; margin-top: 4px; padding: 3px 8px; }
  .bn-legal { grid-area: legal; margin-top: -30px; font-size: 12px; }
  .bn-auto h2 { grid-template-columns: 1fr; }
  .bn-auto .pct { font-size: 96px; justify-self: start; }
  .bn-auto .resto { margin-top: 6px; font-size: 21px; }
  .bn-auto .resto b { font-size: 28px; }
  .bn-acc { flex-direction: column; align-items: stretch; margin-top: 22px; }
  .bn-plazo { justify-content: center; }
}

/* ---------- Rendimiento ---------- */
/* Las fotos van en <picture> (AVIF/WebP/JPG en 3 anchos): <picture> no genera caja, así la <img> se ubica
   como si fuera hija directa del panel (los paneles son grid). Los <source> se ocultan: si no, pasan a ser celdas
   vacías del grid y empujan el texto hacia abajo. */
picture { display: contents; }
picture > source { display: none; }
/* Respaldo con las métricas de Albert Sans (calculadas con fontTools sobre los archivos de Google Fonts):
   mientras carga la fuente (display=swap) el texto ocupa casi lo mismo y no salta al cambiar (CLS).
   Arial: Mac, Windows e iPhone. Roboto: Android. */
@font-face { font-family: 'Albert Sans Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 100 549; size-adjust: 103%; ascent-override: 92.2%; descent-override: 24.3%; line-gap-override: 0%; }
@font-face { font-family: 'Albert Sans Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 550 900; size-adjust: 96.8%; ascent-override: 98.1%; descent-override: 25.8%; line-gap-override: 0%; }
@font-face { font-family: 'Albert Sans Fallback Roboto'; src: local('Roboto'), local('Roboto-Regular'); font-weight: 100 549; size-adjust: 103.3%; ascent-override: 92%; descent-override: 24.2%; line-gap-override: 0%; }
@font-face { font-family: 'Albert Sans Fallback Roboto'; src: local('Roboto Bold'), local('Roboto-Bold'); font-weight: 550 900; size-adjust: 102.8%; ascent-override: 92.4%; descent-override: 24.3%; line-gap-override: 0%; }
:root { --sans: 'Albert Sans', 'Albert Sans Fallback', 'Albert Sans Fallback Roboto', system-ui, sans-serif; }
