/* ----------------------productos ---------------------- */

.productos-page {
    padding: 120px 10%;
    background: #ffffff;
}

/* Header */
.productos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.productos-header h1 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 1px;
}

.filtros select {
    padding: 12px 20px;
    border: 1px solid #ddd;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.filtros select:hover {
    border-color: #000;
}

/* Grid */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px 30px;
}

/* Card */
.producto-card {
    background: #fff;
    overflow: hidden;
    transition: 0.4s ease;
}

.producto-card:hover {
    transform: translateY(-6px);
}

/* Imagen */
.producto-img {
    overflow: hidden;
}

.producto-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.producto-card:hover img {
    transform: scale(1.05);
}

/* Info */
.producto-info {
    padding: 25px 5px;
    text-align: left;
}

.producto-info h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.precio {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Botón elegante */
.producto-info button {
    background: transparent;
    border: 1px solid #000;
    padding: 10px 25px;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
}

.producto-info button:hover {
    background: #000;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {

    .productos-page {
        padding: 100px 6%;
    }

    .productos-header {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .producto-img img {
        height: 100px;
    }
}


.producto-img {
    position: relative;
    height: 420px;
    overflow: hidden;
}


.producto-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.img-hover {
    opacity: 0;
}

.producto-card:hover .img-hover {
    opacity: 1;
}

.producto-card:hover .img-principal {
    opacity: 0;
}

.producto-card:hover img {
    transform: scale(1.05);
}

.producto-info button {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.producto-card:hover .producto-info button {
    opacity: 1;
    transform: translateY(0);
}


.producto-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.4s ease;
}

.producto-card:hover .producto-img::after {
    background: rgba(0,0,0,0.1);
}


/* ----------------------------catalogo de hombre, mujer, niño--------------------- */

.catalogo-container {
    max-width: 1200px;
    margin: 14px auto 80px auto; /* separa del header */
    padding: 0 20px;
    background: #f8f8f8;
    min-height: 100vh;
}

.catalogo-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 600;
}

/* Grid productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Card producto */
.catalogo-container .producto {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    /* Forzar visibilidad por si hay animaciones globales */
    opacity: 1 !important;
    transform: none !important;
}

/* Hover elegante */
.catalogo-container .producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}

/* Imagen */
.img-box {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Precio */
.precio {
    font-weight: 600;
    margin: 10px 0;
    font-size: 1.1rem;
}

/* Botón */
.btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #333;
    transform: scale(1.05);
}


@media (max-width: 768px) {

    .catalogo-container {
        margin: 100px auto 60px auto;
        padding: 0 12px;
    }

    .catalogo-titulo {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* 2 COLUMNAS EN MÓVIL */
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .catalogo-container .producto {
        padding: 12px;
        border-radius: 12px;
    }

    .img-box {
        height: 180px;
        margin-bottom: 10px;
    }

    .img-box img {
        height: 180px;
    }

    .precio {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        padding: 8px 0;
        font-size: 0.9rem;
    }

}




/* =========================
   FILTROS PROFESIONALES
========================= */

.filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filtro {
    padding: 10px 22px;
    border: 1px solid #000;
    background: transparent;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filtro:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.filtro.activo {
    background: #000;
    color: #fff;
}

/* Estilos para los botones de género en productos.html */
.filtro-genero {
    padding: 10px 22px;
    border: 1px solid #000;
    background: transparent;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filtro-genero:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.filtro-genero.activo {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Animación suave de productos */

.producto {
    transition: all 0.4s ease;
}

.producto.oculto {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}


/* ================================================
   MODAL DETALLE DE PRODUCTO
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ── Overlay ── */
#modal-producto {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 15, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 1rem;
}

#modal-producto.abierto {
    display: flex;
}

/* ── Caja principal ── */
.mp-box {
    background: #FFFBF8;
    border-radius: 24px;
    border: 1px solid #F0DDD0;
    box-shadow: 0 24px 60px rgba(244,167,185,0.25);
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    animation: mpEntrar 0.3s cubic-bezier(.22,1,.36,1) both;
}

@keyframes mpEntrar {
    from { opacity:0; transform: scale(0.93) translateY(20px); }
    to   { opacity:1; transform: scale(1) translateY(0); }
}

@media (max-width: 680px) {
    .mp-box { grid-template-columns: 1fr; }
}

/* ── Panel imagen ── */
.mp-galeria {
    background: #FDF0F5;
    border-radius: 24px 0 0 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

@media (max-width: 680px) {
    .mp-galeria { border-radius: 24px 24px 0 0; }
}

.mp-img-principal {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 16px;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.mp-img-principal:hover {
    transform: scale(1.03);
}

.mp-miniaturas {
    display: flex;
    gap: 8px;
}

.mp-miniatura {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    opacity: 0.7;
}

.mp-miniatura.activa,
.mp-miniatura:hover {
    border-color: #141414;
    opacity: 1;
    transform: scale(1.05);
}

/* ── Panel info ── */
.mp-info {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'Lato', sans-serif;
    position: relative;
}

.mp-cerrar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #F5E6D3;
    border: none;
    color: #1b1b1b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.mp-cerrar:hover { background: #EDD5B8; }

.mp-categoria {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f0e0e;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

.mp-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #3D2B1F;
    margin: 0;
    line-height: 1.25;
}

/* ── Rating ── */
.mp-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-estrellas {
    color: #060606;
    font-size: 1rem;
    letter-spacing: 2px;
}

.mp-rating-num {
    font-size: 0.85rem;
    color: #A08070;
    font-weight: 600;
}

/* ── Precio ── */
.mp-precio {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #040404;
    margin: 0;
}

/* ── Descripción ── */
.mp-descripcion {
    font-size: 0.9rem;
    color: #7A5C50;
    line-height: 1.75;
    margin: 0;
    padding: 0.85rem 1rem;
    background: #FDF0F5;
    border-radius: 12px;
    border-left: 3px solid #040404;
}

/* ── Selector talla ── */
.mp-selector-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #A08070;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.mp-tallas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mp-talla {
    min-width: 40px;
    height: 40px;
    border: 1.5px solid #F0DDD0;
    border-radius: 10px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3D2B1F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    transition: all 0.15s;
}

.mp-talla:hover { border-color: #050505; background: #FDF0F5; }
.mp-talla.sel   { border-color: #121111; background: #FDF0F5; color: #060606; }

/* ── Selector color ── */
.mp-colores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mp-color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    outline: 3px solid transparent;
    outline-offset: 2px;
}

.mp-color:hover  { transform: scale(1.15); }
.mp-color.sel    { outline-color: #0a0a0a; }

/* ── Reseñas ── */
.mp-resenas {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 130px;
    overflow-y: auto;
    padding-right: 4px;
}

.mp-resena {
    background: #fff;
    border: 1px solid #F0DDD0;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.83rem;
    color: #161616;
    line-height: 1.5;
}

.mp-resena strong {
    color: #3D2B1F;
    display: block;
    margin-bottom: 2px;
    font-size: 0.8rem;
}

.mp-resena .mp-resena-stars { color: #121212; font-size: 0.75rem; }

/* ── Botones acción ── */
.mp-acciones {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.mp-btn-carrito {
    flex: 1;
    background: #0c0c0c;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.85rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(244,167,185,0.4);
}

.mp-btn-carrito:hover {
    background: #030303;
    transform: translateY(-2px);
}

.mp-btn-fav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #F0DDD0;
    background: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.mp-btn-fav:hover  { background: #FDF0F5; border-color: #080808; transform: scale(1.1); }
.mp-btn-fav.activo { background: #FDF0F5; border-color: #030303; }

/* ── Productos relacionados ── */
.mp-relacionados {
    grid-column: 1 / -1;
    padding: 1.5rem 2rem;
    border-top: 1px solid #F0DDD0;
}

.mp-relacionados h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #3D2B1F;
    margin: 0 0 1rem;
}

.mp-rel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.mp-rel-card {
    background: #fff;
    border: 1px solid #F0DDD0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.mp-rel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(244,167,185,0.2);
}

.mp-rel-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.mp-rel-card p {
    font-size: 0.78rem;
    color: #3D2B1F;
    font-weight: 600;
    margin: 0;
    padding: 6px 8px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-rel-card span {
    font-size: 0.78rem;
    color: #0d0d0d;
    font-weight: 700;
    padding: 0 8px 8px;
    display: block;
}

/* ── Btn fav en catálogo ── */
.btn-fav {
    position: absolute;
    top: 8px; right: 8px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none; font-size: 1.05rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.15s; z-index: 2; padding: 0;
}
.btn-fav:hover  { transform: scale(1.15); }
.btn-fav.activo { background: #fff0f3; }
.btn-fav:disabled { opacity:0.6; cursor:default; transform:none; }

/* ── Menú usuario ── */
.menu-usuario { display:flex; align-items:center; gap:8px; }
.menu-avatar {
    width:30px; height:30px; border-radius:50%;
    background:#111; color:#fff; font-size:0.8rem; font-weight:700;
    display:inline-flex; align-items:center; justify-content:center;
}
.sub-menu-usuario { min-width:160px; }
.sub-menu-usuario li a {
    display:block; padding:10px 16px; font-size:0.9rem;
    color:#333; text-decoration:none; transition:background 0.15s;
}
.sub-menu-usuario li a:hover { background:#f5f5f5; }