/* RESET */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* TOPBAR */
.topbar {
    background: #1F3C88;
    padding: 6px 0;
    font-size: 14px;
}

/* NAVBAR */
.navbar {
    padding: 10px 0;
}

.logo {
    color: #1F3C88;
    font-weight: bold;
}

/* HERO */
.hero {
    position: relative;
    height: 550px;
    overflow: hidden;
}

/* IMAGEN SLIDER */
.hero-img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

/* OVERLAY (CORREGIDO) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 550px;

    background: rgba(31, 60, 136, 0.75);

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

    z-index: 5;
}

/* TEXTO HERO */
.hero-overlay h1 {
    font-size: 60px;
    font-weight: bold;
}

.hero-overlay h4 {
    margin-bottom: 10px;
}

.hero-overlay p {
    max-width: 700px;
    margin: auto;
    font-size: 16px;
}

/* BOTONES */
.hero-overlay .btn {
    margin: 5px;
    padding: 10px 25px;
}

/* SERVICIOS */
.servicios {
    margin-top: -90px;
    position: relative;
    z-index: 10;
}

.card-servicio {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.card-servicio:hover {
    transform: translateY(-5px);
}


.card-servicio i {
    display: block;
    font-size: 40px;
    color: #1F3C88;
    margin-bottom: 10px;
}

/* SECTORES */
.sectores {
    background: #f5f5f5;
    padding: 60px 0;
}

.box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
}

.box:hover {
    background: #eaf0ff;
}

.box i {
    color: #1F3C88;
    margin-right: 8px;
}

/* BLOG */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card img {
    height: 200px;
    object-fit: cover;
}

.card-body h6 {
    font-size: 12px;
    font-weight: bold;
}


/* ASOCIADOS */
.asociados {
    background: #f9f9f9;
}

.asociados img {
    height: 60px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.asociados img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* FOOTER */
.footer {
    background: #1F3C88;
    padding: 50px 0;
}

.footer h5,
.footer h6 {
    font-weight: bold;
}

.footer p {
    font-size: 14px;
}

.footer i {
    font-size: 18px;
    margin-right: 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .hero {
        height: 400px;
    }

    .hero-img {
        height: 400px;
    }

    .hero-overlay {
        height: 400px;
    }

    .hero-overlay h1 {
        font-size: 35px;
    }

    .servicios {
        margin-top: 20px;
    }

}
.alert {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {opacity:0;}
    to {opacity:1;}
}
#loader p {
    margin-top: 10px;
    color: #1F3C88;
    font-weight: 500;
}
/* HERO INTERNO */
.hero-interno {
    background: linear-gradient(rgba(31,60,136,0.85), rgba(31,60,136,0.85)),
    url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d');
    height: 300px;
    background-size: cover;
}

/* ICONOS */
.icono {
    font-size: 40px;
    color: #1F3C88;
    margin-bottom: 10px;
}

/* CTA */
.cta {
    background: #1F3C88;
}
/* CARRUSEL */
#carouselClientes {
    overflow: visible;
}
/* cookies */
.cookie-float{
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 18px 22px;
    border-radius: 14px;
    z-index: 9999;
    max-width: 520px;
    width: 92%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    display: none;

    animation: fadeUp 0.5s ease;
}

.cookie-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-text{
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

.cookie-buttons{
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn{
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
}

/* botón aceptar */
.cookie-buttons .btn-primary{
    background: #2563eb;
    border: none;
}

.cookie-buttons .btn-primary:hover{
    background: #1d4ed8;
}

/* botón rechazar */
.cookie-buttons .btn-outline-light{
    border: 1px solid #64748b;
    color: #cbd5f5;
}

.cookie-buttons .btn-outline-light:hover{
    background: #334155;
    color: #fff;
}

/* animación */
@keyframes fadeUp{
    from{
        opacity:0;
        transform:translate(-50%, 40px);
    }
    to{
        opacity:1;
        transform:translate(-50%, 0);
    }
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 9999;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1ebe5d;
}

/* ANIMACIÓN PULSO */
.whatsapp-float::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: pulse 1.8s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { opacity: 0; }
}