/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #000;
    line-height: 1.5;
}

/* Header con logo */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px;
    z-index: 1000;
    background: black; /* fondo transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 1.2s ease-in-out;
}

.header.transparent {
    background-color: transparent; /* CUANDO HACES SCROLL */
}

.logo {
    max-width: 190px;
    height: auto;
}

/* Hero slider */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slider {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    height: 100%;
    width: 100%;
    /*object-fit: cover;*/
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0);
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.arrow.left {
    left: 20px;
}

.arrow.right {
    right: 20px;
}

/* Sección de productos */
.productos {
    padding: 50px 20px;
    text-align: center;
}

.productos h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.producto {
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.producto:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.producto img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.producto h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.producto p {
    font-weight: bold;
    margin-bottom: 10px;
}

.producto select {
    margin-bottom: 15px;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
}


/* Botón */
.agregar-carrito {
    background-color: black;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.agregar-carrito:hover {
    background-color: #333;
}

/* WhatsApp flotante */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.whatsapp img {
    width: 75px;
    height: 75px;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    position: relative;
    display: flex;
    justify-content: center; /* Centra el logo */
    align-items: center;
}

.carrito-header {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.carrito-icono {
    width: 28px;
    height: 28px;
  color: white; /* o black si lo usás con fondo claro */
}

.contador-carrito {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: black;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Panel lateral del carrito */
.carrito-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 380px;
    height: 100vh;
    background-color: #fff;
    color: #000;
    z-index: 9999;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carrito-panel.abierto {
    right: 0;
}

.carrito-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ccc;
}

.cerrar-carrito {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.carrito-contenido {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.carrito-footer {
    padding: 20px;
    border-top: 1px solid #ccc;
}

.btn-comprar {
    width: 100%;
    padding: 12px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

/* Fondo oscuro detrás del carrito */
.carrito-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    display: none;
}

.carrito-overlay.activo {
    display: block;
}

.img-carrito {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.item-carrito {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.item-carrito img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.item-carrito div {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.item-carrito h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.item-carrito p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #333;
}

.btn-eliminar {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: red;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

.btn-eliminar:hover {
    color: darkred;
}

.checkout-container {
    max-width: 600px;
    margin: 200px auto 80px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #fdfdfd;
}

.checkout-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.checkout-container label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
}

.checkout-container input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.resumen-carrito {
    margin-top: 30px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.item-resumen {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fila-envio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

#total-pagar {
    text-align: right;
    font-weight: bold;
    margin-top: 20px;
}

a.btn-comprar {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    background-color: black;
    color: white;
    padding: 12px;
    width: 100%;
    border-radius: 6px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

a.btn-comprar:hover {
    background-color: #333;
}

.formulario select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    appearance: none;
}

.fila-envio, .fila-total {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-weight: bold;
}

.select-envio {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .hero {
        height: 60vh; /* o ajustá según lo que veas que queda bien */
    }
}

.stock-disponible {
    display: none;
    margin-top: 5px;
}


.color-select option[disabled] {
    color: #888;
    font-style: italic;
}

.mensaje-estado {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.mensaje-estado h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #000;
}

.mensaje-estado p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #444;
}

.mensaje-estado a {
    background-color: black;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.mensaje-estado a:hover {
    background-color: #333;
}

