body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    background:url("yogurt_envase.jpeg") no-repeat center center fixed;
    background-size: cover;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
}

section {
    padding: 50px 20px;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    color: #131313;
    margin-bottom: 40px;
}

.product-grid, .benefit-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-card, .benefit-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-basis: 30%;
    min-width: 250px;
    text-align: left;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3, .benefit-card h3 {
    color: #333;
}

/* Estilos para el chatbot */
.chatbot-container {
    background-color: #e9e9e9;
    padding: 50px 20px;
}

.chatbot-box {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-log {
    flex-grow: 1;
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.bot-message {
    background-color: #e0e0e0;
    align-self: flex-start;
}

.user-message {
    background-color: #DCF8C6;
    align-self: flex-end;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
}

#user-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-right: 10px;
}

#send-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

/* Definición de la animación */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicación de la animación a las tarjetas de productos */
.product-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-basis: 30%;
    min-width: 250px;
    text-align: left;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Retrasos para que aparezcan una tras otra */
.product-card:nth-child(1) {
    animation-delay: 0.2s;
}
.product-card:nth-child(2) {
    animation-delay: 0.4s;
}
.product-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* Aplicación de la animación a las tarjetas de beneficios */
.benefit-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-basis: 30%;
    min-width: 250px;
    text-align: left;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.benefit-card:nth-child(1) {
    animation-delay: 0.8s;
}
.benefit-card:nth-child(2) {
    animation-delay: 1s;
}
.benefit-card:nth-child(3) {
    animation-delay: 1.2s;
}