


:root {
    --hospital-white: #f8f9fa;
    --medical-blue: #e3f2fd;
    --steel-gray: #16263e;
    --robot-accent: #00b28f;
    --surgical-red: #e53935;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
 --primary-color: #00b28f; /* Añade esta línea */
    --primary-dark: #008c6f; /* Añade esta línea */
    --primary-light: #00d4a7; /* Añade esta línea */
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15); /* Añade esta línea */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--hospital-white);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* TODOS LOS TITULOS*/

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--steel-gray);
    position: relative;
}


/* HEADER - NAVBAR */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.nav.scrolled {
    padding: 0.8rem 2rem;
    background: rgba(248, 249, 250);
}

.logo {
    height: 80px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--steel-gray);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--robot-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


/* MENÚ HAMBURGUESA*/

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--steel-gray);
    margin: 5px 0;
    transition: all 0.3s ease;
}
/* HERO SECTION */
.hero {
    padding-bottom: 5rem;
    text-align: center;
    min-height: 50vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: white;

}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
}

.hero-image-container {
    width: 25%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hero-main-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-scroll-container {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.hero-scroll-image {
    max-width: 100%;
    height: auto;
}

/* Estilos existentes que puedes mantener */
.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #00b28f;
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--robot-accent);
}

.hero-text {
    max-width: 700px;
    margin: 0 auto;
    color: var(--steel-gray);
    font-size: 1.1rem;
}


/* CARROUSEL SECTION - VERSIÓN CORREGIDA */

.carousel-section{
    margin: 8rem auto;
    padding: 2rem 2rem;
}


.carousel {
    position: relative;
    margin: 0 auto;
    max-width: 900px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-img-container {
    width: 100%;
    height: 400px; /* Altura fija para el contenedor */
    overflow: hidden;
    display: flex;
    align-items: center; /* Centra verticalmente la imagen */
    justify-content: center; /* Centra horizontalmente la imagen */
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Cambiado de 'cover' a 'contain' para evitar recortes */
    display: block;
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.8);
    color: var(--steel-gray);
    padding: 1.5rem;
    text-align: center;
    width: 100%;
}


/* Los estilos de controles e indicadores se mantienen igual */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--steel-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--medical-blue);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--robot-accent);
    transform: scale(1.2);
}

.contact-link {
    color: var(--robot-accent); /* Cambié a un color más visible */
    text-decoration: underline;
}


/* PRODUCT CARDS SECTION */
.products-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(227, 242, 253, 0.3) 0%, rgba(248, 249, 250, 0.8) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--steel-gray);
}

.product-desc {
    color: var(--steel-gray);
    font-size: 0.9rem;
}

/* MODAL */

/* Estilos para el botón de información nutricional */
.nutrition-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto; /* Esto lo alinea a la derecha */
}

.nutrition-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Estilos para el modal */


.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    
}

.product-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--steel-gray);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0;
}

.nutrition-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--steel-gray);
}

.modal-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.table-container {
    overflow-x: auto;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.nutrition-table th, 
.nutrition-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.nutrition-table th {
    background-color: var(--primary-light);
    color: white;
}

.nutrition-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Estilos para las filas de sección en la tabla nutricional */
.nutrition-table th.section-header, .nutrition-table tr.table-header {
    background-color: var(--primary-light);
    color: white;
    font-weight: 600;
 
    letter-spacing: 0.5px;
}

.nutrition-table tr.section-divider {
    border-top: 2px solid var(--primary-color);
}

/* Ajustes para las celdas de minerales */




/* CONTACT SECTION */


.contact-section {
    padding: 5rem 2rem;
    background: white;
}

.contact-grid {
    display: flex;
    justify-content: center;
   
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    background: var(--hospital-white);
    border-radius: 8px;
    transition: all 0.3s;
    min-width: 270px; 
    max-width: 350px;
    margin: 10px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    max-height: 2.5rem;
    color: var(--robot-accent);
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--steel-gray);
}

.contact-info {
    color: var(--steel-gray);
    font-size: 0.9rem;
}

/* FOOTER */
.footer {
    background: var(--steel-gray);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-text {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hero {
        padding: 6rem 1rem 4rem;
        min-height: 50vh;
        margin: 5rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    .hero-main-image{
        height: 10rem;
        margin: 0;
        max-width: none;
    }
    
    .carousel-img {
        height: 300px;
    }

}




/*ESTILOS RESPONSIVE */


@media (max-width:850px){
    .contact-grid{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hamburger-btn {
        display: block;
        order: 2; /* Coloca el botón a la derecha */
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-sm);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px; /* Espacio para el navbar */
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Asegurar que el logo no se superponga */
    .logo {
        height: 60px;
        z-index: 1001;
    }
    
    /* Efecto overlay cuando el menú está abierto */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        pointer-events: auto;
    }
    
    /* Ajustar el navbar en mobile */
    .nav {
        padding: 1rem;
        justify-content: space-between;
    }
    .product-title {
        margin: 0.5rem;
    }
}

/* Estilos responsive */
@media (max-width: 768px) {

    .carousel-section{
        margin: 8rem 1rem 2rem;
        padding: 0;
    }
    .carousel-img-container {
        height: 300px; /* Altura menor en móviles */
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h3 {
        font-size: 1rem;
    }
    .hero{
        margin: 0;
        padding:0;
    }

    .modal-content{
        padding: 0;
        width: 95%;
        font-size: smaller;
    }

    
}

