body {
    font-family: Arial, sans-serif;
    color: #333;
}

/* Fondo de Partículas */
#particles-js {
    background-color: #002b5c; /* Color de fondo base para que coincida con las partículas */
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Asegurarse de que el contenido principal tenga un fondo para que no se vean las partículas donde no se desea */
.section-light, .bg-white {
    background-color: #f0f7ff; /* Un color claro que combine */
}

/* Header and Navigation */
.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.navbar .nav-link {
    font-weight: 500;
    color: #495057 !important;
    transition: color 0.3s;
}

.navbar .nav-link:hover {
    color: #007bff !important;
}

/* Hero Section */
.hero {
    position: relative; /* Para que el contenido esté sobre las partículas */
    z-index: 1;
    background-color: transparent; /* Hacemos el hero transparente para ver las partículas */
    padding: 6rem 0;
}

.hero-logo {
    max-width: 180px;
    height: auto;
    animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
    }
}
/* Blog Section - Reemplazado con Bootstrap Carousel */
#blogCarousel {
    width: 100%;
}

.blog-entry {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
}

.blog-entry img {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    width: 100%; /* Las imágenes se ajustan al ancho de su contenedor */
    height: 200px; /* Altura ajustada para mejor proporción */
    object-fit: contain; /* Muestra la imagen completa sin cortar */
}

/* Sections */
.section {
    transition: background-color 0.5s ease-in-out;
}

.section-light {
    color: #333;
}

.section-dark {
    background-color: #004d99;
    color: #fff;
}

/* h2 y p en secciones oscuras son blancos para ser visibles */
.section-dark h2,
.section-dark p {
    color: #fff;
}

/* Benefit Items (Cómo se usa y Beneficios) */
.benefit-item {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.benefit-item i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Párrafos dentro de los benefit-item con color oscuro */
.benefit-item p {
    color: #333;
}

/* Modals */
.modal-header i {
    font-size: 1.5rem;
    color: #007bff;
    margin-right: 0.5rem;
}

/* Contact Form */
.appointment-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Labels del formulario de contacto con color oscuro */
.appointment-form .form-label,
.appointment-form h3,
.appointment-form p {
    color: #333;
}

.appointment-form .btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.appointment-form .btn:hover {
    background-color: #0056b3;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.whatsapp-btn:hover {
    color: #fff;
    background-color: #128c7e;
}

/* Footer */
footer {
    background-color: #212529 !important;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.social-icons a {
    text-decoration: none;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: inline-block;
}

.social-icons a:hover {
    color: #00aaff !important; /* Un azul brillante que destaca en el fondo oscuro */
    transform: scale(1.2);
}

/* Product Gallery Link Wrapper */
.product-gallery-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
}
.product-gallery-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 77, 153, 0.2);
}

/* Product Gallery Item */
.product-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    height: 250px; /* Fixed height */
}
.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
}
.product-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 43, 92, 0.85) 0%, transparent 100%);
    padding: 2rem 1rem 0.75rem 1rem;
    text-align: center;
}
.product-gallery-name {
    color: #fff;
    font-weight: 500;
}

/* Animaciones de Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform; /* Optimización para el navegador */
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}