@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --soft-gold: #dcb978;
    --dark-text: #1a1a1a;
    --text-muted: #6b7280;
    --bg-light: #fbfbf9;
    --blue-verified: #1d9bf0;
    --dark-graphite: #2d2d2d;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--dark-text);
    overflow-x: hidden;
}

.hidden { display: none !important; }
.gold-text { color: var(--soft-gold); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#titulo-seccion {
    text-align: center;
    margin-bottom: 30px;
    text-transform: lowercase;
    font-size: 1.8rem;
}


header {
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.5rem;
    cursor: pointer;
    text-transform: lowercase;
}

.logo span { color: var(--soft-gold); }

.search-container {
    position: relative;
    width: 40%;
}

.search-container input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.btn-nav {
    background: transparent;
    border: 1px solid var(--soft-gold);
    color: var(--soft-gold);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav:hover { background: var(--soft-gold); color: white; }


.filtros-bar {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 5%;
}

.filtros-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--soft-gold); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

.burbujas-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    width: 100%;
}

.burbujas-scroll::-webkit-scrollbar { height: 6px; }
.burbujas-scroll::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 10px; }
.burbujas-scroll::-webkit-scrollbar-thumb { background: var(--soft-gold); border-radius: 10px; }

.burbuja {
    background: #f5f5f5;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 500;
}

.burbuja.activa, .burbuja:hover { background: var(--soft-gold); color: white; }

/* =========================================
   BANNERS PUBLICITARIOS RESPONSIVE
   ========================================= */

.carrusel-contenedor {
    width: 100%;
    max-width: 1100px;
    margin: 24px auto 28px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carrusel-pista {
    display: flex;
    flex-direction: row;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.banner-foto {
    flex: 0 0 100%;
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
}

/* Celular */
@media (max-width: 768px) {
    .carrusel-contenedor {
        max-width: 92%;
        margin: 18px auto 20px auto;
        border-radius: 10px;
    }

    .banner-foto {
        height: 230px;
    }
}


.hero-box { text-align: center; margin: 40px 20px; }
.hero-description { font-style: italic; color: var(--text-muted); font-size: 1.1rem; }
.hero-line { width: 50px; height: 3px; background: var(--soft-gold); margin: 15px auto; }

#btn-regresar {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}


.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: auto;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.card-image-wrapper img, .producto-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}


.info { 
    padding: 15px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.info h3 { 
    margin-bottom: 8px; 
    font-size: 1.1rem; 
    text-transform: lowercase; 
    line-height: 1.2;
}

.detalles { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin-bottom: 12px;
    line-height: 1.5;
    height: auto; 
    overflow: visible; 
    word-wrap: break-word;
}

.detalles i { color: var(--soft-gold); margin-right: 5px; }

.btn-ver-tienda {
    display: block;
    text-align: center;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--soft-gold);
    color: var(--soft-gold);
    border-radius: 8px;
    font-weight: 600;
    margin-top: auto; 
    transition: var(--transition);
    text-decoration: none;
}
.btn-ver-tienda:hover { background: var(--soft-gold); color: white; }

.selector-talla { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid #ddd; margin: 10px 0; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.precio { font-size: 1.2rem; font-weight: 700; color: var(--dark-text); }

.btn-wa-minimal {
    background: var(--dark-graphite);
    color: white;
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}


#btn-carrito-flotante {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--dark-graphite); color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; cursor: pointer; z-index: 999;
}

#contador-carrito {
    position: absolute; top: 0; right: 0;
    background: #dc2626; color: white;
    font-size: 0.75rem; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.modal-zoom {
    display: none; position: fixed; z-index: 1001;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center; justify-content: center;
}

.modal-content { max-width: 90%; max-height: 90%; border-radius: 10px; }
.close-zoom { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }


@media (max-width: 768px) {
    header { flex-wrap: wrap; gap: 15px; }
    .search-container { width: 100%; order: 3; }
    
    .grid-productos { 
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
        gap: 12px; 
    }
    
    .card-image-wrapper img { 
        height: 180px; 
    }

    .producto-img-wrapper {
        height: 180px;
    }

    .producto-img-wrapper img {
        height: 100%;
    }

    .info { padding: 10px; }
    .info h3 { font-size: 1rem; }
    .detalles { font-size: 0.8rem; line-height: 1.3; }
    
    .btn-ver-tienda { padding: 8px; font-size: 0.85rem; }
}

.producto-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.producto-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: default;
}

.btn-acercar {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark-text);
    border: none;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.btn-acercar:hover {
    background: var(--soft-gold);
    color: white;
}

@media (max-width: 768px) {
    .producto-img-wrapper {
        height: 180px;
    }

    .btn-acercar {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}


.tienda-card {
    height: auto !important;
    min-height: auto !important;
}

.tienda-card .info {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

.tienda-card .detalles {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    line-height: 1.4 !important;
    max-height: none !important;
    height: auto !important;
    margin-bottom: 15px;
}

.tienda-card .btn-ver-tienda {
    margin-top: 10px;
}


#seccion-contacto {
    max-width: 650px;
    margin: 0 auto 50px auto;
}

.form-container {
    background: white;
    padding: 35px 30px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.form-container p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.4;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    background: #fbfbf9;
    transition: var(--transition);
}

.form-container textarea {
    min-height: 120px;
    resize: vertical;
}

.form-container input:focus,
.form-container textarea:focus {
    border-color: var(--soft-gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 185, 120, 0.18);
}

.btn-submit {
    background: var(--dark-graphite);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--soft-gold);
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    #seccion-contacto {
        max-width: 100%;
    }

    .form-container {
        padding: 25px 18px;
        border-radius: 15px;
    }

    .form-container h3 {
        font-size: 1.25rem;
    }
}

#modalCarrito {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carrito-content {
    background: white;
    color: var(--dark-text);
    width: 100%;
    max-width: 520px !important;
    max-height: 90vh !important;
    border-radius: 18px;
    padding: 28px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.carrito-content h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
    padding-right: 30px;
}

.carrito-content .close-zoom {
    position: absolute;
    top: 18px;
    right: 22px;
    color: var(--dark-text);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

#lista-carrito {
    max-height: 330px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 18px;
}

.carrito-item-lista {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #eee;
}

.carrito-item-info strong {
    font-size: 0.95rem;
    color: var(--dark-text);
}

.carrito-item-info span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.btn-eliminar-item {
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
}

.carrito-footer {
    border-top: 1px solid #eee;
    padding-top: 18px;
}

.carrito-resumen-fila,
.carrito-total-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.carrito-resumen-fila {
    font-size: 0.95rem;
    color: var(--dark-text);
}

.carrito-total-fila {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 10px;
}

.btn-carrito-enviar {
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


@media (max-width: 768px) {
    .carrito-content {
        max-width: 95%;
        padding: 22px 18px;
        border-radius: 16px;
    }

    #lista-carrito {
        max-height: 300px;
    }

    .carrito-content h3 {
        font-size: 1.2rem;
    }

    .carrito-total-fila {
        font-size: 1.15rem;
    }
}

.producto-card .producto-img-wrapper {
    height: 280px;
}

.producto-card .producto-img-wrapper img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
}


#modalCarrito {
    z-index: 3000;
}

#modalCarrito .carrito-content {
    display: block;
}

/* Evita que el botón de cerrar del carrito herede el color blanco del modal de imagen */
#modalCarrito .close-zoom {
    color: var(--dark-text) !important;
}

@media (max-width: 768px) {
    .producto-card .producto-img-wrapper {
        height: 180px;
    }
}


.logo h1,
#titulo-seccion,
.intro-textimoro h2,
.form-container h3,
.info h3 {
    font-family: 'Montserrat', sans-serif;
}


.intro-textimoro {
    text-align: center;
    margin: 45px auto 18px auto;
    padding: 0 20px;
}

.intro-etiqueta {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.intro-textimoro h2 {
    font-size: 3.1rem;
    line-height: 1;
    color: var(--dark-text);
    margin-bottom: 16px;
    font-weight: 800;
    text-transform: none;
}

.intro-textimoro h2 span {
    color: var(--soft-gold);
}

.intro-subtitulo {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.5;
    letter-spacing: 0.5px;
}


.carrusel-contenedor {
    margin: 24px auto 32px auto;
    max-width: 540px;
}

.filtros-bar {
    background: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 5%;
    margin-bottom: 25px;
}

.filtros-container {
    justify-content: center;
}

#titulo-seccion {
    margin-top: 5px;
}

@media (max-width: 768px) {
    .intro-textimoro {
        margin: 30px auto 15px auto;
        padding: 0 16px;
    }

    .intro-etiqueta {
        font-size: 0.78rem;
        letter-spacing: 1.5px;
    }

    .intro-textimoro h2 {
        font-size: 2.25rem;
        margin-bottom: 12px;
    }

    .intro-subtitulo {
        font-size: 0.92rem;
    }

    .carrusel-contenedor {
        width: calc(100% - 32px);
        margin: 18px auto 24px auto;
    }

    .filtros-container {
        justify-content: flex-start;
    }
}

/* =========================================
   BUSCADOR CENTRAL DEBAJO DEL BANNER
   ========================================= */
.busqueda-central {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px 20px 20px;
    background: var(--bg-light);
}

.busqueda-central .buscador-principal {
    position: relative;
    width: min(90%, 620px) !important;
    max-width: 620px;
    margin: 0 auto;
}

.busqueda-central .buscador-principal input {
    width: 100%;
    padding: 12px 18px 12px 45px;
    border-radius: 28px;
    border: 1px solid #ddd;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.busqueda-central .buscador-principal input:focus {
    border-color: var(--soft-gold);
    box-shadow: 0 0 0 3px rgba(220, 185, 120, 0.18);
}

.busqueda-central .buscador-principal i {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .busqueda-central {
        padding: 0 16px 16px 16px;
    }

    .busqueda-central .buscador-principal {
        width: 100% !important;
        max-width: 100%;
        order: initial;
    }
}
#main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}
/* =========================================
   FORMULARIO PARA REPORTAR PROBLEMA
   ========================================= */

#seccion-reporte {
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.reporte-container {
    background: white;
    padding: 35px 30px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 5px solid var(--soft-gold);
}

.reporte-container h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-text);
    font-family: 'Montserrat', sans-serif;
}

.reporte-container p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.4;
}

.reporte-container form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reporte-container input,
.reporte-container textarea,
.reporte-container select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    background: #fbfbf9;
    transition: var(--transition);
}

.reporte-container textarea {
    min-height: 130px;
    resize: vertical;
}

.reporte-container input:focus,
.reporte-container textarea:focus,
.reporte-container select:focus {
    border-color: var(--soft-gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 185, 120, 0.18);
}

.reporte-aviso {
    background: #fff7ed;
    color: #92400e;
    border: 1px solid #fed7aa;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
    margin-bottom: 18px;
}

.btn-reporte {
    background: var(--soft-gold);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reporte:hover {
    background: var(--dark-graphite);
    transform: translateY(-2px);
}

/* Responsive reporte */
@media (max-width: 768px) {
    #seccion-reporte {
        max-width: 100%;
    }

    .reporte-container {
        padding: 25px 18px;
        border-radius: 15px;
    }

    .reporte-container h3 {
        font-size: 1.25rem;
    }
}

.aviso-mayoreo-producto {
    font-size: 0.72rem;
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 6px 8px;
    border-radius: 8px;
    line-height: 1.25;
    margin: 4px 0 8px 0;
}

/* =========================================
   FOTOS MULTIPLES Y COLOR DE PRODUCTO
   ========================================= */
.selector-color {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin: 0 0 10px 0;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: white;
}

.selector-color:focus {
    border-color: var(--soft-gold);
    box-shadow: 0 0 0 3px rgba(220, 185, 120, 0.18);
}

.btn-foto-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    box-shadow: 0 3px 8px rgba(0,0,0,0.16);
    transition: var(--transition);
}

.btn-foto-nav:hover {
    background: var(--soft-gold);
    color: white;
}

.btn-foto-prev { left: 10px; }
.btn-foto-next { right: 10px; }

.contador-fotos {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    z-index: 6;
}

@media (max-width: 768px) {
    .btn-foto-nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}


.selector-label {
    display: block;
    margin-top: 8px;
    margin-bottom: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}


/* Selector de color en tarjetas de producto */
.color-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 8px 0 10px 0;
}

.color-wrapper label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.selector-color {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: white;
}

.selector-color:focus {
    border-color: var(--soft-gold);
    box-shadow: 0 0 0 3px rgba(220, 185, 120, 0.18);
}


/* =========================================
   SOPORTE Y MEJORAS DE IMÁGENES
   ========================================= */
.footer-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-soporte-wa {
    background: #25d366;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-soporte-wa:hover {
    background: #1faa52;
    transform: translateY(-2px);
}

.producto-img-wrapper img {
    transition: opacity 0.18s ease;
}
