@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary: #007bff;
    --dark: #1a1d20;
    --light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.8);
}

body {
    font-family: 'Poppins', sans-serif;
    color: #444;
    background-color: #fff;
}

/* Navbar Moderna */
.navbar {
    background: rgba(26, 29, 32, 0.9) !important;
    backdrop-filter: blur(10px); /* Efecto borroso detrás */
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Carrusel con Overlay */
.carousel-item {
    height: 80vh;
    position: relative;
}

.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.carousel-caption {
    z-index: 2;
    bottom: 20%;
}

/* Tarjetas de Pilares Estilo Premium */
.pilar-card {
    border: none;
    border-radius: 20px;
    background: var(--light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 2rem;
}

.pilar-card:hover {
    transform: translateY(-15px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.pilar-card i {
    background: white;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,123,255,0.1);
    margin-bottom: 1.5rem;
}

/* Sección Historia */
.img-historia {
    border-radius: 30px;
    box-shadow: 25px 25px 0px var(--primary); /* Cuadro de color decorativo atrás */
    transition: 0.3s;
}

.img-historia:hover {
    transform: translate(5px, 5px);
    box-shadow: 10px 10px 0px var(--primary);
}

/* Footer Moderno */
footer {
    background: var(--dark);
    padding: 3rem 0;
}

/* AJUSTE DEL CARRUSEL (Para que no se vea gigante) */
.carousel-item img {
    height: 65vh; /* Bajamos de 80 a 65 para que se vea más contenido abajo */
    object-fit: cover;
    object-position: center; /* Asegura que lo importante de la foto quede al centro */
}

/* AJUSTE DE LA IMAGEN DE HISTORIA */
.img-historia {
    width: 100%;
    max-height: 450px; /* Evita que la foto crezca demasiado */
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* RESPONSIVO: En celulares, quitamos el cuadro azul para que no estorbe */
@media (max-width: 991px) {
    .img-historia {
        box-shadow: none !important;
        margin-bottom: 2rem;
    }
    .carousel-item img {
        height: 40vh; /* Más pequeño aún en celulares */
    }
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1); /* Se hace un poquito más grande al pasar el mouse */
}

/* Ajuste para que no tape otros elementos en celular */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 30px;
        bottom: 15px;
        right: 15px;
    }
}