/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #E6E0D2;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Nuevo estilo para seccion alterna */
.bg-alternate {
    background-color: #F2EAE4;
}

/* Encabezado y Navegación */
header {
    display: flex;
    flex-direction: column; /* Apila el logo y el menú verticalmente */
    align-items: center; /* Centra los elementos horizontalmente */
    padding: 20px;
    position: sticky;
    top: 0;
    background-color: #E6E0D2;
    z-index: 1000;
}

.logo-img {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px; /* Espacio entre el logo y el menú */
}
 
/* Menú de navegación */
.navbar {
    display: flex;
    justify-content: center; /* Centra los enlaces horizontalmente */
    flex-wrap: wrap; /* Permite que los enlaces se envuelvan en pantallas pequeñas */
}

.navbar a {
    font-size: 0.9em;
    color: #333;
    text-decoration: none;
    margin: 0 15px;
    padding: 5px 0;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #795548;
				  
				  
				   
							
}

/* Contenedor del ícono de carrito */
.cart-icon-container {
    position: absolute;
    top: 25px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
}

.cart-icon-container svg {
    width: 30px;
    height: 30px;
    fill: #5d4037;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #795548;
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 50%;
    padding: 3px 7px;
}
 
/* Sección Principal (Hero) */
.hero-section {
																													   
			 
			  
					
						
    text-align: center;
    padding: 80px 20px;
				   
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    color: #5d4037;
    margin-bottom: 20px;
			
			 
								 
}

.hero-text p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 5px;
    margin-top: 40px;
}

/* Secciones de Contenido */
.content-section {
    padding: 60px 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
				   
    text-align: center;
    color: #795548;
    margin-bottom: 40px;
									   
}

.subtitle-text {
	text-align: center;
	font-size: 1.1em;
	color: #555;
	margin-bottom: 40px;
}
 
/* FIX: Evita que el encabezado superponga la sección de destino */
#tienda, #combinaciones, #disena-tu-funda, #diario, #acerca-de, #contacto, #recomendador {
    scroll-margin-top: 200px; /* Ajusta este valor si el encabezado cambia de tamaño */
}

/* Cuadrícula de Productos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

/* Estilos del contenedor de la tarjeta */
.product-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estilo del contenedor de la imagen */
.product-img-container {
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-card img {
    width: 100%;
    height: auto;
    display: block;
										  
    transition: transform 0.5s ease;
}

/* Efecto de zoom al pasar el cursor */
.product-card:hover img {
    transform: scale(1.1);
										   
}

.product-card h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #5d4037;
}

.product-card p {
    font-size: 1em;
				   
    color: #666;
}
 
/* Contenedor de precios en la tarjeta principal */
.price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
 
/* Estilos para el precio */
.price {
    font-weight: bold;
    color: #795548;
}
 
/* Estilo para el precio tachado */
.old-price {
    font-size: 0.9em;
    color: #999;
    text-decoration: line-through;
}
 
/* Estilo del botón de "Añadir al carrito" */
.btn-buy {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #795548;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    background-color: #5d4037;
				   
}
 
/* Nuevo estilo para el botón de "Ver detalles" */
.btn-details {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #5d4037;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-details:hover {
    background-color: #795548;
					
				 
										  
				   
				
						   
}

.btn-view-all {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 30px;
    background-color: #5d4037;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-view-all:hover {
    background-color: #795548;
				  
}
 
/* Nueva sección del recomendador AI */
.recommender-section {
    padding: 60px 20px;
    text-align: center;
}

.recommender-section input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 400px;
    margin-bottom: 20px;
    font-size: 1em;
}

.recommender-section button {
    padding: 10px 20px;
    background-color: #795548;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.recommender-section button:hover {
		
									 
								   
							   
		
	   
			
			 
						   
    background-color: #5d4037;
				  
}

#recommendation-result {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
		   
				 
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: none; /* Oculto por defecto */
}

#recommendation-result h4 {
    font-family: 'Playfair Display', serif;
    color: #5d4037;
    margin-top: 0;
}

#recommendation-result p {
    margin-bottom: 0;
}

/* Nueva cuadrícula para la sección de Combinaciones */
.combination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
				
}

.combination-item {
    text-align: center;
}

.combination-item img {
    width: 100%;
    height: 200px; /* Altura fija para el contenedor circular */
    object-fit: cover; /* Para que la imagen no se estire */
    border-radius: 50%;
    margin-bottom: 10px;
}

.combination-item p {
    font-size: 1em;
    color: #555;
    font-style: italic;
}

/* Sección de Blog/Diario */
.journal-entry {
    text-align: left;
    margin-bottom: 30px;
}

.journal-entry h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: #5d4037;
    margin-bottom: 5px;
}

.journal-entry p {
				
    color: #666;
				 
}

.journal-entry a {
    color: #795548;
    text-decoration: none;
    font-weight: bold;
}

.journal-entry a:hover {
    text-decoration: underline;
			   
					  
}

/* Pie de página */
footer {
    text-align: center;
			
    padding: 50px 0;
    background-color: #5d4037;
    color: #fff;
}

footer .logo {
    color: #fff;
}

.social-links a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2em;
}

/* Enlaces del pie de página */
.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Estilos para el mensaje del carrito */
.cart-message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #5d4037;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cart-message-container.show {
    opacity: 1;
    visibility: visible;
}

/* Estilos para el modal del carrito */
.cart-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
    justify-content: center;
    align-items: center;
}

.cart-modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.cart-modal-content h3 {
    margin-top: 0;
    color: #5d4037;
}

.cart-items-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    font-size: 1.2em;
    font-weight: bold;
    text-align: right;
    border-top: 2px solid #5d4037;
    padding-top: 10px;
}

.btn-whatsapp {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #25d366; /* Color de WhatsApp */
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

/* Estilo para el botón deshabilitado */
.btn-whatsapp:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Estilo para el nuevo botón en la sección Hero */
.btn-recommender {
	display: inline-block;
	margin-top: 30px;
	padding: 15px 30px;
	background-color: #795548;
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	border-radius: 50px;
	transition: background-color 0.3s, transform 0.2s;
}
.btn-recommender:hover {
	background-color: #5d4037;
	transform: translateY(-2px);
}

/* Estilo para el selector de aroma */
.aroma-select {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
 
/* Estilo para el botón de borrar en el carrito */
.remove-item-btn {
    background: none;
    border: none;
    color: #f00;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 10px;
    transition: transform 0.2s ease;
}

.remove-item-btn:hover {
    transform: scale(1.1);
}

.item-info-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1; /* Para que ocupe el espacio disponible */
}

/* Estilos para el modal del producto (nuevo) */
.product-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Fondo más suave */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.product-modal-content {
    background-color: #F2EAE4; /* Fondo suave para el modal */
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    /* Nuevos estilos para el scroll */
    max-height: 90vh; /* Máximo 90% de la altura de la ventana */
    overflow-y: auto; /* Habilitar scroll vertical */
}

.product-modal-info h3 {
    font-family: 'Playfair Display', serif;
    color: #5d4037;
    margin-top: 0;
}

.product-modal-info h4 {
    font-size: 1.1em;
    color: #795548;
    margin-top: 20px;
    margin-bottom: 5px;
}

/* Estilos para los precios en el modal */
.modal-price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-old-price {
    font-size: 1.1em;
    color: #999;
    text-decoration: line-through;
}

.modal-new-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #795548;
}

/* Estilos del acordeón */
.accordion-item {
    border-bottom: 1px solid #d2c8be;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
}

.accordion-header h4 {
    margin: 0;
    color: #5d4037;
}

.accordion-icon {
    font-size: 1.5em;
    color: #795548;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding-bottom: 0;
}

.accordion-item.active .accordion-content {
    max-height: 500px; /* Suficiente para la mayoría del contenido */
    padding-bottom: 15px;
}

.accordion-content ul {
    list-style-type: '🌱 ';
    padding-left: 20px;
    margin: 0;
}

.accordion-content li {
    margin-bottom: 5px;
}

.accordion-content p {
    margin-bottom: 10px;
}

/* Nuevo estilo para las listas de instrucciones */
.instructions-list {
    list-style-type: none; /* Quitar viñetas predeterminadas */
    padding-left: 0;
    margin-top: 10px;
    counter-reset: step-counter; /* Esta es la corrección clave */
}

/* Sección de Propiedades (Nuevo Diseño) */
.ingredient-section {
	padding: 50px 20px;
}
.ingredient-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	margin-bottom: 60px;
	background-color: #fff;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.ingredient-row.reverse-row {
	flex-direction: column;
}
@media (min-width: 768px) {
	.ingredient-row {
		flex-direction: row;
		text-align: left;
	}
	.ingredient-row.reverse-row {
		flex-direction: row-reverse;
	}
}
.ingredient-row img {
	width: 100%;
	max-width: 400px;
	height: auto;
	border-radius: 10px;
	object-fit: cover;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.ingredient-content {
	padding: 20px;
	max-width: 600px;
}
.ingredient-content h3 {
	font-family: 'Playfair Display', serif;
	color: #5A4033;
	font-size: 2.0em;
	margin-top: 0;
	margin-bottom: 15px;
}
.ingredient-content p {
	font-size: 1.1em;
	line-height: 1.6;
	color: #555;
}


.instructions-list li {
    position: relative;
    padding-left: 25px; /* Espacio para el número */
    margin-bottom: 10px;
}

.instructions-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background-color: #795548;
    color: #fff;
    font-weight: bold;
    font-size: 0.8em;
}

.instructions-list .step-title {
    font-weight: bold;
    color: #5d4037;
}

.instructions-list .step-detail {
    display: block;
    font-size: 0.9em;
    color: #555;
    margin-top: 3px;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .navbar a {
        margin: 0 10px;
    }
    .hero-section {
        padding: 50px 20px;
    }
    .hero-text h1 {
        font-size: 2.5em;
    }
    .section-title {
        font-size: 1.