:root{

    --naranja:#ED702C;

    --morado:#643F91;

    --azul:#18B4B8;

    --verde:#06903F;

    --oscuro:#101828;

    --gris:#1B2236;

    --blanco:#FFFFFF;

}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    background:
    linear-gradient(
    180deg,
    var(--morado) 0%,
    #1B2236 25%,
    var(--oscuro) 100%
    );

    font-family:
    Arial,
    Helvetica,
    sans-serif;

    color:white;

    overflow-x:hidden;
}

/* ===================================== */
/* CONTAINER */
/* ===================================== */

.container{

    width:95%;

    margin:auto;
}

/* ===================================== */
/* HEADER */
/* ===================================== */

.hero{

    position:relative;

    overflow:hidden;

    padding:70px 8%;

    background:
    linear-gradient(
        135deg,
        var(--morado) 0%,
        var(--naranja) 100%
    );

    margin-bottom:50px;

}
.hero-container{

    display:flex;
    flex-direction:column;

    align-items:center;
    justify-content:center;

    text-align:center;

    gap:40px;

    width:100%;
    max-width:1400px;

    margin:auto;

}
.hero-text{

    width:100%;
    max-width:850px;

    z-index:2;

}
.hero-badge{

    display:inline-block;

    padding:10px 20px;

    background:white;

    color:var(--morado);

    font-weight:bold;

    border-radius:30px;

    margin-bottom:20px;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

/* ===================================== */
/* SECTION TITLE */
/* ===================================== */

.section-title{

    font-size:34px;

    font-weight:bold;

    margin-bottom:25px;

    color:white;
}

/* ===================================== */
/* KPIS */
/* ===================================== */

.kpis{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

    margin-bottom:50px;
}

.kpi-card{

    background:
    linear-gradient(
        145deg,
        #1e293b,
        #0f172a
    );

    padding:45px;

    border-radius:30px;

    text-align:center;

    border:
    1px solid rgba(255,255,255,0.06);

    box-shadow:
    0 15px 40px rgba(0,0,0,0.35);

    transition:0.3s;
}

.kpi-card:hover{

    transform:
    translateY(-8px);
}

.kpi-card h2{

    font-size:72px;

    color:#ff5a1f;

    margin-bottom:15px;
}

.kpi-card p{

    color:#cbd5e1;

    font-size:22px;

    font-weight:bold;
}

/* ===================================== */
/* ALERTA CRITICA */
/* ===================================== */

.alerta-critica{

    background:
    linear-gradient(
        135deg,
        #dc2626,
        #ef4444
    );

    color:white;

    padding:45px;

    border-radius:35px;

    font-size:34px;

    font-weight:bold;

    text-align:center;

    margin-bottom:60px;

    box-shadow:
    0 20px 50px rgba(220,38,38,0.35);

    animation:pulse 2s infinite;
}

@keyframes pulse{

    0%{

        transform:scale(1);
    }

    50%{

        transform:scale(1.01);
    }

    100%{

        transform:scale(1);
    }

}

/* ===================================== */
/* TOP BARRIOS */
/* ===================================== */

.top-barrios-section{

    margin-bottom:60px;
}

#topBarrios{

    display:flex;

    flex-direction:column;

    gap:20px;
}

.top-barrio-card{

    background:
    linear-gradient(
        145deg,
        #1e293b,
        #111827
    );

    padding:28px;

    border-radius:30px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    border:
    1px solid rgba(255,255,255,0.06);

    box-shadow:
    0 15px 35px rgba(0,0,0,0.35);

    transition:0.3s;
}

.top-barrio-card:hover{

    transform:
    translateX(8px);
}

.top-left{

    display:flex;

    align-items:center;

    gap:20px;
}

.top-medal{

    font-size:42px;
}

.top-name{

    font-size:30px;

    font-weight:bold;

    color:white;
}

.top-count{

    background:#ff5a1f;

    color:white;

    padding:14px 22px;

    border-radius:20px;

    font-size:20px;

    font-weight:bold;
}

/* ===================================== */
/* MAPA */
/* ===================================== */

.map-section{

    margin-bottom:60px;
}

#map{

    height:650px;

    border-radius:35px;

    overflow:hidden;

    box-shadow:
    0 25px 60px rgba(0,0,0,0.45);

    border:
    3px solid rgba(255,255,255,0.08);
}

/* ===================================== */
/* GRAFICAS SMART CITY */
/* ===================================== */

.graficas-section{

    display:grid;

    grid-template-columns:
    repeat(
        auto-fit,
        minmax(350px,1fr)
    );

    gap:25px;

    margin-bottom:60px;
}

.grafica-card{

    background:
    linear-gradient(
        145deg,
        #1e293b,
        #0f172a
    );

    border-radius:30px;

    padding:25px;

    border:
    1px solid rgba(255,255,255,0.06);

    box-shadow:
    0 15px 35px rgba(0,0,0,0.35);
}

.grafica-card h2{

    color:white;

    margin-bottom:20px;

    font-size:24px;
}

canvas{

    width:100% !important;

    max-height:350px;
}

/* ===================================== */
/* BARRIOS */
/* ===================================== */

.barrios-section{

    margin-bottom:60px;
}

#barriosContainer{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:25px;
}

.barrio-card{

    background:
    linear-gradient(
        145deg,
        #1e293b,
        #111827
    );

    padding:30px;

    border-radius:28px;

    border-left:
    8px solid #ff5a1f;

    border:
    1px solid rgba(255,255,255,0.06);

    box-shadow:
    0 15px 35px rgba(0,0,0,0.35);

    transition:0.3s;
}

.barrio-card:hover{

    transform:
    translateY(-6px);
}

.barrio-card h3{

    font-size:30px;

    color:white;

    margin-bottom:15px;
}

.barrio-card p{

    font-size:20px;

    color:#cbd5e1;

    font-weight:bold;
}

/* ===================================== */
/* FEED */
/* ===================================== */

.feed-section{

    margin-bottom:60px;
}

#feedReportes{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(340px,1fr));

    gap:30px;
}

.feed-card{

    background:
    linear-gradient(
        145deg,
        #1e293b,
        #111827
    );

    padding:30px;

    border-radius:30px;

    border:
    1px solid rgba(255,255,255,0.06);

    box-shadow:
    0 15px 35px rgba(0,0,0,0.35);

    transition:0.3s;
}

.feed-card:hover{

    transform:
    translateY(-6px);
}

.feed-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;
}

.feed-top h3{

    font-size:30px;

    color:white;
}

.estado-badge{

    color:white;

    padding:10px 18px;

    border-radius:30px;

    font-size:14px;

    font-weight:bold;
}

.feed-direccion{

    color:#cbd5e1;

    line-height:1.7;

    font-size:19px;

    margin-bottom:20px;
}

.feed-footer{

    color:#94a3b8;

    font-size:15px;
}

/* ===================================== */
/* SCROLLBAR
/* ===================================== */

::-webkit-scrollbar{

    width:10px;
}

::-webkit-scrollbar-track{

    background:#0f172a;
}

::-webkit-scrollbar-thumb{

    background:#334155;

    border-radius:20px;
}

/* ===================================== */
/* RESPONSIVE */
/* ===================================== */

@media(max-width:768px){

    .hero{

        height:auto;
    }

    .hero h1{

    font-size:64px;

    font-weight:800;

    color:white;

    margin:0;

    line-height:1.1;

    text-shadow:
    0 8px 20px rgba(0,0,0,.25);

}

    .hero-subtitulo{

    margin-top:25px;

    font-size:21px;

    line-height:1.8;

    color:white;

    max-width:650px;

}

    .kpi-card h2{

        font-size:52px;
    }

    .section-title{

        font-size:26px;
    }

    #map{

        height:500px;
    }

    .alerta-critica{

        font-size:24px;

        padding:30px;
    }

    .top-barrio-card{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;
    }

    .top-name{

        font-size:22px;
    }

    .grafica-card h2{

        font-size:20px;
    }

}
/* ===================================== */
/* CONTADOR GIGANTE */
/* ===================================== */

.contador-section{

    margin-bottom:50px;
}

.contador-card{

    background:
    linear-gradient(
        135deg,
        #dc2626,
        #991b1b
    );

    border-radius:40px;

    padding:50px 30px;

    text-align:center;

    box-shadow:
    0 25px 60px rgba(220,38,38,0.35);

    margin-bottom:25px;

    position:relative;

    overflow:hidden;
}

.contador-card::before{

    content:"";

    position:absolute;

    top:-100px;
    right:-100px;

    width:250px;
    height:250px;

    border-radius:50%;

    background:
    rgba(255,255,255,0.08);
}

.contador-label{

    color:#fecaca;

    font-size:24px;

    margin-bottom:20px;

    letter-spacing:2px;

    font-weight:bold;
}

.contador-gigante{

    font-size:120px;

    font-weight:900;

    color:white;

    text-shadow:
    0 0 25px rgba(255,255,255,0.35);

    animation:pulseCounter 2s infinite;
}

@keyframes pulseCounter{

    0%{

        transform:scale(1);
    }

    50%{

        transform:scale(1.03);
    }

    100%{

        transform:scale(1);
    }

}

.contador-mini-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:25px;
}

.contador-mini{

    background:
    linear-gradient(
        145deg,
        #1e293b,
        #111827
    );

    border-radius:30px;

    padding:35px;

    text-align:center;

    border:
    1px solid rgba(255,255,255,0.06);

    box-shadow:
    0 15px 35px rgba(0,0,0,0.35);
}

.contador-mini span{

    font-size:42px;

    display:block;

    margin-bottom:15px;
}

.contador-mini h3{

    font-size:60px;

    color:#ff5a1f;

    margin-bottom:10px;
}

.contador-mini p{

    color:#cbd5e1;

    font-size:18px;

    font-weight:bold;
}

@media(max-width:768px){

    .contador-gigante{

        font-size:72px;
    }

    .contador-label{

        font-size:18px;
    }

}

.hero-image{

    width:100%;
    max-width:1000px;

    margin:0 auto;

    display:flex;
    justify-content:center;
    align-items:center;

    position:relative;

    flex:none;

}

.hero-image img{

    width:100%;

    max-width:900px;

    height:auto;

    display:block;

    position:relative;

    z-index:2;

    filter:drop-shadow(
        0 25px 50px rgba(0,0,0,.35)
    );

}

.hero-glow{

    position:absolute;

    width:380px;

    height:380px;

    background:
    radial-gradient(
        circle,
        rgba(24,180,184,.35),
        transparent 70%
    );

    border-radius:50%;

    filter:blur(40px);

}
/* =====================================
   HERO RESPONSIVE
===================================== */

@media (max-width:768px){

    .hero{

        padding:50px 25px;

    }

    .hero-container{

        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        text-align:center;
        gap:30px;

    }

    .hero-image{

   
    width:100%;
    display:flex;
    justify-content:center;

}

.hero-text{

    
    width:100%;
    max-width:100%;

}

    .hero-image img{

    width:100%;
    max-width:1000px;

    height:auto;

    display:block;

}

}
/* =====================================
   BOTÓN WHATSAPP
===================================== */

.whatsapp-float{

    position:fixed;

    right:25px;

    bottom:25px;

    width:70px;

    height:70px;

    border-radius:50%;

    background:#25D366;

    display:flex;

    justify-content:center;

    align-items:center;

    box-shadow:0 10px 30px rgba(0,0,0,.35);

    z-index:99999;

    transition:.25s;

}

.whatsapp-float:hover{

    transform:scale(1.12);

}

.whatsapp-float img{

    width:38px;

    height:38px;

    filter:brightness(0) invert(1);

}

@media(max-width:768px){

    .whatsapp-float{

        width:65px;

        height:65px;

        right:18px;

        bottom:18px;

    }

}

/* =====================================
   REDES SOCIALES
===================================== */

.social-float{

    position:fixed;

    right:25px;

    bottom:110px;

    display:flex;

    flex-direction:column;

    gap:15px;

    z-index:99998;

}

.social-btn{

    width:60px;

    height:60px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    color:#fff;

    font-size:28px;

    text-decoration:none;

    box-shadow:0 10px 25px rgba(0,0,0,.30);

    transition:.25s;

}

.social-btn:hover{

    transform:scale(1.10);

}

.facebook{

    background:#1877F2;

}

.instagram{

    background:linear-gradient(
        45deg,
        #F58529,
        #DD2A7B,
        #8134AF,
        #515BD4
    );

}

@media(max-width:768px){

    .social-float{

        right:18px;

        bottom:100px;

    }

    .social-btn{

        width:55px;

        height:55px;

        font-size:24px;

    }

}
/* =====================================
   PAGINACIÓN
===================================== */

.paginacion{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

    width:fit-content;

    margin:80px auto 30px;

    width:100%;

    flex-wrap:wrap;

}

.paginacion button{

    background:linear-gradient(135deg,#6C3EF4,#8E44FF);

    color:#fff;

    border:none;

    padding:12px 28px;

    border-radius:12px;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

}

.paginacion button:hover{

    transform:translateY(-2px);

    background:linear-gradient(135deg,#5d31e0,#7f38f2);

}

.paginacion button:disabled{

    opacity:.35;

    cursor:not-allowed;

    transform:none;

}

#infoPagina{

    color:#fff;

    font-size:18px;

    font-weight:700;

    letter-spacing:.5px;

}