/* ==========================================================
   CRC SYSTEM — Footer nuevo (footer-new)
   Paleta: navy #0f172a · naranja #f97316 · Inter + Barlow
   ========================================================== */

.footer-new {
    font-family: 'Inter', sans-serif;
    color: #cbd5e1;
    overflow: hidden;
}

.footer-container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
    .footer-container { padding-inline: 3rem; }
}


/* ── EYEBROW ─────────────────────────────────────────────── */
.footer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f97316;
    margin-bottom: 0.75rem;
}


/* ══════════════════════════════════════════════════════════
   BANDA 1 — BÚSQUEDA POR DNI
   ══════════════════════════════════════════════════════════ */
.footer-dni-band {
    background: #0c1322;
    border-top: 3px solid #f97316;
    padding: 3rem 0;
}

.footer-dni-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .footer-dni-inner {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
}

/* Texto lado izquierdo */
.footer-dni-text { flex: 1; min-width: 0; }

.footer-dni-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    margin: 0 0 0.6rem !important;
    letter-spacing: -0.01em;
}

.footer-dni-title span {
    color: #f97316 !important;
}

.footer-dni-sub {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0 !important;
    line-height: 1.5;
}

/* Form lado derecho */
.footer-dni-right {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.footer-dni-form {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 480px;
}

.footer-dni-form input {
    flex: 1;
    background: #1e293b;
    border: 1.5px solid #334155;
    border-right: none;
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: border-color 0.2s;
    /* Remove number input arrows */
    -moz-appearance: textfield;
}
.footer-dni-form input::-webkit-outer-spin-button,
.footer-dni-form input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.footer-dni-form input::placeholder { color: #475569; }
.footer-dni-form input:focus { border-color: #f97316; }

.footer-dni-form button {
    background: #f97316;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0 1.4rem;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background-color 0.2s;
    min-width: 100px;
    justify-content: center;
    white-space: nowrap;
}
.footer-dni-form button:hover { background: #c2620d; }
.footer-dni-form button:disabled { opacity: 0.7; cursor: wait; }

@keyframes footer-spin-anim {
    to { transform: rotate(360deg); }
}
.footer-spin { animation: footer-spin-anim 0.8s linear infinite; }
.footer-dni-btn-spin { display: inline-flex; }

/* Resultado */
.footer-dni-result {
    margin-top: 1rem;
    max-width: 480px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.footer-dni-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-dni-success {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 10px;
    overflow: hidden;
}

.footer-dni-success-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(249, 115, 22, 0.15);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    color: #fed7aa;
    font-size: 0.9rem;
}

.footer-dni-success-header svg { color: #f97316; flex-shrink: 0; }
.footer-dni-success-header strong { color: #fff; font-weight: 700; }

.footer-dni-success-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0.75rem 1rem;
    gap: 0.6rem 1rem;
}

.footer-dni-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.footer-dni-field-tiempo { grid-column: span 2; }

.footer-dni-field-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.footer-dni-field-val {
    font-size: 0.88rem;
    color: #e2e8f0;
}

.footer-dni-puesto {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem !important;
    font-weight: 800;
    color: #f97316 !important;
}

.footer-dni-tiempo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem !important;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: 0.04em;
}

.footer-dni-more {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    color: #f97316;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s;
}
.footer-dni-more:hover { background: rgba(249, 115, 22, 0.08); color: #fed7aa; }


/* ══════════════════════════════════════════════════════════
   BANDA 2 — ESTADÍSTICAS ANIMADAS (fondo naranja)
   ══════════════════════════════════════════════════════════ */
.footer-stats-band {
    background: #f97316;
    padding: 3rem 0;
}

.footer-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
}

.footer-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
}

.footer-stat-sep {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-stat-icon {
    opacity: 0.7;
    color: #fff;
    margin-bottom: 0.25rem;
}

.footer-stat-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.footer-stat-number sup {
    font-size: 0.45em;
    font-weight: 700;
    vertical-align: super;
    letter-spacing: 0;
}

.footer-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    text-align: center;
}


/* ══════════════════════════════════════════════════════════
   BANDA 3 — COUNTDOWN MTB 2026
   ══════════════════════════════════════════════════════════ */
.footer-mtb-band {
    background: #0a0e1a;
    padding: 1.75rem 0;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
}

.footer-mtb-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-mtb-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 2rem;
    }
}

.footer-mtb-info { flex: 1; }

.footer-mtb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f97316;
    margin-bottom: 0.4rem;
}

.footer-mtb-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #f97316;
    border-radius: 50%;
    animation: mtb-pulse 1.8s ease-in-out infinite;
}

@keyframes mtb-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.footer-mtb-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 !important;
    letter-spacing: 0.02em;
}
.footer-mtb-title span { color: #f97316 !important; }

/* Countdown numbers */
.footer-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-width: 56px;
}

.footer-cd-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #f97316;
    line-height: 1;
    letter-spacing: 0.04em;
}

.footer-cd-lbl {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #475569;
    margin-top: 0.2rem;
}

.footer-cd-sep {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #f97316;
    line-height: 1;
    margin-bottom: 1rem;
    animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.footer-mtb-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f97316;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.footer-mtb-cta:hover { background: #c2620d; color: #fff; }


/* ══════════════════════════════════════════════════════════
   BANDA 4 — CUERPO PRINCIPAL
   ══════════════════════════════════════════════════════════ */
.footer-main-body {
    background: #0f172a;
    padding: 3.5rem 0;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .footer-main-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-main-grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 4rem; }
}

.footer-col {}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand-tagline {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 !important;
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.2s;
}
.footer-social-icon:hover {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
    transform: translateY(-2px);
}

.footer-social-wa {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.3);
    color: #4ade80;
}
.footer-social-wa:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    font-size: 0.8rem;
}
.footer-location svg { flex-shrink: 0; }

/* Column titles */
.footer-col-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f97316 !important;
    margin: 0 0 1.25rem !important;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #1e293b;
}

/* Nav links */
.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}
.footer-nav-links li a svg { color: #334155; flex-shrink: 0; transition: color 0.2s, transform 0.2s; }
.footer-nav-links li a:hover { color: #f97316; gap: 0.7rem; }
.footer-nav-links li a:hover svg { color: #f97316; transform: translateX(2px); }

/* Contact items */
.footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #4ade80;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}
.footer-wa-btn i { font-size: 1.1rem; }
.footer-wa-btn:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}
.footer-contact-row svg { color: #475569; flex-shrink: 0; }
.footer-contact-row a { color: #64748b; text-decoration: none; transition: color 0.2s; }
.footer-contact-row a:hover { color: #f97316; }

/* CTA inscripción */
.footer-cta-inscripcion {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #1e293b;
}

.footer-cta-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    margin: 0 0 0.6rem !important;
}

.footer-cta-btn {
    display: inline-block;
    background: #f97316;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.6rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.footer-cta-btn:hover { background: #c2620d; color: #fff; }


/* ══════════════════════════════════════════════════════════
   BANDA 5 — COPYRIGHT + CODELAND
   ══════════════════════════════════════════════════════════ */
.footer-bottom-band {
    background: #060a12;
    border-top: 1px solid #0f172a;
    padding: 1rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copy {
    font-size: 0.75rem;
    color: #334155;
    flex-shrink: 0;
}
.footer-copy a { color: #475569; text-decoration: none; }
.footer-copy a:hover { color: #f97316; }

/* Codeland promo strip */
.footer-codeland-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border: 1px solid #1e293b;
    border-radius: 6px;
    transition: border-color 0.2s, background 0.2s;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-codeland-strip:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.04);
}

.footer-codeland-text {
    font-size: 0.75rem;
    color: #475569;
}
.footer-codeland-text strong { color: #94a3b8; }

.footer-codeland-btn {
    display: inline-flex;
    align-items: center;
    background: #f97316;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.footer-codeland-strip:hover .footer-codeland-btn { background: #c2620d; }
