
:root {
    --green-brand: #2d5a3a; /* El verde oscuro de Vitalsinú */
    --text-color: #4a4a4a;
    --header-height-large: 90px;
    --header-height-small: 60px;

    --primary-green: #4a7c2c;
    --light-green: #68a33f;
    --dark-text: #333;
    --bg-light: #f9f7f2;
    --white: #ffffff;

    --green-vitalsinu: #4c8c04; /* Verde brillante de los botones */
    --dark-green: #2d5a3a;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'MuseoSansRounded300', sans-serif;
    background-color: var(--bg-light);
    color: var(--dark-text);
    padding-top: var(--header-height-large);
    letter-spacing: -0.03em;
}

h2 {
    font-family: 'MuseoSansRounded500';
}

/* Navbar */
.main-header {
    width: 100%;
    height: var(--header-height-large);
    background-color: #f7f3f0;
    background-image: url("paper-back.png");
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    
    /* CAMBIOS PARA EL SCROLL */
    position: fixed;      /* Se mantiene fijo en la pantalla */
    top: 0;
    left: 0;
    z-index: 1000;        /* Asegura que esté por encima de todo */
    transition: all 0.4s ease; /* Transición suave para la altura y sombra */
}

/* Clase que se activará con JavaScript al hacer scroll */
.main-header.shrink {
    height: var(--header-height-small);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Sombra más pronunciada al reducirse */
    background-color: rgba(248, 245, 241, 0.95); /* Opcional: un poco de transparencia */
}

.header-container {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilo del Logo */
.logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--green-brand);
    letter-spacing: -1px;
    cursor: pointer;
}

/* Navegación */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

/* Iconos */
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    padding: 0;
    transition: transform 0.2s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
    color: var(--green-brand);
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 18px;
    padding: 5px 0;
    /* Posición relativa necesaria para que el ::after se posicione respecto al link */
    position: relative; 
    transition: color 0.3s ease;
}

/* Creación del subrayado invisible */
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Espacio entre el texto y la línea */
    width: 0;      /* Empieza en cero para la animación */
    height: 3px;
    background-color: var(--green-brand);
    /* AQUÍ LA TRANSICIÓN SOLICITADA */
    transition: width 0.3s ease;
}

/* Estado al hacer Hover: el ancho crece al 100% */
.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--green-brand);
}

/* Mantener el estado activo fijo para la página actual */
.nav-menu a.active::after {
    width: 100%;
}


/* Banner Section */
.banner {
    width: 100%;
    min-height: 450px;
    /* Reemplazar con la ruta de tu imagen local */
    background: linear-gradient(to right, rgba(0,0,0,0.5) 20%, transparent 80%), 
                url('desayuno.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 20px 0;
}

.banner-container {
    width: 90%;
    margin: 0 auto;
}

.banner-content {
    max-width: 700px;
}

.banner-content h1 {
    font-size: 2.3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.banner-features {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.banner-features li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.check {
    color: var(--green-vitalsinu);
    font-weight: bold;
    margin-right: 12px;
}

/* Botones */
.banner-actions {
    display: flex;
    gap: 20px;
}

.btn-buy {
    /* El degradado va de un verde lima a un verde bosque */
    background: linear-gradient(to bottom, #76b82a 0%, #2b4d06 100%);
    border: none;
    color: white;
    padding: 15px 35px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    /* Sombra sutil para dar profundidad */
    transition: filter 0.3s ease;
    text-decoration-line: none;
    box-shadow: -3px 3px 10px rgba(0,0,0,0.4);
}

.btn-buy:hover {
    filter: brightness(1.1);
    box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.7);
}

.btn-whatsapp {
    background-color: #e9e9e9;
    background-color: var(--white);
    color: #333;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: -3px 3px 10px rgba(0,0,0,0.4);
}

.btn-whatsapp:hover {
    background-color: #ffffff;
    box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.7);
}


/* Cards Section */
.categories {
    padding: 30px 5%;
    text-align: center;
}

.highlight {
    color: var(--primary-green);
}

.card-container {
    padding: 10px 0;
    display: flex;
    /* Permite el salto de línea */
    flex-wrap: wrap; 
    gap: 20px;
    justify-content: flex-start; /* Alinea al inicio de la fila */
}

.card {
    /* Calculamos el ancho: (100% / 6 tarjetas) - (espacio del gap).
       Usamos calc() para que sea exacto.
    */
    flex: 0 1 calc((100% / 4) - 20px); 
    min-width: 150px; /* Evita que se encojan demasiado */
    box-sizing: border-box;
    box-shadow: -5px 8px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding-bottom: 10px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Efecto de levante al pasar el mouse */
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.btn-card {
    /* El degradado va de un verde lima a un verde bosque */
    background: linear-gradient(to bottom, #76b82a 0%, #2b4d06 100%);
    border: none;
    color: white;
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    /* Sombra sutil para dar profundidad */
    transition: filter 0.3s ease;
    text-decoration-line: none;
    box-shadow: -3px 3px 10px rgba(0,0,0,0.4);
}

/* Features */
.favorites-section {
    padding: 20px 5%;
    text-align: center;
}

.favorites-container {
    padding: 20px 0;
    display: flex;
    /* Permite el salto de línea */
    flex-wrap: wrap; 
    gap: 20px;
    justify-content: flex-start; /* Alinea al inicio de la fila */
}

.favorite-item {
    flex: 0 1 calc((100% / 4) - 20px);
    min-width: 150px;
}

/* Línea divisoria sutil entre elementos */
.favorite-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #e0e0e0; /* Gris muy tenue como en la imagen */
}


.favorite-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.favorite-label {
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

/* Advice banner */
.advice-parallax-banner {
    width: 100%;
    min-height: 450px;
    position: relative;
    /* Implementación del efecto Paralaje */
    background-image: url('cerealesYpasto.png'); /* */
    background-attachment: fixed; /* Clave para el efecto paralaje */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 50px 0;
    overflow: hidden;
}

/* Oscurecemos un poco el fondo para resaltar el texto blanco del prototipo */
.parallax-overlay {
    background: rgba(0, 0, 0, 0.3); /* */
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.advice-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.advice-text-content {
    text-align: center;
    flex: 1;
    color: white;
    padding-left: 50px;
}

.parallax-title {
    font-family: 'Quicksand', sans-serif; /* */
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.parallax-subtitle {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 500;
}


.advice-products-showcase {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.floating-products {
    max-width: 400px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
    animation: float 4s ease-in-out infinite;
}

/* Animación sutil de levitación para los productos */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Ajuste para dispositivos móviles (el paralaje fixed suele desactivarse en móvil por rendimiento) */
@media (max-width: 768px) {
    .advice-parallax-banner {
        background-attachment: scroll;
    }
    .advice-flex {
        flex-direction: column;
        text-align: center;
    }
    .advice-text-content {
        padding: 40px 20px;
    }
}



/* Responsivo para tablets/móviles */
@media (max-width: 768px) {
    .advice-container {
        flex-direction: column;
        text-align: center;
    }
    .advice-content {
        text-align: center;
    }
}

/* Estilos para la sección de confianza */
.store-banner {
    width: 100%;
    max-width: 1100px;
    height: 250px;
    margin: 0 auto;
    border-radius: 15px;
    background-image: url('estante.png'); /* Imagen de la tienda */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.store-overlay {
    position: absolute;
    bottom: 35%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4); /* Capa oscura para legibilidad */
    padding: 20px;
    color: white;
}

.store-overlay h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* Estilos del Footer */
.main-footer {
    width: 100%;
    padding: 30px 0;
    /* Fondo con textura de papel y color crema sutil */
    background-color: #f8f5f1;
    background-image: url("paper-back.png");
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilo de los enlaces */
.footer-links {
    margin: 0 5%;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4a4a4a;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2d5a3a; /* Cambio al verde de la marca */
}

.footer-divider {
    margin: 0 10px;
    color: #888;
}

/* Estilo de Redes Sociales */
.footer-socials {
    margin: 0 5%;
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #3b4b5a; /* Color gris azulado oscuro de la imagen */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    /* Efecto difuminado sutil en la sombra */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
    background-color: #2d5a3a;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}