:root {
  color-scheme: light;
  --ink: #102e45;
  --navy: #14394e;
  --paper: #faf7f2;
  --sand: #f1ebe0;
  --gold: #ffdf79;
  --line: #e1d9cd;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
html { scroll-behavior: smooth; }
[hidden] { display: none; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.header { background: #f8f4ef; position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; gap: 30px; justify-content: space-between; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { display: block; width: 145px; height: auto; mix-blend-mode: multiply; }
nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 42px); }
nav a, footer a { font-weight: 700; text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { background: var(--gold); border: 1px solid transparent; border-radius: 100px; color: #102a3d; padding: 13px 23px; font: inherit; font-weight: 800; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; text-align: center; cursor: pointer; min-height: 46px; }
.button:hover { background: #ffcf55; }
:focus-visible { outline: 3px solid #378eb9; outline-offset: 4px; }
.mobile, .symbols { display: none; }
.hero { position: relative; overflow: hidden; isolation: isolate; color: white; background: var(--navy); border-radius: 0 0 50% 7% / 0 0 8% 4%; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 37%; opacity: 0; transition: opacity .55s ease; background: linear-gradient(90deg, #14394e 0%, transparent 36%), linear-gradient(0deg, #14394e77, transparent 27%), var(--cover) center / cover; }
.hero-art.is-visible { opacity: 1; }
.hero-art[data-cover="joya"] { --cover: url("assets/cadena.jpg"); }
.hero-art[data-cover="hipoteca"] { --cover: url("assets/vivienda.jpg"); }
.hero-art[data-cover="vehiculo"] { --cover: url("assets/vehiculo-encuadre.jpg"); }
.hero-inner { padding-block: 64px 68px; }
h1 { font-size: clamp(3.65rem, 7vw, 6.5rem); line-height: .94; letter-spacing: -.078em; font-weight: 850; }
.stroke { margin: 19px 0 13px; width: 150px; height: 9px; background: var(--gold); border-radius: 70% 30% 80% 20%; transform: rotate(-4deg); }
.hero-copy p { font-size: clamp(1rem, 2vw, 1.4rem); margin-bottom: 25px; }
.hero-controls { position: absolute; bottom: 9px; inset-inline: 0; display: flex; justify-content: center; align-items: center; gap: 4px; }
.hero-controls[hidden] { display: none; }
.hero-controls button { cursor: pointer; color: white; border: 0; background: #14394e; border-radius: 50%; width: 32px; height: 32px; font: inherit; }
.hero-dot::before { content: ""; display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%; background: white; }
.hero-dot[aria-pressed="true"]::before { background: var(--gold); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
section[id], main[id] { scroll-margin-top: 120px; }
.section { padding-block: 57px; }
h2 { font-size: clamp(2rem, 4.1vw, 3.25rem); line-height: 1.04; letter-spacing: -.055em; font-weight: 850; }
.lined { display: flex; justify-content: center; align-items: center; gap: 24px; text-align: center; margin-bottom: 29px; }
.lined::before, .lined::after { content: ""; width: min(11vw, 105px); height: 1px; background: #8ca6b1; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.steps article { padding: 25px 20px; text-align: center; border-radius: 22px; background: var(--sand); }
.steps .icon { width: 38px; height: 38px; margin-bottom: 9px; }
h3 { font-size: 1.25rem; line-height: 1.16; letter-spacing: -.025em; }
.steps p, .custody p { margin-top: 8px; line-height: 1.45; }
.quote-band { background: #f3ede4; border-block: 1px solid var(--line); }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 90px); align-items: start; }
.intro { margin-top: 13px; margin-bottom: 22px; line-height: 1.55; }
form, #prepared { display: grid; gap: 8px; }
#prepared[hidden] { display: none; }
label { font-weight: 700; }
label span { font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fffdfa; border: 1px solid #c9c1b4; border-radius: 10px; padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; }
form button { justify-self: start; margin-top: 8px; }
#prepared { padding: 20px 24px; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 9px; }
#email-hint { font-size: .875rem; line-height: 1.45; }
.secondary { background: transparent; border-color: #a7a095; }
.quote-card { border: 1px solid var(--line); overflow: hidden; border-radius: 24px; background: var(--paper); box-shadow: 0 10px 25px #102e4510; }
.quote-card h3 { background: var(--navy); color: white; font-size: 1.8rem; padding: 17px 24px; }
.quote-card p { margin: 17px; background: var(--sand); padding: 15px; border-radius: 13px; line-height: 1.45; }
.custody { display: grid; grid-template-columns: 1fr minmax(155px, 27%); background: var(--navy); color: white; border-radius: 26px; overflow: hidden; }
.custody-copy { padding: 36px; }
.custody-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.custody .icon { color: var(--gold); margin-bottom: 8px; }
.custody img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; object-position: center 52%; }
.faq { max-width: 850px; padding-top: 0; }
details { background: var(--sand); border-radius: 14px; margin-top: 11px; }
summary { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; border-right: 2px solid; border-bottom: 2px solid; width: 9px; height: 9px; transform: rotate(45deg); margin: -5px 3px 0; flex-shrink: 0; }
details[open] summary::after { transform: rotate(225deg); margin-top: 5px; }
details p { padding: 0 20px 17px; line-height: 1.55; }
footer { background: #d2edf9; border-radius: 50% 3% 0 0 / 14% 5% 0 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; }
footer .brand img { width: 113px; mix-blend-mode: normal; }
footer .brand { clip-path: inset(2px 1px); }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 42px); }
  .nav { padding-block: 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
  .brand img { width: 118px; }
  nav { grid-row: 2; grid-column: 1 / -1; gap: 7px; justify-content: space-between; }
  nav a { padding: 7px 10px; border-radius: 100px; font-size: .9rem; }
  nav a:hover, nav a:focus-visible { background: var(--gold); }
  .nav-cta { min-height: 39px; padding: 7px 11px; font-size: .85rem; }
  .desktop { display: none; }
  .mobile { display: inline; }
  .hero-inner { padding-block: 47px 62px; }
  .hero-art[data-cover="vehiculo"] { inset: 0; }
  .hero-art { inset: 0 0 0 22%; background-image: linear-gradient(90deg,#14394e 0%,#14394eb0 40%,transparent 100%),linear-gradient(0deg,#14394e,transparent 52%),var(--cover); }
  .section { padding-block: 40px; }
  .steps { grid-template-columns: 1fr; gap: 11px; }
  .steps article { display: flex; align-items: center; gap: 17px; text-align: left; padding: 17px 18px; }
  .steps .icon { margin: 0; }
  .quote-grid { grid-template-columns: 1fr; gap: 25px; }
  .custody-copy { padding: 25px; }
  .custody-grid { grid-template-columns: 1fr; }
  .custody { grid-template-columns: 1fr minmax(90px, 26%); }
  .faq { padding-top: 0; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 30px); }
  .lined { gap: 12px; }
  .custody-copy { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-art { transition: none; } }

#cotiza .quote-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: stretch; gap: clamp(24px, 5vw, 65px); }
.form-group { min-width: 0; margin: 0 0 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 10px; }
.form-group[hidden] { display: none; }
.form-group legend { padding: 0 6px; font-weight: 800; }
.form-group label { display: grid; gap: 5px; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.consent { display: flex; align-items: flex-start; gap: 9px; line-height: 1.45; margin-top: 5px; }
.consent input { width: 17px; min-height: 17px; height: 17px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--navy); }
.quote-side { display: grid; align-content: start; gap: 20px; min-width: 0; }
.quote-portrait { overflow: hidden; border-radius: 32px 32px 100px 32px; margin: 0; background: var(--navy); }
.quote-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.site-footer { font-size: .875rem; border-radius: 28px 28px 0 0; }
.site-footer .footer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .92fr); align-items: start; gap: clamp(20px, 4vw, 54px); padding-block: 34px 28px; }
.footer-grid section { display: grid; gap: 9px; }
.footer-grid h2 { font-size: .95rem; line-height: 1.3; letter-spacing: -.01em; }
.footer-grid .brand { justify-self: start; margin-bottom: 6px; }
.footer-grid p { max-width: 43ch; line-height: 1.55; }
.footer-grid p strong { font-size: .8125rem; }
.footer-grid p a { text-decoration: underline; }
.footer-links { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer-contact a { font-weight: 600; }
.footer-contact { overflow: hidden; border: 1px solid #adcedd; border-radius: 14px; background: #f8fcff; }
.footer-contact > div { display: grid; gap: 6px; padding: 13px 15px; }
.footer-contact > div + div { border-top: 1px solid #c7dce6; }
.footer-contact address { display: grid; gap: 4px; font-style: normal; line-height: 1.45; }
.claims-link { display: grid; justify-items: center; justify-self: start; width: 140px; padding: 6px 8px 3px; border: 1px solid #adcedd; border-radius: 12px; background: #fbfbfb; color: #145783; text-align: center; line-height: 1.05; }
.claims-link img { display: block; width: 110px; height: auto; }
.site-footer .footer-legal { border-top: 1px solid #a7c8d7; justify-content: flex-start; flex-wrap: wrap; padding-block: 16px; row-gap: 8px; }
.footer-legal span { margin-left: auto; }
.site-footer .footer-reference { display: grid; gap: 8px; padding-block: 0 24px; font-size: .8125rem; line-height: 1.55; }
.footer-reference h2 { font-size: inherit; letter-spacing: normal; }
.legal-content h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); margin-bottom: 20px; }
.legal-content section { margin-top: 36px; }
.legal-content p { max-width: 72ch; margin-top: 12px; line-height: 1.6; }
@media (max-width: 800px) {
  #cotiza .quote-grid { grid-template-columns: 1fr; }
  .quote-side { grid-template-columns: minmax(0, 1fr); }
  .quote-card { order: -1; }
  .quote-portrait img { max-height: 340px; object-position: center 34%; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid section:first-child { grid-column: 1 / -1; }
  .footer-legal span { width: 100%; margin-left: 0; }
}
@media (max-width: 430px) { .form-pair { grid-template-columns: 1fr; } }

@media (max-width: 430px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

.credit-options .lined { margin-bottom: 20px; }
.credit-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(26px, 5vw, 52px); }
.credit-tabs[hidden], .credit-panel[hidden] { display: none; }
.credit-tabs button { background: transparent; border: 1px solid #b7c9cf; color: var(--ink); border-radius: 999px; padding: 10px 20px; min-height: 44px; font: inherit; font-weight: 750; cursor: pointer; }
.credit-tabs button[aria-selected="true"] { background: var(--navy); color: white; border-color: var(--navy); }
.credit-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.55fr); align-items: start; gap: clamp(24px, 5vw, 65px); }
.credit-panel:not([hidden]) + .credit-panel:not([hidden]) { margin-top: 24px; }
.credit-photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 4.7; background: #dce9ec; border-radius: 32px 32px 96px 32px; }
.credit-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.credit-portrait { background: radial-gradient(ellipse at center bottom, #d1e8ef 55%, #e9f3f3 56%); }
.credit-portrait img { object-fit: contain; object-position: center bottom; }
.credit-copy h3 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.05em; }
.credit-copy h3 + .credit-facts { margin-top: 21px; }
.credit-intro { margin-block: 11px 21px; line-height: 1.5; }
.credit-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.credit-facts article { display: flex; gap: 12px; align-items: flex-start; background: #f1eade; border-radius: 16px; padding: 15px; }
.credit-facts article:first-child { grid-column: 1 / -1; background: #e7eff2; }
.credit-facts .icon { box-sizing: content-box; width: 19px; height: 19px; padding: 8px; border-radius: 50%; background: var(--gold); }
.credit-facts h4 { margin: 0 0 4px; font-size: 1rem; }
.credit-facts p { line-height: 1.45; }
.credit-copy .button { margin-top: 18px; }
@media (max-width: 800px) {
  .credit-panel { grid-template-columns: minmax(0, 1fr); }
  .credit-photo { aspect-ratio: 8 / 5; }
}
@media (max-width: 520px) {
  .credit-tabs button { padding-inline: 12px; }
  .credit-facts { grid-template-columns: 1fr; }
}



.floating-whatsapp { display: grid; place-items: center; position: fixed; z-index: 3; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 52px; height: 52px; color: white; background: #146c46; border-radius: 999px; box-shadow: 0 5px 18px #102e4538; text-decoration: none; }
.floating-whatsapp:hover { background: #105737; }
.floating-whatsapp svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.site-footer { padding-bottom: 48px; }
@media (max-width: 520px) {
  .floating-whatsapp { right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); }
}

.process-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 570px; gap: clamp(5px, 1.5vw, 13px); margin: 0 auto 22px; }
.process-tabs[hidden], .process-panel[hidden] { display: none; }
.process-tabs button { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 10px 3px; min-height: 76px; border: 1px solid var(--line); border-radius: 16px; background: var(--sand); color: var(--ink); font: inherit; font-size: clamp(.875rem, 2.8vw, 1rem); font-weight: 750; cursor: pointer; }
.process-tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); }
.process-tabs .icon { width: 30px; height: 30px; }
.process-panel + .process-panel:not([hidden]) { margin-top: 0; }
