@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; }

.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;
}

@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;
    left: 10px;
    bottom: 10px;
    top: auto !important;
    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: 7;
    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 {
        left: 8px;
        bottom: 8px;
        top: auto !important;
        font-size: 0.68rem;
        padding: 5px 8px;
    }
}

.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;
}

#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;
    }
}

.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;
}

#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);
}

@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;
}

.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);
}

.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);
}

.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;
}

.filtros-zona {
    width: 100%;
}

.filtros-principales {
    align-items: center;
}

.burbuja-filtros {
    border: 1px solid var(--soft-gold);
    background: white;
    color: var(--dark);
    font-weight: 700;
}

.panel-filtros {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.panel-filtros-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-filtros-header h3 {
    margin: 0;
    font-size: 1rem;
    text-transform: lowercase;
    letter-spacing: 0.4px;
}

.btn-limpiar-filtros {
    border: 1px solid var(--soft-gold);
    background: transparent;
    color: var(--soft-gold);
    border-radius: 999px;
    padding: 7px 13px;
    font-weight: 700;
    cursor: pointer;
}

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

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
}

.grupo-filtro h4 {
    margin: 0 0 10px 0;
    font-size: 0.88rem;
    color: var(--dark);
    text-transform: lowercase;
}

.opcion-filtro {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 0.9rem;
    cursor: pointer;
    color: #333;
}

.opcion-filtro input {
    accent-color: var(--soft-gold);
}

.filtros-activos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip-filtro {
    border: none;
    background: rgba(210, 174, 109, 0.16);
    color: #7a5b25;
    padding: 6px 11px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .filtros-container {
        flex-direction: column;
        align-items: stretch;
    }

    .toggle-wrapper {
        justify-content: center;
    }

    .filtros-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 520px) {
    .panel-filtros-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .filtros-grid {
        grid-template-columns: 1fr;
    }
}

.subfiltros-panel {
    margin-top: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #eee4d1;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.subfiltros-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--dark-text);
    font-weight: 700;
}

.subfiltros-titulo button {
    border: 1px solid var(--soft-gold);
    background: transparent;
    color: var(--soft-gold);
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    font-weight: 700;
}

.subfiltros-opciones {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.subfiltro-btn {
    flex: 0 0 auto;
    border: 1px solid #ececec;
    background: #f8f8f8;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all .2s ease;
}

.subfiltro-btn:hover,
.subfiltro-btn.activo {
    background: var(--soft-gold);
    color: #fff;
    border-color: var(--soft-gold);
}

#filtros-ocultos {
    display: none !important;
}

@media (max-width: 768px) {
    .subfiltros-panel {
        border-radius: 14px;
        padding: 12px;
    }

    .subfiltros-titulo {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Logo TextiBajío */
.logo img { display: block; }
@media (max-width: 600px) { .logo img { height: 42px !important; max-width: 150px !important; } }


.banner-link {
    flex: 0 0 100%;
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    display: block;
}

.banner-link .banner-foto {
    display: block;
}

.banner-cta {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: rgba(26, 26, 26, 0.78);
    color: white;
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 0.82rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
}

.banner-link:hover .banner-cta {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .banner-cta {
        opacity: 1;
        right: 12px;
        bottom: 12px;
        font-size: 0.75rem;
        padding: 7px 12px;
    }
}


/* Carrusel elegante de banners publicitarios */
.carrusel-contenedor {
    width: min(94%, 980px);
    max-width: 980px;
    margin: 24px auto 32px auto;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

.carrusel-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #111;
    box-shadow: 0 18px 42px rgba(0,0,0,0.14);
    touch-action: pan-y;
    cursor: grab;
}

.carrusel-viewport.arrastrando {
    cursor: grabbing;
}

.carrusel-pista {
    display: flex;
    width: 100%;
    will-change: transform;
    transition: transform 0.48s cubic-bezier(.22,.61,.36,1);
}

.banner-slide,
.banner-link {
    flex: 0 0 100%;
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    display: block;
    overflow: hidden;
}

.banner-foto,
.banner-link .banner-foto {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 330px;
    object-fit: cover;
    object-position: center;
    user-select: none;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.banner-link:hover .banner-foto {
    transform: scale(1.015);
}

.banner-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.22), transparent 45%, rgba(0,0,0,0.10));
    pointer-events: none;
}

.banner-cta {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    background: rgba(255,255,255,0.92);
    color: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 999px;
    padding: 10px 17px;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.banner-link:hover .banner-cta {
    opacity: 1;
    transform: translateY(0);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
    transition: all 0.22s ease;
}

.banner-nav:hover {
    background: var(--soft-gold);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.banner-prev { left: 14px; }
.banner-next { right: 14px; }

.banner-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    min-height: 14px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.banner-dot.activo {
    width: 26px;
    background: var(--soft-gold);
}

@media (max-width: 768px) {
    .carrusel-contenedor {
        width: calc(100% - 28px);
        margin: 18px auto 26px auto;
    }

    .carrusel-viewport {
        border-radius: 18px;
    }

    .banner-foto,
    .banner-link .banner-foto {
        height: 220px;
    }

    .banner-nav {
        width: 36px;
        height: 36px;
        opacity: 0.92;
    }

    .banner-prev { left: 9px; }
    .banner-next { right: 9px; }

    .banner-cta {
        opacity: 1;
        right: 12px;
        bottom: 12px;
        font-size: 0.74rem;
        padding: 7px 12px;
    }
}

@media (max-width: 480px) {
    .banner-foto,
    .banner-link .banner-foto {
        height: 185px;
    }
}




/* FIX: modal de detalle de producto oculto hasta abrirse */
.modal-detalle-producto {
    position: fixed;
    inset: 0;
    z-index: 2600;
    background: rgba(0,0,0,0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.detalle-producto-card {
    width: min(980px, 96vw);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.32);
    position: relative;
    padding: 22px;
}
.detalle-cerrar {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: #111827;
    color: white;
    font-size: 1.45rem;
    cursor: pointer;
    z-index: 2;
}
.detalle-producto-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(320px,.9fr);
    gap: 24px;
    align-items: start;
}
.detalle-galeria img#detalle-producto-img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 20px;
    background: #f8f8f5;
}
.detalle-miniaturas {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 4px;
}
.detalle-miniatura {
    border: 2px solid transparent;
    background: #fff;
    border-radius: 12px;
    padding: 0;
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    overflow: hidden;
    cursor: pointer;
}
.detalle-miniatura.activo { border-color: var(--soft-gold, #dcb978); }
.detalle-miniatura img { width: 100%; height: 100%; object-fit: cover; }
.detalle-info { padding: 10px 4px; }
.detalle-tienda {
    display:block;
    color:#6b7280;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
    font-size:.78rem;
    margin-bottom:8px;
}
.detalle-info h3 {
    font-size: clamp(1.55rem,3.2vw,2.4rem);
    color: var(--deep-navy,#09234a);
    margin:0 0 10px;
    line-height:1.05;
}
.detalle-precio { color:#5f7f36; font-size:1.65rem; font-weight:900; margin-bottom:10px; }
.detalle-descripcion { color:#6b7280; line-height:1.55; margin:0 0 14px; }
.detalle-badges { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.detalle-badges span {
    display:inline-flex;
    padding:6px 10px;
    border-radius:999px;
    background:#fff7ed;
    color:#92400e;
    font-weight:900;
    font-size:.78rem;
    border:1px solid #fed7aa;
}
.detalle-selects {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap:12px;
    margin:12px 0;
}
.detalle-selects label { font-weight:800; color:#374151; font-size:.86rem; }
.detalle-selects select,
.detalle-selects input[type="number"] {
    width:100%;
    margin-top:6px;
    padding:12px;
    border:1px solid #ddd;
    border-radius:12px;
    background:#fbfbf9;
    font-size:1rem;
    box-sizing:border-box;
}
.detalle-extra { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:14px 0; }
.detalle-extra div { border:1px solid #eee; border-radius:14px; padding:12px; background:#fbfbf9; }
.detalle-extra .detalle-extra-full { grid-column: 1 / -1; }
.detalle-extra strong { display:block; color:#111827; margin-bottom:4px; }
.detalle-extra span { color:#6b7280; white-space:pre-line; line-height:1.45; }
.detalle-acciones { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.btn-detalle-agregar, .btn-detalle-whatsapp {
    border:none;
    border-radius:14px;
    padding:13px 16px;
    font-weight:900;
    cursor:pointer;
}
.btn-detalle-agregar { background:#5f7f36; color:white; }
.btn-detalle-whatsapp { background:#25d366; color:white; }
@media (max-width: 760px) {
    .modal-detalle-producto { padding:8px; align-items:flex-end; }
    .detalle-producto-card { width:100%; max-height:94vh; border-radius:22px 22px 0 0; padding:16px; }
    .detalle-producto-grid { grid-template-columns:1fr; gap:14px; }
    .detalle-galeria img#detalle-producto-img { max-height:390px; }
    .detalle-selects, .detalle-extra, .detalle-acciones { grid-template-columns:1fr; }
    .detalle-info h3 { font-size:1.6rem; }
}

/* Cantidad rápida dentro del detalle de producto */
.detalle-selects input[type="number"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    box-sizing: border-box;
    background: #fff;
}

.detalle-cantidad-rapida {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}

.detalle-cantidad-rapida button {
    border: 1px solid rgba(220,185,120,0.55);
    background: rgba(220,185,120,0.13);
    color: #7a5b25;
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 800;
    cursor: pointer;
}

.detalle-cantidad-rapida button:hover {
    background: rgba(220,185,120,0.24);
}


.modalidad-venta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7a5b25;
    background: rgba(220,185,120,0.18);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    margin-left: 6px;
    text-transform: none;
    vertical-align: middle;
}

/* Página informativa: Cómo funciona */
.info-page {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    padding: 10px 0 20px;
}

.info-hero-card {
    background: #fff;
    border: 1px solid #eee4d1;
    border-top: 5px solid var(--soft-gold);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    text-align: center;
    margin-bottom: 18px;
}

.info-pill {
    display: inline-flex;
    background: rgba(220,185,120,0.18);
    color: #7a5b25;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.info-hero-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.info-hero-card p,
.info-note p,
.info-steps-grid p {
    color: var(--text-muted);
    line-height: 1.55;
}

.info-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.info-steps-grid article {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.info-steps-grid strong {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--soft-gold);
    color: #fff;
    margin-bottom: 10px;
}

.info-steps-grid h4,
.info-note h4 {
    margin-bottom: 8px;
}

.info-note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    border-radius: 18px;
    padding: 18px;
}

@media (max-width: 900px) {
    .info-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .info-page { padding: 0; }
    .info-hero-card { padding: 20px 16px; border-radius: 18px; }
    .info-hero-card h3 { font-size: 1.4rem; }
    .info-steps-grid { grid-template-columns: 1fr; }
    .info-steps-grid article { padding: 16px; }
}


/* Extra opcional tipo Amazon / personalización */
.detalle-extra-personalizacion {
    display: block !important;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 16px;
    padding: 12px;
}

.detalle-extra-opciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.detalle-extra-card {
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    background: #fff;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    transition: all .2s ease;
}

.detalle-extra-card.activo {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.detalle-extra-card input {
    margin-top: 3px;
    accent-color: #2563eb;
}

.detalle-extra-card b {
    display: block;
    color: #111827;
    font-size: .88rem;
}

.detalle-extra-card small {
    display: block;
    color: #6b7280;
    font-size: .76rem;
    margin-top: 3px;
}

.detalle-extra-ayuda {
    margin: 10px 0 8px;
    color: #475569;
    font-size: .82rem;
    line-height: 1.35;
}

.detalle-personalizacion-lista {
    display: grid;
    gap: 8px;
}

.personalizacion-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 86px;
    gap: 8px;
    align-items: center;
}

.personalizacion-row span {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #e0ecff;
    color: #1d4ed8;
    font-size: .75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.personalizacion-row input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 9px 10px;
    font-family: inherit;
    outline: none;
}

.personalizacion-row input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

@media (max-width: 640px) {
    .detalle-extra-opciones { grid-template-columns: 1fr; }
    .personalizacion-row { grid-template-columns: 24px minmax(0, 1fr) 76px; gap: 6px; }
    .personalizacion-row input { padding: 8px; font-size: .85rem; }
}


/* Ajustes finales: 2 columnas móvil, botón detalle elegante, extra visible y zoom estándar */
.btn-ver-detalles-producto {
    width: 100%;
    border: 1px solid rgba(220, 185, 120, 0.75);
    background: linear-gradient(180deg, #fffaf0, #fff7e8);
    color: #7a5b25;
    border-radius: 999px;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    cursor: pointer;
    transition: all .22s ease;
    box-shadow: 0 4px 12px rgba(220,185,120,.14);
}
.btn-ver-detalles-producto:hover {
    background: var(--soft-gold);
    color: #fff;
    transform: translateY(-1px);
}

#modalZoom .zoom-stage {
    width: min(92vw, 920px);
    height: min(82vh, 680px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
    padding: 10px;
    background: rgba(255,255,255,.08);
}
#modalZoom #imgZoomTarget.modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    transition: opacity .18s ease;
}
#modalZoom .close-zoom {
    z-index: 1010;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.detalle-extra-personalizacion.hidden { display: none !important; }
.detalle-extra-titulo {
    display: block;
    color: #0f172a;
    font-size: .95rem;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    #main-grid,
    .grid-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .card {
        border-radius: 14px;
        min-width: 0;
    }
    .card-image-wrapper img,
    .producto-card .producto-img-wrapper,
    .producto-card .producto-img-wrapper img {
        height: 165px !important;
    }
    .tienda-card .info,
    .producto-card .info {
        padding: 10px !important;
    }
    .tienda-card .info h3,
    .producto-card .info h3 {
        font-size: .92rem !important;
        line-height: 1.15 !important;
        word-break: break-word;
    }
    .tienda-card .detalles,
    .producto-card .detalles {
        font-size: .76rem !important;
        line-height: 1.25 !important;
    }
    .btn-ver-detalles-producto {
        padding: 8px 10px;
        font-size: .78rem;
        margin: 6px 0 8px;
    }
    .selector-talla,
    .selector-color {
        font-size: .82rem;
        padding: 8px;
    }
    .precio { font-size: 1.02rem; }
    .btn-wa-minimal { width: 34px; height: 34px; flex: 0 0 auto; }
    #modalZoom .zoom-stage {
        width: 94vw;
        height: 62vh;
        padding: 8px;
    }
}

@media (max-width: 380px) {
    #main-grid,
    .grid-productos {
        gap: 9px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .card-image-wrapper img,
    .producto-card .producto-img-wrapper,
    .producto-card .producto-img-wrapper img {
        height: 145px !important;
    }
    .tienda-card .info h3,
    .producto-card .info h3 { font-size: .84rem !important; }
}


/* Contacto y redes por tienda */
.barra-contacto-tienda {
    max-width: 820px;
    margin: -16px auto 28px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-contacto-tienda,
.tienda-social-btn {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    transition: all .22s ease;
}
.btn-contacto-tienda {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: .9rem;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.btn-contacto-tienda.whatsapp,
.tienda-social-btn.whatsapp { background:#25d366; color:white; }
.btn-contacto-tienda.instagram,
.tienda-social-btn.instagram { background:linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4); color:white; }
.btn-contacto-tienda.facebook,
.tienda-social-btn.facebook { background:#1877f2; color:white; }
.btn-contacto-tienda:hover,
.tienda-social-btn:hover { transform: translateY(-2px); filter: brightness(.96); }
.tienda-social-actions {
    display:flex;
    gap:8px;
    margin: 0 0 12px 0;
}
.tienda-social-btn {
    width:34px;
    height:34px;
    border-radius:999px;
    font-size:.95rem;
}
@media (max-width: 768px) {
    .barra-contacto-tienda { margin: -12px auto 20px auto; padding: 0 10px; gap:8px; }
    .btn-contacto-tienda { flex: 1 1 auto; min-width: 135px; font-size: .78rem; padding: 9px 10px; }
}

.modalidad-venta-badge {
    max-width: 100%;
    white-space: nowrap;
    font-size: 0.62rem;
    padding: 4px 7px;
    margin-left: 0;
}

.tienda-card .info h3 {
    word-break: normal !important;
    overflow-wrap: anywhere;
}

.tienda-social-actions {
    flex-wrap: wrap;
}

.modalidad-venta-badge {
    max-width: 100%;
    white-space: nowrap;
    font-size: 0.62rem;
    padding: 4px 7px;
    margin-left: 0;
}

.tienda-card .info h3 {
    word-break: normal !important;
    overflow-wrap: anywhere;
}

.tienda-social-actions {
    flex-wrap: wrap;
}

.tienda-card .card-image-wrapper {
    position: relative;
}

.tienda-card .badge-verificada,
.tienda-card .verificado-badge,
.tienda-card .tienda-verificada {
    position: absolute !important;
    top: 10px;
    left: 10px;
    z-index: 9;

    display: inline-flex !important;
    align-items: center;
    gap: 5px;

    width: auto !important;
    min-width: auto !important;
    max-width: max-content;

    padding: 6px 10px;
    border-radius: 999px;

    background: rgba(255,255,255,0.94);
    color: #1683d8;
    border: 1px solid #b8ddff;

    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap !important;
}

.tienda-card .modalidad-venta-badge {
    position: absolute !important;
    top: 10px;
    right: 10px;
    z-index: 9;

    margin: 0 !important;
    max-width: max-content;
    white-space: nowrap !important;
}
.tienda-card .card-image-wrapper {
    position: relative;
}

.tienda-card .card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.badge-flotante-tienda {
    position: absolute;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.badge-verificada {
    top: 10px;
    left: 10px;
    color: #1683d8;
    border: 1px solid #b8ddff;
}

.badge-modalidad-tienda {
    top: 10px;
    right: 10px;
    color: #7a5b25;
    border: 1px solid #ead7af;
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .badge-flotante-tienda {
        font-size: 0.58rem;
        padding: 4px 7px;
    }

    .badge-verificada {
        top: 8px;
        left: 8px;
    }

    .badge-modalidad-tienda {
        top: 8px;
        right: 8px;
        max-width: 95px;
    }
}

/* Chatbot flotante TextiBajío */
.chatbot-textibajio {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 3100;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--dark-graphite), #111827);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0,0,0,.22);
    transition: transform .2s ease, background .2s ease;
}

.chatbot-toggle:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--soft-gold), #b88c44);
}

.chatbot-panel {
    position: absolute;
    left: 0;
    bottom: 74px;
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 120px));
    background: #fff;
    border: 1px solid #ead7af;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.chatbot-header strong { display:block; font-size: .98rem; }
.chatbot-header small { display:block; color:#e5e7eb; font-size:.76rem; margin-top:2px; }
.chatbot-header button {
    border: none;
    background: rgba(255,255,255,.12);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 1.25rem;
    cursor: pointer;
}

.chatbot-mensajes {
    flex: 1;
    overflow-y: auto;
    background: #fbfbf9;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-msg {
    max-width: 92%;
    border-radius: 16px;
    padding: 10px 12px;
    font-size: .88rem;
    line-height: 1.35;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.chatbot-msg p {
    margin: 0;
    white-space: pre-line;
}

.chatbot-msg span {
    display: block;
    color: #6b7280;
    margin-top: 5px;
    font-size: .76rem;
}

.chatbot-msg.bot {
    align-self: flex-start;
    background: white;
    border: 1px solid #eee;
    color: #1f2937;
}

.chatbot-msg.usuario {
    align-self: flex-end;
    background: #1f2937;
    color: white;
}

.chatbot-msg.typing p {
    color: #6b7280;
    font-style: italic;
}

.chatbot-input {
    display: grid;
    grid-template-columns: 1fr 46px;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #eee;
    background: white;
}

.chatbot-input input {
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 11px 13px;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

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

.chatbot-input button {
    border: none;
    border-radius: 50%;
    background: var(--soft-gold);
    color: white;
    cursor: pointer;
    font-size: .95rem;
}

.chatbot-input button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.chatbot-productos {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.chatbot-producto-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    background: #fffdf9;
    padding: 8px;
}

.chatbot-producto-card img {
    width: 74px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    background: #f3f4f6;
}

.chatbot-producto-card div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chatbot-producto-card strong {
    font-size: .82rem;
    color: #111827;
    line-height: 1.2;
}

.chatbot-producto-card small {
    color: #6b7280;
    font-size: .72rem;
    line-height: 1.25;
}

.chatbot-producto-card span {
    color: #7a5b25;
    font-weight: 900;
    font-size: .84rem;
    margin: 2px 0;
}

.chatbot-producto-card button {
    border: 1px solid rgba(220,185,120,.75);
    background: white;
    color: #7a5b25;
    border-radius: 999px;
    padding: 6px 10px;
    width: fit-content;
    font-size: .72rem;
    font-weight: 900;
    cursor: pointer;
    margin-top: 3px;
}

.chatbot-producto-card button:hover {
    background: var(--soft-gold);
    color: white;
}

@media (max-width: 768px) {
    .chatbot-textibajio {
        left: 16px;
        bottom: 18px;
    }
    .chatbot-toggle {
        width: 54px;
        height: 54px;
        font-size: 1.2rem;
    }
    .chatbot-panel {
        bottom: 64px;
        width: calc(100vw - 32px);
        height: min(540px, calc(100vh - 104px));
        border-radius: 18px;
    }
}

/* Botón Compartir tienda - agregado sin modificar estilos existentes */
.btn-contacto-tienda.compartir {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
}

.btn-contacto-tienda.compartir:hover {
    background: var(--soft-gold);
    border-color: var(--soft-gold);
    color: #ffffff;
}
