/* ==========================================================================
   WEB TOTAL MÉXICO - STYLE.CSS (SINAPSE OS PREMIUM V2)
   Arquitectura Unificada: Portal de Captación + Hub Operativo + Admin Supremo
   ========================================================================== */

/* ---------------------------------------------------
   1. VARIABLES GLOBALES DINÁMICAS (CONTROL ABSOLUTO)
   --------------------------------------------------- */
:root {
    /* Paleta Corporativa Principal (Editable vía Admin) */
    --wtm-bg-global: #050A10;      /* Fondo absoluto, más profundo que el original */
    --wtm-base: #0D1B2A;           /* Fondo de secciones y tarjetas base */
    --wtm-base-glass: rgba(13, 27, 42, 0.7); /* Efecto Glassmorphism */
    --wtm-card: #142336;           /* Tarjetas elevadas y modales */
    
    /* Acentos y Jerarquías */
    --wtm-primario: #C49A2D;       /* Dorado Premium Senda Digital */
    --wtm-primario-hover: #d4a017;
    --wtm-secundario: #722F37;     /* Vino Web Total / Botones de acción fuerte */
    --wtm-secundario-hover: #8b3a44;
    --wtm-terciario: #026E9F;      /* Azul Océano / Enlaces e íconos */
    --wtm-terciario-hover: #0388c5;
    
    /* Semántica de Textos y Estados */
    --text-main: #F8FAFC;          /* Blanco humo lectura clara */
    --text-muted: #94A3B8;         /* Gris azulado metálico */
    --success: #00f5d4;            /* Tick verde Neón Senda Digital */
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Bordes y Sombras */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(196, 154, 45, 0.5); /* Focus Dorado */
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hub: 0 15px 40px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 8px 25px rgba(196, 154, 45, 0.3);
    
    /* Tipografía Corporativa */
    --font-title: 'Cinzel', serif;
    --font-ui: 'Poppins', sans-serif;
    --font-body: 'Lato', 'Outfit', sans-serif;

    /* Radios y Transiciones */
    --radio-card: 16px;
    --radio-btn: 12px;
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ---------------------------------------------------
   2. RESET Y ESTRUCTURA BASE
   --------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--wtm-bg-global);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: var(--wtm-terciario); transition: var(--transition-fast); }
a:hover { color: var(--wtm-terciario-hover); }
ul { list-style: none; }
button { font-family: var(--font-ui); cursor: pointer; border: none; outline: none; }

/* Scrollbar de Lujo */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--wtm-bg-global); }
::-webkit-scrollbar-thumb { background: var(--wtm-card); border-radius: 10px; border: 1px solid var(--border-light); }
::-webkit-scrollbar-thumb:hover { background: var(--wtm-primario); }

/* ---------------------------------------------------
   3. UI KITS: BOTONES, FORMULARIOS Y ALERTAS
   --------------------------------------------------- */
.btn-primary-gold {
    background: linear-gradient(135deg, var(--wtm-primario), #b8860b);
    color: var(--wtm-bg-global);
    padding: 15px 30px;
    border-radius: var(--radio-btn);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-accent);
    display: inline-flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-primary-gold:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(196, 154, 45, 0.5);
}

.btn-secondary-wine {
    background: linear-gradient(135deg, var(--wtm-secundario), #5a252a);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: var(--radio-btn);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    box-shadow: 0 8px 25px rgba(114, 47, 54, 0.3);
    display: inline-flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-secondary-wine:hover:not(:disabled) {
    transform: translateY(-3px); box-shadow: 0 12px 30px rgba(114, 47, 54, 0.5);
}

.btn-outline-wtm {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    padding: 12px 25px;
    border-radius: var(--radio-btn);
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn-outline-wtm:hover:not(:disabled) {
    background: rgba(255,255,255,0.05); border-color: var(--wtm-primario); color: var(--wtm-primario);
}

.btn-wp {
    background: #25D366; color: #fff; padding: 12px 28px; border-radius: 50px; font-weight: 700;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); display: inline-flex; align-items: center; gap: 8px; transition: var(--transition-fast);
}
.btn-wp:hover { background: #1ebe57; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6); color: #fff; }

.full-width { width: 100%; }
.btn-primary-gold:disabled, .btn-secondary-wine:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }

/* Formularios Glassmorphism */
.input-group { position: relative; margin-bottom: 20px; text-align: left; }
.input-group i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.1rem; pointer-events: none; transition: var(--transition-fast); }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; font-family: var(--font-ui); }

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: var(--radio-btn);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
    backdrop-filter: blur(5px);
}
.input-group input { padding: 16px 16px 16px 48px; }
.input-group input:not([class*="icon-"]) { padding-left: 16px; } /* Override si no hay icono */
.input-group select { padding: 16px; appearance: none; cursor: pointer; }
.input-group textarea { padding: 16px; resize: vertical; min-height: 120px; }

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: var(--wtm-primario);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px var(--border-focus);
}
.input-group input:focus + i { color: var(--wtm-primario); }

/* ---------------------------------------------------
   4. LAYOUT UNIVERSAL (PORTAL, HUB, ADMIN)
   --------------------------------------------------- */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Corporativo (Hub/Admin) */
.sidebar {
    width: 280px;
    background: var(--wtm-base);
    border-right: 1px solid var(--border-light);
    display: flex; flex-direction: column; padding: 30px 20px; z-index: 100;
}
.sidebar-brand { text-align: center; margin-bottom: 40px; }
.sidebar-brand h2 { font-family: var(--font-title); font-size: 1.6rem; color: var(--text-main); line-height: 1.1; }
.sidebar-brand span { font-size: 0.75rem; color: var(--wtm-primario); letter-spacing: 2px; font-family: var(--font-ui); }

.nav-menu { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.nav-btn {
    width: 100%; display: flex; align-items: center; gap: 15px; padding: 14px 18px;
    border-radius: var(--radio-btn); background: transparent; color: var(--text-muted);
    font-size: 1rem; font-weight: 500; text-align: left; transition: var(--transition-fast);
}
.nav-btn i { font-size: 1.2rem; width: 24px; text-align: center; }
.nav-btn:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.04); }
.nav-btn.active {
    background: linear-gradient(90deg, var(--wtm-secundario), transparent);
    color: var(--text-main); font-weight: 700; border-left: 3px solid var(--wtm-primario);
}

/* Área de Contenido Principal */
.main-content {
    flex-grow: 1; background: var(--wtm-bg-global); padding: 40px 5%;
    overflow-y: auto; position: relative; scroll-behavior: smooth;
}
.view-section { display: none; animation: fadeIn 0.4s ease forwards; }
.view-section.active { display: block; }

.section-header { margin-bottom: 40px; border-bottom: 1px solid var(--border-light); padding-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.section-header h2 { font-family: var(--font-title); font-size: 2.2rem; color: var(--text-main); }
.section-header p { color: var(--text-muted); font-size: 1rem; margin-top: 5px; font-family: var(--font-ui); }

/* ---------------------------------------------------
   5. MÓDULOS DE CAPTACIÓN (PORTAL PÚBLICO)
   --------------------------------------------------- */
/* Contenedores Genéricos Portal */
.portal-container { max-width: 1200px; margin: 4rem auto; padding: 0 20px; }
.portal-title { text-align: center; font-family: var(--font-title); font-size: clamp(2rem, 5vw, 3.5rem); color: var(--text-main); margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.portal-subtitle { text-align: center; font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted); max-width: 700px; margin: 0 auto 3rem; }

/* 5.1 Servicios Grid (Animado) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
    background: var(--wtm-card); border-radius: var(--radio-card); padding: 40px 30px;
    box-shadow: var(--shadow-soft); transition: var(--transition-smooth);
    border: 1px solid var(--border-light); position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent); transition: left 0.6s;
}
.service-card:hover::before { left: 100%; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hub); border-color: var(--wtm-primario); }
.service-icon {
    width: 70px; height: 70px; margin: 0 auto 25px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff;
    background: linear-gradient(135deg, var(--wtm-secundario), var(--wtm-primario));
    transition: var(--transition-smooth);
}
.service-card:hover .service-icon { transform: rotateY(180deg) scale(1.1); }
.service-card h3 { font-family: var(--font-ui); font-size: 1.4rem; color: var(--text-main); text-align: center; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); text-align: center; font-size: 0.95rem; margin-bottom: 25px; }
.service-features li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; font-size: 0.9rem; color: #e2e8f0; }
.service-features li:before { content: '✓'; color: var(--success); font-weight: bold; margin-right: 12px; font-size: 1.1rem; }

/* 5.2 Cotizador Instantáneo */
.quiz-widget { background: var(--wtm-card); border-radius: var(--radio-card); padding: 40px; box-shadow: var(--shadow-hub); border: 1px solid var(--border-light); max-width: 800px; margin: 0 auto; }
.quiz-question { margin-bottom: 30px; }
.quiz-question h3 { color: var(--wtm-primario); font-family: var(--font-ui); font-size: 1.2rem; margin-bottom: 15px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.option-card {
    display: block; background: var(--wtm-base); border: 2px solid var(--border-light);
    border-radius: var(--radio-btn); padding: 15px 20px; cursor: pointer; transition: var(--transition-fast);
    font-weight: 500; color: var(--text-main);
}
.option-card:hover { border-color: var(--wtm-primario); background: rgba(196, 154, 45, 0.05); }
.quiz-options input[type="radio"] { display: none; }
.quiz-options input[type="radio"]:checked + .option-card {
    border-color: var(--wtm-primario); background: rgba(196, 154, 45, 0.1); box-shadow: inset 0 0 0 1px var(--wtm-primario);
}
.quiz-result { background: var(--wtm-bg-global); border-radius: var(--radio-card); padding: 30px; margin-top: 30px; text-align: center; border: 1px solid var(--wtm-primario); animation: fadeIn 0.5s ease; }

/* 5.3 Carrusel Moderno Ecosistema */
.carousel-wrapper { position: relative; border-radius: var(--radio-card); overflow: hidden; background: var(--wtm-card); box-shadow: var(--shadow-hub); border: 1px solid var(--border-light); }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.carousel-slide { flex: 0 0 100%; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.carousel-slide img { max-width: 100%; height: auto; max-height: 400px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-soft); }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: var(--wtm-primario); color: var(--wtm-bg-global);
    width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; cursor: pointer;
    box-shadow: var(--shadow-accent); transition: var(--transition-fast); z-index: 10;
}
.carousel-btn:hover { background: var(--wtm-primario-hover); transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: 20px; } .carousel-btn.next { right: 20px; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; padding: 20px; background: var(--wtm-card); }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--text-muted); cursor: pointer; transition: var(--transition-fast); }
.carousel-dot.active { background: var(--wtm-primario); transform: scale(1.2); box-shadow: 0 0 10px var(--wtm-primario); }

/* 5.4 Planes de Precios (Senda Digital & Impulso) */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; align-items: stretch; margin-top: 3rem; }
.pricing-card {
    background: var(--wtm-card); border: 1px solid var(--border-light); border-radius: var(--radio-card);
    padding: 40px 30px; display: flex; flex-direction: column; position: relative; transition: var(--transition-smooth); overflow: hidden;
}
.pricing-card.destacado { border: 2px solid var(--wtm-primario); box-shadow: 0 0 30px rgba(196, 154, 45, 0.15); transform: scale(1.02); }
.pricing-card.destacado::after {
    content: 'RECOMENDADO'; position: absolute; top: 25px; right: -40px; background: var(--wtm-primario); color: var(--wtm-bg-global);
    font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; padding: 5px 40px; transform: rotate(45deg); box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 2;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hub); }
.pricing-card.destacado:hover { transform: translateY(-10px) scale(1.02); }
.pricing-title { font-family: var(--font-title); font-size: 1.8rem; color: var(--wtm-primario); margin-bottom: 10px; }
.pricing-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 25px; min-height: 60px; }
.pricing-features { flex-grow: 1; display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.pricing-features li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.95rem; }
.pricing-features li i { color: var(--success); margin-top: 4px; font-size: 1.1rem; }
.pricing-features li strong { display: block; color: var(--text-main); font-weight: 600; }
.pricing-features li span { display: block; color: var(--text-muted); font-size: 0.85rem; }
.pricing-price { text-align: center; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-light); margin-bottom: 25px; }
.pricing-price h4 { font-family: var(--font-ui); font-size: 2.5rem; color: var(--text-main); line-height: 1; margin-bottom: 5px; }
.pricing-price span { color: var(--text-muted); font-size: 0.85rem; }

/* ---------------------------------------------------
   6. MÓDULOS OPERATIVOS Y ADMIN (HUB / SUPABASE)
   --------------------------------------------------- */
/* KPIs Dashboard */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-bottom: 40px; }
.kpi-card {
    background: var(--wtm-card); border: 1px solid var(--border-light); border-radius: var(--radio-card);
    padding: 25px; display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow-soft);
    transition: var(--transition-fast); position: relative; overflow: hidden;
}
.kpi-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--wtm-primario); border-radius: 4px 0 0 4px; }
.kpi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hub); border-color: var(--border-focus); }
.kpi-icon {
    background: rgba(196, 154, 45, 0.1); color: var(--wtm-primario); width: 60px; height: 60px;
    border-radius: 12px; display: grid; place-items: center; font-size: 1.8rem; flex-shrink: 0; border: 1px solid rgba(196, 154, 45, 0.2);
}
.kpi-data h3 { font-size: 2.2rem; color: var(--text-main); font-family: var(--font-title); line-height: 1; margin-bottom: 5px; }
.kpi-data p { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; font-family: var(--font-ui); }

/* Kanban de Proyectos */
.kanban-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; align-items: start; }
.kanban-col { background: var(--wtm-base); border-radius: var(--radio-card); padding: 20px; border: 1px dashed var(--border-light); min-height: 500px; }
.kanban-header {
    font-weight: 600; color: var(--text-main); margin-bottom: 20px; display: flex; justify-content: space-between;
    align-items: center; border-bottom: 1px solid var(--border-light); padding-bottom: 15px; font-size: 1.1rem; font-family: var(--font-ui);
}
.badge-count { background: var(--wtm-card); border: 1px solid var(--border-light); padding: 2px 10px; border-radius: 20px; font-size: 0.85rem; color: var(--text-muted); }
.task-card {
    background: var(--wtm-card); padding: 20px; border-radius: 12px; border: 1px solid var(--border-light);
    margin-bottom: 15px; transition: var(--transition-fast); cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.task-card:hover { border-color: var(--wtm-terciario); transform: translateY(-3px); }
.task-card h5 { color: var(--text-main); font-size: 1.1rem; margin-bottom: 8px; font-family: var(--font-ui); }
.task-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; line-height: 1.4; }
.task-card .precio { color: var(--success); font-weight: 600; font-size: 1rem; }

/* Tarjetas Academy (LMS) */
.academy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.module-card {
    background: var(--wtm-card); border-radius: var(--radio-card); overflow: hidden; border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft); display: flex; flex-direction: column; transition: var(--transition-fast);
}
.module-card:hover { transform: translateY(-8px); border-bottom: 3px solid var(--wtm-terciario); box-shadow: var(--shadow-hub); }
.module-img {
    height: 160px; background: linear-gradient(135deg, var(--wtm-base) 0%, var(--wtm-terciario) 100%);
    display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: rgba(255,255,255,0.3);
}
.module-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.module-info h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-main); font-family: var(--font-ui); }
.module-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }

/* ---------------------------------------------------
   7. MODALES UNIVERSALES (RG Architecture)
   --------------------------------------------------- */
.modal-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 10, 16, 0.9); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; visibility: hidden; transition: var(--transition-fast);
}
.modal-wrapper.active { opacity: 1; visibility: visible; }
.modal-card-premium {
    background: var(--wtm-card); width: 90%; max-width: 600px; border-radius: var(--radio-card);
    padding: 40px; position: relative; border: 1px solid var(--border-light);
    box-shadow: var(--shadow-hub); transform: translateY(20px); transition: var(--transition-fast);
    max-height: 90vh; overflow-y: auto;
}
.modal-wrapper.active .modal-card-premium { transform: translateY(0); }
.btn-close-modal {
    position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light); color: var(--text-muted); width: 35px; height: 35px;
    border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: var(--transition-fast); display: grid; place-items: center;
}
.btn-close-modal:hover { background: var(--danger); color: white; border-color: var(--danger); transform: rotate(90deg); }

/* Modal Academy Player Específico */
#academy-player .player-container { width: 100%; height: 100vh; display: flex; flex-direction: column; background: var(--wtm-bg-global); }
#academy-player header { padding: 20px 40px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; background: var(--wtm-card); }
#academy-player .video-section { flex-grow: 1; display: grid; grid-template-columns: 1.5fr 1fr; overflow: hidden; }
#video-placeholder { background: #000; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16/9; }
#video-placeholder iframe { width: 100%; height: 100%; border: none; }
.technical-content { padding: 40px; overflow-y: auto; border-left: 1px solid var(--border-light); background: var(--wtm-card); font-family: var(--font-body); color: var(--text-main); }
.technical-content h1, .technical-content h2 { font-family: var(--font-title); color: var(--wtm-primario); margin-bottom: 20px; }
.technical-content pre { background: #000; border: 1px solid var(--border-light); padding: 20px; border-radius: 8px; overflow-x: auto; margin: 25px 0; color: #a5d6ff; font-family: monospace; }

/* ---------------------------------------------------
   8. COMPONENTES ADMIN / RRHH / LISTADOS
   --------------------------------------------------- */
.list-item-card {
    display: flex; align-items: center; justify-content: space-between; padding: 20px;
    border: 1px solid var(--border-light); border-radius: 12px; background: var(--wtm-base);
    margin-bottom: 15px; transition: var(--transition-fast);
}
.list-item-card:hover { border-color: var(--border-focus); transform: translateX(5px); }
.list-item-info strong { display: block; color: var(--text-main); font-size: 1.1rem; font-family: var(--font-ui); }
.list-item-info p { font-size: 0.85rem; color: var(--text-muted); margin-top: 5px; }
.action-btn {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-light); color: var(--text-muted);
    width: 35px; height: 35px; border-radius: 8px; cursor: pointer; transition: var(--transition-fast);
    display: inline-flex; align-items: center; justify-content: center;
}
.action-btn.edit:hover { color: var(--wtm-terciario); border-color: var(--wtm-terciario); background: rgba(2, 110, 159, 0.1); }
.action-btn.delete:hover { color: var(--danger); border-color: var(--danger); background: rgba(239, 68, 68, 0.1); }

/* Tablas Corporativas (Finanzas/Comisiones) */
.wtm-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--wtm-card); border-radius: 12px; overflow: hidden; }
.wtm-table th { padding: 18px 15px; background: var(--wtm-base); color: var(--wtm-primario); font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; border-bottom: 2px solid var(--border-light); }
.wtm-table td { padding: 18px 15px; color: var(--text-main); border-bottom: 1px solid var(--border-light); font-size: 0.95rem; }
.wtm-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ---------------------------------------------------
   9. ANIMACIONES Y RESPONSIVE
   --------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Efecto Spotlight Hover (Solo PC) */
@media (hover: hover) and (pointer: fine) {
    .spotlight-card { position: relative; overflow: hidden; }
    .spotlight-card::before {
        content: ''; position: absolute; top: var(--y, 0); left: var(--x, 0); transform: translate(-50%, -50%);
        width: 400px; height: 400px; background: radial-gradient(circle, rgba(196, 154, 45, 0.1), transparent 50%);
        opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 0;
    }
    .spotlight-card:hover::before { opacity: 1; }
    .spotlight-card > * { position: relative; z-index: 1; }
}

/* Breakpoints */
@media (max-width: 1024px) {
    .kanban-board { grid-template-columns: 1fr; }
    .kanban-col { min-height: auto; }
    #academy-player .video-section { grid-template-columns: 1fr; overflow-y: auto; }
}

@media (max-width: 768px) {
    .app-layout { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-light); padding: 20px; flex-direction: row; align-items: center; justify-content: space-between; }
    .sidebar-brand { margin-bottom: 0; text-align: left; }
    .nav-menu, .user-profile-widget { display: none; /* Controlado por JS menú hamburguesa futuro */ }
    .main-content { padding: 20px; }
    .section-header h2 { font-size: 1.8rem; }
    .kpi-grid, .pricing-grid, .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   10. VISTA DE LOGIN CORPORATIVO (INDEX.HTML)
   ========================================================================== */

.login-body {
    background: radial-gradient(circle at center, var(--wtm-base), var(--wtm-bg-global));
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* Patrón de fondo sutil para dar aspecto de sistema operativo */
.login-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(196, 154, 45, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 10;
    animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.login-card-premium {
    background: rgba(20, 35, 54, 0.75); /* Variante de var(--wtm-card) */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radio-card);
    padding: 50px 40px;
    box-shadow: var(--shadow-hub), inset 0 0 0 1px rgba(196, 154, 45, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .brand-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.login-header .brand-subtitle {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--wtm-primario);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Compatibilidad estricta con el botón antiguo de tu index.html */
.btn-primary-wtm {
    background: linear-gradient(135deg, var(--wtm-primario), #b8860b);
    color: var(--wtm-bg-global);
    padding: 16px 30px;
    border-radius: var(--radio-btn);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-accent);
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

.btn-primary-wtm:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(196, 154, 45, 0.5);
}

.btn-primary-wtm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alertas de error de credenciales */
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font-ui);
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.login-footer {
    margin-top: 35px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.login-footer p {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-ui);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.login-footer i {
    color: var(--wtm-secundario); /* Acento en vino Web Total */
}