/* ============================================
   ESTILOS PROFESIONALES PARA CHICO'S
   Colores: Blanco, Negro, Dorado
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #faf0e6;
    color: #2d3436;
    line-height: 1.6;
}

/* ============ HEADER ============ */
header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: #daa520;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

header p {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.4;
}

/* ============ NAVEGACIÓN ============ */
nav {
    background: linear-gradient(90deg, #daa520 0%, #b8860b 100%);
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

nav ul li {
    flex: 0 1 auto;
}

nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover {
    background-color: #ffed4e;
    border-bottom-color: #000;
    transform: translateY(-2px);
}

/* ============ MAIN ============ */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

main h2 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

main h3 {
    font-size: 1.5rem;
    color: #daa520;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #daa520;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
}

/* ============ SECCIONES ============ */
section {
    margin-bottom: 2rem;
    background: #faf0e6;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

section h2 {
    margin-top: 0;
}

section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* ============ GRID DE PRODUCTOS ============ */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.producto {
    background: #faf0e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.producto:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.producto-imagen {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #f0f0f0;
}

.producto-contenido {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.producto h4 {
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.producto p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.precio {
    font-size: 1.5rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* ============ BOTONES ============ */
.btn {
    background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
    color: #000;
    border: 2px solid #daa520;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
    margin: 0.5rem 0.25rem;
}

.btn:hover {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(218, 165, 32, 0.4);
}

.btn-secundario {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #daa520;
    border: 2px solid #daa520;
}

.btn-secundario:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #fff;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    display: block;
    margin: 0.5rem 0;
}

/* ============ FORMULARIOS ============ */
form {
    background: #faf0e6;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

form label {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="file"],
form textarea,
form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form input[type="file"]:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    margin-top: 1.5rem;
}

/* ============ DETALLE DE PRODUCTO ============ */
.producto-detalle {
    background: #faf0e6;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.producto-detalle-contenedor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.producto-galeria {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.producto-imagen-principal {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.producto-imagenes-secundarias {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.producto-imagen-secundaria {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.producto-imagen-secundaria:hover {
    border-color: #ffd700;
    transform: scale(1.05);
}

.producto-info h2 {
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.producto-descripcion {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.producto-precios {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.precio-regular {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.precio-valor {
    font-size: 2.5rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 1rem;
}

.precio-mayoreo-seccion {
    background: #faf0e6;
    border-left: 4px solid #d4af37;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

/* ============ VARIANTES ============ */
.variantes {
    margin-bottom: 1.5rem;
}

.variantes h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border: none;
}

.variantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.variante-item {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.variante-item:hover {
    border-color: #d4af37;
    background: #faf0e6;
}

.variante-talla {
    font-weight: 600;
    color: #000;
    margin-bottom: 0.25rem;
}

.variante-color {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.variante-stock {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
}

/* ============ BOTONES ACCIÓN ============ */
.botones-accion {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.botones-accion .btn {
    flex: 1;
    min-width: 200px;
}

/* ============ MODAL MAYOREO ============ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0;
}

.modal.mostrar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-contenido h2 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.modal-contenido p {
    color: #666;
    margin-bottom: 1.5rem;
}

.modal-precio {
    font-size: 2.5rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 1rem;
}

.modal-minimo {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.modal-botones {
    display: flex;
    gap: 1rem;
}

.modal-botones .btn {
    flex: 1;
}

.cerrar-modal {
    background: #ddd;
    border-color: #ccc;
    color: #000;
}

.cerrar-modal:hover {
    background: #ccc;
}

/* ============ FOOTER ============ */
footer {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #ffd700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        flex: 1 1 100%;
    }

    nav ul li a {
        padding: 0.75rem 1rem;
    }

    main {
        padding: 0 0.5rem;
    }

    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .producto-detalle-contenedor {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .producto-imagen-principal {
        height: 300px;
    }

    .botones-accion {
        flex-direction: column;
    }

    .botones-accion .btn {
        min-width: auto;
    }

    section {
        padding: 1rem;
    }

    form {
        padding: 1rem;
    }

    .modal-contenido {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 0;
    }

    header h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    header p {
        font-size: 0.8rem;
    }

    nav ul li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    main h2 {
        font-size: 1.5rem;
    }

    main h3 {
        font-size: 1.2rem;
    }

    .productos-grid {
        grid-template-columns: 1fr;
    }

    .producto-imagen-principal {
        height: 250px;
    }

    .precio-valor {
        font-size: 2rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .modal-botones {
        flex-direction: column;
    }
}

/* Estilos para tallas en catálogo */
.tallas {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0;
    font-weight: 500;
}