/* Configuración General */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}


body { 
    font-family: 'Quicksand', sans-serif !important; 
    line-height: 1.6; 
    background-color: #f9f9f9; 
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}


main { 
    flex: 1; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    width: 100%; 
}

/* Encabezado */
.main-header { 
    background-color: #002d40; 
    color: #FFBF00; 
    padding: 1rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 10px;
}

.logo h1, .main-header h1 { 
    font-family: 'Fredoka', cursive !important; 
    font-weight: 600;
}

.main-nav ul { 
    list-style: none; 
    display: flex; 
    gap: 20px; 
}

.main-nav ul li a { 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
}

.main-nav ul li a:hover { 
    color: #FFBF00; 
}

/* Hero Section */
.hero { 
    background-color: #6b8e23; 
    color: white; 
    text-align: center; 
    padding: 60px 20px; 
}

.hero h2 { 
    font-family: 'Fredoka', cursive !important; 
    font-size: 2.5rem;
}

/* Grilla de Productos */
.section-title { 
    font-family: 'Fredoka', cursive !important; 
    margin: 40px 0 20px; 
    text-align: center; 
    color: #002d40; 
    font-size: 2rem;
}

.product-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
}

.product-card { 
    background: white; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    width: 280px; 
    max-width: 100%; 
    overflow: hidden; 
    transition: transform 0.3s; 
    padding-bottom: 15px; 
    display: flex;
    flex-direction: column;
}

.product-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.product-image { 
    background-color: #eee; 
    height: 200px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.product-image img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain;
}

.product-info { 
    padding: 15px; 
    text-align: center; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h4 { 
    font-weight: 700; 
    color: #002d40; 
    margin-bottom: 10px;
}

.price { 
    display: block; 
    font-family: 'Fredoka', cursive !important; 
    font-size: 1.3rem; 
    font-weight: bold; 
    color: #b22222; 
    margin: 10px 0; 
}

.btn-add { 
    font-family: 'Quicksand', sans-serif;
    background-color: #FFBF00; 
    color: #002d40; 
    border: none; 
    padding: 10px 15px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
    width: 100%; 
    align-self: center;
}

/* Carrusel (Index) */
/* Contenedor principal del carrusel para posicionar flechas */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Estilo de los botones/flechas */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 45, 64, 0.7); /* Azul oscuro con transparencia */
    color: #FFBF00;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background-color: #002d40;
}

.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }

/* Ajuste del contenedor de scroll */
.carousel-container {
    width: 100%;
    overflow-x: auto; /* Permite scroll manual */
    scroll-behavior: smooth; /* Desplazamiento fluido */
    padding: 20px 0;
}

/* la barra de scroll*/
.carousel-container::-webkit-scrollbar {
    height: 8px;
}
.carousel-container::-webkit-scrollbar-thumb {
    background: #FFBF00;
    border-radius: 10px;
}
.carousel-container::-webkit-scrollbar-track {
    background: #eee;
}

.product-grid.carousel { 
    display: flex; 
    flex-wrap: nowrap; /* No envuelve para que sea horizontal */
    justify-content: flex-start; 
    gap: 20px; 
    padding: 0 10px; 
}

.product-grid.carousel .product-card { 
    flex: 0 0 280px; /* Tamaño fijo para el carrusel */
}

/* Formulario de Contacto */
.contact-section { 
    max-width: 600px; 
    margin: 40px auto; 
    background: white; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group input, .form-group textarea { 
    font-family: 'Quicksand', sans-serif; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    width: 100%;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.main-footer { 
    background-color: #002d40; 
    color: white; 
    text-align: center; 
    padding: 20px; 
    margin-top: 40px; 
    width: 100%;
}

.main-footer a { 
    color: #FFBF00; 
    text-decoration: none; 
    font-weight: bold; 
}

/* Media Query para pantallas pequeñas */
@media (max-width: 480px) {
    .main-header {
        justify-content: center;
        text-align: center;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
}