/* ════════════════════════════════════════════════════════
   Sanfilippo y Asociados — Estilos de páginas interiores
   Comparte tokens y componentes con index.html
   ════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #0d0d0d;
    --blue: #1e3a6e;
    --blue-light: #2563eb;
    --white: #ffffff;
    --grey-light: #f5f5f5;
    --grey: #6b7280;
    --grey-dark: #374151;
    --border: #e5e7eb;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--black);
    overflow-x: hidden;
}

/* ── HEADER ── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-top { background: var(--black); padding: 9px 0; }

.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
    gap: 28px;
}

.header-top a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.3s;
}

.header-top a:hover { color: #93c5fd; }

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { height: 68px; width: auto; object-fit: contain; }

nav { display: flex; align-items: center; gap: 28px; }

nav a {
    text-decoration: none;
    color: var(--grey-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.3s;
}

nav a:hover { color: var(--blue); }
nav a:hover::after { width: 100%; }

.nav-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 4px;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--black) !important; }

/* ── HERO INTERIOR ── */
.page-hero {
    margin-top: 108px;
    background: linear-gradient(135deg, var(--black) 0%, var(--blue) 100%);
    color: white;
    padding: 62px 24px 56px;
    position: relative;
}

.page-hero-inner { max-width: 1000px; margin: 0 auto; }

.breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.breadcrumb a { color: rgba(255,255,255,0.78); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: white; text-decoration: underline; }
.breadcrumb .sep { opacity: 0.45; }

.page-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 14px;
}

.page-hero h1 {
    font-size: clamp(29px, 4.2vw, 45px);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
    max-width: 20ch;
}

.page-hero .lead {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255,255,255,0.82);
    max-width: 68ch;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 6px 13px;
    border-radius: 3px;
    background: rgba(255,255,255,0.11);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

/* ── LAYOUT DE CONTENIDO ── */
.page-body { max-width: 1000px; margin: 0 auto; padding: 62px 24px 20px; }

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 54px;
    align-items: start;
}

/* ── PROSA ── */
.prose { min-width: 0; }

.prose h2 {
    font-size: clamp(23px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    margin: 46px 0 16px;
    letter-spacing: -0.01em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 32px 0 11px;
    color: var(--blue);
}

.prose p {
    font-size: 16.5px;
    line-height: 1.78;
    color: var(--grey-dark);
    margin-bottom: 18px;
}

.prose strong { color: var(--black); font-weight: 700; }

.prose ul, .prose ol { margin: 0 0 20px 22px; }

.prose li {
    font-size: 16.5px;
    line-height: 1.72;
    color: var(--grey-dark);
    margin-bottom: 9px;
}

.prose a { color: var(--blue); font-weight: 600; }
.prose a:hover { color: var(--blue-light); }

/* ── CAJA DE NORMATIVA ── */
.norma-box {
    background: var(--grey-light);
    border-left: 4px solid var(--blue);
    padding: 22px 26px;
    margin: 28px 0;
    border-radius: 0 6px 6px 0;
}

.norma-box h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}

.norma-list { list-style: none; margin: 0 !important; }

.norma-list li {
    display: flex;
    gap: 11px;
    align-items: baseline;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--grey-dark);
}

.norma-list li:last-child { margin-bottom: 0; }

.norma-list .norma-id {
    font-weight: 800;
    color: var(--black);
    white-space: nowrap;
    font-size: 14px;
    min-width: 118px;
    flex-shrink: 0;
}

/* ── PASOS ── */
.steps { list-style: none; margin: 26px 0 !important; counter-reset: step; }

.steps li {
    position: relative;
    padding-left: 52px;
    margin-bottom: 22px;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 34px;
    height: 34px;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.steps li strong { display: block; margin-bottom: 3px; font-size: 16.5px; }
.steps li span { font-size: 15.5px; line-height: 1.68; color: var(--grey); display: block; }

/* ── ENTREGABLES ── */
.deliverables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.deliverable {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 19px;
}

.deliverable i { color: var(--blue); font-size: 17px; margin-bottom: 9px; display: block; }
.deliverable strong { display: block; font-size: 15px; margin-bottom: 5px; }
.deliverable span { font-size: 14px; color: var(--grey); line-height: 1.55; }

/* ── TABLA ── */
.table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--border); border-radius: 8px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }

th {
    background: var(--grey-light);
    text-align: left;
    padding: 13px 16px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--grey-dark);
    border-bottom: 1px solid var(--border);
}

td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--grey-dark); line-height: 1.6; }
tr:last-child td { border-bottom: none; }
td strong { color: var(--black); }

/* ── ASIDE ── */
.sidebar { position: sticky; top: 128px; display: flex; flex-direction: column; gap: 20px; }

.side-cta {
    background: linear-gradient(135deg, var(--black) 0%, var(--blue) 100%);
    color: white;
    border-radius: 10px;
    padding: 28px 24px;
}

.side-cta h3 { font-size: 19px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.side-cta p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.78); margin-bottom: 20px; }

.side-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #25D366;
    color: white;
    padding: 13px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s;
    margin-bottom: 9px;
}

.side-btn:hover { background: #1eb855; transform: translateY(-1px); }

.side-btn.alt { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); margin-bottom: 0; }
.side-btn.alt:hover { background: rgba(255,255,255,0.1); border-color: white; }

.side-box {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 22px;
    background: white;
}

.side-box h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 15px;
}

.side-links { list-style: none; }
.side-links li { margin-bottom: 10px; }

.side-links a {
    color: var(--grey-dark);
    text-decoration: none;
    font-size: 14.5px;
    line-height: 1.5;
    display: block;
    transition: color 0.2s;
}

.side-links a:hover { color: var(--blue); }
.side-links a.current { color: var(--blue); font-weight: 700; }

.cred-item { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; font-size: 14px; line-height: 1.5; color: var(--grey-dark); }
.cred-item:last-child { margin-bottom: 0; }
.cred-item i { color: var(--blue); margin-top: 3px; flex-shrink: 0; width: 15px; }

/* ── FAQ ── */
.faq-section { max-width: 1000px; margin: 0 auto; padding: 20px 24px 70px; }

.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }

.faq-question {
    width: 100%;
    background: white;
    border: none;
    padding: 19px 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
    line-height: 1.45;
    transition: background 0.2s;
}

.faq-question:hover { background: var(--grey-light); }
.faq-question.open { background: var(--blue); color: white; }
.faq-question .faq-icon { font-size: 18px; flex-shrink: 0; transition: transform 0.3s; }
.faq-question.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--grey-dark);
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open { max-height: 620px; padding: 19px 24px 24px; }

/* ── SERVICIOS RELACIONADOS ── */
.related { background: var(--grey-light); padding: 62px 24px; }
.related-inner { max-width: 1000px; margin: 0 auto; }

.related h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; margin-bottom: 8px; }
.related > .related-inner > p { color: var(--grey); font-size: 16px; margin-bottom: 30px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 16px; }

.related-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 22px 22px;
    text-decoration: none;
    display: block;
    transition: all 0.25s;
}

.related-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(30,58,110,0.1); }
.related-card i { color: var(--blue); font-size: 20px; margin-bottom: 12px; display: block; }
.related-card strong { display: block; font-size: 16px; color: var(--black); margin-bottom: 6px; line-height: 1.35; }
.related-card span { font-size: 14px; color: var(--grey); line-height: 1.6; }

/* ── BANNER CONTACTO ── */
.contact-banner {
    background: linear-gradient(135deg, var(--black) 0%, var(--blue) 100%);
    padding: 78px 24px;
    text-align: center;
}

.contact-banner h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; color: white; margin-bottom: 15px; }
.contact-banner p { color: rgba(255,255,255,0.72); font-size: 18px; margin-bottom: 36px; }

.contact-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--black);
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-white:hover { background: var(--grey-light); transform: translateY(-2px); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255,255,255,0.38);
    transition: all 0.3s;
}

.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ── FOOTER ── */
footer { background: var(--black); color: rgba(255,255,255,0.65); padding: 70px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; margin-bottom: 52px; }

.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; text-decoration: none; }
.footer-logo img { height: 70px; filter: brightness(0) invert(1); }
.footer-about p { font-size: 14px; line-height: 1.8; margin-bottom: 26px; }

.social-links { display: flex; gap: 10px; }

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

.social-links a:hover { background: var(--blue); border-color: var(--blue); color: white; }

.footer-col h4 {
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-col ul li a:hover { color: white; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 16px; font-size: 14px; }
.footer-contact-item i { color: var(--blue-light); margin-top: 2px; flex-shrink: 0; width: 16px; }
.footer-contact-item a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.3s; }
.footer-contact-item a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-fab:hover { transform: scale(1.12); box-shadow: 0 6px 30px rgba(37,211,102,0.65); }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
    .content-grid { grid-template-columns: 1fr; gap: 40px; }
    .sidebar { position: static; }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
    nav { display: none; }
    .page-hero { margin-top: 90px; padding: 44px 22px 40px; }
    .page-body { padding: 44px 22px 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .whatsapp-fab { bottom: 20px; right: 20px; width: 54px; height: 54px; font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════════
   BLOG
   ════════════════════════════════════════════════ */

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    margin-top: 22px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.72);
}

.post-meta i { margin-right: 6px; opacity: 0.8; }

.post-body { max-width: 760px; margin: 0 auto; padding: 58px 24px 20px; }

.post-lead {
    font-size: 19px;
    line-height: 1.7;
    color: var(--grey-dark);
    padding-bottom: 26px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.toc {
    background: var(--grey-light);
    border-radius: 8px;
    padding: 22px 26px;
    margin: 0 0 34px;
}

.toc h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 13px;
}

.toc ol { margin: 0 0 0 18px; }
.toc li { margin-bottom: 7px; font-size: 15px; line-height: 1.5; }
.toc a { color: var(--grey-dark); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }

.key-point {
    border-left: 4px solid var(--blue-light);
    background: #f0f5ff;
    padding: 18px 22px;
    margin: 26px 0;
    border-radius: 0 6px 6px 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--grey-dark);
}

.key-point strong { color: var(--black); }

.warning-box {
    border-left: 4px solid #d97706;
    background: #fffbeb;
    padding: 18px 22px;
    margin: 26px 0;
    border-radius: 0 6px 6px 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: #78350f;
}

.warning-box strong { color: #7c2d12; }

.checklist { list-style: none; margin: 26px 0 !important; }

.checklist li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.68;
}

.checklist li::before {
    content: "\f0c8";
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--blue);
    font-size: 16px;
}

.checklist li strong { display: block; margin-bottom: 2px; }

.post-cta {
    background: var(--grey-light);
    border-radius: 10px;
    padding: 30px 32px;
    margin: 44px 0 0;
    text-align: center;
}

.post-cta h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.post-cta p { font-size: 15.5px; color: var(--grey); margin-bottom: 22px; line-height: 1.65; }

.post-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue);
    color: white;
    padding: 14px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.25s;
}

.post-cta-btn:hover { background: var(--black); }

/* ── Índice del blog ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-top: 8px;
}

.post-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 26px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}

.post-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 12px 28px rgba(30,58,110,0.1); }

.post-card-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}

.post-card h2 { font-size: 19px; font-weight: 800; color: var(--black); line-height: 1.35; margin-bottom: 10px; }
.post-card p { font-size: 15px; color: var(--grey); line-height: 1.65; flex: 1; }

.post-card-more {
    margin-top: 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.post-card-more i { font-size: 11px; transition: transform 0.25s; }
.post-card:hover .post-card-more i { transform: translateX(4px); }

@media (max-width: 640px) {
    .post-body { padding: 40px 22px 16px; }
    .post-lead { font-size: 17px; }
}

/* ════════════════════════════════════════════════
   SIMULADOR DE PRESUPUESTO
   ════════════════════════════════════════════════ */

.sim-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
    padding: 52px 24px 30px;
}

.sim-step {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 26px 28px;
    margin-bottom: 20px;
}

.sim-step-head { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }

.sim-step-n {
    width: 28px; height: 28px;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.sim-step h2 { font-size: 19px; font-weight: 800; margin: 0; line-height: 1.3; }
.sim-step-desc { font-size: 14.5px; color: var(--grey); line-height: 1.6; margin: 0 0 20px 41px; }

.sim-field { margin-bottom: 18px; }

.sim-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--grey-dark);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.sim-field input[type="number"],
.sim-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    color: var(--black);
    background: white;
    transition: border-color 0.2s;
}

.sim-field input[type="number"]:focus,
.sim-field select:focus { outline: none; border-color: var(--blue-light); }

.sim-hint { font-size: 13px; color: var(--grey); margin-top: 7px; line-height: 1.5; }

.sim-tramo {
    margin-top: 12px;
    padding: 12px 15px;
    background: #f0f5ff;
    border-radius: 6px;
    font-size: 14.5px;
    color: var(--blue);
    font-weight: 600;
}

.sim-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.sim-check:last-child { border-bottom: none; }

.sim-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px; height: 20px;
    margin: 2px 0 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: all 0.15s;
}

.sim-check input[type="checkbox"]:hover { border-color: var(--blue); }
.sim-check input[type="checkbox"]:checked { background: var(--blue); border-color: var(--blue); }

.sim-check input[type="checkbox"]:checked::after {
    content: "";
    width: 5px; height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.sim-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }

.sim-check-body { flex: 1; min-width: 0; }
.sim-check-name { font-size: 15.5px; font-weight: 600; line-height: 1.35; cursor: pointer; }
.sim-check-detail { font-size: 13.5px; color: var(--grey); line-height: 1.5; margin-top: 3px; }

.sim-check-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sim-qty {
    width: 62px;
    padding: 7px 9px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    text-align: center;
}

.sim-qty:disabled { background: var(--grey-light); color: #9ca3af; }
.sim-qty:focus { outline: none; border-color: var(--blue-light); }

.sim-price {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--grey-dark);
    white-space: nowrap;
    min-width: 96px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ── Panel de resultado ── */
.sim-result { position: sticky; top: 128px; }

.sim-total-box {
    background: linear-gradient(135deg, var(--black) 0%, var(--blue) 100%);
    color: white;
    border-radius: 12px;
    padding: 28px 26px;
    margin-bottom: 18px;
}

.sim-total-box h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 18px;
}

.sim-total-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    font-size: 14.5px;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sim-total-line:last-of-type { border-bottom: none; }
.sim-total-line span:last-child { font-weight: 700; color: white; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sim-total-line.empty { color: rgba(255,255,255,0.45); font-style: italic; border-bottom: none; }

.sim-total-grand {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid rgba(255,255,255,0.25);
}

.sim-total-grand .sim-total-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }

.sim-total-grand .sim-total-value {
    font-size: 31px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.sim-total-grand .sim-total-sub { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 6px; line-height: 1.5; }

.sim-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #25D366;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.25s, transform 0.15s;
}

.sim-cta:hover { background: #1eb855; transform: translateY(-1px); }

.sim-disclaimer {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.6;
    color: #78350f;
}

.sim-disclaimer strong { display: block; margin-bottom: 7px; color: #7c2d12; font-size: 13.5px; }
.sim-disclaimer ul { margin: 0 0 0 16px; padding: 0; }
.sim-disclaimer li { margin-bottom: 5px; }

.sim-vigencia {
    font-size: 12.5px;
    color: var(--grey);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

.sim-vigencia a { color: var(--blue); }

@media (max-width: 940px) {
    .sim-layout { grid-template-columns: 1fr; gap: 26px; }
    .sim-result { position: static; }
}

@media (max-width: 620px) {
    .sim-layout { padding: 36px 20px 20px; }
    .sim-step { padding: 22px 20px; }
    .sim-step-desc { margin-left: 0; }
    .sim-check { flex-wrap: wrap; }
    .sim-check-right { width: 100%; justify-content: flex-end; margin-top: 8px; }
}

/* ════════════════════════════════════════════════
   SIMULADOR — selectores de categoría y modalidad
   ════════════════════════════════════════════════ */

.sim-radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.sim-radio-card {
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 16px 17px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: block;
}

.sim-radio-card:hover { border-color: var(--blue-light); }

.sim-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sim-radio-card.selected {
    border-color: var(--blue);
    background: #f0f5ff;
}

.sim-radio-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sim-radio-dot {
    width: 16px; height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: border-color 0.2s;
}

.sim-radio-card.selected .sim-radio-dot { border-color: var(--blue); }

.sim-radio-dot::after {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0;
    transition: opacity 0.15s;
}

.sim-radio-card.selected .sim-radio-dot::after { opacity: 1; }

.sim-radio-desc { font-size: 13.5px; color: var(--grey); line-height: 1.55; margin-left: 24px; }

/* ── tarjetas grandes de modalidad ── */
.sim-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sim-modal-card {
    position: relative;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 22px 22px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: block;
}

.sim-modal-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.sim-modal-card:hover { border-color: var(--blue-light); }
.sim-modal-card.selected { border-color: var(--blue); background: #f8faff; }

.sim-modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sim-modal-card .sim-radio-dot { width: 18px; height: 18px; }
.sim-modal-card .sim-radio-dot::after { width: 9px; height: 9px; }

.sim-modal-card h3 { font-size: 17px; font-weight: 800; margin: 0; line-height: 1.3; }
.sim-modal-desc { font-size: 14px; color: var(--grey); line-height: 1.6; margin-bottom: 0; }

.sim-modal-toggle {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue);
    margin-top: 12px;
    cursor: pointer;
    display: inline-block;
}

.sim-modal-includes {
    list-style: none;
    margin: 12px 0 0 !important;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: none;
}

.sim-modal-includes.open { display: block; }

.sim-modal-includes li {
    font-size: 13px;
    color: var(--grey-dark);
    line-height: 1.55;
    padding-left: 18px;
    position: relative;
    margin-bottom: 7px;
}

.sim-modal-includes li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--blue);
    font-size: 10px;
}

/* ── info readouts ── */
.sim-readout {
    margin-top: 14px;
    padding: 13px 16px;
    background: #f0f5ff;
    border-radius: 6px;
    font-size: 14px;
    color: var(--blue);
    line-height: 1.55;
}

.sim-readout strong { font-weight: 800; }

/* ── nota simple ── */
.sim-note-box {
    font-size: 13px;
    color: var(--grey);
    line-height: 1.55;
    background: var(--grey-light);
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 14px;
}

/* ── lista informativa (no incluido) ── */
.sim-list-info {
    list-style: none;
    margin: 14px 0 0 !important;
}

.sim-list-info li {
    font-size: 14.5px;
    color: var(--grey-dark);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.sim-list-info li::before {
    content: "\f068";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--grey);
    font-size: 10px;
}

@media (max-width: 620px) {
    .sim-modal-grid { grid-template-columns: 1fr; }
}

/* ── Simulador: auxiliares del motor Básico / Integral ── */
.sim-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sim-fields-grid .sim-field { margin-bottom: 8px; }
.sim-radio-desc { display: block; }
.sim-modal-title { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--black); }
.sim-total-line.dim { opacity: 0.45; }
.sim-suggest {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f0f5ff; color: var(--blue);
    border: 1.5px solid #c7d7f5; border-radius: 6px;
    padding: 10px 16px; margin: 0 0 20px;
    font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.sim-suggest:hover { background: #e3ecfc; border-color: var(--blue); }
.sim-suggest:focus-visible, .sim-radio-card:focus-within, .sim-modal-card:focus-within { outline: 2px solid var(--blue-light); outline-offset: 2px; }
@media (max-width: 620px) { .sim-fields-grid { grid-template-columns: 1fr; } }
