/* Carspicious: estilo clásico y de confianza (azul, naranja, fotos, sombras). */
:root {
  --navy:#0d2b52; --blue:#1557a8; --blue-2:#1e6fd0; --sky:#e8f1fc;
  --orange:#f28c18; --orange-2:#e07300; --yellow:#fff4d6;
  --green:#1f9d55; --red:#c8382c; --ink:#1d2433; --muted:#5b6474;
  --line:#d9e1ec; --bg:#f4f7fb; --card:#fff; --soft:#fff4d6; --accent:#1557a8;
  --shadow:0 6px 18px rgb(13 43 82 / .10); --shadow-lg:0 14px 40px rgb(13 43 82 / .18);
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.6 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3 { font-family:Georgia, "Times New Roman", serif; color:var(--navy); letter-spacing:-.01em; }
a { color:var(--blue); }
img { max-width:100%; display:block; }
.wrap { max-width:1120px; margin:0 auto; padding:0 16px; }

/* Barra superior de confianza */
.topbar { background:var(--navy); color:#dbe7f7; font-size:13.5px; }
.topbar .wrap { display:flex; gap:22px; justify-content:center; flex-wrap:wrap; padding-top:7px; padding-bottom:7px; }
.topbar b { color:#fff; }

/* Cabecera */
header.top { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0; }
.site-header { background:#fff; border-bottom:3px solid var(--orange); box-shadow:0 2px 8px rgb(13 43 82 / .06); position:sticky; top:0; z-index:10; }
.logo { display:flex; align-items:center; gap:8px; font:800 24px/1 Georgia, serif; text-decoration:none; color:var(--navy); }
.logo::before { content:""; width:34px; height:34px; border-radius:8px; background:var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/svg%3E") center/20px no-repeat; }
.logo span { color:var(--orange-2); }
nav a { margin-left:18px; color:var(--navy); text-decoration:none; font-weight:600; font-size:15px; }
nav a:hover { color:var(--orange-2); }
nav a.keep { background:var(--orange); color:#fff; padding:9px 16px; border-radius:6px; }
nav a.keep:hover { background:var(--orange-2); color:#fff; }

/* Botones */
.btn { display:inline-block; background:linear-gradient(#f8a136,#e07a06); color:#fff; border:0; border-radius:6px; padding:15px 26px; font-family:inherit; font-weight:700; font-size:17px; line-height:1.1; text-decoration:none; cursor:pointer; box-shadow:0 3px 0 #b85f00, 0 8px 18px rgb(224 115 0 / .3); text-shadow:0 1px 0 rgb(0 0 0 / .15); }
.btn:hover { filter:brightness(1.05); }
.btn:active { transform:translateY(2px); box-shadow:0 1px 0 #b85f00; }
.btn.ghost { background:#fff; color:var(--blue); border:2px solid #fff; box-shadow:none; text-shadow:none; }
.btn.blue { background:linear-gradient(var(--blue-2),var(--blue)); box-shadow:0 3px 0 #0d3f7c; }
.btn:disabled { opacity:.6; cursor:wait; }

/* Portada */
.hero { position:relative; color:#fff; background:linear-gradient(105deg, rgb(13 43 82 / .96) 0%, rgb(21 87 168 / .90) 55%, rgb(21 87 168 / .55) 100%), url("/static/img/hero.jpg") center/cover, linear-gradient(120deg,#0d2b52,#1e6fd0); }
.hero .wrap { display:grid; grid-template-columns:1.15fr .85fr; gap:36px; align-items:center; padding-top:46px; padding-bottom:56px; }
.hero h1 { color:#fff; font-size:clamp(32px,5vw,52px); line-height:1.08; margin:10px 0 14px; }
.hero h1 em { color:#ffc56b; font-style:normal; }
.hero p.lead { font-size:19px; color:#e3edfa; margin:0 0 24px; max-width:34em; }
.hero .trust { color:#fff; }
.ribbon { display:inline-block; background:var(--orange); color:#fff; font-weight:700; font-size:13px; padding:5px 12px; border-radius:4px; text-transform:uppercase; letter-spacing:.05em; }
.trust { display:flex; gap:18px; flex-wrap:wrap; font-size:15px; margin-top:20px; }
.trust span::before { content:"✔"; color:#5fdc8f; margin-right:6px; font-weight:900; }

/* Tarjetas */
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:22px; box-shadow:var(--shadow); color:var(--ink); }
.preview { border-top:6px solid var(--orange); box-shadow:var(--shadow-lg); }
.preview h3 { margin:0 0 6px; font-family:inherit; font-weight:600; font-size:14px; line-height:1.4; color:var(--muted); }
.verdict { display:inline-block; font-weight:800; font-size:18px; margin:6px 0 12px; padding:6px 12px; border-radius:6px; background:var(--yellow); color:#7a4b00; }
.preview ul { margin:0; padding-left:0; list-style:none; }
.preview li { padding:7px 0 7px 26px; border-bottom:1px dashed var(--line); position:relative; }
.preview li::before { content:"!"; position:absolute; left:0; top:8px; width:18px; height:18px; border-radius:50%; background:var(--orange); color:#fff; font-family:inherit; font-weight:800; font-size:12px; line-height:18px; text-align:center; }
.stamp { display:inline-block; margin-top:12px; font-size:12px; color:var(--muted); }

/* Secciones */
section { padding:52px 0; }
section.alt { background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
section.blue { background:linear-gradient(120deg,var(--navy),var(--blue)); color:#fff; }
section.blue h2 { color:#fff; }
section h2 { font-size:clamp(26px,3.6vw,36px); margin:0 0 8px; text-align:center; }
.sub { text-align:center; color:var(--muted); margin:0 auto 30px; max-width:40em; font-size:17px; }
section.blue .sub { color:#d6e4f7; }
.grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.grid2 { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }

.step { text-align:center; padding-top:30px; position:relative; }
.step b { position:absolute; top:-22px; left:50%; transform:translateX(-50%); width:46px; height:46px; border-radius:50%; background:var(--orange); color:#fff; font:800 22px/46px Georgia, serif; box-shadow:0 0 0 5px #fff, var(--shadow); }
.step h3 { margin:6px 0 6px; font-size:20px; }

.feature { display:flex; gap:14px; align-items:flex-start; }
.feature .ico { flex:0 0 52px; height:52px; border-radius:12px; display:grid; place-items:center; font-size:26px; background:var(--sky); }
.feature h3 { margin:0 0 4px; font-size:18px; }
.feature p { margin:0; color:var(--muted); font-size:15px; }

.photo { border-radius:10px; min-height:260px; background:linear-gradient(135deg,#cfe0f6,#9ec1ec) center/cover; box-shadow:var(--shadow); position:relative; overflow:hidden; }
.photo::after { content:attr(data-alt); position:absolute; left:10px; bottom:10px; font-size:12px; color:rgb(13 43 82 / .55); }
.photo.has-img::after { content:none; }

.warn-card { border-left:6px solid var(--red); }
.warn-card h3 { margin:0 0 6px; font-size:18px; color:var(--red); }
.warn-card p { margin:0; color:var(--muted); }

.founder { display:grid; grid-template-columns:240px 1fr; gap:28px; align-items:center; }
.founder .photo { min-height:280px; }
.founder h2 { text-align:left; }
.checks { list-style:none; padding:0; margin:14px 0 0; }
.checks li { padding:4px 0 4px 28px; position:relative; }
.checks li::before { content:"✔"; position:absolute; left:0; color:var(--green); font-weight:900; }

.guarantee { display:flex; gap:20px; align-items:center; background:var(--yellow); border:2px dashed #f0b44c; border-radius:12px; padding:20px 24px; }
.guarantee .seal { flex:0 0 86px; height:86px; border-radius:50%; background:var(--orange); color:#fff; display:grid; place-items:center; text-align:center; font:800 13px/1.1 Georgia, serif; box-shadow:0 0 0 5px #fff, 0 0 0 7px var(--orange); }
.guarantee h3 { margin:0 0 4px; }
.guarantee p { margin:0; }

/* Formulario */
form .row { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:14px; }
label { display:block; font-size:14px; font-weight:600; color:var(--navy); margin-bottom:5px; }
input, select, textarea { width:100%; padding:12px 13px; border-radius:6px; border:1px solid #b9c6d8; background:#fff; color:var(--ink); font:inherit; box-shadow:inset 0 1px 2px rgb(0 0 0 / .05); }
input:focus, select:focus, textarea:focus { outline:3px solid rgb(30 111 208 / .25); border-color:var(--blue-2); }
textarea { min-height:130px; resize:vertical; }
.hint { font-size:13.5px; color:var(--muted); margin-top:5px; }
.error { color:var(--red); font-weight:700; margin:10px 0; }
.form-card { border-top:6px solid var(--blue); }
.price-box { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:20px; padding:18px; background:var(--sky); border-radius:8px; }
.price { font:800 34px/1 Georgia, serif; color:var(--navy); }
.price small { font-family:inherit; font-weight:600; font-size:14px; color:var(--muted); }
.secure { font-size:13px; color:var(--muted); margin-top:6px; }

details { background:#fff; border:1px solid var(--line); border-radius:8px; padding:14px 18px; margin-bottom:10px; box-shadow:0 1px 3px rgb(0 0 0 / .04); }
summary { cursor:pointer; font-weight:700; color:var(--navy); }
details p { margin:10px 0 0; color:var(--muted); }

footer { background:var(--navy); color:#c5d3e6; margin-top:0; padding:36px 0 90px; font-size:14px; }
footer a { color:#fff; }
.foot-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:24px; }
footer .logo { color:#fff; margin-bottom:10px; }

.badge { display:inline-block; font-size:12px; padding:4px 10px; border-radius:4px; background:var(--orange); color:#fff; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }

/* Informe */
.report h2 { font-size:22px; margin:28px 0 8px; padding:10px 14px; background:var(--sky); border-left:5px solid var(--blue); border-radius:4px; text-align:left; }
.report h2:first-child { margin-top:8px; }
.report li { margin:5px 0; }
.spinner { width:40px; height:40px; border:5px solid var(--line); border-top-color:var(--orange); border-radius:50%; animation:spin 1s linear infinite; margin:24px auto; }
@keyframes spin { to { transform:rotate(360deg); } }
table { width:100%; border-collapse:collapse; }
td { padding:9px 4px; border-bottom:1px solid var(--line); }
td:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.total td { font-weight:800; border-bottom:0; font-size:18px; color:var(--navy); }

/* Páginas interiores */
.page-head { background:linear-gradient(120deg,var(--navy),var(--blue)); color:#fff; padding:30px 0; margin-bottom:28px; }
.page-head h1 { color:#fff; margin:0; font-size:clamp(26px,4vw,38px); }
.page-head p { color:#d6e4f7; margin:6px 0 0; }

/* Soporte */
#sop-btn { position:fixed; right:16px; bottom:16px; z-index:20; border-radius:99px; }
#sop { position:fixed; right:16px; bottom:80px; width:min(360px,calc(100vw - 32px)); height:min(480px,70vh); z-index:20; display:flex; flex-direction:column; padding:0; overflow:hidden; box-shadow:var(--shadow-lg); }
#sop[hidden] { display:none; }
#sop .head { padding:12px 14px; background:var(--navy); color:#fff; font-weight:700; }
#sop .msgs { flex:1; overflow-y:auto; padding:12px; display:flex; flex-direction:column; gap:8px; background:var(--bg); }
#sop .m { max-width:85%; padding:8px 11px; border-radius:10px; font-size:14px; white-space:pre-wrap; }
#sop .u { align-self:flex-end; background:var(--sky); }
#sop .a { align-self:flex-start; background:#fff; border:1px solid var(--line); }
#sop form { display:flex; gap:6px; padding:10px; border-top:1px solid var(--line); background:#fff; }
#sop form .btn { padding:0 16px; }

@media (max-width:820px) {
  .hero .wrap, .grid3, .grid2, .founder, .foot-grid { grid-template-columns:1fr; }
  form .row { grid-template-columns:1fr 1fr; }
  nav a:not(.keep) { display:none; }
  .founder .photo { min-height:220px; }
  .guarantee { flex-direction:column; text-align:center; }
}
@media (max-width:480px) { form .row { grid-template-columns:1fr; } .topbar .wrap { gap:10px; } }
@media print { .site-header nav, #sop, #sop-btn, footer, .noprint, .topbar { display:none !important; } body { background:#fff; } .card { box-shadow:none; } }
.site-header + .wrap { padding-top:28px; padding-bottom:40px; }

/* Precios */
.pricing { align-items:stretch; }
.plan { text-align:center; display:flex; flex-direction:column; gap:6px; position:relative; }
.plan h3 { margin:4px 0 0; font-size:21px; }
.plan-price { font:800 38px/1.1 Georgia, serif; color:var(--navy); margin:6px 0 0; }
.plan-price s { font-size:20px; color:var(--muted); font-weight:400; margin-right:4px; }
.plan-price small { display:block; font-family:inherit; font-weight:600; font-size:14px; color:var(--green); margin-top:4px; }
.plan .checks { text-align:left; margin:8px auto 14px; }
.plan .btn, .plan form { margin-top:auto; }
.plan form { display:flex; flex-direction:column; gap:8px; }
.plan.featured { border:3px solid var(--orange); transform:scale(1.04); box-shadow:var(--shadow-lg); z-index:1; }
.plan-flag { position:absolute; top:-14px; left:50%; transform:translateX(-50%); background:var(--orange); color:#fff; font-family:inherit; font-weight:700; font-size:12px; line-height:1; padding:7px 12px; border-radius:99px; white-space:nowrap; text-transform:uppercase; letter-spacing:.04em; }
.btn.ghost-dark { background:#fff; color:var(--blue); border:2px solid var(--blue); box-shadow:none; text-shadow:none; }
.compare { width:100%; border-collapse:collapse; min-width:560px; }
.compare th, .compare td { padding:12px 14px; border-bottom:1px solid var(--line); text-align:center; }
.compare th { background:var(--sky); color:var(--navy); font-size:14px; }
.compare td:first-child, .compare th:first-child { text-align:left; font-weight:600; color:var(--navy); }
.compare td:last-child { text-align:center; }
.compare .us { background:#fff4d6; color:var(--orange-2); font-weight:800; }
.compare th.us { background:var(--orange); color:#fff; }
@media (max-width:820px) { .plan.featured { transform:none; } }

/* Guías */
.guide-card { text-decoration:none; color:var(--ink); display:flex; flex-direction:column; gap:6px; border-top:5px solid var(--orange); }
.guide-card h3 { margin:0; font-size:20px; }
.guide-card p { margin:0; color:var(--muted); flex:1; }
.guide-card span { color:var(--orange-2); font-weight:700; }
.guide-card:hover { box-shadow:var(--shadow-lg); }
article.guide { max-width:820px; margin:0 auto; font-size:17px; }
article.guide h3 { color:var(--navy); margin:22px 0 6px; }

/* Informe: índice, resumen, casillas, tablas y mensajes */
.indice { display:flex; gap:20px; align-items:center; margin:16px 0 6px; padding:16px 18px; border-radius:12px; background:var(--sky); }
.indice .dial { position:relative; width:110px; height:110px; flex:0 0 110px; }
.indice svg { width:110px; height:110px; transform:rotate(-90deg); }
.indice .pista { fill:none; stroke:#fff; stroke-width:12; }
.indice .valor { fill:none; stroke:var(--muted); stroke-width:12; stroke-linecap:round; transition:stroke-dashoffset 1s; }
.indice .num { position:absolute; inset:0; display:grid; place-items:center; align-content:center; }
.indice .num b { font:800 34px/1 Georgia, serif; color:var(--navy); }
.indice .num span { font-size:12px; color:var(--muted); }
.indice .etq { font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:13px; color:var(--muted); }
.indice .txt { font:800 22px/1.2 Georgia, serif; margin:2px 0 4px; }
.indice.bien .valor { stroke:var(--green); } .indice.bien .txt { color:var(--green); }
.indice.medio .valor { stroke:var(--orange); } .indice.medio .txt { color:var(--orange-2); }
.indice.mal .valor { stroke:var(--red); } .indice.mal .txt { color:var(--red); }
.report h2.resumen { background:var(--yellow); border-left-color:var(--orange); }
.report h2.resumen + ul { font-size:17px; font-weight:600; }
.report .checklist { list-style:none; padding-left:0; }
.report .checklist li { padding:6px 0; border-bottom:1px dashed var(--line); }
.report .checklist label { display:flex; gap:10px; align-items:flex-start; cursor:pointer; }
.report .checklist input { width:20px; height:20px; margin-top:3px; flex:0 0 20px; box-shadow:none; }
.report .checklist input:checked + span { color:var(--muted); text-decoration:line-through; }
.report .tabla { overflow-x:auto; margin:10px 0; }
.report .tabla table { min-width:520px; border:1px solid var(--line); }
.report .tabla th { background:var(--sky); color:var(--navy); text-align:left; padding:8px; font-size:14px; }
.report .tabla td { text-align:left; padding:8px; font-size:15px; vertical-align:top; }
.report .copiable { background:#f0f6ff; border:1px solid #c9dcf5; border-radius:10px; padding:14px; margin:10px 0; }
.report .copiable pre { white-space:pre-wrap; font-family:inherit; font-size:16px; line-height:1.5; margin:0 0 12px; color:var(--ink); }
.report .copiable .copiar { padding:10px 18px; font-size:15px; }
@media (max-width:520px) { .indice { flex-direction:column; text-align:center; } }
@media print { .report .copiable .copiar { display:none; } .indice { -webkit-print-color-adjust:exact; print-color-adjust:exact; } }

/* Escaparate de funciones en la portada */
.showcase { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.sc-item { display:flex; flex-direction:column; gap:8px; }
.sc-tag { font-weight:800; color:var(--orange-2); font-size:14px; text-transform:uppercase; letter-spacing:.03em; }
.sc-item .indice { padding:12px; gap:14px; }
.sc-item .indice .dial, .sc-item .indice svg { width:84px; height:84px; flex-basis:84px; }
.sc-item .indice .num b { font-size:26px; }
.sc-list { margin:0; padding-left:18px; font-weight:600; }
.sc-list li { margin:4px 0; }
.bubble { background:#dcf8c6; color:#1d2433; border-radius:12px 12px 12px 2px; padding:10px 12px; font-size:15px; line-height:1.45; box-shadow:0 1px 1px rgb(0 0 0 / .08); }
.sc-btn { align-self:flex-start; padding:9px 14px; font-size:14px; pointer-events:none; }
.sc-checks { list-style:none; padding:0; margin:0; }
.sc-checks li { padding:7px 0 7px 32px; position:relative; border-bottom:1px dashed var(--line); }
.sc-checks li::before { content:""; position:absolute; left:0; top:7px; width:20px; height:20px; border:2px solid #9fb3cc; border-radius:4px; background:#fff; }
.sc-checks li.on { color:var(--muted); text-decoration:line-through; }
.sc-checks li.on::before { background:var(--green); border-color:var(--green); }
.sc-checks li.on::after { content:"✓"; position:absolute; left:4px; top:5px; color:#fff; font-weight:900; font-size:14px; }
.sc-money { margin:6px 0 0; font-size:16px; }
.sc-money b { font:800 30px/1.2 Georgia, serif; color:var(--navy); }
@media (max-width:900px) { .showcase { grid-template-columns:1fr 1fr; } }
@media (max-width:600px) { .showcase { grid-template-columns:1fr; } }

/* Ajustes: índice más pequeño en la portada y viñetas más bonitas */
.sc-item .indice { padding:10px 12px; gap:12px; }
.sc-item .indice .dial, .sc-item .indice svg { width:64px; height:64px; flex:0 0 64px; }
.sc-item .indice .num b { font-size:20px; }
.sc-item .indice .num span { font-size:10px; }
.sc-item .indice .txt { font-size:17px; }
.sc-list, .report h2.resumen + ul { list-style:none; padding-left:0; }
.sc-list li, .report h2.resumen + ul li { position:relative; padding:5px 0 5px 30px; }
.sc-list li::before, .report h2.resumen + ul li::before {
  content:"✓"; position:absolute; left:0; top:6px; width:20px; height:20px; border-radius:50%;
  background:var(--orange); color:#fff; font:800 12px/20px system-ui, sans-serif; text-align:center;
  box-shadow:0 2px 6px rgb(242 140 24 / .35);
}

/* Casilla de consentimiento antes de pagar */
.consent { display:flex; gap:10px; align-items:flex-start; margin:16px 0 0; font-weight:400; font-size:14px; color:var(--ink); cursor:pointer; }
.consent input { width:20px; height:20px; flex:0 0 20px; margin-top:2px; box-shadow:none; }
.consent.small { font-size:12.5px; text-align:left; margin:4px 0 2px; }
