/**
 * VARFLO - Sistema de Diseño "Ultra Definición" (Ultra HD & Premium Architecture)
 * Diseñado para máximo contraste, nitidez subpixel y estética corporativa de alto impacto.
 */

:root {
    /* Paleta Premium Oro Metálico */
    --primary: #c5a059;
    --primary-light: #eed69b;
    --primary-dark: #9e7d3b;
    --gold-gradient: linear-gradient(135deg, #fae29f 0%, #c5a059 50%, #8c6a28 100%);
    --gold-glow: 0 8px 30px rgba(197, 160, 89, 0.35);

    /* Fondos Oscuros de Alta Fidelidad (Obsidian Ultra HD) */
    --dark-bg: #08090d;
    --dark-surface: #101218;
    --card-bg: rgba(18, 20, 26, 0.85);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(197, 160, 89, 0.5);

    /* Tipografía Nítida */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Acentos */
    --success: #10b981;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Sombras Cinemáticas */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 10px 30px -5px rgba(197, 160, 89, 0.4);

    /* Suavizado */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Modo Claro Ultra HD (Contraste y Pureza) */
body.light-mode {
    --dark-bg: #f8fafc;
    --dark-surface: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(15, 23, 42, 0.08);
    --card-border-hover: var(--primary);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
}

/* 1. RENDERIZADO GLOBAL ULTRA NÍTIDO */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* 2. SCROLLBAR DE LUJO */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: #333946;
    border-radius: 4px;
    border: 2px solid var(--dark-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 3. NAVBAR ULTRA DEFINICIÓN GLASSMORPHISM */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    transition: var(--transition);
}

.light-mode nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.logo-container:hover {
    transform: translateY(-1px);
}
.logo-img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(197, 160, 89, 0.3));
}
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 1px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: color 0.25s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active-link {
    color: var(--primary-light);
}
.nav-links a:hover::after, .nav-links a.active-link::after {
    width: 100%;
}
.light-mode .nav-links a {
    color: #475569;
}
.light-mode .nav-links a:hover, .light-mode .nav-links a.active-link {
    color: var(--primary-dark);
}

/* Botón Tema Sol / Luna Ultra HD */
.btn-theme {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}
.btn-theme:hover {
    background: var(--primary);
    color: #000;
    box-shadow: var(--shadow-gold);
    transform: rotate(15deg);
}
.light-mode .btn-theme {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
    color: #b45309;
}

/* 4. TARJETAS ULTRA GLASS (High Fidelity Cards) */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transition: 0.6s ease;
    pointer-events: none;
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.card:hover::before {
    left: 100%;
}

/* 5. BOTONES PREMIUM ULTRA DEFINICIÓN */
.btn-primary {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
    filter: brightness(1.08);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-green {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* 6. WHATSAPP FLOTANTE CON ONDA RADIAL */
.whatsapp-flotante, .cart-btn-floating {
    position: fixed;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}
.whatsapp-flotante {
    width: 62px;
    height: 62px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    color: #fff;
    font-size: 32px;
    text-decoration: none;
}
.whatsapp-flotante:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* 7. BADGES DE ALTA DEFINICIÓN */
.tag, .badge-oferta, .badge-top {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-oferta {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}
.badge-top {
    background: var(--gold-gradient);
    color: #000;
    padding: 6px 14px;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
}

/* 8. ANIMACIONES SUAVES AL HACER SCROLL (REVEAL 60FPS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 9. EXPANSOR DE DESCRIPCIÓN CON "VER MÁS" */
.desc-card-container {
    max-height: 58px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-bottom: 6px;
}
.desc-card-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: linear-gradient(transparent, var(--card-bg));
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.desc-card-container.expanded {
    max-height: 800px;
}
.desc-card-container.expanded::after {
    opacity: 0;
}
.btn-ver-mas {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    align-self: flex-start;
}
.btn-ver-mas:hover {
    color: var(--primary-light);
    transform: translateY(-1px);
}
.btn-ver-mas i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* BOTONES DE COMPRA DIRECTA EN TARJETA */
.card-actions-grid {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--card-border);
    padding-top: 14px;
}
.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-price-value {
    font-size: 1.45rem;
    font-weight: 900;
    color: #22c55e;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}
.card-buttons-row {
    display: flex;
    gap: 8px;
    width: 100%;
}
.btn-comprar-card {
    flex: 1.4;
    background: var(--gold-gradient);
    color: #000;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
    transition: var(--transition);
}
.btn-comprar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.55);
}
.btn-detalles-card {
    flex: 1;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.btn-detalles-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(197, 160, 89, 0.08);
}

/* 10. IA BOT ASISTENTE VIRTUAL (Ultra Definición) */
.varflo-bot-launcher {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(16, 18, 24, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--card-border);
    padding: 8px 18px 8px 8px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    user-select: none;
}
.varflo-bot-launcher:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-gold), 0 15px 35px rgba(0,0,0,0.6);
}
.bot-avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 1.3rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}
.bot-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #08090d;
    box-shadow: 0 0 8px #22c55e;
}
.bot-launcher-text {
    display: flex;
    flex-direction: column;
}
.bot-launcher-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}
.bot-launcher-subtitle {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
}

/* VENTANA DE CHAT IA FLOTANTE */
.varflo-bot-window {
    position: fixed;
    bottom: 95px;
    left: 30px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: rgba(11, 13, 18, 0.95);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(197, 160, 89, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.varflo-bot-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.bot-window-header {
    background: linear-gradient(135deg, rgba(26, 29, 38, 0.95) 0%, rgba(16, 18, 24, 0.95) 100%);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bot-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bot-header-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}
.bot-header-info span {
    font-size: 0.72rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}
.bot-header-actions button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: color 0.2s;
}
.bot-header-actions button:hover {
    color: #fff;
}

.bot-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bot-msg {
    display: flex;
    gap: 10px;
    max-width: 85%;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}
.bot-msg.bot {
    align-self: flex-start;
}
.bot-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.bot-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    word-break: break-word;
}
.bot-msg.bot .bot-bubble {
    background: rgba(25, 28, 38, 0.85);
    border: 1px solid var(--card-border);
    color: #e2e8f0;
    border-top-left-radius: 4px;
}
.bot-msg.user .bot-bubble {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 600;
    border-top-right-radius: 4px;
}

.bot-quick-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.bot-chip {
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.bot-chip:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-1px);
}

.bot-input-area {
    padding: 14px 18px;
    background: rgba(16, 18, 24, 0.95);
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 10px;
}
.bot-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}
.bot-input-area input:focus {
    border-color: var(--primary);
}
.bot-btn-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-gradient);
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bot-btn-send:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-gold);
}

/* Bot Typing Indicator & Product Cards */
.bot-typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
}
.bot-typing span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: botBounce 1.4s infinite ease-in-out both;
}
.bot-typing span:nth-child(1) { animation-delay: -0.32s; }
.bot-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes botBounce {
    0%, 80%, 100% { transform: scale(0.3); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.bot-prod-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.bot-prod-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bot-prod-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(197, 160, 89, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.bot-prod-card h5 {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
}
.bot-prod-price {
    color: #22c55e;
    font-weight: 800;
    font-size: 1.05rem;
    margin-top: 2px;
}
.bot-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--gold-gradient);
    color: #000 !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.bot-btn-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
.bot-btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25D366;
    color: #000 !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    transition: transform 0.2s;
}
.bot-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

@media (max-width: 600px) {
    .varflo-bot-launcher {
        left: 20px;
        bottom: 20px;
        padding: 6px 14px 6px 6px;
    }
    .varflo-bot-window {
        left: 10px;
        right: 10px;
        bottom: 85px;
        width: auto;
        max-width: 100%;
        height: 80vh;
    }
}

/* 11. AULA VIRTUAL LMS (Plataforma Educativa para Ingenieros) */
.aula-hero-header {
    padding-top: 100px;
    padding-bottom: 25px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(197, 160, 89, 0.12) 0%, transparent 60%);
}
.aula-user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}
.aula-user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}
.aula-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}
.aula-user-status-tag {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-activo {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-pendiente {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* REPRODUCTOR DE CLASES THEATER */
.classroom-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 25px;
    align-items: start;
    margin-bottom: 40px;
}
@media (max-width: 992px) {
    .classroom-grid {
        grid-template-columns: 1fr;
    }
}

.video-theater-box {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(197, 160, 89, 0.15);
    border: 1px solid var(--card-border);
}
.video-theater-box iframe, .video-theater-box video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.lesson-meta-box {
    margin-top: 15px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

/* PLAYLIST DE LECCIONES LATERAL */
.playlist-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 650px;
}
.playlist-header {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.playlist-items-list {
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lesson-item-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    text-align: left;
    width: 100%;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
    transition: var(--transition);
}
.lesson-item-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--card-border);
}
.lesson-item-btn.active-lesson {
    background: rgba(197, 160, 89, 0.12);
    border-color: var(--primary);
    color: var(--primary-light);
    font-weight: 700;
}
.lesson-item-btn i {
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* CAJA DE DESCARGA DE MATERIALES */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.material-download-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}
.material-download-card:hover {
    border-color: var(--primary);
    background: rgba(197, 160, 89, 0.08);
    transform: translateY(-2px);
}
.material-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.material-info i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* TABLA DE GESTIÓN DE ALUMNOS (ADMIN LMS) */
.admin-lms-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-top: 40px;
}

/* TABS DE ADMINISTRADOR LMS */
.admin-lms-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--card-border);
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.admin-lms-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 18px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
}
.admin-lms-tab-btn:hover {
    color: #fff;
}
.admin-lms-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* SELECTOR DE CURSOS PARA ALUMNOS MATRICULADOS EN VARIAS MATERIAS */
.aula-course-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.aula-course-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.aula-course-chip:hover {
    border-color: var(--primary);
    color: #fff;
}
.aula-course-chip.active {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 800;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
}

/* TARJETA EDITOR DE LECCIÓN DINÁMICA */
.lesson-editor-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    position: relative;
    transition: var(--transition);
}
.lesson-editor-card:hover {
    border-color: rgba(197, 160, 89, 0.4);
}
.lesson-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.resource-item-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
@media (max-width: 768px) {
    .resource-item-row {
        grid-template-columns: 1fr;
    }
}
.admin-table td, .admin-table th {
    padding: 12px 10px;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.88rem;
}
.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}




/* =====================================================================
   12. NAVBAR UNIFICADO RESPONSIVO (prioridad sobre estilos por página)
   Los selectores usan "varflo-navbar" para ganar especificidad sobre
   los estilos antiguos definidos en cada HTML.
   ===================================================================== */
varflo-navbar { display: block; }

varflo-navbar nav.vf-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    height: 72px;
    padding: 0 clamp(14px, 3vw, 44px);
    padding-top: env(safe-area-inset-top, 0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(8, 9, 13, 0.9);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border-bottom: 1px solid rgba(197, 160, 89, 0.18);
    z-index: 1000;
    box-sizing: border-box;
}

varflo-navbar .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
    text-decoration: none;
}
varflo-navbar .logo-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}
varflo-navbar .logo-text {
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1.05;
    letter-spacing: 1px;
    white-space: nowrap;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
varflo-navbar .logo-sub {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-top: 3px;
    -webkit-text-fill-color: #a8adb8;
}

varflo-navbar .nav-links {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.4vw, 22px);
    position: static;
    padding: 0;
    margin: 0 0 0 auto;
    background: none;
    border: none;
    flex-direction: row;
    width: auto;
    top: auto;
}
varflo-navbar .nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    padding: 6px 0;
    border: none;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    background: none;
}
varflo-navbar .nav-links a:hover,
varflo-navbar .nav-links a.active-link { color: var(--primary-light); border-bottom: none; }
varflo-navbar .nav-links .nav-ico { display: none; }
varflo-navbar .nav-links .nav-cta-wsp { display: none; }

varflo-navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
varflo-navbar .btn-theme {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
varflo-navbar .menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(197, 160, 89, 0.45);
    background: rgba(197, 160, 89, 0.08);
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
varflo-navbar .menu-toggle:active { transform: scale(0.94); }
varflo-navbar .menu-toggle[aria-expanded="true"] { background: var(--primary); color: #000; }

varflo-navbar .vf-nav-backdrop { display: none; }

/* Light mode */
body.light-mode varflo-navbar nav.vf-nav { background: rgba(255, 255, 255, 0.94); border-bottom-color: rgba(0, 0, 0, 0.08); }
body.light-mode varflo-navbar .logo-sub { -webkit-text-fill-color: #64748b; }
body.light-mode varflo-navbar .nav-links { background: none; }
body.light-mode varflo-navbar .nav-links a { color: #334155; }
body.light-mode varflo-navbar .nav-links a:hover,
body.light-mode varflo-navbar .nav-links a.active-link { color: var(--primary-dark); }

/* ---------- TABLET / MÓVIL: Drawer desplegable ---------- */
@media (max-width: 1199px) {
    varflo-navbar .menu-toggle { display: inline-flex; }

    varflo-navbar .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0));
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: rgba(10, 11, 16, 0.98);
        border-bottom: 2px solid var(--primary);
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6);
        /* Oculto por completo (no se "asoma" como antes) */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    }
    varflo-navbar .nav-links.active-menu {
        top: 100%;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
    }
    varflo-navbar .nav-links a {
        display: flex;
        width: 100%;
        gap: 14px;
        padding: 14px 16px;
        font-size: 0.95rem;
        letter-spacing: 0.4px;
        border-radius: 10px;
        border: 1px solid transparent;
        color: #e2e8f0;
        text-align: left;
    }
    varflo-navbar .nav-links a::after { display: none; }
    varflo-navbar .nav-links a:hover { background: rgba(255, 255, 255, 0.04); }
    varflo-navbar .nav-links a.active-link {
        background: rgba(197, 160, 89, 0.12);
        border-color: rgba(197, 160, 89, 0.45);
        color: var(--primary-light);
    }
    varflo-navbar .nav-links .nav-ico {
        display: inline-block;
        width: 22px;
        text-align: center;
        color: var(--primary);
        font-size: 1rem;
    }
    varflo-navbar .nav-links .nav-cta-wsp {
        display: flex;
        justify-content: center;
        margin-top: 10px;
        background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
        color: #fff;
        font-weight: 800;
        border-radius: 12px;
    }
    varflo-navbar .nav-links .nav-cta-wsp:hover { background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%); color: #fff; }

    varflo-navbar .vf-nav-backdrop {
        display: block;
        position: fixed;
        inset: 72px 0 0 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }
    body.vf-menu-open varflo-navbar .vf-nav-backdrop {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.25s ease, visibility 0s;
    }
    body.vf-menu-open { overflow: hidden; }
    body.vf-menu-open .varflo-bot-launcher,
    body.vf-menu-open .whatsapp-flotante { opacity: 0; pointer-events: none; }

    body.light-mode varflo-navbar .nav-links { background: rgba(255, 255, 255, 0.98); }
    body.light-mode varflo-navbar .nav-links a { color: #1e293b; }
}

@media (max-width: 600px) {
    varflo-navbar nav.vf-nav { height: 64px; padding-left: 14px; padding-right: 14px; }
    varflo-navbar .nav-links { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); }
    varflo-navbar .vf-nav-backdrop { inset: 64px 0 0 0; }
    varflo-navbar .logo-img { width: 40px; height: 40px; }
    varflo-navbar .logo-text { font-size: 1.05rem; }
    varflo-navbar .logo-sub { font-size: 0.44rem; letter-spacing: 0.8px; }
    varflo-navbar .btn-theme { width: 38px; height: 38px; }
    varflo-navbar .menu-toggle { width: 42px; height: 42px; }
}
@media (max-width: 340px) {
    varflo-navbar .logo-sub { display: none; }
}

/* =====================================================================
   13. AJUSTES GLOBALES PARA MÓVIL (fluidez y sin desbordes)
   ===================================================================== */
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
img, video, iframe, canvas, svg { max-width: 100%; }

@media (max-width: 768px) {
    body { overflow-wrap: break-word; }
    /* Evita el zoom automático de iOS al enfocar campos */
    input, select, textarea { font-size: 16px; }
    /* Tablas administrativas desplazables horizontalmente */
    .admin-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* Sin efectos hover "pegados" en pantallas táctiles */
    .card:hover { transform: none; }
}

/* Botones flotantes compactos en móvil (no tapan el contenido) */
@media (max-width: 600px) {
    .varflo-bot-launcher {
        left: 14px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0));
        padding: 5px;
        gap: 0;
    }
    .varflo-bot-launcher .bot-launcher-text { display: none; }
    .varflo-bot-launcher .bot-avatar-circle { width: 48px; height: 48px; font-size: 1.2rem; }
    .whatsapp-flotante {
        width: 56px;
        height: 56px;
        font-size: 28px;
        right: 14px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0));
    }
    .varflo-bot-window { bottom: calc(80px + env(safe-area-inset-bottom, 0)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   14. FOOTER CORPORATIVO Y REDES SOCIALES ULTRA HD
   ===================================================================== */
footer {
    background: #06070a;
    border-top: 1px solid rgba(197, 160, 89, 0.18);
    padding: 40px 20px calc(65px + env(safe-area-inset-bottom, 0));
    text-align: center;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
    position: relative;
    z-index: 10;
}
body.light-mode footer {
    background: #f1f5f9;
    border-top-color: rgba(0, 0, 0, 0.08);
    color: #64748b;
}
.social-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}
body.light-mode .social-link {
    background: #fff;
    border-color: rgba(197, 160, 89, 0.4);
    color: #0f172a;
}
body.light-mode .social-link:hover {
    background: var(--primary);
    color: #000;
}
.btn-admin-footer {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 12px;
    text-decoration: underline;
    transition: color 0.25s ease;
}
.btn-admin-footer:hover {
    color: var(--primary);
}

/* Ocultar botones flotantes en vista individual de producto para no tapar la barra fija de compra */
body.is-individual .varflo-bot-launcher,
body.is-individual .whatsapp-flotante {
    display: none !important;
}

/* =====================================================================
   15. CONTACTO & SEDES CORPORATIVAS ULTRA HD (HUB INTERACTIVO)
   ===================================================================== */
.contacto-seccion-hub {
    padding: 100px 20px 80px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.contacto-header-container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.contacto-eyebrow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.contacto-pill-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.contacto-pill-badge.pill-gold {
    background: rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.4);
    color: var(--primary);
}

.contacto-pill-badge.pill-status {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-weight: 600;
}

.contacto-pill-badge.pill-status.status-closed {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot.dot-open {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: statusPulse 2s infinite ease-in-out;
}

.status-dot.dot-closed {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.contacto-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 780px;
    margin: 0 auto;
}

/* 4 TARJETAS DE ACCIÓN RÁPIDA */
.contacto-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto 40px;
    width: 100%;
}

.quick-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: left;
}

.quick-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-gold);
}

.quick-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.quick-wsp .quick-card-icon {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.quick-phone .quick-card-icon {
    background: rgba(197, 160, 89, 0.15);
    color: var(--primary);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.quick-email .quick-card-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.quick-hours .quick-card-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.quick-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.quick-card h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    font-family: 'Montserrat', sans-serif;
}

.quick-highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px 0;
    word-break: break-word;
}

.quick-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 18px 0;
    line-height: 1.45;
}

.btn-quick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    min-height: 42px;
}

.btn-wsp {
    background: #25d366;
    color: #fff;
    width: 100%;
}

.btn-wsp:hover {
    background: #20ba59;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
}

.btn-gold:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.quick-card-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* GRILLA PRINCIPAL DE 2 PANELES */
.contacto-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    max-width: 1240px;
    margin: 0 auto 40px;
    width: 100%;
    align-items: start;
}

@media (max-width: 991px) {
    .contacto-main-grid {
        grid-template-columns: 1fr;
    }
}

.contacto-panel-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: left;
}

@media (max-width: 600px) {
    .contacto-panel-card {
        padding: 22px 16px;
    }
}

.panel-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.panel-title {
    margin: 0 0 4px 0;
    font-size: 1.35rem;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.panel-subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* CHIPS INTERACTIVOS DE SERVICIO */
.service-chips-wrapper {
    margin-bottom: 22px;
}

.chips-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
    margin-bottom: 10px;
}

.service-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.service-chip:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(197, 160, 89, 0.08);
}

.service-chip.active {
    background: var(--gold-gradient);
    color: #000;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
}

/* FORMULARIO CONTACTO */
.contacto-form-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.form-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-input-group input,
.form-input-group textarea {
    width: 100%;
    background: #080a10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-input-group input:focus,
.form-input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18);
    background: #0d1018;
}

.form-actions-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .form-actions-dual {
        grid-template-columns: 1fr;
    }
}

.btn-contacto-submit {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.btn-contacto-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-contacto-whatsapp {
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.btn-contacto-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.form-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* SEDES TABS & MAPS */
.sedes-tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sede-tab-btn {
    flex: 1;
    padding: 11px 14px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.86rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.sede-tab-btn.active {
    background: rgba(197, 160, 89, 0.15);
    color: var(--primary);
    border: 1px solid rgba(197, 160, 89, 0.4);
    font-weight: 700;
}

.sede-info-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.sede-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.sede-title-box h4 {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sede-badge-tag {
    background: rgba(197, 160, 89, 0.15);
    color: var(--primary);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sede-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 16px;
}

.sede-meta-item {
    font-size: 0.88rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sede-meta-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sede-meta-value {
    color: #e2e8f0;
    font-size: 0.92rem;
}

.sede-actions-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sede-action {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-gradient);
    color: #000;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-sede-action:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-sede-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-sede-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.map-embed-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: var(--shadow-md);
    background: #000;
}

.map-embed-wrapper iframe {
    display: block;
    width: 100%;
    height: 320px;
}

/* CINTA DE CONFIANZA CORPORATIVA */
.contacto-trust-bar {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    background: rgba(18, 20, 26, 0.7);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    backdrop-filter: blur(12px);
    text-align: left;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-item i {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.trust-item span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* COMPATIBILIDAD CON LIGHT MODE */
body.light-mode .quick-card,
body.light-mode .contacto-panel-card,
body.light-mode .contacto-trust-bar {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .quick-card h4,
body.light-mode .sede-title-box h4 {
    color: #0f172a;
}

body.light-mode .form-input-group input,
body.light-mode .form-input-group textarea {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .form-input-group label {
    color: #334155;
}

body.light-mode .service-chip {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

body.light-mode .service-chip.active {
    background: var(--gold-gradient);
    color: #000;
    border-color: var(--primary);
}

body.light-mode .sede-info-card,
body.light-mode .sedes-tab-nav {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .sede-meta-value {
    color: #1e293b;
}

body.light-mode .btn-secondary,
body.light-mode .btn-sede-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

body.light-mode .contacto-pill-badge {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}
