/* ==========================================================================
   herramienta.css — Páginas dedicadas de las herramientas (calculadora de
   hipoteca, analizador de rentabilidad, auditor legal). Mismo lenguaje visual
   que las páginas de zona: navy #1e4070, oro, Fraunces + Manrope + Montserrat.
   El objetivo de estas páginas es posicionar por búsquedas que NO dependen del
   inventario, así que la guía que rodea a la herramienta es tan importante
   como la herramienta misma.
   ========================================================================== */

/* ── Encabezado ── */
.herr-hero {
    background: var(--nav-bg);
    color: #fff;
    padding: clamp(110px, 14vw, 160px) 20px clamp(40px, 6vw, 64px);
}
.herr-hero-inner { max-width: 900px; margin: 0 auto; }
.herr-breadcrumb { font-size: .82rem; color: rgba(255,255,255,.72); margin-bottom: 20px; font-family: 'Manrope', sans-serif; }
.herr-breadcrumb a { color: var(--gold-light); text-decoration: none; }
.herr-breadcrumb a:hover { text-decoration: underline; }
.herr-eyebrow {
    font-family: 'Montserrat', sans-serif; font-weight: 600;
    font-size: .72rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold-light); margin-bottom: 14px;
}
.herr-hero h1 {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1;
    letter-spacing: -0.01em; margin-bottom: 16px; max-width: 18ch;
}
.herr-hero-sub {
    font-family: 'Manrope', sans-serif; font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.65; color: rgba(255,255,255,.85); max-width: 62ch;
}

/* ── Zona de la herramienta (destacada sobre el resto) ── */
.herr-tool {
    max-width: 1080px; margin: 0 auto;
    padding: clamp(34px, 5vw, 54px) 20px;
}
/* La sección que se inyecta desde index.html trae su propio .container:
   se neutraliza para que no duplique el ancho ni el padding. */
.herr-tool > section.container { max-width: 100%; padding-left: 0; padding-right: 0; }

/* ── Guía editorial ── */
.herr-guia { background: var(--surface-mid); padding: clamp(50px, 8vw, 88px) 20px; }
.herr-guia-inner { max-width: 820px; margin: 0 auto; }
.herr-guia h2 {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--text-light);
    margin: 38px 0 16px; line-height: 1.2;
}
.herr-guia h2:first-child { margin-top: 0; }
.herr-guia h2 .rule { display: block; width: 50px; height: 3px; background: var(--gold); margin-bottom: 16px; border-radius: 2px; }
.herr-guia h3 {
    font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.08rem;
    color: var(--text-light); margin: 24px 0 8px;
}
.herr-guia p { font-family: 'Manrope', sans-serif; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.herr-guia strong { color: var(--text-light); }
.herr-guia ul { margin: 0 0 18px; padding-left: 22px; }
.herr-guia li { font-family: 'Manrope', sans-serif; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }

/* Tabla de datos (tasas, gastos) */
.herr-tabla { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-family: 'Manrope', sans-serif; }
.herr-tabla caption { text-align: left; font-size: .8rem; color: var(--text-muted); padding-bottom: 8px; }
.herr-tabla th, .herr-tabla td { text-align: left; padding: 11px 14px; border-bottom: 1px solid rgba(30,64,112,.12); font-size: .93rem; }
.herr-tabla th { font-family: 'Montserrat', sans-serif; font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-text); background: rgba(255,255,255,.6); }
.herr-tabla td { color: var(--text-muted); }
.herr-tabla td:first-child { color: var(--text-light); font-weight: 600; }
.herr-tabla-wrap { overflow-x: auto; }

/* Aviso / nota destacada */
.herr-nota {
    background: #fff; border-left: 4px solid var(--gold);
    padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 20px 0 24px;
}
.herr-nota p { margin: 0; font-size: .93rem; }

/* ── FAQ ── */
.herr-faq { max-width: 820px; margin: 0 auto; padding: clamp(50px, 8vw, 88px) 20px; }
.herr-faq > h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--text-light); margin-bottom: 28px; text-align: center; }
.herr-faq details { border-bottom: 1px solid rgba(30,64,112,.14); }
.herr-faq summary {
    font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 1.03rem; color: var(--text-light);
    padding: 19px 40px 19px 0; cursor: pointer; position: relative; list-style: none;
}
.herr-faq summary::-webkit-details-marker { display: none; }
.herr-faq summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; color: var(--gold); font-weight: 400;
}
.herr-faq details[open] summary::after { content: "−"; }
.herr-faq details[open] summary { color: var(--accent-text); }
.herr-faq-body { padding: 0 0 20px; }
.herr-faq-body p { font-family: 'Manrope', sans-serif; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── Otras herramientas ── */
.herr-mas { background: var(--surface-mid); padding: clamp(44px, 7vw, 70px) 20px; text-align: center; }
.herr-mas h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.85rem); color: var(--text-light); margin-bottom: 22px; }
.herr-mas-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.herr-mas-chips a {
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .84rem;
    padding: 12px 22px; border-radius: 999px; text-decoration: none;
    background: #fff; color: var(--nav-bg); border: 1.5px solid rgba(30,64,112,.16);
    transition: border-color .16s, transform .16s;
}
.herr-mas-chips a:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ── CTA ── */
.herr-cta { text-align: center; padding: clamp(48px, 8vw, 80px) 20px; max-width: 640px; margin: 0 auto; }
.herr-cta h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(1.45rem, 3vw, 2rem); color: var(--text-light); margin-bottom: 12px; }
.herr-cta p { font-family: 'Manrope', sans-serif; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.herr-cta .btn-whatsapp {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25d366; color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem;
    padding: 15px 30px; border-radius: 12px; text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.herr-cta .btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,211,102,.35); }

/* ── Accesibilidad y responsive ── */
.herr-faq summary:focus-visible,
.herr-mas-chips a:focus-visible,
.herr-cta .btn-whatsapp:focus-visible {
    outline: 3px solid var(--gold); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .herr-mas-chips a, .herr-cta .btn-whatsapp { transition: none; }
}

/* ── Calculadora de IPI: exenciones y resultados ── */
.ipi-exenciones {
    border: 1px solid rgba(30,64,112,.16);
    border-radius: 12px;
    padding: 16px 18px 12px;
    margin-bottom: 18px;
}
.ipi-exenciones legend {
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--accent-text); padding: 0 8px;
}
.ipi-exenciones .filtro-check-label {
    margin-bottom: 10px; font-size: .92rem; line-height: 1.45;
    align-items: flex-start;
}
.ipi-exenciones .filtro-check { margin-top: 3px; flex-shrink: 0; }
.input-ayuda {
    display: block; margin-top: 5px;
    font-family: 'Manrope', sans-serif; font-size: .8rem; color: var(--text-muted);
}
.ipi-exento {
    font-family: 'Manrope', sans-serif; line-height: 1.6;
    color: var(--text-light); margin-bottom: 16px;
}
.ipi-sub {
    margin-top: 22px; font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem; color: var(--text-light);
}

/* ── Conversor de tareas: lado equivalente del terreno ── */
.tareas-lado {
    font-family: 'Manrope', sans-serif;
    font-size: .95rem;
    color: var(--text-light);
    background: var(--surface-mid);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 16px 0 4px;
}
