/* ============================================================
   Nos Hacemos Bien — Web pública
   Estética institucional sobria · sin ornamentos
   ============================================================ */

:root {
    --text: #1a1a1a;
    --text-2: #3f3f46;
    --muted: #71717a;
    --tertiary: #a1a1aa;

    --bg: #ffffff;
    --bg-soft: #fafaf9;
    --bg-subtle: #f5f5f4;
    --card: #ffffff;

    --border: #e4e4e7;
    --border-strong: #d4d4d8;

    --primary: #1e3a5f;
    --primary-hover: #16304f;
    --primary-dark: #0f2440;

    --accent: #b8860b;

    --success: #166534;
    --danger: #991b1b;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none }
a:hover { text-decoration: underline; text-underline-offset: 3px }
img { max-width: 100%; display: block }

h1, h2, h3, h4 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.011em;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px }
.muted { color: var(--muted) }
.text-center { text-align: center }

/* ============== TOPBAR ============== */
.topbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.topbar .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    flex-wrap: wrap;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
}
.brand:hover { text-decoration: none }
.brand-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}
.brand-text small {
    color: var(--muted);
    font-size: 12.5px;
}

.menu { display: flex; gap: 4px; flex-wrap: wrap; align-items: center }
.menu a {
    padding: 8px 12px;
    color: var(--text-2);
    font-weight: 500;
    font-size: 14px;
}
.menu a:hover { color: var(--primary); text-decoration: none }
.menu a.active {
    color: var(--primary);
    font-weight: 600;
}
.menu a.cta {
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 3px;
    margin-left: 4px;
}
.menu a.cta:hover { background: var(--primary-hover); color: #fff; text-decoration: none }

/* ============== BANNER PROVINCIAL ============== */
.provincial-strip {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    padding: 10px 28px;
    text-align: center;
    font-size: 13px;
}
.provincial-strip i {
    color: var(--accent);
    margin-right: 8px;
    font-size: 12px;
}
.provincial-strip strong { color: var(--text); font-weight: 600 }

/* ============== HERO ============== */
.hero {
    background: var(--bg);
    padding: 80px 0 70px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.hero-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 28px;
    display: block;
}
.hero-kicker {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: 42px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.12;
    letter-spacing: -0.022em;
    margin: 0 auto 22px;
    max-width: 760px;
}
.hero-lead {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 16px;
}
.hero-meta {
    font-size: 14px;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.65;
}
.hero-meta strong { color: var(--text-2); font-weight: 600 }
.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============== BOTONES ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 3px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.3;
    transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover { text-decoration: none }
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff }
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--bg-soft); border-color: var(--text-2); color: var(--text) }
.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.btn-white:hover { background: var(--bg-soft); color: var(--primary) }
.btn-lg { padding: 13px 26px; font-size: 14.5px }
.btn-block { display: flex; width: 100% }

/* ============== SECCIONES ============== */
section { padding: 72px 0 }
.section-head { margin-bottom: 48px }
.section-head h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text);
}
.section-head p {
    color: var(--muted);
    max-width: 620px;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}
.section-head.center { text-align: center }
.section-head.center p { margin-left: auto; margin-right: auto }
.section-rule {
    width: 36px;
    height: 2px;
    background: var(--primary);
    margin: 0 0 22px;
}
.section-head.center .section-rule { margin: 0 auto 22px }

/* ============== ENTIDADES (banda) ============== */
.entidades-band {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 38px 0;
}
.entidades-label {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    font-weight: 500;
}
.entidades-list {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: baseline;
}
.entidades-list .ent {
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.entidades-list .ent small {
    display: block;
    font-size: 11px;
    color: var(--tertiary);
    font-weight: 500;
    letter-spacing: 0.8px;
    margin-top: 2px;
    text-transform: uppercase;
}

/* ============== KPIs ============== */
.kpis-section {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 56px 0;
}
.kpis-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
}
.kpi-cell {
    padding: 18px 24px;
    border-right: 1px solid var(--border);
}
.kpi-cell:last-child { border-right: 0 }
.kpi-num {
    font-size: 36px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.022em;
    line-height: 1;
    margin-bottom: 8px;
}
.kpi-label {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.4;
}

/* ============== CÓMO FUNCIONA ============== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.step {
    padding: 0;
    border: 0;
    background: transparent;
}
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 18px;
}
.step h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}
.step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

/* ============== CITA / DESTACADO PERIODÍSTICO ============== */
.editorial-note {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 22px;
    margin: 48px auto 0;
    max-width: 760px;
}
.editorial-note .label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.editorial-note h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.3;
}
.editorial-note p {
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0;
}

/* ============== BENEFICIOS LISTA ============== */
.benef-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 0;
    border-top: 1px solid var(--border);
}
.benef-row {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.benef-row:hover { background: var(--bg-soft); text-decoration: none; color: var(--text) }
.benef-row .icon {
    width: 38px;
    height: 38px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.benef-row .info { flex: 1; min-width: 0; padding-right: 16px }
.benef-row strong {
    font-size: 14.5px;
    font-weight: 600;
    display: block;
    color: var(--text);
}
.benef-row small {
    color: var(--muted);
    font-size: 13px;
    display: block;
    margin-top: 2px;
}
.benef-row .pct {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    text-align: right;
    white-space: nowrap;
    padding: 0 24px 0 16px;
    border-left: 1px solid var(--border);
}
.benef-row .pct small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* ============== COMERCIOS GRID ============== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.com-card {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    color: var(--text);
    display: block;
}
.com-card:hover { background: var(--bg-soft); text-decoration: none; color: var(--text) }
.com-card .com-icon {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 14px;
}
.com-card h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.com-card .meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 14px;
}
.com-card .badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 12.5px;
}
.com-card .badges .pill {
    color: var(--accent);
    font-weight: 600;
}
.com-card .badges .sep {
    color: var(--tertiary);
}
.com-card .badges .socio {
    color: var(--muted);
}

/* ============== CTA BANNER ============== */
.cta-banner {
    background: var(--primary);
    color: #fff;
    padding: 72px 0;
}
.cta-banner-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.cta-banner h2 {
    margin: 0 0 14px;
    font-size: 26px;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
}
.cta-banner p {
    font-size: 15.5px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,0.82);
    line-height: 1.65;
}

/* ============== FORMS ============== */
.form-group { margin-bottom: 16px }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-2);
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=tel],
.form-group input[type=url],
.form-group input[type=password],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    font-size: 14px;
    background: var(--card);
    font-family: inherit;
    color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }

/* ============== ALERTAS ============== */
.alert {
    padding: 13px 18px;
    border-radius: 3px;
    margin-bottom: 20px;
    font-size: 13.5px;
    border: 1px solid;
}
.alert-success { background: #f0fdf4; color: var(--success); border-color: #bbf7d0 }
.alert-danger { background: #fef2f2; color: var(--danger); border-color: #fecaca }
.alert-info { background: var(--bg-soft); color: var(--primary); border-color: var(--border) }

/* ============== MAPA ============== */
#mapa {
    height: 460px;
    border-radius: 3px;
    border: 1px solid var(--border);
    margin-bottom: 28px;
}

/* ============== FOOTER ============== */
.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 56px 0 24px;
    font-size: 13.5px;
    color: var(--text-2);
}
.site-footer .row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}
.site-footer h4 {
    color: var(--text);
    margin: 0 0 14px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.site-footer p {
    line-height: 1.65;
    margin: 0 0 8px;
    color: var(--text-2);
}
.site-footer a {
    color: var(--text-2);
    display: block;
    padding: 3px 0;
    text-decoration: none;
    font-size: 13.5px;
}
.site-footer a:hover { color: var(--primary); text-decoration: underline }
.site-footer .brand-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.site-footer .brand-footer img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.site-footer .brand-footer strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    display: block;
}
.site-footer .brand-footer small { color: var(--muted); font-size: 12px }
.site-footer .copy {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    color: var(--muted);
    font-size: 12.5px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
    .hero { padding: 56px 0 }
    .hero h1 { font-size: 30px }
    .hero-logo-img { width: 96px; height: 96px }
    section { padding: 56px 0 }
    .section-head h2 { font-size: 22px }
    .site-footer .row { grid-template-columns: 1fr 1fr; gap: 28px }
    .kpi-cell { border-right: 0; border-bottom: 1px solid var(--border); padding: 16px 0 }
    .kpi-cell:last-child { border-bottom: 0 }
}
@media (max-width: 540px) {
    .menu { width: 100%; justify-content: center; font-size: 12.5px }
    .hero h1 { font-size: 26px }
    .kpi-num { font-size: 28px }
    .cta-banner h2 { font-size: 22px }
    .site-footer .row { grid-template-columns: 1fr }
    .site-footer .copy { justify-content: center; text-align: center }
    .form-row { grid-template-columns: 1fr }
}
