/* Estilos Generales */
:root {
    --primary-color: #3d6b35;
    --secondary-color: #8cb369;
    --accent-color: #f4e285;
    --background-color: #2c392e;
    --text-dark: #2b2d42;
    --organic-texture: url('https://www.transparenttextures.com/patterns/asfalt-light.png');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--organic-texture), linear-gradient(to bottom, var(--background-color), #e9f5e1);
    color: var(--text-dark);
}

/* Header y Banner */
.organic-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Ajustar el margen superior del banner */
.organic-banner {
    margin-top: 60px; /* Ajusta este valor según la altura del menú */
    height: 200px; /* Altura del banner */
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #2d5a27, #4a7c3a);
}

.banner-slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.banner-active {
    opacity: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 20px;
}

.banner-title {
    color: #fff;
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.banner-subtitle {
    color: #fff;
    font-size: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}


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

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

/* Estilos para el menú de navegación flotante */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(207, 255, 191); /* Fondo verde suave transparente */
    color: #333; /* Color de texto oscuro para contrastar con el fondo */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Estilos del contenedor del menú */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333; /* Color de texto oscuro */
}

/* Estilos del menú de enlaces (oculto por defecto) */
.nav-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 1000;
    max-height: 80vh; /* Limita el alto al 80% del viewport */
    overflow-y: auto; /* Habilita el scroll vertical */
}
/* Personalización del scroll (opcional) */
.nav-links::-webkit-scrollbar {
    width: 8px; /* Ancho del scroll */
}

.nav-links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2); /* Fondo del track */
}

.nav-links::-webkit-scrollbar-thumb {
    background: #df6707; /* Color del thumb (barra del scroll) */
    border-radius: 4px; /* Bordes redondeados */
}
.nav-links.active {
    display: block;
}

.nav-links li {
    margin-left: 30%;
}

.nav-links li a {
    color: #889289; /* Color de texto oscuro */
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    background-color: rgba(255, 255, 255); /* Fondo semitransparente blanco para los enlaces */
    border-radius: 5px; /* Bordes redondeados */
    font-weight: bold; /* Texto en negrita */
}

.nav-links li a:hover {
    background-color: rgba(207, 255, 191, 1); /* Fondo más sólido al pasar el mouse */
}

/* Estilos del botón hamburguesa (siempre visible) */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333; /* Color de las barras del ícono */
    margin: 4px 0;
}
/* Estilos para el título "SALUD MENTAL:" */
.nav-links .menu-title {
    font-weight: bold; /* Texto en negrita */
    font-size: 1.1rem; /* Tamaño de fuente ligeramente más grande */
    color: #067f16; /* Color de texto oscuro */
    padding: 10px 20px; /* Espaciado similar a los enlaces */
    background-color: rgba(200, 220, 200); /* Fondo verde un poco más oscuro */
    margin-top: 10px; /* Espacio superior para separar del contenido anterior */
    border-radius: 5px; /* Bordes redondeados */
}
/* Estilos para la sección de información */
.info-section {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    text-align: left;
}

.info-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.info-section strong {
    color: var(--secondary-color);
}

/* Estilos para el footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin: 0;
    font-size: 1rem;
}
/* Estilos para el botón de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; /* Color de WhatsApp */
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Asegura que esté por encima de otros elementos */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.whatsapp-button img {
    width: 40px;
    height: 40px;
}

.whatsapp-button:hover {
    background-color: #128c7e; /* Color de WhatsApp al hacer hover */
}
.whatsapp-butt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366; /* Color de WhatsApp */
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Asegura que esté por encima de otros elementos */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

    .whatsapp-butt img {
        width: 60px; /* Ajusta el tamaño según prefieras */
        height: 60px;
    }
    .whatsapp-butt:hover {
    background-color: #ff8000; /* Color de WhatsApp al hacer hover */
}
/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        padding: 8px;
    }

    .whatsapp-button img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        bottom: 10px;
        right: 10px;
        padding: 6px;
    }

    .whatsapp-button img {
        width: 30px;
        height: 30px;
    }
}
/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .info-section h1 {
        font-size: 2rem;
    }

    .info-section p {
        font-size: 1rem;
    }

    .footer {
        padding: 8px 0;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .info-section h1 {
        font-size: 1.8rem;
    }

    .info-section p {
        font-size: 0.9rem;
    }

    .footer {
        padding: 5px 0;
    }

    .footer p {
        font-size: 0.8rem;
    }
}
/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

     .banner-title {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    
    .banner-title {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1.5rem;
    }
}

@media (orientation: portrait) {
    .product-image-container {
        padding-top: 130%;
    }
}
const styles = `
.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 1.1em;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}
`;

// Agregar los estilos al documento
const styleSheet = document.createElement("style");
styleSheet.textContent = styles;
document.head.appendChild(styleSheet);