/* ═══════════════════════════════════════════
   CONTACT  —  Formulario y datos de contacto
   Extraído de contact.html para mantener
   separación limpia de responsabilidades
   ═══════════════════════════════════════════ */

/* ── Contact stats (íconos + texto) ───────── */
.contact-stat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.contact-stat-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: rgba(31,166,74,.12);
    border: 1px solid rgba(31,166,74,.22);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
    font-size: 1.05rem;
    flex-shrink: 0;
}
.contact-tel {
    display: inline-flex;
    align-items: center;
    color: var(--brand);
    font-weight: 700;
    font-size: .95rem;
    min-height: 36px;
    gap: 5px;
}
.contact-tel:hover { opacity: .82; color: var(--brand); }

/* ── Chips de servicio ─────────────────────── */
.service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.service-chip {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border2);
    background: rgba(255,255,255,.03);
    color: var(--muted);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    display: flex; align-items: center; gap: 7px;
    min-height: 40px;
    user-select: none;
}
.service-chip:hover  { border-color: rgba(31,166,74,.4); color: var(--text); }
.service-chip.active {
    border-color: var(--brand);
    background: rgba(31,166,74,.13);
    color: #fff;
}
@media (max-width: 480px) {
    .service-chip { font-size: .85rem; padding: 8px 12px; }
}

/* ── Urgencia ──────────────────────────────── */
.urgency-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.urgency-opt { cursor: pointer; }
.urgency-opt input[type="radio"] { display: none; }
.urgency-opt span {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border2);
    background: rgba(255,255,255,.03);
    color: var(--muted);
    font-weight: 600;
    font-size: .9rem;
    min-height: 40px;
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
}
.urgency-opt input[type="radio"]:checked + span {
    border-color: var(--brand);
    background: rgba(31,166,74,.13);
    color: #fff;
}
.urgency-opt:hover span { border-color: rgba(31,166,74,.4); color: var(--text); }

/* ── Feedback visual del botón de envío ─────── */
#btnEnviarWA { position: relative; overflow: hidden; }
#btnEnviarWA.sending { opacity: .75; pointer-events: none; }
#btnEnviarWA .btn-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(5,17,10,.3);
    border-top-color: #05110A;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
#btnEnviarWA.sending .btn-spinner { display: inline-block; }
#btnEnviarWA.sending .btn-label   { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Stats strip ────────────────────────────── */
.stats-strip {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.018);
}
@media (max-width: 768px) { .stats-strip { padding: 36px 0; } }
@media (max-width: 480px) { .stats-strip { padding: 28px 0; } }

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 12px 40px;
    flex: 1 1 180px;
}
@media (max-width: 768px) { .stat-item { padding: 12px 24px; } }
@media (max-width: 480px) { .stat-item { padding: 14px 16px; flex-basis: 45%; } }

.stat-number {
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 2.8rem;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.03em;
}
@media (max-width: 768px) { .stat-number { font-size: 2.2rem; } }
@media (max-width: 480px) { .stat-number { font-size: 1.9rem; } }

.stat-unit {
    font-size: .95rem;
    font-weight: 700;
    color: var(--brand);
    margin-left: 4px;
    letter-spacing: 0;
}

.stat-label {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    height: 52px;
    background: var(--border);
    flex-shrink: 0;
}
/* Ocultar divisores al hacer wrap en mobile */
@media (max-width: 480px) { .stat-divider { display: none; } }


/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.site-footer {
    padding: 64px 0 40px;
    background: rgba(5,9,14,.70);
    border-top: 1px solid var(--border);
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 300px at 80% 100%, rgba(31,166,74,.06), transparent 60%);
    pointer-events: none;
}

/* Grid de columnas — 4 col desktop, 2 tablet, 1 mobile */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px 32px;
    position: relative;
}
@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 575px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer { padding: 44px 0 32px; }
}

/* Título de columna */
.footer-col-title {
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.45);
    margin-bottom: 16px;
}

/* Links de navegación */
.footer-links {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 500;
    transition: color .15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: #fff; }
.footer-links a::before {
    content: "→";
    font-size: .7rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .15s, transform .15s;
}
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

/* Botones WA en columna de marca */
.footer-contact-row {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 18px;
}
.footer-wa-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(37,211,102,.30);
    background: rgba(37,211,102,.08);
    color: #25D366;
    font-weight: 700; font-size: .85rem;
    transition: background .15s, border-color .15s;
}
.footer-wa-btn:hover {
    background: rgba(37,211,102,.16);
    border-color: rgba(37,211,102,.55);
    color: #25D366;
}

/* Dirección */
.footer-address {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 18px;
    font-size: .9rem; line-height: 1.55;
}
.footer-address i { margin-top: 3px; flex-shrink: 0; font-size: 1rem; }

/* Pie */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
@media (max-width: 575px) {
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
    .footer-tagline { display: none; }
}
