/* ============================= */
/* ESTILOS GENERALES */
/* ============================= */
body, .navbar, .footer-custom {
    position: relative; 
    z-index: 1; /* Para asegurarnos de que estos elementos estén por encima del botón de WhatsApp */
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Evita desplazamiento horizontal */
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}
.caritafeliz {
    /* Estilos básicos */
    margin-bottom: 10px;
    border: 3px solid #dee6ef; /* Borde doble azul */
    border-radius: 10px; /* Esquinas redondeadas */
    box-shadow: 0 0 10px rgb(248, 249, 250); /* Sombra azul brillante */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Transición suave */
    filter: brightness(1.1); /* Aumenta el brillo */
    animation: pulse 2s infinite ease-in-out; /* Animación de pulsación */
}

.caritafeliz:hover {
    /* Estilos al pasar el mouse */
    transform: scale(1.1); /* Escala la imagen al pasar el mouse */
    box-shadow: 5px 5px 15px rgba(51, 51, 52, 0.7); /* Sombra más intensa al pasar el mouse */
    filter: contrast(1.2); /* Aumenta el contraste al pasar el mouse */
}

@keyframes pulse {
    /* Animación de pulsación */
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* ============================= */
/* BOTÓN DE WHATSAPP */
/* ============================= */
.whatsapp-container {
    position: fixed;
    margin-left: 10px;
    right: 5px;
    bottom: 20px;
    z-index: 0;
    transform: scale3d(0.9, 0.9, 1);
    transition: transform 0.3s;
}

#testimonios{
    border-radius: 5px;
}

#whatsapp-button {
    width: 80px;
    height: 80px;
    position: relative;
    z-index: 0;
}

.transparent-button {
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

/* ============================= */
/* BARRA DE NAVEGACIÓN */
/* ============================= */
.navbar {
    background: linear-gradient(135deg, #007bff, #00c853) !important;
    padding: 15px 0;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ============================= */
/* ANIMACIONES */
/* ============================= */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================= */
/* ESTILOS PARA LAS TARJETAS DE SERVICIOS */
/* ============================= */
.service-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: white;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card .card-body {
    text-align: center;
    padding: 15px;
}

.service-card .card-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.service-card .card-text {
    font-size: 1rem;
    color: #555;
}

/* ============================= */
/* ESTILOS PARA LA GALERÍA */
/* ============================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-grid img:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* ============================= */
/* BOTONES PERSONALIZADOS */
/* ============================= */
.btn-custom {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease-in-out;
}

.btn-custom:hover {
    background-color: #218838;
}

/* ============================= */
/* SECCIÓN DE BENEFICIOS */
/* ============================= */
.benefits-section {
    text-align: center;
    padding: 50px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Crea tres columnas de igual ancho */
    gap: 2px; /* Espacio entre columnas */
    padding: 20px;
}

.benefit-item {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.benefit-item i {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 10px;
}

.benefit-item h5 {
    font-size: 1.2rem;
    font-weight: bold;
}

/* ============================= */
/* MEDIA QUERIES PARA RESPONSIVIDAD */
/* ============================= */

/* Tablet y pantallas medianas */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card .card-title {
        font-size: 1.1rem;
    }

    .service-card .card-text {
        font-size: 0.95rem;
    }
}

/* Celulares */
@media (max-width: 768px) {
    .gallery-grid, .benefits-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .service-card:hover {
        transform: none;
    }

    .service-card .card-body {
        padding: 10px;
    }

    .service-card .card-title {
        font-size: 1rem;
    }

    .service-card .card-text {
        font-size: 0.9rem;
    }

    .btn-custom {
        padding: 8px 16px;
        font-size: 1rem;
    }
}

/* Mejor ajuste para celulares muy pequeños */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .btn-custom {
        width: 100%;
    }
}

/* Ajustes del botón flotante de WhatsApp en móviles */
.floating-wpp {
    position: fixed;
    width: 65px !important;
    height: 65px !important;
    right: 15px;
    bottom: 15px;
    z-index: 0;
    margin: 0;
    transition: transform 0.3s ease-in-out;
}

.floating-wpp img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .floating-wpp {
        width: 65px !important;
        height: 65px !important;
        right: 15px;
        bottom: 15px;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .floating-wpp {
        width: 55px !important;
        height: 55px !important;
        right: 10px;
        bottom: 10px;
        margin: 10px;
    }
}

@media (min-width: 1200px) {
    .floating-wpp {
        width: 90px !important;
        height: 90px !important;
        right: 25px;
        bottom: 25px;
        margin: 10px;
    }
}

/* Ajuste del tamaño de fuente en el navbar */
@media (max-width: 992px) { /* Tablets */
    .navbar-brand {
        font-size: 1.2rem; /* Ajuste para tablets */
    }
}

@media (max-width: 768px) { /* Celulares medianos */
    .navbar-brand {
        font-size: 1rem; /* Ajuste para celulares medianos */
    }
}

@media (max-width: 576px) { /* Celulares pequeños */
    .navbar-brand {
        font-size: 0.9rem; /* Ajuste para celulares pequeños */
    }
}

@media (max-width: 400px) { /* Celulares muy pequeños */
    .navbar-brand {
        font-size: 0.8rem; /* Ajuste para celulares muy pequeños */
    }
}


/* ============================= */
/* HERO SECTION */
/* ============================= */
.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}



/* Para la página home.html */
.home-page .whatsapp-container {
    position: relative;
    z-index: -1; /* El ícono quedará detrás de los otros elementos */
    margin-top: 20px; /* Ajusta el espacio según sea necesario */
}
