/* =========================================
    SESIÓN 1: VARIABLES Y CONFIGURACIÓN BASE
    ========================================= */
:root {
    --bg-dark: #050505;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --accent-cyan: #4dbbdd;
    --accent-yellow: #fcdb58;
    --accent-blue-dark: #1a6ba5;
    --whatsapp-green: #00e676;
    --text-main: #ffffff;
    --text-muted: #d1d1d1;
}

html { scroll-behavior: smooth; }

body {
    background: radial-gradient(circle at 50% 0%, #111826 0%, #000000 100%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* =========================================
    SESIÓN 2: VISIBILIDAD Y FONDO ANIMADO
    ========================================= */
.text-muted { color: var(--text-muted) !important; }
p { color: #e0e0e0; }

.background-glow {
    position: fixed;
    top: -20%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(77, 187, 221, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* =========================================
    SESIÓN 3: NAVBAR Y LOGO (ZOOM AGRESIVO)
    ========================================= */
.navbar {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Alto fijo para blindar el Nav */
    height: 120px; 
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-brand img {
    /* Forzamos el zoom para compensar el aire del PNG */
    height: 190px; 
    width: auto;
    /* El margen negativo "succiona" el vacío y centra el dibujo */
    margin-top: -15px;
    margin-bottom: -15px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px rgba(77, 187, 221, 0.4));
}

.navbar-brand img:hover { transform: scale(1.05); }

.nav-link {
    color: #bbbbbb !important;
    font-weight: 600; font-size: 1rem;
    transition: color 0.3s;
}
.nav-link:hover { color: var(--accent-cyan) !important; }

.status-pill {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--whatsapp-green);
    font-size: 0.75rem; padding: 5px 12px; border-radius: 20px;
    display: inline-flex; align-items: center; font-weight: 600;
}

.status-dot {
    width: 8px; height: 8px; background-color: var(--whatsapp-green);
    border-radius: 50%; margin-right: 8px;
    box-shadow: 0 0 10px var(--whatsapp-green);
    animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* =========================================
    SESIÓN 4: HERO SECTION (PORTADA)
    ========================================= */
.hero {
    min-height: 85vh; display: flex; align-items: center;
    position: relative; padding-top: 140px; /* Espacio para el Nav alto */
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 900;
    line-height: 1.05; letter-spacing: -1px; margin-bottom: 25px;
}

.text-multi-gradient {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #ffffff 50%, var(--accent-yellow) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s ease infinite alternate;
}
@keyframes gradientMove { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

.btn-apple {
    background: white; color: black; border-radius: 30px;
    padding: 16px 45px; font-weight: 700; border: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); transition: 0.3s;
}

.btn-outline-apple {
    background: rgba(255, 255, 255, 0.05); color: white;
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 30px;
    padding: 16px 45px; font-weight: 700; transition: 0.3s;
}

/* =========================================
    SESIÓN 5: MARCAS Y SCROLL INFINITO
    ========================================= */
.brand-scroll {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px 0; overflow: hidden; white-space: nowrap;
}
.brand-track { display: inline-block; animation: scrollBrands 40s linear infinite; }
.brand-text {
    font-size: 1.8rem; font-weight: 800; color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase; margin: 0 50px; display: inline-block;
}

@keyframes scrollBrands { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
    SESIÓN 6: SELECTOR DE FALLAS (BOTONES)
    ========================================= */
.fault-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px; padding: 40px; backdrop-filter: blur(12px);
}

.btn-fault {
    display: block; width: 100%; text-align: left;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    color: white; padding: 18px 25px; border-radius: 15px;
    margin-bottom: 12px; text-decoration: none; transition: 0.3s;
}

.btn-fault:hover { background: var(--accent-cyan); color: black; transform: translateX(10px); }

.pulse-red {
    animation: pulse-red-border 2s infinite;
    border: 1px solid rgba(255, 68, 68, 0.4) !important;
}
@keyframes pulse-red-border {
    0% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
}

/* =========================================
    SESIÓN 7: TARJETAS DE SERVICIOS
    ========================================= */
.service-card {
    background: var(--glass-bg); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px; padding: 45px 40px; transition: 0.1s;
    height: 100%; backdrop-filter: blur(15px);
}

.icon-box {
    font-size: 3rem; margin-bottom: 25px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* =========================================
    SESIÓN 8: ESTADÍSTICAS Y ACORDEÓN FAQ
    ========================================= */
.stat-number { font-size: 4rem; font-weight: 800; color: white; margin-bottom: 0; }

.accordion-item {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important; margin-bottom: 10px; overflow: hidden;
}

.accordion-button {
    background-color: transparent !important; color: white !important;
    font-weight: 600; padding: 25px; box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--accent-cyan) !important; background-color: rgba(255, 255, 255, 0.05) !important;
}

.accordion-button::after { filter: invert(1); }
.accordion-body { color: var(--text-muted); padding: 25px; line-height: 1.6; }

/* =========================================
    SESIÓN 9: BOTONES DESCARGA Y FOOTER (LOGO ZOOM)
    ========================================= */
.download-btn {
    display: flex; align-items: center; background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1); color: white;
    padding: 25px 30px; border-radius: 20px; text-decoration: none;
    transition: 0.3s; margin: 15px; min-width: 280px;
}

footer {
    background: #020202; padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); color: #d1d1d1;
}

.footer-logo {
    /* Zoom masivo para el logo del footer para compensar el aire del PNG */
    height: 220px; 
    width: auto;
    /* Eliminamos el vacío vertical del archivo */
    margin-top: -60px;
    margin-bottom: -40px;
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(77, 187, 221, 0.2));
    display: block;
}

footer h5 { color: white; font-weight: 700; margin-bottom: 25px; font-size: 0.9rem; letter-spacing: 1px; }
footer a { color: #aaaaaa; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--accent-cyan); }

/* =========================================
    SESIÓN 10: BOTÓN FLOTANTE WHATSAPP
    ========================================= */
.float-wa {
    position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px;
    background-color: var(--whatsapp-green); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 35px; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    z-index: 1000; text-decoration: none; animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* =========================================
    SESIÓN 11: AJUSTES MÓVILES (RESPONSIVE)
    ========================================= */
@media (max-width: 991px) {
    .navbar { height: 100px; }
    .navbar-brand img { height: 180px; }
    .hero h1 { font-size: 2.8rem; }
    .hero { text-align: center; }
    .status-pill { display: none; }
}

@media (max-width: 767px) {
    .navbar { height: 88px; }
    .navbar-brand img {
        height: 140px;
        margin-top: -8px;
        margin-bottom: -8px;
    }
    .hero {
        min-height: 70vh;
        padding-top: 110px;
    }
    .hero h1 {
        font-size: 2.4rem;
        line-height: 1.1;
    }
    .btn-apple,
    .btn-outline-apple {
        padding: 14px 28px;
        width: 100%;
        max-width: 360px;
    }
    .brand-scroll { padding: 22px 0; }
    .brand-text {
        font-size: 1.2rem;
        margin: 0 26px;
    }
    .fault-container { padding: 24px; }
    .btn-fault { padding: 14px 18px; }
    .service-card { padding: 32px 26px; }
    .stat-number { font-size: 3rem; }
    .download-btn {
        min-width: 0;
        width: 100%;
        max-width: 420px;
        padding: 18px 22px;
    }
    footer { padding: 60px 0 24px; }
    .footer-logo {
        height: 160px;
        margin-top: -30px;
        margin-bottom: -20px;
    }
    .float-wa {
        width: 56px;
        height: 56px;
        font-size: 30px;
        bottom: 22px;
        right: 22px;
    }
}

@media (max-width: 575px) {
    .navbar { height: 78px; }
    .navbar-brand img { height: 120px; }
    .hero { padding-top: 96px; }
    .hero h1 { font-size: 2.05rem; }
    .hero p.lead { font-size: 1rem; }
    .brand-text { font-size: 1.05rem; }
    .fault-container { padding: 18px; }
    .btn-fault { font-size: 0.95rem; }
    .accordion-button { padding: 18px; }
    .accordion-body { padding: 18px; }
    footer h5 { margin-bottom: 16px; }
    .footer-logo { height: 140px; }
}

@media (max-width: 420px) {
    .navbar-brand img { height: 108px; }
    .hero h1 { font-size: 1.9rem; }
    .btn-apple,
    .btn-outline-apple { max-width: 100%; }
    .brand-text { margin: 0 20px; }
    .btn-fault { padding: 12px 16px; }
    .service-card { padding: 28px 22px; }
}