:root {
    --primary: #0078d7;
    --primary-dark: #005a9e;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #343a40;
    --border: #dee2e6;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.4;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.logo-text .tagline {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
    color: white;
}

/* BUSCADOR HEADER ORIGINAL */
.buscador-header {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
    flex: 1;
    max-width: 500px;
}

.buscador-container {
    position: relative;
    flex: 1;
}

.buscador-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
}

.buscador-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.1);
}

.buscador-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.buscador-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.buscador-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* NAV SECTION ORIGINAL */
.nav-section {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-btn {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn.tiendas-btn {
    background: white;
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-btn.tiendas-btn:hover {
    background: #f8f9fa;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}



/* ESTRUCTURA PRINCIPAL */
.contenedor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

/* TOGGLE CATEGORÍAS MÓVIL */
.categorias-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.categorias-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* CATEGORÍAS MÓVIL */
.categorias-mobile {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    display: none;
    width: 100%;
}

.categorias-mobile.active {
    display: block;
}

.categorias-mobile h3 {
    margin: 0 0 0.8rem 0;
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.categorias-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    
}

.categorias-list li {
    padding: 0.7rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Agrandé la letra de 0.85rem a 0.9rem */
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    text-decoration: none; /* Saco el subrayado */
}

.categoria-nombre {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: #333;
    text-decoration: none; /* Aseguro que no tenga subrayado */
    font-size: 0.9rem; /* Mismo tamaño que el li para consistencia */
}

/* Para asegurar que no haya subrayado en hover también */
.categorias-list li:hover .categoria-nombre {
    text-decoration: none;
}

/* Si quieres hacerlo aún más legible en móviles pequeños */
@media (max-width: 480px) {
    .categorias-list li {
        font-size: 0.85rem; /* Un poco más pequeño en móviles muy pequeños */
        padding: 0.6rem;
    }
    
    .categoria-nombre {
        font-size: 0.85rem;
    }
}

.categorias-list li:hover {
    background: #f8f9fa;
    border-color: var(--primary);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.categoria-nombre {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: #333;
}

/* Botón de todas las categorías */
.todas-categorias-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.todas-categorias-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* FILTRO DE CIUDADES */
.filtro-ciudad {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f1f3f4;
    width: 100%;
}

.filtro-ciudad h3 {
    margin: 0 0 0.8rem 0;
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ciudades-list li {
    padding: 0.7rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Texto más grande */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 40px;
    text-decoration: none; /* Sin subrayado */
}

.ciudades-list li a {
    text-decoration: none; /* Quita subrayado de los enlaces */
    color: inherit; /* Mantiene el color del texto */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.ciudad-nombre {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: #333;
    text-decoration: none; /* Sin subrayado */
    font-size: 0.9rem; /* Texto más grande */
}

.ciudad-contador {
    background: #6c757d;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-left: 0.5rem;
    font-weight: 600;
    text-decoration: none; /* Sin subrayado en el contador */
}

/* Para hover mantén los estilos pero sin subrayado */
.ciudades-list li:hover {
    background: #f8f9fa;
    border-color: var(--primary);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

.ciudades-list li:hover a,
.ciudades-list li:hover .ciudad-nombre {
    text-decoration: none;
}

/* Para móviles pequeños */
@media (max-width: 480px) {
    .ciudades-list li {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .ciudad-nombre {
        font-size: 0.85rem;
    }
    
    .ciudad-contador {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
}

.limpiar-ciudad {
    width: 100%;
    padding: 0.7rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.limpiar-ciudad:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* CONTENIDO PRINCIPAL */
.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/* TÍTULO DE SECCIÓN - ESTILO NEON */
.titulo-seccion {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 
        0 4px 20px rgba(0, 120, 215, 0.1),
        0 0 0 1px rgba(0, 120, 215, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 120, 215, 0.1);
}

.titulo-seccion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.titulo-seccion h1 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.titulo-seccion p {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 0.8rem;
    margin-bottom: 0;
    font-weight: 600;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
    line-height: 1.4;
}



/* RESPONSIVE PARA MÓVILES (480px - 600px) */
@media (max-width: 600px) and (min-width: 481px) {
    .titulo-seccion {
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 10px;
    }
    
    .titulo-seccion h1 {
        font-size: 1.1rem;
        gap: 0.5rem;
        letter-spacing: 0.3px;
    }
    
    .titulo-seccion p {
        font-size: 0.95rem;
        margin-top: 0.6rem;
        padding-left: 0.7rem;
        border-left: 2px solid var(--primary);
        line-height: 1.3;
    }
}

/* RESPONSIVE PARA MÓVILES PEQUEÑOS (hasta 480px) */
@media (max-width: 480px) {
    .titulo-seccion {
        margin-bottom: 0.8rem;
        padding: 0.8rem;
        border-radius: 8px;
    }
    
    .titulo-seccion h1 {
        font-size: 1rem;
        gap: 0.4rem;
        letter-spacing: 0.2px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .titulo-seccion p {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        padding-left: 0.6rem;
        border-left: 2px solid var(--primary);
        line-height: 1.2;
    }
    
    .titulo-seccion::before {
        width: 3px;
    }
}
/* GRID DE TIENDAS - MÁS FLEXIBLE Y PERMISIVO */
.tiendas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
    padding: 0;
    width: 100%;
    align-items: start; /* Para que no se estiren */
}
.tarjeta {
    background: white;
    border-radius: 10px;
    padding: 0.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tarjeta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.contenido-flexible {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.logo-container {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem auto;
    background: transparent;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}

.logo-container img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease; /* efecto suave */
}

/* Efecto hover opcional para acercar */
.logo-container:hover img {
    transform: scale(1.1);
}


.placeholder-logo {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}
/* VERDE BRILLANTE CON BORDOS REDONDEADOS - tarjeta-verde.css */
.tarjeta h1.nombre-tienda {
    font-family: 'Nunito', 'Times New Roman', serif;
    font-weight: 700;
    color: white;
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    min-height: 3em;
    max-height: 3.5em;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-transform: uppercase;
    padding: 0.4rem 0.4rem 0.6rem 0.4rem;
    width: 100%;
    background: linear-gradient(135deg, #50c878 0%, #3cb371 50%, #2e8b57 100%);
    border: 2px solid #50c878;
    border-radius: 12px;
    box-shadow:
        0 4px 15px rgba(80, 200, 120, 0.5),
        0 0 20px rgba(60, 179, 113, 0.4);
    letter-spacing: 1px;
    transition: all 0.4s ease;
    word-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
    /* Trazo negro alrededor del texto */
    text-shadow: 
        1px 1px 0 #000,
        -1px 1px 0 #000,
        1px -1px 0 #000,
        -1px -1px 0 #000,
        0 1px 0 #000,
        0 -1px 0 #000,
        1px 0 0 #000,
        -1px 0 0 #000;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.1rem;
}

.tarjeta h1.nombre-tienda::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    border-radius: 12px;
}

.tarjeta h1.nombre-tienda:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

/* Efecto hover */
.tarjeta h1.nombre-tienda:hover {
    background: linear-gradient(135deg, #00ff7f 0%, #32cd32 50%, #008000 100%);
    box-shadow:
        0 6px 25px rgba(0, 255, 127, 0.7),
        0 0 35px rgba(50, 205, 50, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.03);
    color: #ffffff;
    letter-spacing: 1.2px;
    /* Trazo negro mejorado en hover */
    text-shadow:
        1px 1px 0 #000,
        -1px 1px 0 #000,
        1px -1px 0 #000,
        -1px -1px 0 #000,
        0 1px 0 #000,
        0 -1px 0 #000,
        1px 0 0 #000,
        -1px 0 0 #000,
        0 0 5px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 255, 127, 0.8);
    border-color: #00ff7f;
}


@media (max-width: 480px) {
    .tarjeta h1.nombre-tienda {
        font-size: 0.85rem;
        padding: 0.4rem 0.2rem;
        min-height: 2.6em;
        max-height: 3em;
        -webkit-line-clamp: 2; /* Mantener máximo 2 líneas */
    }
}

/* Para casos extremos de nombres muy largos */
.tarjeta h1.nombre-tienda.nombre-largo {
    font-size: 0.8rem;
    padding: 0.5rem 0.2rem;
}


.rubro {
    color: yellow;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    text-align: center;
    padding: 0.2rem 0.6rem;
    
    border-radius: 12px;
    display: inline-block;
    align-self: center;
    margin-bottom:-0.1rem;
    margin-top: 0.3rem;
    border: 1px solid #666; /* Marco gris oscuro */
}

/* RESPONSIVE PARA MÓVILES (480px - 600px) */
@media (max-width: 600px) and (min-width: 481px) {
    .rubro {
        font-size: 0.65rem;
        padding: 0.15rem 0.45rem;
        margin-top: 0.2rem;
        margin-bottom: -0.2rem;
        white-space: nowrap; /* Texto en una línea */
    }
}

/* RESPONSIVE PARA MÓVILES PEQUEÑOS (hasta 480px) */
@media (max-width: 480px) {
    .rubro {
        font-size: 0.62rem;
        padding: 0.12rem 0.4rem;
        margin-top: 0.15rem;
        margin-bottom: -0.25rem;
        border-radius: 10px;
        white-space: nowrap; /* Texto en una línea */
    }
}
.localidad {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.descripcion {
    color: var(--secondary);
    font-size: 0.75rem;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    min-height: 40px;
    position: relative;
    word-wrap: break-word;
    padding: 0.3rem 0;
    
    /* Propiedades para texto responsive */
    font-size: clamp(0.65rem, 2.5vw, 0.75rem);
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Máximo de líneas */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* ENVÍOS Y PAGOS - COMPACTO */
.envios-pagos-info {
    margin: 0.5rem 0;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 2px solid #0078d7;
    width: 100%;
}

.envios-pagos-info h4 {
    margin: 0 0 0.4rem 0;
    font-size: 0.8rem;
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.envios-pagos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
}

.envio-item, .pago-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 0.65rem;
    transition: all 0.2s ease;
}

.envio-item:hover, .pago-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.envio-item {
    border-left: 2px solid #0078d7;
}

.pago-item {
    border-left: 2px solid #28a745;
}

.envio-item i, .pago-item i {
    font-size: 0.65rem;
    width: 12px;
    text-align: center;
}

.envio-gratis {
    color: #28a745;
    font-weight: 600;
    font-size: 0.6rem;
    margin-left: auto;
}

.no-info {
    color: #6c757d;
    font-style: italic;
    font-size: 0.7rem;
    text-align: center;
    padding: 0.3rem;
}

/* ACCIONES */
.acciones {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: auto;
}



/* TARJETAS DESTACADAS - COMPACTO */
.tarjeta-destacada {
    background: linear-gradient(135deg, #fff9e6 0%, #ffeb99 100%);
    border: 1px solid #FFD700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
 
}

.tarjeta-destacada::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
}

.badge-destacado {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B6914;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.4);
    z-index: 2;
    animation: brillo 2s infinite alternate;
}


.ver-tienda {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    padding: 0.5rem 2.5rem; /* MÁS ANCHO - MÁS PADDING HORIZONTAL */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: center;
    flex: 3;
    min-width: 200px; /* MÁS ANCHO MÍNIMO */
    gap: 0.3rem;
    margin-bottom: -0.2rem;
    margin-top: -0.3rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RESPONSIVE PARA VER TIENDA - MÁS ANCHO EN TODOS */
@media (max-width: 1024px) {
    .ver-tienda {
        padding: 0.5rem 2.2rem;
        min-width: 190px;
        font-size: 0.85rem;
    }
}



@media (max-width: 480px) {
    .ver-tienda {
        padding: 0.45rem 1.8rem;
        min-width: 160px;
        font-size: 0.8rem;
        flex: 2;
    }
}

@media (max-width: 360px) {
    .ver-tienda {
        padding: 0.4rem 1.5rem;
        min-width: 140px;
        font-size: 0.75rem;
        flex: 1.5;
    }
}

.ver-tienda:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


@keyframes brillo {
    from {
        box-shadow: 0 1px 4px rgba(255, 215, 0, 0.4);
    }
    to {
        box-shadow: 0 1px 8px rgba(255, 215, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.3);
    }
}

.tarjeta-destacada .nombre-tienda {
    color: #B8860B;
    font-weight: bold;
}

.tarjeta-destacada .rubro {
    background: rgba(255, 215, 0, 0.2);
    color: black;
    text-align: center;
}

.tarjeta-destacada .localidad {
    color: #8B6914;
    font-weight: 500;
}

/* CATEGORÍAS DESKTOP - OCULTAS EN MÓVIL */
.categorias-desktop {
    display: none;
}

/* ========== RESPONSIVE ========== */

/* TABLET (768px - 1024px) */
@media (min-width: 768px) {
    .contenedor {
        flex-direction: row;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .categorias-desktop {
        display: block;
        background: white;
        padding: 1.2rem;
        border-radius: 10px;
        box-shadow: var(--shadow);
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: 20px;
        height: fit-content;
    }
    
    .categorias-toggle {
        display: none;
    }
    
    .categorias-mobile {
        display: none !important;
    }
    
    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .tiendas-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }
    
    .tarjeta {
        min-height: 350px;
        padding: 1rem;
    }
    
    .logo-container {
        height: 110px;
    }
    
    .nombre-tienda {
        font-size: 1rem;
    }
    
    .envios-pagos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    /* FIX PARA ENVIOS-PAGOS EN DESKTOP */
    .envios-pagos-info {
        width: 100%;
        margin-top: 0.8rem;
    }
    
    .buscador-header {
        order: 3;
        margin: 1rem 0 0 0;
        max-width: 100%;
    }
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {
    .tiendas-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .tarjeta {
        min-height: 380px;
        padding: 1.2rem;
    }
    
    .logo-container {
        height: 120px;
    }
    
    .nombre-tienda {
        font-size: 1.1rem;
    }
    
    /* FIX ADICIONAL PARA ENVIOS-PAGOS */
    .envios-pagos-info {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .buscador-header {
        order: 2;
        margin: 0 1rem;
        max-width: 500px;
    }
}

/* MÓVIL (hasta 767px) */
@media (max-width: 767px) {
    .logo-link {
        justify-content: center;
    }
    
    .nav-section {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .buscador-header {
        width: 100%;
        margin: 0;
    }
}

/* MÓVIL PEQUEÑO (hasta 480px) */
@media (max-width: 480px) {
    .tiendas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .tarjeta {
        min-height: 300px;
        padding: 0.6rem;
    }
    
    .logo-container {
        height: 80px;
        margin-bottom: 0.5rem;
    }
    
    .nombre-tienda {
        font-size: 0.85rem;
        height: 2.2em;
    }
    
    
    
    .localidad {
        font-size: 0.7rem;
    }
    
    .descripcion {
        font-size: 0.7rem;
        min-height: 35px;
        -webkit-line-clamp: 2;
    }
    
  
    .envios-pagos-info {
        padding: 0.5rem;
        margin: 0.3rem 0;
    }
    
    .envios-pagos-info h4 {
        font-size: 0.75rem;
    }
    
    .envio-item, .pago-item {
        padding: 0.25rem 0.4rem;
        font-size: 0.6rem;
    }
}

/* RESULTADOS BÚSQUEDA */
.resultados-info {
    background: #e8f4fd;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary);
}

.resultados-info h3 {
    margin: 0 0 0.4rem 0;
    color: var(--primary);
    font-size: 1rem;
}

.resultados-info p {
    margin: 0;
    color: #495057;
    font-size: 0.85rem;
}

.limpiar-busqueda {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
}

.limpiar-busqueda:hover {
    background: #dc3545;
}


/* SOLUCIÓN DE EMERGENCIA - Forzar comportamiento en desktop */
@media (min-width: 1068px) {
    .contenido-flexible .envios-pagos-info {
        width: 100% !important;
        margin-top: 0.8rem !important;
        order: 999 !important;
        align-self: stretch !important;
    }
    
    .contenido-flexible {
        flex-wrap: wrap !important;
    }
}
/* ================= ESTILOS DE PLANES ================= */
.plan-basico {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    color: #333;
}

.plan-destacado {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: #856404;
}

.plan-fundador {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: 2px solid #5a67d8;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.plan-fundador::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}


.plan-fundador .rubro,
.plan-fundador .localidad,
.plan-fundador .descripcion {
    color: white !important;
}

/* CORRECCIÓN: Quitar fondo blanco y mantener íconos fuera */
.plan-fundador .envios-info,
.plan-fundador .pagos-info {
    background: transparent !important; /* Quitar fondo blanco */
    border-radius: 0;
    padding: 0;
    margin: 5px 0;
}

/* Títulos en dorado como antes */
.plan-fundador .envios-info h4,
.plan-fundador .pagos-info h4 {
    color: #ffd700 !important; /* Dorado como estaba originalmente */
}

/* Items de envío y pago en blanco */
.plan-fundador .envio-item,
.plan-fundador .pago-item,
.plan-fundador .no-info {
    color: white !important; /* Blanco como en las demás tarjetas */
    background: transparent !important; /* Quitar fondo */
}

/* Íconos en dorado */
.plan-fundador .envio-item i,
.plan-fundador .pago-item i {
    color: #ffd700 !important; /* Dorado para íconos */
}

.plan-fundador .ver-tienda {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333 !important;
    font-weight: bold;
}

.plan-fundador .ver-tienda:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Badge de plan */
.badge-plan {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    margin-top: -0.5rem;
}

.badge-basico {
    background: #6c757d;
    color: white;
}

.badge-destacado {
    background: #ffc107;
    color: #212529;
}

.badge-fundador {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
        z-index: 1; /* muy bajo, queda por debajo del menú */

}

/* 🔧 Contenedor del logo */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center; /* centrado en móvil */
    flex: 0 0 auto;
    text-align: center;
}
.logo-container {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem auto;
    background: white;
    padding: 2px; /* Menos padding */
    flex-shrink: 0;
    border: 3px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 50%;
    overflow: hidden;
}

.logo-container img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 30%;
}



@media (min-width: 1024px) {
    .tarjeta h1 {
        font-size: 1.3rem;
        margin: 1rem 0 0.6rem 0;
                text-align: center;
                width: 100%;

    }
}

@media (max-width: 480px) {
    .tarjeta h1 {
        font-size: 1rem;
        height: 2.4em;
        margin: 0.6rem 0 0.3rem 0;
                text-align: center;
                width: 100%;

    }
}



/* Botones de filtro móvil */
.filtros-mobile {
    display: flex;
    gap: 10px;
    margin: 1rem;
}

.filtro-mobile-btn {
    flex: 1;
    padding: 12px 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-mobile-btn:hover {
    background: var(--secondary);
}

/* Panel de ciudades móvil */
.ciudades-mobile {
    display: none;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 1rem;
    margin: 0 1rem 1rem 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.ciudades-mobile.active {
    display: block;
}

.ciudades-list-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ciudades-list-mobile li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ciudades-list-mobile li:hover {
    background: #f8f9fa;
}

.ciudad-contador-mobile {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    min-width: 25px;
    text-align: center;
}

/* Ocultar en desktop */
@media (min-width: 769px) {
    .filtros-mobile,
    .ciudades-mobile {
        display: none !important;
    }
}
/* === MODAL COMPLETO Y CORREGIDO === */

/* 1. CONTENEDOR PRINCIPAL DEL MODAL */
.modal-bienvenida {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.modal-bienvenida.oculto {
    display: none;
}

/* 2. CONTENEDOR DEL CONTENIDO */
.modal-contenido {
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 75vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. BOTÓN CERRAR (ESQUINA SUPERIOR DERECHA) */
.btn-cerrar-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-cerrar-modal:hover {
    background: white;
    color: #333;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 4. HEADER (YA LO TIENES PERO SIN EL ::after) */
.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 35px 25px 25px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
    border: none;
    outline: none;
}

/* 5. EL RESTO DE TU CSS (QUE YA TIENES) */
.modal-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: white;
    padding: 5px;
}

.modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.subtitulo {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

.modal-body {
    padding: 25px;
}

.beneficio-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.beneficio-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.beneficio-icono {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.beneficio-texto h3 {
    margin: 0 0 8px 0;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 600;
}

.beneficio-texto p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.beneficio-texto strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.modal-footer {
    padding: 20px 25px 25px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primario {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primario:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 215, 0.3);
}

.btn-secundario {
    background: transparent;
    color: var(--secondary);
    border: 2px solid #e9ecef;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
}

.btn-secundario:hover {
    background: #f8f9fa;
    border-color: var(--primary);
    color: var(--primary);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scrollbar */
.modal-contenido::-webkit-scrollbar {
    width: 6px;
}

.modal-contenido::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-contenido::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}



@media (max-width: 480px) {
    .modal-bienvenida {
        padding: 15px;
    }
    
    .modal-contenido {
        max-height: 80vh;
        max-width: 95%;
    }
    
    .modal-header {
        padding: 20px 15px 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .beneficio-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .beneficio-icono {
        align-self: center;
    }
}
.modal-contenido {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); /* mismo fondo */
}

.modal-body, .modal-footer {
    background: white;
    
}

/* ================= BREADCRUMBS DINÁMICOS ================= */
.breadcrumbs {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.breadcrumbs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.breadcrumbs .container {
    max-width: 100%; /* Cambiado de 1400px a 100% */
    margin: 0; /* Eliminado el margin auto */
    padding: 0 20px; /* Mantener padding lateral pero puedes ajustar */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.breadcrumbs a:hover {
    color: white;
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-decoration: none;
}

.breadcrumbs a::before {
    content: "🏠";
    font-size: 1rem;
}

.breadcrumbs span {
    color: var(--secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.breadcrumbs .separator {
    color: #6c757d;
    margin: 0 0.2rem;
}

/* Estilos para los breadcrumbs dinámicos */
#breadcrumb-default,
#breadcrumb-busqueda,
#breadcrumb-categoria,
#breadcrumb-ciudad {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 120, 215, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
    color: var(--dark);
    font-weight: 600;
}

#breadcrumb-busqueda {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

#breadcrumb-categoria {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

#breadcrumb-ciudad {
    background: rgba(111, 66, 193, 0.1);
    border-left-color: #6f42c1;
}

/* Para móviles */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.8rem 0;
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .breadcrumbs .container {
        padding: 0 10px;
        gap: 0.3rem;
    }
    
    .breadcrumbs a,
    #breadcrumb-default,
    #breadcrumb-busqueda,
    #breadcrumb-categoria,
    #breadcrumb-ciudad {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        padding: 0.6rem 0;
        font-size: 0.8rem;
    }
    
    .breadcrumbs a::before {
        font-size: 0.9rem;
    }
    
    .breadcrumbs .container {
        gap: 0.2rem;
    }
}
.btn-limpiar-filtro {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.btn-limpiar-filtro:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}
/* Móviles */
@media (max-width: 768px) {
    .btn-limpiar-filtro {
        background: #ff4757;
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
    
    .btn-limpiar-filtro:hover {
        background: #ff2e43;
    }
}

.btn-limpiar-todo {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-limpiar-todo:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Indicadores visuales para filtros activos en desktop */
.categorias-list li.categoria-activa {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.categorias-list li.categoria-activa .categoria-nombre {
    color: white !important;
}

.ciudades-list li.ciudad-activa {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.ciudades-list li.ciudad-activa .ciudad-nombre,
.ciudades-list li.ciudad-activa .ciudad-contador {
    color: white !important;
}

.ciudades-list li.ciudad-activa .ciudad-contador {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Para móviles */
@media (max-width: 768px) {
    .filtros-activos {
        padding: 0.8rem !important;
        margin: 0 1rem 1rem 1rem !important;
    }
    
    .btn-limpiar-filtro,
    .btn-limpiar-todo {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}
/* ===== PAGINACIÓN MINIMAL ===== */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem;
}

.pagina-link {
    padding: 0.8rem 1.2rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagina-link:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.pagina-actual {
    padding: 0.8rem 1.2rem;
    background: #007bff;
    border: 1px solid #007bff;
    border-radius: 6px;
    color: white;
    font-weight: 600;
}

.pagina-link.siguiente {
    background: #28a745;
    border-color: #28a745;
    color: white;
    font-weight: 600;
}

.pagina-link.siguiente:hover {
    background: #218838;
    border-color: #1e7e34;
}
/* ================= RESTAURAR SOMBRA AL CONTENEDOR PRINCIPAL ================= */

/* RESTAURAR ESTILOS ORIGINALES DEL CONTENEDOR */
.contenido-flexible {
    background: white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px;
    padding: 1rem !important;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    gap: 0.8rem;
}

/* Efecto hover en el contenedor completo */
.contenido-flexible:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* REMOVER ESTILOS INDIVIDUALES DE LA DESCRIPCIÓN */
.descripcion {
    /* Eliminar estilos de fondo y sombra individual */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-left: none !important;
    
    /* Mantener estilos de texto originales */
    color: #555;
    font-weight: 400;
    text-align: left;
    word-break: break-word;
    hyphens: auto;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    
    /* Propiedades existentes que deben mantenerse */
    font-size: 0.75rem;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    min-height: 40px;
    position: relative;
    word-wrap: break-word;
    padding: 0 !important;
    margin: 0 !important;
}

/* ELIMINAR HOVER INDIVIDUAL DE DESCRIPCIÓN */
.descripcion:hover {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* REMOVER ESTILOS ESPECIALES DE PLANES EN DESCRIPCIÓN */
.plan-destacado .descripcion,
.plan-fundador .descripcion {
    background: transparent !important;
    border-left: none !important;
}

/* MANTENER ESTILOS ESPECIALES EN EL CONTENEDOR PARA PLANES */
.plan-destacado .contenido-flexible {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    border: 2px solid #ffc107 !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
}

.plan-fundador .contenido-flexible {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 2px solid #5a67d8 !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4) !important;
}

/* ELIMINAR RESTRICCIONES DE ALTURA EN MÓVIL */
@media (max-width: 767px) {
    .descripcion {
        -webkit-line-clamp: unset !important;
        display: block !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        line-height: 1.4 !important;
    }
    
    .contenido-flexible {
        padding: 0.8rem !important;
        margin: 0.3rem 0;
    }
}

/* MÓVILES PEQUEÑOS - MÁS COMPACTO */
@media (max-width: 480px) {
    .descripcion {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
    }
    
    .contenido-flexible {
        padding: 0.6rem !important;
    }
}

/* PANTALLAS MUY PEQUEÑAS */
@media (max-width: 360px) {
    .descripcion {
        font-size: 0.65rem !important;
    }
    
    .contenido-flexible {
        padding: 0.5rem !important;
    }
}

/* MANTENER ESTILOS ORIGINALES DE ENVÍOS Y PAGOS */
.envios-info, .pagos-info {
    background: #f8f9fa;
    padding: 0.6rem;
    border-radius: 6px;
    border-left: 2px solid #0078d7;
    width: 100%;
    margin: 0.3rem 0;
}

.envios-info h4, .pagos-info h4 {
    margin: 0 0 0.4rem 0;
    font-size: 0.8rem;
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.envios-grid, .pagos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
}

.envio-item, .pago-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 0.65rem;
    transition: all 0.2s ease;
}
/* ================= BOTONES DESPLEGABLES CORREGIDOS ================= */

/* CONTENEDOR PRINCIPAL DE ENVÍOS Y PAGOS */
.envios-pagos-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
    width: 100%;
}

/* BOTÓN DESPLEGABLE */
.boton-desplegable {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057; /* Color normal del texto */
    width: 100%;
    text-align: left;
}

.boton-desplegable:hover {
    background: #e9ecef;
    border-color: #0078d7;
    transform: translateY(-1px);
}

.boton-desplegable.activo {
    background: #0078d7;
    border-color: #0078d7;
}

/* TEXTO DEL BOTÓN CUANDO ESTÁ ACTIVO */
.boton-desplegable.activo .boton-icono,
.boton-desplegable.activo .boton-icono span,
.boton-desplegable.activo .boton-icono i {
    color: white !important; /* Solo texto blanco cuando está activo */
}

/* ICONO DEL BOTÓN */
.boton-icono {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    color: #495057; /* Color normal del texto */
}

.boton-flecha {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
    color: #6c757d;
}

.boton-desplegable.activo .boton-flecha {
    color: white;
    transform: rotate(180deg);
}

/* CONTENIDO DESPLEGABLE */
.contenido-desplegable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
    border-radius: 0 0 6px 6px;
    margin-top: -1px;
}

.contenido-desplegable.activo {
    max-height: 200px;
    border: 1px solid #dee2e6;
    border-top: none;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GRID DE MÉTODOS - TEXTO SIEMPRE VISIBLE */
.metodos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.8rem;
}

.metodo-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #0078d7;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    color: #495057 !important; /* FORZAR TEXTO NEGRO SIEMPRE */
}

.metodo-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.metodo-item i {
    font-size: 0.65rem;
    color: #0078d7;
    width: 12px;
    text-align: center;
}

.metodo-item span {
    color: #495057 !important; /* FORZAR TEXTO NEGRO SIEMPRE */
}

/* ESTILOS ESPECÍFICOS PARA ENVÍOS */
.boton-envios .boton-icono i {
    color: #28a745;
}

.boton-envios.activo {
    background: #28a745;
    border-color: #28a745;
}

.envio-item {
    border-left-color: #28a745;
}

.envio-item i {
    color: #28a745 !important;
}

/* ESTILOS ESPECÍFICOS PARA PAGOS */
.boton-pagos .boton-icono i {
    color: #6f42c1;
}

.boton-pagos.activo {
    background: #6f42c1;
    border-color: #6f42c1;
}

.pago-item {
    border-left-color: #6f42c1;
}

.pago-item i {
    color: #6f42c1 !important;
}

/* SIN INFORMACIÓN */
.no-info-desplegable {
    text-align: center;
    padding: 1rem;
    color: #6c757d !important;
    font-style: italic;
    font-size: 0.7rem;
    background: #f8f9fa;
    border-radius: 4px;
}

/* PREVENIR QUE LA TARJETA SE AGRANDE */
.tarjeta {
    transition: none !important;
}

.contenido-flexible {
    transition: none !important;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .boton-desplegable {
        padding: 0.5rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .metodo-item {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }
    
    .metodos-grid {
        padding: 0.6rem;
        gap: 0.2rem;
    }
}


/* ================= BADGE RECOMENDADO SIMPLE PERO LLAMATIVO ================= */

.badge-recomendado {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFD700;
    color: #8B4513;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.6);
    z-index: 5;
    border: 2px solid #FFA500;
    animation: parpadeo 1.5s infinite;
}

@keyframes parpadeo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
/* ESTILOS PARA LAS TARJETAS CONTRAÍDAS/EXPANDIDAS */
.tarjeta {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tarjeta-contraida {
    max-height: 350px;

}

.tarjeta-expandida {
    max-height: 800px;
}

.contenido-expandible {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.tarjeta-expandida .contenido-expandible {
    display: block;
}

.descripcion-corta {
    font-size: 0.9rem;
    color: #b0b0b0 !important; /* FORZAR COLOR GRIS SIEMPRE */
    background-color: transparent;
    margin: 0.5rem 0;
    padding: 0;
    line-height: 1.4;
    font-weight: 500;
    border-radius: 0;
}

/* Estado normal (contraído) */
.descripcion-corta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

/* Estado expandido */
.tarjeta-expandida .descripcion-corta {
    display: block;
    -webkit-line-clamp: unset;
    min-height: auto;
}

/* PARA TARJETAS CON FONDO OSCURO - TEXTO BLANCO */
.plan-fundador .descripcion-corta,
.tarjeta-expandida.plan-fundador .descripcion-corta {
    color: white !important;
}

.plan-destacado .descripcion-corta,
.tarjeta-expandida.plan-destacado .descripcion-corta {
    color: #856404 !important;
}

.btn-mas-info {
    background: white;
    color: black;
    border: 2px solid #0078d7;
    padding: 0.5rem 0.9rem; /* MÁS PADDING PARA SEPARAR TEXTO DEL BORDE */
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 120, 215, 0.2);
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-width: 105px; /* MÁS ANCHO */
    max-width: 115px;
    width: 105px; /* MÁS ANCHO */
    height: auto;
    line-height: 1.2;
    white-space: nowrap;
    
    /* CENTRADO PERFECTO DEL CONTENIDO */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* FORZAR FONDO BLANCO Y TEXTO NEGRO EN TODOS LOS ESTADOS */
.btn-mas-info,
.plan-basico .btn-mas-info,
.plan-destacado .btn-mas-info,
.plan-fundador .btn-mas-info,
.tarjeta .btn-mas-info,
.contenido-flexible .btn-mas-info {
    background: white;
    color: black;
    border-color: #0078d7;
}

/* HOVER ESPECÍFICO */
.btn-mas-info:hover {
    background: #f8f9fa;
    color: #005a9e;
    border-color: #005a9e;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 90, 158, 0.3);
}

.acciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.3rem;
    gap: 0.5rem;
    width: 100%;
}



@media (max-width: 480px) {
    .btn-mas-info {
        padding: 0.4rem 0.7rem; /* MÁS PADDING EN MÓVILES PEQUEÑOS */
        font-size: 0.65rem;
        min-width: 95px; /* MÁS ANCHO EN MÓVILES PEQUEÑOS */
        max-width: 105px;
        width: 95px;
        background: white;
        color: black;
    }
}
/* NOMBRE TIENDA PARA PLAN DESTACADO - FONDO DORADO */
.plan-destacado .nombre-tienda {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    color: #8B4513;
    border: 2px solid #FFA500;
    box-shadow: 
        0 4px 15px rgba(255, 165, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-weight: 800;
}

.plan-destacado .nombre-tienda:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 50%, #FF6B00 100%);
    color: #654321;
    border-color: #FF8C00;
    box-shadow: 
        0 6px 25px rgba(255, 165, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
}

/* Efecto de brillo adicional */
.plan-destacado .nombre-tienda::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.plan-destacado .nombre-tienda:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}



@media (max-width: 480px) {
    .plan-destacado .nombre-tienda {
        font-size: 0.85rem;
        padding: 0.4rem 0.2rem;
    }
}
/* NOMBRE TIENDA PARA PLAN DESTACADO - FONDO DORADO (MÁS ESPECÍFICO) */
.plan-destacado h1.nombre-tienda {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    color: #8B4513;
    border: 2px solid #FFA500;
    box-shadow: 
        0 4px 15px rgba(255, 165, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-weight: 800;
}

.plan-destacado h1.nombre-tienda:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 50%, #FF6B00 100%);
    color: #654321;
    border-color: #FF8C00;
    box-shadow: 
        0 6px 25px rgba(255, 165, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
}

/* Efecto de brillo adicional */
.plan-destacado h1.nombre-tienda::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.plan-destacado h1.nombre-tienda:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}


@media (max-width: 480px) {
    .plan-destacado h1.nombre-tienda {
        font-size: 0.85rem;
        padding: 0.4rem 0.2rem;
    }
}
/* BOTÓN MÁS ANCHO CUANDO ESTÁ EXPANDIDO */
.tarjeta-expandida .btn-mas-info {
    min-width: 130px; /* MÁS ANCHO EN ESTADO EXPANDIDO */
    max-width: 140px;
    width: 130px;
    padding: 0.6rem 1rem; /* MÁS PADDING */
    font-size: 0.8rem; /* TEXTO UN POCO MÁS GRANDE */
}



@media (max-width: 480px) {
    .tarjeta-expandida .btn-mas-info {
        min-width: 110px;
        max-width: 120px;
        width: 110px;
        padding: 0.45rem 0.8rem;
        font-size: 0.7rem;
    }
}
/* Elimina los estilos por defecto del navegador */
.boton-ver-mas:focus,
.boton-ver-mas:active {
    background-color: transparent;
    border-color: transparent;
    outline: none;
    box-shadow: none;
}

/* Si el botón cambia de clase cuando se expande */
.boton-ver-mas.expandido {
    background-color: tu-color-original;
    border-color: tu-color-original;
}

/* O si la tarjeta padre cambia de clase */
.tarjeta.expandida .boton-ver-mas {
    background-color: tu-color-original;
    border-color: tu-color-original;
}
/* BOTÓN VER TIENDA PARA PLAN DESTACADO */
.plan-destacado .ver-tienda {
    background: #FFD700; /* Amarillo */
    color: #8B4513; /* Marrón oscuro */
    border: 2px solid #FFA500;
    font-weight: bold;
}

.plan-destacado .ver-tienda:hover {
    background: #FFA500; /* Naranja al hover */
    color: #654321; /* Marrón más oscuro */
    border-color: #555; /* Borde gris más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}
/* PLAN BÁSICO - ESTILOS ESPECÍFICOS */
.plan-basico .rubro {
    color: black;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #666;
    font-weight: 600;
}

.plan-basico h1.nombre-tienda {
    background: white;
    color: black;
    border: 2px solid #666;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.plan-basico h1.nombre-tienda:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #555;
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-3px) scale(1.02);
}
/* PLAN DESTACADO - RUBRO TEXTO NEGRO */
.plan-destacado .rubro {
    color: black;
}
/* Enfoque 1 - Pestañas */
.filtros-avanzados {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filtros-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.filtro-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn.activo {
    background: var(--primary);
    color: white;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.categoria-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.categoria-card.activa {
    background: var(--primary);
    color: white;
}

/* Enfoque 2 - Dashboard */
.filtros-dashboard {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.categorias-mosaico {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.categoria-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.categoria-link.activa {
    background: var(--primary);
    color: white;
}

/* Enfoque 3 - Chips */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chip {
    padding: 0.5rem 1rem;
    background: #f1f3f4;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.chip.activa {
    background: var(--primary);
    color: white;
}
/* BOTÓN INLINE CON DEGRADADO NARANJA */
.cta-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    margin: 0 4px;
    
    /* Degradado naranja igual al original */
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.cta-btn-inline:hover {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.5);
}

.cta-btn-inline .btn-icon {
    font-size: 0.8rem;
}

.cta-btn-inline .btn-text {
    font-size: 0.8rem;
    font-weight: 600;
}


/* ESTILOS MEJORADOS PARA BARRA LATERAL */
.categorias-desktop {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
}

.todas-categorias-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    border: none;
    cursor: pointer;
}

.todas-categorias-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
}

/* HEADERS MEJORADOS PARA FILTROS */
.filtro-categorias-header,
.filtro-ciudad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.filtro-categorias-header::before,
.filtro-ciudad-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.filtro-categorias-header:hover::before,
.filtro-ciudad-header:hover::before {
    left: 100%;
}

.filtro-categorias-header:hover,
.filtro-ciudad-header:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #d1d5db 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filtro-categorias-header h3,
.filtro-ciudad-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filtro-flecha {
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #64748b;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filtro-flecha.rotada {
    transform: rotate(180deg);
    background: var(--primary);
    color: white;
}

/* CONTENEDORES EXPANDIBLES MEJORADOS */
.categorias-contenedor,
.ciudades-contenedor {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 0 0 12px 12px;
    margin-top: -0.5rem;
}

.categorias-contenedor.expandido,
.ciudades-contenedor.expandido {
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* LISTAS MEJORADAS */
.categorias-list {
    list-style: none;
    padding: 0.8rem;
    margin: 0;
}

.categorias-list li {
    margin-bottom: 0.4rem;
    border-radius: 8px;
    overflow: hidden;
}

.categorias-list li a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    background: #f8fafc;
}

.categorias-list li a:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.categorias-list li.categoria-activa a {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.3);
}

/* CIUDADES MEJORADAS */
.ciudades-list {
    list-style: none;
    padding: 0.8rem;
    margin: 0;
}

.ciudades-list li {
    margin-bottom: 0.4rem;
    border-radius: 8px;
    overflow: hidden;
}

.ciudades-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: #f8fafc;
}

.ciudades-list li a:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    color: #059669;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.ciudades-list li.ciudad-activa a {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.3);
}

.ciudad-nombre {
    font-size: 0.9rem;
    font-weight: 500;
}

.ciudad-contador {
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ciudades-list li.ciudad-activa .ciudad-contador {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.3);
}

/* BOTÓN LIMPIAR MEJORADO */
.limpiar-ciudad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    margin: 0.8rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #fecaca;
}

.limpiar-ciudad:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

/* SCROLLBAR MEJORADO */
.categorias-contenedor::-webkit-scrollbar,
.ciudades-contenedor::-webkit-scrollbar {
    width: 6px;
}

.categorias-contenedor::-webkit-scrollbar-track,
.ciudades-contenedor::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
    margin: 4px;
}

.categorias-contenedor::-webkit-scrollbar-thumb,
.ciudades-contenedor::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 3px;
}

.categorias-contenedor::-webkit-scrollbar-thumb:hover,
.ciudades-contenedor::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* EFECTOS DE ANIMACIÓN */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categorias-contenedor.expandido .categorias-list li,
.ciudades-contenedor.expandido .ciudades-list li {
    animation: slideIn 0.3s ease forwards;
}

.categorias-contenedor.expandido .categorias-list li:nth-child(n),
.ciudades-contenedor.expandido .ciudades-list li:nth-child(n) {
    animation-delay: calc(0.05s * var(--i));
}

/* RESPONSIVE MEJORADO */
@media (max-width: 768px) {
    .categorias-desktop {
        border-radius: 12px;
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .todas-categorias-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .filtro-categorias-header,
    .filtro-ciudad-header {
        padding: 0.9rem 1rem;
    }
}

/* INDICADOR VISUAL DE ESTADO ACTIVO */
.filtro-categorias-header.active,
.filtro-ciudad-header.active {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: var(--primary);
}

.filtro-categorias-header.active h3,
.filtro-ciudad-header.active h3 {
    color: var(--primary);
}

/* ================= TARJETAS HORIZONTALES SOLO EN MÓVILES (768px) ================= */
@media (max-width: 768px) {
    .tiendas-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    
    .tarjeta {
        display: grid !important;
        grid-template-columns: 90px 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 0.2rem !important;
        padding: 0.6rem !important;
        height: auto !important;
        min-height: 110px !important;
        align-items: start !important;
    }
    
   
    
    /* Badge en dos líneas sobre el logo */
    .badge-destacado,
    .badge-recomendado,
    .badge-plan {
        position: absolute !important;
        top: 5px !important;
        left: 5px !important;
        margin: 0 !important;
        z-index: 10 !important;
        font-size: 0.5rem !important;
        padding: 2px 4px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        max-width: 70px !important;
        text-align: center !important;
        line-height: 1 !important;
        overflow: hidden !important;
        min-height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Logo más grande */
    .logo-container {
        width: 90px !important;
        height: 90px !important;
        margin: 20px 0 0 0 !important;
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
    }
    
    /* CATEGORÍA - CENTRADA VERTICALMENTE */
    .rubro {
        margin: 0.1rem 0 0 0 !important;
        grid-column: 1 !important;
        grid-row: 3 !important;
        font-size: 0.65rem !important;
        text-align: center !important;
        line-height: 1.2 !important;
        padding: 0.3rem 0.4rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow: hidden !important;
        max-height: 2.8em !important;
        display: flex !important; /* Cambiado a flex */
        align-items: center !important; /* Centrado vertical */
        justify-content: center !important; /* Centrado horizontal */
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        border: 1px solid #666 !important;
        border-radius: 8px !important;
        background: transparent !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* NOMBRE CENTRADO */
    .tarjeta h1.nombre-tienda {
        font-size: 0.9rem !important;
        margin: 0 0 0.2rem 0 !important;
        padding: 0.3rem 0.5rem !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        line-height: 1.1 !important;
        height: auto !important;
        text-align: center !important; /* CENTRADO */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Descripción centrada verticalmente */
    .descripcion {
        display: flex !important;
        align-items: center !important;
        font-size: 0.75rem !important;
        margin: 0 !important;
        grid-column: 2 !important;
        grid-row: 2 !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        max-height: 2.4em !important;
        padding: 0.1rem 0 !important;
    }
    
    /* BOTONES - FORZAR ALINEACIÓN CON MÁRGENES */
    .acciones {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.3rem !important;
        width: 100% !important;
        grid-column: 2 !important;
        grid-row: 3 !important;
        margin: 0 !important;
        align-items: stretch !important;
    }
    .ver-tienda,
    .btn-mas-info {
        width: 50% !important; /* <--- CAMBIO PARA QUE CADA BOTÓN OCUPE EL 50% DEL CONTENEDOR DE ACCIONES */
        margin: 0 !important;
        min-width: auto !important;
        /* Al usar `align-items: stretch` en `.acciones`, los botones ya deberían tener la misma altura si esta no está definida. */
        /* Si necesitas una altura mínima o fija, la defines aquí (ej: height: 35px !important;). */
    }
    
    
}

/* ================= ENVÍOS Y PAGOS SIEMPRE VISIBLES - SIN MODIFICAR HTML ================= */

/* Para móviles */
@media (max-width: 768px) {
    
    
    /* Mostrar envíos y pagos después de la localidad */
    .tarjeta .localidad {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.3rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    /* Contenedor para envíos y pagos que se genera automáticamente */
    .localidad .envios-pagos-linea {
        display: flex !important;
        align-items: center !important;
        gap: 0.8rem !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    
    /* Grupos de envíos y pagos */
    .envios-linea,
    .pagos-linea {
        display: flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        flex-wrap: wrap !important;
    }
    
    /* Ítems individuales */
    .metodo-linea {
        display: flex !important;
        align-items: center !important;
        gap: 0.2rem !important;
        padding: 0.2rem 0.4rem !important;
        background: #f8f9fa !important;
        border-radius: 4px !important;
        border-left: 2px solid #28a745 !important;
        font-size: 0.6rem !important;
        white-space: nowrap !important;
    }
    
    .pago-linea {
        border-left-color: #6f42c1 !important;
    }
    
    /* Títulos */
    .titulo-envios,
    .titulo-pagos {
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        color: #495057 !important;
        white-space: nowrap !important;
    }
    
    .titulo-envios {
        color: #28a745 !important;
    }
    
    .titulo-pagos {
        color: #6f42c1 !important;
    }
    
    /* REORGANIZACIÓN COMPLETA DE LA TARJETA */
    .tarjeta {
        grid-template-rows: auto auto auto auto !important; /* 4 filas */
        gap: 0.3rem !important;
        min-height: 130px !important;
    }
    
    /* Logo - ocupa 3 filas */
    .logo-container {
        grid-row: 1 / span 3 !important;
        margin: 0 !important;
        align-self: start !important;
    }
    
    /* Nombre tienda - fila 1 */
    .tarjeta h1.nombre-tienda {
        grid-row: 1 !important;
        grid-column: 2 !important;
        margin: 0 0 0.2rem 0 !important;
        font-size: 0.85rem !important;
        min-height: auto !important;
        height: auto !important;
        padding: 0.3rem 0.5rem !important;
    }
    
    /* Descripción - fila 2 */
    .descripcion {
        grid-row: 2 !important;
        grid-column: 2 !important;
        margin: 0 !important;
        font-size: 0.7rem !important;
        -webkit-line-clamp: 2 !important;
        line-height: 1.2 !important;
    }
    
    /* Localidad + Envíos/Pagos - fila 3 */
    .localidad {
        grid-row: 3 !important;
        grid-column: 2 !important;
        margin: 0 !important;
        font-size: 0.7rem !important;
    }
    
    /* Fila inferior - Rubro y Acciones */
    .rubro {
        grid-row: 4 !important;
        grid-column: 1 !important;
        margin: 0.2rem 0 0 0 !important;
        font-size: 0.6rem !important;
        padding: 0.2rem 0.3rem !important;
        text-align: center !important;
        align-self: center !important;
    }
    
    .acciones {
        grid-row: 4 !important;
        grid-column: 2 !important;
        margin: 0.2rem 0 0 0 !important;
        gap: 0.2rem !important;
    }
    
    .ver-tienda,
    .btn-mas-info {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.6rem !important;
    }
}
/* ================= ELIMINAR SUBRAYADO EN LISTAS DE CIUDADES ================= */

/* Para la lista de ciudades en móvil */
.ciudades-list-mobile li a {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Para la lista de ciudades en desktop */
.ciudades-list li a {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Eliminar subrayado en hover también */
.ciudades-list-mobile li a:hover,
.ciudades-list li a:hover {
    text-decoration: none !important;
}

/* Asegurar que los textos dentro no tengan subrayado */
.ciudad-nombre,
.ciudad-contador,
.ciudad-contador-mobile {
    text-decoration: none !important;
}

/* Estilos específicos para móviles */
@media (max-width: 768px) {
    .ciudades-list-mobile li {
        text-decoration: none !important;
    }
    
    .ciudades-list-mobile li a {
        text-decoration: none !important;
    }
}