* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    background-color: #fdfaf6; /* Un color crema muy suave */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000; /* Tono tierra/madera */
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #000000;
    margin-left: 30px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #a1887f;
}

/* Menú para celulares */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #5d4037;
    margin: 5px;
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* Se oculta en móviles para usar el JS */
    }
    .burger {
        display: block;
    }
}.hero {
    height: 180vh; /* Ocupa el 180% de la altura de la pantalla */
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('Budafondo.png');
    background-size: cover;      /* Cambiamos 'cover' por 'contain' si querés verla TODA */
    background-repeat: no-repeat; /* ¡ESTA es la clave para que no se triplique! */
    background-position: center; /* Centra la imagen */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px; /* Al agregar espacio abajo, empujamos el texto hacia arriba */
    overflow: hidden; /* Para que nada se escape por abajo */
    margin-top: -100px; /* Probá con -150 o -200. Cuanto más alto sea el número negativo, más sube */
}

.hero-content h1 {
    font-size: 2.8rem;
    color: #000000;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 30px;
}

.btn-principal {
    display: inline-block;
    padding: 15px 30px;
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 50px; /* Bordes redondeados para que sea más suave */
    transition: background 0.3s;
}

.btn-principal:hover {
    background-color: #8d6e63;
}
.whatsapp-btn {
    position: fixed;
    bottom: 30px; /* Distancia del borde inferior */
    right: 30px;  /* Distancia del borde derecho */
    background-color: #25d366; /* El verde oficial de WhatsApp */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000; /* Para que siempre esté por encima de todo */
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1); /* Crece un poquito cuando pasás el mouse */
    background-color: #128c7e; /* Un verde más oscuro al tocarlo */
    color: white;
}
.productos {
    padding: 80px 10%;
    background-color: #fdfaf6; /* El mismo crema suave de la web */
    min-height: 100vh; /* Asegura que ocupe toda la pantalla de alto */
}

.titulo-seccion {
    font-size: 2.5rem;
    color: #5d4037;
    margin-bottom: 40px;
}

.contenedor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Espacio entre las tarjetas */
}

.tarjeta {
    background: #fdfaf6;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.tarjeta:hover {
    transform: translateY(-10px); /* Sube un poquito al pasar el mouse */
}

.tarjeta img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Para que todas las fotos midan igual sin deformarse */
}

.info {
    padding: 20px;
}

.info h3 {
    color: #5d4037;
    margin-bottom: 10px;
}

.info p {
    color: #8d6e63;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.precio {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #4e342e;
    margin-bottom: 15px;
}

.btn-comprar {
    display: block;
    background-color: #5d4037;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-comprar:hover {
    background-color: #8d6e63;
}
.oculto {
    display: none; /* Esto hace que desaparezca por completo */
}

.mostrar {
    display: block; /* Esto lo vuelve a mostrar */
    animation: aparecer 0.5s ease; /* Un efectito suave */
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Estilo para que la tarjeta sea solo foto y nombre */
.click-mas {
    font-size: 0.8rem;
    color: #a1887f;
    font-style: italic;
}

/* LA VENTANA EMERGENTE (MODAL) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    
    /* ESTO PERMITE EL SCROLL SI EL CONTENIDO ES LARGO */
    overflow-y: auto; 
}

.modal-contenido {
    background-color: #fff;
    margin: 5% auto; /* Bajamos un poco el margen superior */
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    
    /* PARA QUE NO SE CORTE EN PANTALLAS CHICAS */
    margin-bottom: 50px; 
}
/* Ajuste para la imagen dentro del modal */
#modal-img {
    width: 100%;
    height: auto;
    max-height: 400px; /* Evita que la foto ocupe toda la pantalla */
    object-fit: contain;
    border-radius: 10px;
}
.cerrar {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #5d4037;
}

.modal-contenido img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}
.carrito-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
}

#contador-carrito {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e67e22;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.carrito-panel {
    position: fixed;
    right: -100%; /* Oculto a la derecha */
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: 0.4s;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.carrito-panel.abierto {
    right: 0;
}

.item-carrito {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.item-carrito img { border-radius: 5px; }

.carrito-footer {
    margin-top: auto;
    border-top: 2px solid #eee;
    padding-top: 20px;
}
.selector-cantidad {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.selector-cantidad input {
    width: 50px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.controles-cantidad {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.controles-cantidad button {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 8px;
    cursor: pointer;
}

.controles-cantidad button:hover {
    background: #e67e22;
    color: white;
}

.btn-eliminar {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
}
.frase-mayorista {
    text-align: center;   /* Centra el texto */
    margin-top: 10px;      /* Espacio con el título "Nuestros Budas" */
    margin-bottom: 40px;   /* Espacio con las fotos de los productos */
    font-size: 1.1rem;     /* Un poquito más grande */
    color: #e67e22;        /* El naranja que venimos usando para resaltar */
    font-weight: bold;     /* Negrita para que se vea bien */
}
#carrito-total {
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin-top: 5px;
}