/* ═══════════════════════════════════════════
   calculadora.css — Cotizador de Obra SIRO CIMSS
═══════════════════════════════════════════ */

/* ── VARIABLES ──────────────────────────────── */
:root {
  --blue:      #1a6fc4;
  --blue-d:    #135399;
  --blue-l:    #e8f1fb;
  --green:     #17a84e;
  --bg:        #f4f7fb;
  --card:      #ffffff;
  --text:      #1a2332;
  --muted:     #5a6a7e;
  --border:    #d0dcea;
  --error:     #d63b3b;
  --radius:    14px;
  --shadow:    0 4px 28px rgba(26,111,196,.10);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────── */
.site-header {
    background-color: #1a1860;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo span {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 3.5px;
    font-weight: 400;
    color: #a09ec8;
    margin-top: 3px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.header-nav > a,
.nav-dropdown-toggle {
    color: #d0cfe8;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

.nav-dropdown-toggle svg {
    width: 13px;
    height: 13px;
    transition: transform 0.2s;
}

.header-nav > a:hover,
.nav-dropdown-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    min-width: 240px;
    padding: 6px 0;
    z-index: 200;
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 18px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s;
}

.nav-dropdown-menu a:hover {
    background: #f1f5f9;
    color: #1a1860;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.header-cta {
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 30px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    background: #e8a020;
}

/* Push CTA group to the right — always on the first CTA */
.header-nav + .header-cta {
    margin-left: auto;
}

.header-cta--active {
    background: #e8a020;
}

.header-cta--secondary {
    background: #2e5fa3;
}

.header-cta--active:hover {
    background: #f5b530;
    transform: scale(1.03);
}

.header-cta--secondary:hover {
    background: #3a72c2;
    transform: scale(1.03);
}

.header-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.header-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s;
}

@media (max-width: 768px) {
    .header-nav, .header-cta { display: none; }
    .header-burger { display: flex; }

    .header-nav.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #1a1860;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.25rem;
        box-shadow: 0 8px 20px rgba(0,0,0,.3);
    }

    .header-nav.open ~ .header-cta {
        display: block;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.08);
        border-radius: 6px;
        padding: 4px 0;
        width: 100%;
    }

    .nav-dropdown-menu a {
        color: #d0cfe8;
        padding: 8px 14px;
    }

    .nav-dropdown-menu a:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }
}

/* ── HERO ───────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #1a6fc4, #6ab0ff 60.08%, #006fff);
  color: #fff;
  text-align: center;
  padding: 52px 20px 68px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 16px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 14px;
}
.hero p { font-size: 1.05rem; opacity: .82; max-width: 520px; margin: 0 auto 26px; }
.hero-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 600;
}
.hero-step .num {
  width: 22px; height: 22px;
  background: #fff;
  color: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .73rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── MAIN LAYOUT ────────────────────────────── */
.page-body {
  max-width: 820px;
  margin: -36px auto 48px;
  padding: 0 16px;
}

/* ── CARD ───────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background: var(--blue-l);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #41b6e6);
  transition: width .5s ease;
  border-radius: 999px;
}

/* Step indicator */
.steps-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.step-tab {
  flex: 1;
  min-width: 80px;
  padding: 14px 10px 12px;
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  cursor: default;
}
.step-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.step-tab.done { color: var(--green); }
.step-tab .tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  margin-bottom: 3px;
}
.step-tab.active .tab-num { background: var(--blue); color: #fff; }
.step-tab.done .tab-num { background: var(--green); color: #fff; }

/* Form body */
.form-body { padding: 32px 40px 36px; }
@media (max-width: 580px) { .form-body { padding: 24px 18px 28px; } }

.step-panel { display: none; }
.step-panel.active { display: block; }

.panel-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.panel-sub {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 26px;
}

/* Section separator */
.section-sep {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  border-bottom: 2px solid var(--blue-l);
  padding-bottom: 5px;
  margin: 24px 0 16px;
}

/* Form grid */
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 560px) { .fg { grid-template-columns: 1fr; } }
.fg .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
label.lbl {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
label.lbl .req { color: var(--error); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select, textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--text);
  background: #f7fafd;
  outline: none;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,111,196,.12);
}
input.err, select.err, textarea.err { border-color: var(--error) !important; }
.err-msg { font-size: .75rem; color: var(--error); display: none; }
.err-msg.show { display: block; }
textarea { resize: vertical; min-height: 85px; }

/* Dual inputs */
.dual { display: flex; gap: 12px; }
.dual input { flex: 1; }
.dual-label {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 3px;
}

/* ── PILL BUTTONS ───────────────────────────── */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.pill {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  background: #f7fafd;
  transition: all .18s;
  user-select: none;
  white-space: nowrap;
}
.pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }
.pill.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,111,196,.25);
}

.pill-other-wrap { display: flex; align-items: center; gap: 0; }
.pill-other-input {
  width: 130px;
  padding: 8px 13px;
  border: 1.5px solid var(--border);
  border-radius: 0 999px 999px 0;
  font-size: .86rem;
  color: var(--text);
  background: #f7fafd;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
  display: none;
}
.pill-other-input.visible { display: block; }
.pill-other-input:focus { border-color: var(--blue); background: #fff; }
.pill.other-pill { border-radius: 999px 0 0 999px; margin-right: 0; }
.pill.other-pill.selected { border-radius: 999px 0 0 999px; }

.monto-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.monto-pill {
  flex: 1;
  min-width: 110px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  background: #f7fafd;
  transition: all .18s;
  text-align: center;
  user-select: none;
}
.monto-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }
.monto-pill.selected { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(26,111,196,.22); }
.monto-pill .monto-label { font-size: .72rem; font-weight: 500; opacity: .8; margin-top: 3px; }

/* ── NAV BUTTONS ────────────────────────────── */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  gap: 12px;
}
.btn {
  padding: 11px 28px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: opacity .15s, transform .1s;
  font-family: inherit;
}
.btn:active { transform: scale(.98); }
.btn-back {
  background: var(--blue-l);
  color: var(--blue);
}
.btn-back:hover { opacity: .8; }
.btn-next {
  background: linear-gradient(135deg, var(--blue), var(--blue-d));
  color: #fff;
  box-shadow: 0 3px 12px rgba(26,111,196,.3);
  margin-left: auto;
}
.btn-next:hover { opacity: .92; }
.btn-submit {
  background: linear-gradient(135deg, #17a84e, #0e7a38);
  color: #fff;
  box-shadow: 0 3px 12px rgba(23,168,78,.3);
  padding: 13px 36px;
  font-size: 1rem;
  margin-left: auto;
}
.btn-submit:hover { opacity: .92; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── SUMMARY PANEL ──────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
@media (max-width: 560px) { .summary-grid { grid-template-columns: 1fr; } }
.sum-item { display: flex; flex-direction: column; gap: 2px; }
.sum-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sum-val { font-size: .92rem; font-weight: 600; color: var(--text); }
.sum-val.empty { color: var(--muted); font-style: italic; font-weight: 400; }

/* ── TOAST ──────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: var(--green);
  color: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  transition: transform .4s cubic-bezier(.175,.885,.32,1.275);
  z-index: 200;
  display: flex; align-items: center; gap: 9px;
  white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.is-error { background: var(--error); }

/* ── SUCCESS STATE ──────────────────────────── */
.form-legal-note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.success-panel {
  text-align: center;
  padding: 40px 20px 30px;
  display: none;
}
.success-panel.show { display: block; }
.success-icon {
  width: 72px; height: 72px;
  background: #e8faf0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.success-panel h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.success-panel p { color: var(--muted); max-width: 360px; margin: 0 auto 24px; }
.btn-new { background: var(--blue-l); color: var(--blue); padding: 10px 24px; border-radius: 8px; font-weight: 700; cursor: pointer; border: none; font-size: .95rem; font-family: inherit; }

/* ── TRUST BAR ──────────────────────────────── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  padding: 22px 40px;
  border-top: 1px solid var(--border);
  background: #fafcff;
}

/* Dentro del diagnóstico, compensar el padding del contenedor */
.siroc-calculator .trust-bar {
  margin: 2rem -3rem -3rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.trust-item { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ── FOOTER ─────────────────────────────────── */
.site-footer {
    background-color: #1a1860;
    color: #d0cfe8;
    font-size: 0.88rem;
    line-height: 1.7;
    width: 100%;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr 1.4fr;
    gap: 2.5rem;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 1rem;
}

.footer-logo span {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 4px;
    font-weight: 400;
    color: #a09ec8;
    margin-top: 3px;
}

.footer-brand p {
    margin: 0 0 0.4rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.45rem;
}

.footer-col ul li a {
    color: #d0cfe8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a::before {
    content: "› ";
    color: #a09ec8;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-desc {
    margin: 0 0 1.25rem;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e8a020;
    color: #fff;
    transition: background-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.footer-social a:hover {
    background-color: #f5b530;
    transform: scale(1.1);
}

.footer-social svg {
    width: 17px;
    height: 17px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.82rem;
    color: #a09ec8;
}

.footer-bottom p { margin: 0; }
.footer-bottom strong { color: #d0cfe8; }

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem 1.5rem;
    }
}

/* ── SERVICES SECTION ────────────────────── */
.services-section {
    background-color: #f4f4f8;
    padding: 4rem 2rem;
}
.services-inner {
    max-width: 900px;
    margin: 0 auto;
}
.services-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1860;
    margin-bottom: 2rem;
    letter-spacing: 0.2px;
}
.services-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
    border-bottom: 2px solid #dde0ea;
    padding-bottom: 0;
}
.tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #5a5a8a;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.tab-btn:hover { color: #1a1860; }
.tab-btn.active { color: #1a1860; border-bottom-color: #1a1860; }
.tab-panels {
    background: #fff;
    border: 1px solid #dde0ea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 2.5rem;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1860;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}
.tab-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.tab-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.tab-list li {
    font-size: 0.9rem;
    color: #444;
    padding: 0.2rem 0 0.2rem 1.5rem;
    position: relative;
}
.tab-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-size: 0.7rem;
    top: 0.25rem;
}
.tab-note {
    font-size: 0.875rem;
    color: #555;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-bottom: 1.5rem;
}
.tab-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1860;
    text-decoration: none;
    border-bottom: 1px solid #1a1860;
    padding-bottom: 1px;
    transition: opacity 0.2s;
}
.tab-link:hover { opacity: 0.7; }
@media (max-width: 600px) {
    .services-section { padding: 2.5rem 1.25rem; }
    .tab-panels { padding: 1.5rem 1.25rem; }
    .services-tabs { gap: 0.25rem; }
    .tab-btn { padding: 0.55rem 0.75rem; font-size: 0.82rem; }
}

/* ── CONTACT SECTION ─────────────────────── */
.contact-section {
    background-color: #1a1860;
    padding: 4rem 2rem;
    text-align: center;
}
.contact-inner {
    max-width: 800px;
    margin: 0 auto;
}
.contact-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}
.contact-sub {
    color: #a09ec8;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}
.contact-options {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    text-align: left;
    transition: background 0.2s, transform 0.2s;
    min-width: 220px;
}
.contact-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-2px);
}
.contact-card svg {
    width: 24px;
    height: 24px;
    color: #a09ec8;
    flex-shrink: 0;
}
.contact-card--whatsapp svg { color: #25D366; }
.contact-card-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a09ec8;
    margin-bottom: 0.2rem;
}
.contact-card-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}
@media (max-width: 600px) {
    .contact-heading { font-size: 1.5rem; }
    .contact-options { flex-direction: column; align-items: stretch; }
    .contact-card { min-width: unset; }
}

/* ── DIAGNOSTICO PAGE ────────────────────── */
:root {
    --text-main:    #111111;
    --text-muted:   #666666;
    --border-color: #eaeaea;
    --accent-black: #000000;
    --alert-red:    #d32f2f;
    --success-green: #2e7d32;
    --bg-color:     #ffffff;
}
.diag-hero {
    background: linear-gradient(160deg, #1a6fc4 0%, #0d4a8f 60%, #072d5e 100%);
    color: #fff;
    text-align: center;
    padding: 52px 20px 68px;
}
.diag-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 16px;
    margin-bottom: 18px;
}
.diag-hero h1 {
    font-size: clamp(1.7rem, 5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 14px;
}
.diag-hero p {
    font-size: 1.05rem;
    opacity: .82;
    max-width: 520px;
    margin: 0 auto;
}
.siroc-calculator {
    background-color: var(--card);
    max-width: 820px;
    width: 100%;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: -36px auto 2.5rem;
}
.calc-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.calc-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}
.calc-header p {
    color: var(--text-muted);
    font-size: 1rem;
}
.input-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}
.siroc-calculator label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.siroc-calculator input[type="range"] {
    width: 100%;
    margin: 1rem 0;
    accent-color: var(--accent-black);
}
.range-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-black);
    display: block;
    margin-bottom: 1rem;
}
.siroc-calculator input[type="number"],
.siroc-calculator input[type="text"],
.siroc-calculator input[type="email"],
.siroc-calculator input[type="tel"],
.siroc-calculator select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #fff;
    color: var(--text-main);
    transition: all 0.2s ease;
}
.siroc-calculator input:focus,
.siroc-calculator select:focus {
    outline: none;
    border-color: var(--accent-black);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.result-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    background-color: #fafafa;
}
.result-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.risk-value   { color: var(--alert-red); }
.invest-value { color: var(--text-main); }
.save-value   { color: var(--success-green); }
.cta-button {
    display: block;
    width: 100%;
    padding: 1.1rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #17a84e, #0e7a38);
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(23,168,78,.3);
    transition: all 0.2s ease;
}
.cta-button:hover  { opacity: .92; }
.cta-button:active { transform: scale(0.99); }
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}
.calc-disclaimer {
    margin-top: 1.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.65;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    display: none;
}
.disclaimer-intro { margin-bottom: 1rem; color: var(--text-main); }
.formula-block {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.75rem;
}
.formula-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.formula-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
}
.formula-term {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}
.formula-op     { color: #999; font-weight: 600; font-size: 0.9rem; }
.formula-result { font-weight: 600; color: var(--text-main); }
.formula-result em { font-weight: 400; font-style: normal; color: var(--text-muted); }
.formula-note {
    font-size: 0.77rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .siroc-calculator { padding: 2rem 1.5rem; }
    .calc-header h2   { font-size: 1.5rem; }
}
