/* main.css - Zonas Áridas Global Styles */

body {
    font-family: 'Outfit', sans-serif;
}

/* ============================================ */
/* === Nav Glassmorphism (header.php)        === */
/* ============================================ */

.nav-premium {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.menu-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item:hover {
    color: var(--theme-color, #E63946);
    transform: translateY(-2px);
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-link {
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    border-left-color: var(--theme-color, #E63946);
    color: var(--theme-color, #E63946);
    padding-left: 1.25rem;
}

/* ============================================ */
/* === Barra inferior (footer.php)           === */
/* ============================================ */

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: linear-gradient(to right, #1a1a1a, #2a2a2a);
    color: white;
    display: flex;
    align-items: center;
    z-index: 1002;
    border-top: 4px solid var(--theme-color, #E63946);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Outfit', sans-serif;
}

.sucursales-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-around;
    align-items: center;
}

.sucursal {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.sucursal h3 {
    margin: 0;
    padding-right: 15px;
    font-size: 1.15em;
    font-weight: 700;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    color: #f8f9fa;
}

.info-container {
    text-align: left;
}

.sucursal p {
    margin: 5px 0;
    font-size: 0.9em;
    font-weight: 300;
}

.sucursal a {
    color: #e0e0e0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.sucursal a:hover {
    color: var(--theme-color, #E63946);
    transform: translateX(3px);
}

.sucursal a i {
    margin-right: 8px;
    font-size: 1.1em;
    width: 20px;
    text-align: center;
    color: var(--theme-color, #E63946);
}

@media (max-width: 768px) {
    .sucursales-container {
        justify-content: center;
    }

    .sucursal {
        position: absolute;
        width: auto;
        opacity: 0;
        white-space: nowrap;
    }

    .sucursal:nth-child(1) {
        animation: directCut1 18s infinite steps(1, end);
    }

    .sucursal:nth-child(2) {
        animation: directCut2 18s infinite steps(1, end);
    }

    .sucursal:nth-child(3) {
        animation: directCut3 18s infinite steps(1, end);
    }
}

@keyframes directCut1 {
    0% {
        opacity: 1;
    }

    33.33% {
        opacity: 0;
    }
}

@keyframes directCut2 {
    33.33% {
        opacity: 1;
    }

    66.66% {
        opacity: 0;
    }
}

@keyframes directCut3 {
    66.66% {
        opacity: 1;
    }

    99.99% {
        opacity: 0;
    }
}

/* Login Effects */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* ============================================ */
/* === Animaciones de entrada (scroll)       === */
/* ============================================ */

html {
    scroll-behavior: smooth;
}

.animacion-entrada {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animacion-entrada.visible {
    opacity: 1;
    transform: translateY(0);
}

.animacion-delay-1 {
    transition-delay: 0.12s;
}

.animacion-delay-2 {
    transition-delay: 0.24s;
}

.animacion-delay-3 {
    transition-delay: 0.36s;
}

.animacion-delay-4 {
    transition-delay: 0.48s;
}

.texto-gradiente {
    background: linear-gradient(135deg, #E63946 0%, #c1121f 55%, #9d0208 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
    .animacion-entrada {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}


/* ================================================================ */
/* ===  LAYOUT 3 COLUMNAS — PORTAL PÚBLICO                      === */
/* ================================================================ */

/* --- Layout Grid Principal (3 columnas: público/vet/login) --- */
.layout-tres-columnas {
    display: grid;
    grid-template-columns: 20% 1fr 20%;
    height: 100vh;
    overflow: hidden;
}

/* --- Layout Grid Admin (2 columnas: sidebar + contenido) --- */
.layout-dos-columnas {
    display: grid;
    grid-template-columns: 16rem 1fr;
    height: 100vh;
    overflow: hidden;
}

/* --- Barra superior móvil --- */
.barra-movil {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 30;
}

/* ============================================ */
/* === PANEL IZQUIERDO (Sidebar)             === */
/* ============================================ */

.panel-izquierdo {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    /* Fallback default */
    color: #e5e7eb;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============================================ */
/* === CLASES GLOBALES, LOGO Y TIPOGRAFÍA   === */
/* ============================================ */
.resplandor-logo {
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.5));
}

/* ============================================ */
/* === TEMAS DEL PANEL IZQUIERDO Y DERECHO   === */
/* ============================================ */

/* --- TEMA: PÚBLICO (Mayorista) --- */
.theme-publico.panel-izquierdo,
.theme-publico.panel-derecho {
    background: #ffffff;
    /* Blanco limpio */
    color: #374151;
    /* Gris oscuro para lectura */
}

.theme-publico.panel-izquierdo {
    border-right-color: #e5e7eb;
}

.theme-publico .resplandor-logo {
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

/* Sombra natural */

.theme-publico .categoria-grupo {
    border-bottom-color: #f3f4f6;
}

.theme-publico .categoria-titulo {
    color: #111827;
}

.theme-publico .categoria-titulo .icono-expand {
    color: #9ca3af;
}

.theme-publico .categoria-titulo:hover {
    background: #f9fafb;
    color: #ef4444;
}

.theme-publico .categoria-grupo.activo .categoria-titulo {
    color: #ef4444;
    /* Resalte rojo */
    background: #fef2f2;
}

.theme-publico .categoria-enlaces {
    background: #fafafa;
}

.theme-publico .categoria-enlaces a {
    color: #4b5563;
}

.theme-publico .categoria-enlaces a:hover {
    color: #ef4444;
    background: #ffffff;
    border-left-color: #ef4444;
}

.theme-publico .categoria-enlaces a:hover .enlace-detalle {
    color: #f87171;
}

.theme-publico .area-login-sidebar {
    background: #f9fafb;
    border-top-color: #e5e7eb;
}

.theme-publico .boton-acceso-vet {
    background: #ffffff;
    color: #374151;
    border-color: #e5e7eb;
}

.theme-publico .boton-acceso-vet:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

/* --- TEMA: VETERINARIA --- */
.theme-veterinaria.panel-izquierdo,
.theme-veterinaria.panel-derecho {
    background: #ffffff;
    /* Blanco limpio */
    color: #374151;
    /* Gris oscuro para lectura */
}

.theme-veterinaria.panel-izquierdo {
    border-right-color: #e5e7eb;
}

.theme-veterinaria .categoria-grupo {
    border-bottom-color: #f3f4f6;
}

.theme-veterinaria .categoria-titulo {
    color: #111827;
}

.theme-veterinaria .categoria-titulo .icono-expand {
    color: #9ca3af;
}

.theme-veterinaria .categoria-titulo:hover {
    background: #f9fafb;
    color: #10b981;
}

.theme-veterinaria .categoria-grupo.activo .categoria-titulo {
    color: #10b981;
    /* Resalte verde */
    background: #ecfdf5;
}

.theme-veterinaria .categoria-enlaces {
    background: #fafafa;
}

.theme-veterinaria .categoria-enlaces a {
    color: #4b5563;
}

.theme-veterinaria .categoria-enlaces a:hover {
    color: #10b981;
    background: #ffffff;
    border-left-color: #10b981;
}

.theme-veterinaria .categoria-enlaces a:hover .enlace-detalle {
    color: #34d399;
}

.theme-veterinaria .area-login-sidebar {
    background: #f9fafb;
    border-top-color: #e5e7eb;
}

.theme-veterinaria .boton-logout-admin {
    border-color: #e5e7eb;
    color: #374151;
}

.theme-veterinaria .boton-logout-admin:hover {
    background: #ecfdf5;
    color: #10b981;
    border-color: #10b981;
}

/* --- TEMA: ADMIN --- */
.theme-admin.panel-izquierdo,
.theme-admin.panel-derecho {
    background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
    /* Dark zinc negro */
}

.theme-admin .enlace-admin.activo {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    /* Texto flúo (Cyan) */
    border: 1px solid rgba(6, 182, 212, 0.35);
}

.theme-admin .enlace-admin:hover {
    color: #67e8f9;
    /* Hover neón vibrante */
}


/* Zona del logo */
.area-logo {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    background: rgba(255, 255, 255, 0.03);
}

.cerrar-menu-movil {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #9ca3af;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.cerrar-menu-movil:hover {
    color: var(--theme-color, #E63946);
}

/* Menú de categorías (acordeón) */
.menu-categorias {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.categoria-grupo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.categoria-titulo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #d1d5db;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Outfit', sans-serif;
}

.categoria-titulo:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.categoria-grupo.activo .categoria-titulo {
    color: #E63946;
    background: rgba(230, 57, 70, 0.06);
}

.categoria-titulo .icono-expand {
    font-size: 0.6rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6b7280;
}

.categoria-grupo.activo .icono-expand {
    transform: rotate(180deg);
    color: #E63946;
}

/* Submenú de enlaces */
.categoria-enlaces {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.categoria-grupo.activo .categoria-enlaces {
    max-height: 3500px;
    /* Aumentado para permitir visualizar más de 15 enlaces (aprox 20-30 ítems) */
}

.categoria-enlaces a {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 1.25rem 0.6rem 2rem;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    font-size: 0.8125rem;
}

.categoria-enlaces a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border-left-color: #E63946;
    padding-left: 2.25rem;
}

.enlace-nombre {
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}

.enlace-detalle {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 1px;
}

.categoria-enlaces a:hover .enlace-detalle {
    color: #9ca3af;
}

/* Zona de acceso veterinarias (fondo del sidebar) */
.area-login-sidebar {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.boton-acceso-vet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.06) 100%);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    font-family: 'Outfit', sans-serif;
}

.boton-acceso-vet:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.boton-acceso-vet i {
    font-size: 0.9rem;
}

/* --- Menú Admin --- */
.enlace-admin {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: #9ca3af;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    font-family: 'Outfit', sans-serif;
}

.enlace-admin:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.enlace-admin.activo {
    background: rgba(230, 57, 70, 0.1);
    color: #E63946;
    border: 1px solid rgba(230, 57, 70, 0.2);
    font-weight: 600;
}

.boton-logout-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: 'Outfit', sans-serif;
}

.boton-logout-admin:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}


/* ============================================ */
/* === PANEL CENTRAL (Slider)                === */
/* ============================================ */

.panel-central {
    height: 100vh;
    overflow: hidden;
    background: #f3f4f6;
}


/* ============================================ */
/* === PANEL DERECHO (Contacto)              === */
/* ============================================ */

.panel-derecho {
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border-left: 1px solid #ececec;
    overflow: hidden;
}

/* --- Modo Oscuro Panel Derecho Adaptivo (Para Admin) --- */
.panel-derecho.theme-admin {
    color: #e5e7eb;
    border-left-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
}

.panel-derecho.theme-admin .encabezado-panel-derecho {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.panel-derecho.theme-admin .encabezado-panel-derecho h2 {
    color: #ffffff;
}

.panel-derecho.theme-admin .encabezado-panel-derecho p {
    color: rgba(255, 255, 255, 0.7);
}

.panel-derecho.theme-admin .tarjeta-sucursal {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f9fafb;
}

.panel-derecho.theme-admin .tarjeta-sucursal:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.panel-derecho.theme-admin .tarjeta-sucursal h3 {
    color: #ffffff;
}

.panel-derecho.theme-admin .tarjeta-sucursal-direccion {
    color: rgba(255, 255, 255, 0.8);
}

.panel-derecho.theme-admin .separador-panel {
    background: rgba(255, 255, 255, 0.1);
}

.panel-derecho.theme-admin .cta-whatsapp-general p {
    color: #f9fafb;
}

.panel-derecho.theme-admin .footer-panel-derecho {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.panel-derecho.theme-admin .btn-mapa-sucursal {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.panel-derecho.theme-admin .btn-mapa-sucursal:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #22d3ee;
}

/* --- Panel Derecho Modo Esmeralda (Veterinaria) --- */
.panel-derecho.theme-veterinaria {
    border-left-color: #e5e7eb;
    background: #ffffff;
}

.panel-derecho.theme-veterinaria .encabezado-panel-derecho h2 {
    color: #10b981;
}

.panel-derecho.theme-veterinaria .encabezado-panel-derecho p {
    color: #6b7280;
}

.panel-derecho.theme-veterinaria .tarjeta-sucursal {
    border-color: #e5e7eb;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.panel-derecho.theme-veterinaria .tarjeta-sucursal:hover {
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.06);
}

.panel-derecho.theme-veterinaria .tarjeta-sucursal h3 {
    color: #059669;
}

.panel-derecho.theme-veterinaria .btn-mapa-sucursal {
    background: #ecfdf5;
    color: #10b981;
}

.panel-derecho.theme-veterinaria .btn-mapa-sucursal:hover {
    background: #10b981;
    color: #ffffff;
}

/* --- Panel Derecho Modo Claro (Público) --- */
.panel-derecho.theme-publico {
    border-left-color: #e5e7eb;
    background: #ffffff;
}

.panel-derecho.theme-publico .tarjeta-sucursal {
    border-color: #e5e7eb;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.panel-derecho.theme-publico .tarjeta-sucursal:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.panel-derecho.theme-publico .tarjeta-sucursal h3 {
    color: #111827;
}

.panel-derecho.theme-publico .tarjeta-sucursal-direccion {
    color: #4b5563;
}

.panel-derecho.theme-publico .encabezado-panel-derecho h2 {
    color: #111827;
}

.encabezado-panel-derecho {
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.encabezado-panel-derecho h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.2rem 0;
    letter-spacing: -0.01em;
}

.encabezado-panel-derecho p {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
    font-weight: 400;
}

.contenido-panel-derecho {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1rem;
}

/* Tarjetas de sucursal */
.tarjeta-sucursal {
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.125rem;
    border: 1px solid #f0f0f0;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.tarjeta-sucursal:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.tarjeta-sucursal-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tarjeta-sucursal-icono {
    width: 2.25rem;
    height: 2.25rem;
    background: #fef2f2;
    color: #E63946;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.tarjeta-sucursal h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.tarjeta-sucursal-direccion {
    font-size: 0.7rem;
    color: #9ca3af;
    margin: 0.15rem 0 0;
    line-height: 1.3;
}

.tarjeta-sucursal-acciones {
    display: flex;
    gap: 0.5rem;
}

.btn-wa-sucursal {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 0.6rem;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.25s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-wa-sucursal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

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

.btn-mapa-sucursal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    padding: 0.5rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.8rem;
}

.btn-mapa-sucursal:hover {
    background: #e5e7eb;
    color: #E63946;
}

/* Separador */
.separador-panel {
    height: 1px;
    background: #f0f0f0;
    margin: 0.75rem 0;
}

/* CTA WhatsApp general */
.cta-whatsapp-general p {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.625rem;
}

.btn-wa-grande {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: white;
    border-radius: 0.875rem;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
    letter-spacing: 0.01em;
}

.btn-wa-grande:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

/* Mapa embebido */
.mapa-embebido {
    margin-top: 0.25rem;
}

.mapa-titulo {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

/* Footer del panel derecho */
.footer-panel-derecho {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.footer-panel-derecho p {
    font-size: 0.65rem;
    color: #9ca3af;
    margin: 0;
    letter-spacing: 0.03em;
}

/* ============================================ */
/* === Scrollbar personalizado               === */
/* ============================================ */

.menu-scroll::-webkit-scrollbar {
    width: 4px;
}

.menu-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.menu-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Scrollbar para panel derecho (modo claro) */
.panel-derecho .menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
}

.panel-derecho .menu-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}


/* ============================================ */
/* === RESPONSIVE — Móvil (< 1024px)         === */
/* ============================================ */

@media (max-width: 1023px) {

    /* Ocultar layouts, usar flex vertical */
    .layout-tres-columnas,
    .layout-dos-columnas {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 56px);
        /* Restar barra móvil */
    }

    /* Sidebar como overlay lateral */
    .panel-izquierdo {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }

    .panel-izquierdo.abierto {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.3);
    }

    /* Slider ocupa todo el espacio disponible */
    .panel-central {
        flex: 1;
        height: auto;
        min-height: 0;
    }

    /* Panel derecho se oculta en móvil */
    .panel-derecho {
        display: none;
    }
}

/* Desktop: ocultar barra móvil */
@media (min-width: 1024px) {
    .barra-movil {
        display: none;
    }

    .cerrar-menu-movil {
        display: none;
    }
}