/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f1f0ee;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #2f3f2f;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #2f3f2f !important;
    background-color: rgba(47, 63, 47, 0.08) !important;
}

nav ul li a:hover::after {
    width: 60%;
}

.hero {
    width: 100%;
    height: 45vh;        /* 👈 más bajo */
    min-height: 320px;   /* asegura que no se aplaste */
    background-image: url('../img/banner.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}


.productos-destacados {
    padding: 120px 50px 50px 50px !important;
    text-align: center;
}

.productos-destacados h2 {
    margin-top: 80px !important;
    margin-bottom: 80px !important;
}


.grid-productos {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.producto {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.producto:hover {
    transform: translateY(-5px);
}

.producto img {
    width: 100%;
    border-radius: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    margin-top: 50px;
}

/* MODALES */
.modal {
    display: none; /* oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* fondo semitransparente */
}

.modal-content {
    background-color: #fff;
    margin: 80px auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
}

.modal-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.modal-content button {
    padding: 10px 25px;
    background-color: #ff4081;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-content button:hover {
    background-color: #e63670;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ff4081;
}

/* =========================
   Botón Ver Detalles - ALIA
   ========================= */

:root {
    --alia-green: #2f3f2f;
}

.btn-ver-detalles {
    display: block;
    margin-top: 15px;
    padding: 12px 0;
    text-align: center;

    border: 1.5px solid var(--alia-green);
    color: var(--alia-green);
    background: transparent;

    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;

    transition: all 0.3s ease;
}

.btn-ver-detalles:hover {
    background: var(--alia-green);
    color: #fff;
}


/* =========================
   Página Detalle Producto
   ========================= */

.producto-detalle {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 40px;
    display: flex;
    gap: 60px;
}

.producto-img img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
}

.producto-info {
    max-width: 400px;
}

.producto-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.precio {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.descripcion {
    margin-bottom: 25px;
    line-height: 1.6;
}

.producto-info label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.producto-info select {
    width: 100%;
    padding: 10px;
    margin-bottom: 30px;
}

/* Botón comprar */
.btn-comprar {
    display: block;
    text-align: center;
    padding: 14px;
    background: #2f3f2f;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-comprar:hover {
    background: #243224;
}

/* =====================
   Catálogo Productos
   ===================== */

.catalogo {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 50px;
    text-align: center;
}

.catalogo h1 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

/* Botón Ver Detalles */
.btn-ver-detalles {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #2f3f2f;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-ver-detalles:hover {
    background: #243224;
}

.tallas {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.talla {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #333;
    background: #fff;
    cursor: pointer;
}

.talla.agotada {
    background: #ddd;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
}

.comprar {
    padding: 12px 25px;
    background: #c9a24d; /* dorado elegante tipo ALIA */
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
}


.tallas-bolitas {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.talla-bolita {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #333;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.talla-bolita:hover {
    background: #333;
    color: #fff;
}

.talla-bolita.agotada {
    background: #eee;
    color: #999;
    border: 1px solid #ccc;
    cursor: not-allowed;
}

.talla-bolita.agotada:hover {
    background: #eee;
    color: #999;
}

.talla-bolita.activa {
    background: #333;
    color: #fff;
    border-color: #333;
}


/* Icono del carrito (bolsa de compras) */
.carrito-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin-left: 20px;
    text-decoration: none;
    color: #2f3f2f;
    transition: all 0.3s ease;
}

.carrito-icon svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.carrito-icon:hover {
    transform: scale(1.1);
}

.carrito-icon:hover svg {
    color: #1f2f1f;
}

.carrito-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #2f3f2f;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(47, 63, 47, 0.3);
}