/* ============================================
   🎨 VARIABLES GLOBALES
   ============================================ */
:root {
    --color-primary: #007887;     
    --color-secondary: #121212;
	--color-corporativo: #007887;
    --color-white: #ffffff;
    --color-text: rgba(255, 255, 255, 0.85);
    --color-text-light: rgba(255, 255, 255, 0.5);
    --primary: #E27147;           
    --whatsapp-color: #25D366;
    --facebook-color: #1877f2;
    
    --bg-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --bg-modal: rgba(18, 18, 18, 0.85);
    --bg-overlay: rgba(0, 0, 0, 0.4);
    --bg-glass: rgba(255, 255, 255, 0.08);
    
    --shadow-xl: 0 10px 25px rgba(0, 0, 0, 0.4);
    --blur-sm: blur(10px);
    --border-glass: 1px solid rgba(255, 255, 255, 0.15);
    
    --transition-fast: 0.2s;
    --spacing-md: 16px;
    --radius-md: 16px;
    --radius-lg: 50px;
}

/* ============================================
   🧹 RESET Y ESTILOS BASE
   ============================================ */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-gradient);
    color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-overlay);
    backdrop-filter: var(--blur-sm);
    z-index: -1;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

/* ============================================
   📝 H1 OCULTO PARA SEO
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* ============================================
   🏷️ HEADER PRINCIPAL
   ============================================ */
.main-header {
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: var(--border-glass);
    flex-shrink: 0;
    position: relative;
    z-index: 50;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 767px) {
    .header-top {
        justify-content: space-between;
        max-width: 100%;
    }
}

/* ============================================
   🖼️ LOGO
   ============================================ */
.header-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo {
    height: auto;
    width: auto;
    max-height: 50px;
    max-width: 400px;
    aspect-ratio: 600 / 389;
    display: block;
    object-fit: contain;
}

/* --- TAMAÑOS RESPONSIVE DEL LOGO --- */
@media (min-width: 769px) {
    .brand-logo { 
        max-height: 55px; 
        max-width: 380px; 
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .brand-logo { 
        max-height: 50px;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .brand-logo { 
        max-height: 45px;
        max-width: 200px;
    }
}

@media (max-width: 380px) {
    .brand-logo { 
        max-height: 38px;
        max-width: 160px;
    }
}

/* ============================================
   🔘 HEADER ACTIONS (botones derecha)
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .header-actions {
        gap: 6px;
    }
}

/* ============================================
   📍 BOTÓN "CERCA DE MÍ"
   ============================================ */
.nearby-btn {
    background: rgba(226,113,71,0.2);
    border: 1px solid rgba(226,113,71,0.4);
    border-radius: 50px;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nearby-btn i { font-size: 0.85rem; }

.nearby-btn:hover {
    background: rgba(226,113,71,0.4);
    color: white;
}

/* --- Ocultar en escritorio --- */
@media (min-width: 768px) {
    .nearby-btn { display: none !important; }
}

/* --- Ajustes móviles --- */
@media (max-width: 480px) {
    .nearby-btn .nearby-text { display: inline; }
    .nearby-btn { padding: 6px 12px; font-size: 0.7rem; gap: 4px; }
    .nearby-btn i { font-size: 0.75rem; margin: 0; }
}

@media (max-width: 380px) {
    .nearby-btn { padding: 5px 10px; font-size: 0.6rem; }
    .nearby-btn i { font-size: 0.65rem; }
}

/* ============================================
   🍔 MENÚ HAMBURGUESA - VERSIÓN DISCRETA
   ============================================ */
.menu-hamburguesa {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    z-index: 1001;
    position: relative;
}

.menu-hamburguesa:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Las 3 rayitas --- */
.menu-hamburguesa .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-hamburguesa:hover .bar {
    background: rgba(255, 255, 255, 0.9);
}

/* --- Animación a X cuando está activo --- */
.menu-hamburguesa.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
    background: var(--color-white);
}

.menu-hamburguesa.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-hamburguesa.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    background: var(--color-white);
}

/* --- 🖥️ ESCRITORIO: más discreto y separado --- */
@media (min-width: 769px) {
    .menu-hamburguesa {
        margin-left: 20px;
        padding: 6px 10px;
        min-width: 34px;
        min-height: 34px;
        background: transparent;
        border: none;
    }
    
    .menu-hamburguesa .bar {
        width: 20px;
        height: 2px;
        background: rgba(255, 255, 255, 0.4);
    }
    
    .menu-hamburguesa:hover .bar {
        background: rgba(255, 255, 255, 0.7);
    }
    
    .menu-hamburguesa:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* --- 📱 MÓVILES --- */
@media (max-width: 480px) {
    .menu-hamburguesa { 
        padding: 6px 10px; 
        gap: 3.5px;
        min-width: 34px;
        min-height: 34px;
        border-radius: 50px;
    }
    .menu-hamburguesa .bar { 
        width: 16px; 
        height: 2px;
    }
}

/* --- 📱 MÓVILES MUY PEQUEÑOS --- */
@media (max-width: 380px) {
    .menu-hamburguesa { 
        padding: 5px 8px; 
        gap: 3px;
        min-width: 30px;
        min-height: 30px;
    }
    .menu-hamburguesa .bar { 
        width: 14px; 
        height: 1.5px;
    }
}

/* ============================================
   📋 MENÚ DESPLEGABLE (lateral)
   ============================================ */
.menu-desplegable {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 20, 25, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: var(--border-glass);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 80px 24px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.menu-desplegable.open {
    right: 0;
}

/* ============================================
   ❌ BOTÓN DE CIERRE (X)
   ============================================ */
.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: var(--color-white);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.menu-close i {
    font-size: 1.2rem;
}

/* ============================================
   🌑 OVERLAY (fondo oscuro detrás del menú)
   ============================================ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   📑 LISTA DEL MENÚ
   ============================================ */
.menu-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.menu-lista li {
    width: 100%;
}

.menu-lista a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.menu-lista a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    transform: translateX(4px);
}

/* --- Botón Compartir (sin icono) --- */
.menu-share-btn {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    width: 100%;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.25s ease;
    text-align: left;
}

.menu-share-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    transform: translateX(4px);
}

/* --- Separador --- */
.menu-lista .menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0;
    width: 100%;
}

/* --- Enlaces legales (más pequeños) --- */
.menu-lista .legal-link a {
    font-size: 0.8rem;
    color: var(--color-text-light);
    padding: 10px 18px;
}

.menu-lista .legal-link a:hover {
    color: var(--color-white);
}

/* ===== COPYRIGHT EN EL MENÚ (LEGIBLE) ===== */
.menu-copyright {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.menu-copyright span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.menu-copyright a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: inherit;
    font-weight: inherit;
    transform: none !important;
}

.menu-copyright a:hover {
    color: rgba(255, 255, 255, 0.75);
    background: transparent !important;
    transform: none !important;
}

/* --- Móviles --- */
@media (max-width: 480px) {
    .menu-copyright {
        padding-top: 14px;
    }
    .menu-copyright span {
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.4);
    }
}

@media (max-width: 380px) {
    .menu-copyright {
        padding-top: 12px;
    }
    .menu-copyright span {
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.35);
    }
}

/* ============================================
   🔍 BUSCADOR
   ============================================ */
.buscador-container {
    padding: 15px 20px 0 20px;
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 480px) {
    .buscador-container {
        padding: 10px 16px 0 16px;
    }
}

.buscador-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    border: var(--border-glass);
    padding: 8px 16px;
    transition: all 0.3s;
}

.buscador-wrapper:focus-within {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--primary);
}

.buscador-wrapper i {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-right: 10px;
}

.buscador-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    padding: 5px 0;
}

.buscador-wrapper input::placeholder {
    color: var(--color-text-light);
}

.limpiar-btn {
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0 5px;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: none;
    align-items: center;
}

.limpiar-btn:hover { color: var(--color-white); }

.resultados-info {
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-top: 8px;
    padding-left: 15px;
}

/* ============================================
   📦 CONTENEDOR DE TARJETAS (scroll horizontal)
   ============================================ */
.scroll-container {
    flex: 1;
    width: 100%;
    padding: 20px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.grid-clientes {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 10px 0;
    align-items: stretch;
    flex: 1;
}

.grid-clientes::-webkit-scrollbar { display: none; }
.grid-clientes { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================
   📦 CONTENEDOR DE TARJETAS (scroll horizontal)
   ============================================ */
.scroll-container {
    flex: 1;
    width: 100%;
    padding: 20px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.grid-clientes {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 10px 0;
    align-items: stretch;
    flex: 1;
    width: 100%;
}

.grid-clientes::-webkit-scrollbar { display: none; }
.grid-clientes { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================
   👆 INDICADOR DE SCROLL (debajo de las tarjetas)
   ============================================ */
.scroll-indicator {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    display: flex;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    border-radius: 40px;
    z-index: 5;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    margin: 4px auto 2px auto;
    align-self: center;
    opacity: 1;
    visibility: visible;
    animation: fadeOutIndicator 4s ease-in-out forwards;
}

.scroll-indicator span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.scroll-indicator span .texto-corto { display: none; }
.scroll-indicator i { font-size: 0.8rem; animation: slideArrow 1.5s ease-in-out infinite; }
.scroll-indicator i:first-child { animation: slideArrowLeft 1.5s ease-in-out infinite; }

@keyframes slideArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes slideArrowLeft { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }

/* ===== ANIMACIÓN DE DESAPARICIÓN ===== */
@keyframes fadeOutIndicator {
    0% { opacity: 1; visibility: visible; }
    60% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

/* --- Ocultar en escritorio --- */
@media (min-width: 768px) {
    .scroll-indicator { display: none !important; }
}

/* --- Móviles --- */
@media (max-width: 480px) {
    .scroll-container { padding: 15px 15px 8px 15px; }
    .grid-clientes { padding: 8px 0 8px 0; gap: 15px; }
    .scroll-indicator { 
        padding: 6px 16px; 
        margin: 2px auto 2px auto; 
        gap: 8px;
    }
    .scroll-indicator span { 
        font-size: 0.7rem; 
        gap: 6px; 
    }
    .scroll-indicator i { font-size: 0.7rem; }
}

@media (max-width: 380px) {
    .scroll-container { padding: 12px 10px 6px 10px; }
    .grid-clientes { padding: 6px 0 6px 0; gap: 12px; }
    .scroll-indicator { 
        padding: 5px 12px; 
        margin: 2px auto 2px auto;
        gap: 6px;
    }
    .scroll-indicator span { 
        font-size: 0.6rem; 
        gap: 4px; 
    }
    .scroll-indicator i { font-size: 0.6rem; }
    .scroll-indicator span .texto-completo { display: none; }
    .scroll-indicator span .texto-corto { display: inline; }
}

/* ============================================
   🃏 TARJETA DE COMERCIO
   ============================================ */
.card-cliente {
    flex: 0 0 calc(100vw - 40px);
    max-width: 360px;
    background: var(--bg-modal);
    border-radius: var(--radius-md);
    border: var(--border-glass);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    height: auto;
}

@media (max-width: 480px) {
    .card-cliente { flex: 0 0 calc(100vw - 30px); }
}

@media (min-width: 600px) and (max-width: 767px) {
    .card-cliente {
        flex: 0 0 calc(50vw - 30px);
        max-width: none;
    }
    .grid-clientes {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        overflow-x: visible;
        padding-bottom: 0;
    }
}

.card-body {
    flex: 1;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-height: 701px) {
    .scroll-container { align-items: center; }
}

@media (max-height: 700px) {
    .scroll-container { align-items: flex-start; }
}

@media (min-width: 768px) {
    body { height: auto; overflow: auto; }
    .content-wrapper { height: auto; overflow: visible; padding-bottom: 20px; }
    .scroll-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 20px;
        display: block;
        align-items: flex-start;
        overflow-y: visible;
    }
    .grid-clientes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        overflow-x: visible;
        overflow-y: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
        cursor: default;
    }
    .card-cliente {
        flex: none;
        width: 100%;
        max-width: 100%;
        scroll-snap-align: none;
        height: 100%;
    }
    #tarjeta-loadmore {
        grid-column: 1 / -1;
        max-width: 100%;
        flex: none;
        width: 100%;
    }
    .scroll-indicator { display: none !important; }
}

@media (max-width: 767px) {
    body { height: 100vh; height: 100dvh; overflow: hidden; }
    .content-wrapper { height: 100vh; height: 100dvh; overflow: hidden; }
}

.card-cliente.destacado {
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(226, 113, 71, 0.2);
}

/* ============================================
   🖼️ MEDIA / GALERÍA
   ============================================ */
.card-media {
    width: 100%;
    height: 180px;
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img { width: 100%; height: 100%; object-fit: cover; }

.galeria-slider { 
    display: flex; 
    width: 100%; 
    height: 100%; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.galeria-slider::-webkit-scrollbar { display: none; }

.slider-img { 
    flex: 0 0 100%; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* --- Badge destacado --- */
.card-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--color-corporativo);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.card-cliente:not(.destacado) .card-badge {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: var(--blur-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Contador de imágenes --- */
.gallery-counter {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 5;
    font-family: monospace;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* --- Indicador "desliza" --- */
.gallery-swipe-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 6;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.gallery-swipe-hint i {
    font-size: 0.55rem;
    animation: hintSwipe 1.5s ease-in-out infinite;
}

@keyframes hintSwipe {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(3px); opacity: 1; }
}

@media (min-width: 768px) {
    .gallery-swipe-hint { display: none !important; }
}

/* --- Botones navegación galería --- */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    opacity: 0;
}

.card-media:hover .gallery-nav-btn { opacity: 1; }
.gallery-nav-prev { left: 10px; }
.gallery-nav-next { right: 10px; }
.gallery-nav-btn i { color: white; font-size: 1rem; }
.gallery-nav-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 768px) {
    .gallery-nav-btn { display: none; }
}

/* ============================================
   📱 BOTONES FLOTANTES (Instagram, Facebook)
   ============================================ */
.botones-flotantes {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.instagram-btn, .facebook-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.facebook-btn {
    background: var(--facebook-color);
    color: white;
}

.instagram-btn:active, .facebook-btn:active { transform: scale(0.9); }

/* ============================================
   📝 TÍTULO Y METADATOS
   ============================================ */
.title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-body h2 { 
    font-family: 'Barlow Condensed', sans-serif; 
    font-size: 1.4rem; 
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
    color: var(--color-white); 
    line-height: 1.2;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* --- Etiquetas de estado --- */
.tag-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-status.destacado-badge {
    background: rgba(226, 113, 71, 0.2);
    color: #E27147;
    border: 1px solid rgba(226, 113, 71, 0.4);
}

.tag-status.abierto { 
    background: rgba(37, 211, 102, 0.2); 
    color: #25D366; 
    border: 1px solid rgba(37, 211, 102, 0.4);
}

.tag-status.cerrado { 
    background: rgba(255, 59, 48, 0.2); 
    color: #ff3b30; 
    border: 1px solid rgba(255, 59, 48, 0.4);
}

.tag-status i { font-size: 0.6rem; }

/* --- Info de la tarjeta --- */
.card-info-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 8px; 
    font-size: 0.75rem; 
    color: var(--color-text); 
    margin-bottom: 6px;
    line-height: 1.3;
}

.card-info-item i { 
    color: var(--primary); 
    width: 16px; 
    min-width: 16px;
    text-align: center; 
    font-size: 0.75rem;
    margin-top: 2px;
}

.card-info-item span { flex: 1; word-break: break-word; }

/* --- Badge de distancia --- */
.distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #4CAF50;
}

.distance-badge i { font-size: 0.6rem; }

/* ============================================
   📍 MÚLTIPLES UBICACIONES
   ============================================ */
.ubicaciones-multiples {
    display: flex;
    align-items: center !important;
    gap: 8px;
}

.ubicaciones-multiples > i {
    margin-top: 0 !important;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ubicaciones-container {
    flex: 1;
    width: 100%;
}

.ubicaciones-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 2px 0;
    color: var(--color-text);
    gap: 8px;
}

.ubicaciones-toggle span {
    flex: 1;
    line-height: 1.4;
}

.ubicaciones-toggle .toggle-icon {
    transition: transform 0.2s ease;
    font-size: 0.65rem;
    color: var(--primary);
    flex-shrink: 0;
}

.ubicaciones-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.ubicaciones-lista {
    margin-top: 6px;
    padding-left: 0;
    font-size: 0.7rem;
    color: var(--color-text-light);
    border-left: 2px solid var(--primary);
    padding-left: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.sede-item {
    padding: 3px 0;
    word-break: break-word;
    line-height: 1.3;
}

.sede-item:not(:last-child) {
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 4px;
}

/* ============================================
   🎯 ACCIONES DE LA TARJETA (4 botones)
   ============================================ */
.card-actions { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    border-top: var(--border-glass); 
    background: rgba(0, 0, 0, 0.15); 
    flex-shrink: 0; 
}

.action-btn { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 4px; 
    padding: 8px 4px; 
    color: var(--color-text); 
    text-decoration: none; 
    font-size: 0.65rem; 
    font-weight: 500; 
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.action-btn:not(:last-child) { border-right: var(--border-glass); }
.action-btn i { font-size: 0.9rem; color: var(--color-white); }
.action-btn:active { background: rgba(255, 255, 255, 0.1); }
.action-btn.whatsapp-active i { color: var(--whatsapp-color); }

/* ============================================
   🔘 BOTÓN "VER MÁS"
   ============================================ */
.btn-ver-mas {
    background: linear-gradient(135deg, var(--primary) 0%, #c55a2e 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
}

.btn-ver-mas:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #c55a2e 0%, var(--primary) 100%);
}

.btn-ver-mas:active { transform: translateY(1px); }
.btn-ver-mas i { font-size: 1.1rem; }

.contenedor-boton {
    text-align: center;
    margin: 30px 0 20px;
}

/* ============================================
   🍪 BANNER DE COOKIES (AJUSTADO)
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 500px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 14px 18px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 90;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--color-text);
    flex: 1;
    min-width: 140px;
}

.cookie-banner a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-banner button {
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-cookies {
    background: var(--primary);
}

.accept-cookies:hover {
    background: #c55a2e;
    transform: scale(1.02);
}

.reject-cookies {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.reject-cookies:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- 📱 Cookies en móvil --- */
@media (max-width: 480px) {
    .cookie-banner {
        bottom: 16px;
        width: calc(100% - 24px);
        padding: 12px 14px;
        border-radius: 14px;
        max-width: 100%;
        gap: 10px;
    }

    .cookie-banner p {
        font-size: 0.7rem;
        min-width: 100px;
        flex: 1 1 100%;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
        gap: 6px;
    }

    .cookie-banner button {
        padding: 5px 14px;
        font-size: 0.65rem;
    }
}

@media (max-width: 380px) {
    .cookie-banner {
        padding: 10px 12px;
        bottom: 12px;
        width: calc(100% - 16px);
        border-radius: 12px;
    }

    .cookie-banner p {
        font-size: 0.65rem;
    }

    .cookie-banner button {
        padding: 4px 12px;
        font-size: 0.6rem;
    }
}

/* ============================================
   📲 PWA - INSTALAR APP
   ============================================ */
.pwa-install-container {
    position: fixed;
    bottom: 90px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.pwa-install-card {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.pwa-install-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pwa-install-icon {
    background: rgba(226, 113, 71, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.pwa-install-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.pwa-install-badge {
    font-size: 0.65rem;
    background: rgba(226, 113, 71, 0.3);
    color: #E27147;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

.pwa-install-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    font-size: 0.7rem;
}

.pwa-install-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

.pwa-install-features i { color: #4CAF50; font-size: 0.65rem; }

.pwa-install-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.pwa-install-btn {
    background: linear-gradient(135deg, #E27147 0%, #c55a2e 100%);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pwa-install-btn:hover { transform: scale(1.02); opacity: 0.95; }

.pwa-later-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 40px;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pwa-later-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

@media (max-width: 550px) {
    .pwa-install-card { padding: 14px 16px; }
    .pwa-install-header { margin-bottom: 8px; }
    .pwa-install-icon { width: 40px; height: 40px; font-size: 1.3rem; }
    .pwa-install-title { font-size: 0.95rem; }
    .pwa-install-features { gap: 8px; margin: 8px 0; }
    .pwa-install-features span { font-size: 0.6rem; padding: 3px 8px; }
    .pwa-install-actions { margin-top: 10px; }
    .pwa-install-btn { padding: 8px 18px; font-size: 0.8rem; }
    .pwa-later-btn { padding: 8px 16px; font-size: 0.75rem; }
}