@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* =========================================================================
   SISTEMA DE DISEÑO - VARIABLES CSS (PREMIUM DARK SYSTEM)
   ========================================================================= */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Colores Principales */
    --bg-main: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-sidebar: #0f172a;
    --bg-input: rgba(15, 23, 42, 0.6);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --secondary: #a855f7;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Colores Semánticos */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #06b6d4;
    --info-bg: rgba(6, 182, 212, 0.1);

    /* Sombras y Efectos */
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px 0 var(--primary-glow);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   RESETS & GENERALES
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =========================================================================
   LAYOUT ESTRUCTURAL (SIDEBAR & CONTENEDOR PRINCIPAL)
   ========================================================================= */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Estilo Glassmorphism Premium */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.sidebar-brand-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.sidebar-brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-profile {
    background: var(--gradient-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-profile-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.sidebar-profile-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.sidebar-profile-role::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    border: 1px solid transparent;
}

.sidebar-menu-item a:hover,
.sidebar-menu-item.active a {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.sidebar-menu-item.active a {
    background: var(--gradient-glass);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary);
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.05);
}

.sidebar-menu-item a svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.sidebar-menu-item a:hover svg,
.sidebar-menu-item.active a svg {
    filter: drop-shadow(0 0 5px var(--primary));
    stroke: var(--primary);
}

.sidebar-footer {
    margin-top: auto;
}

/* Contenido Principal */
.main-content {
    margin-left: 280px;
    flex-grow: 1;
    padding: 2.5rem;
    min-height: 100vh;
    transition: var(--transition);
}

/* Header de la Página */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title-group h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.page-title-group p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================================================
   ELEMENTOS DE INTERFAZ PREMIUM (TARJETAS GLASSMORPHISM)
   ========================================================================= */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.card.card-primary::before { background: var(--gradient-primary); }
.card.card-success::before { background: var(--gradient-success); }
.card.card-danger::before { background: var(--gradient-danger); }
.card.card-warning::before { background: var(--gradient-warning); }

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Grid de Métricas / Widgets */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-card.card-primary .metric-icon { background: var(--primary-glow); color: var(--primary); }
.metric-card.card-success .metric-icon { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.metric-card.card-danger .metric-icon { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.metric-card.card-warning .metric-icon { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.metric-icon svg {
    width: 28px;
    height: 28px;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* =========================================================================
   FORMULARIOS Y ENTRADAS DE TEXTO
   ========================================================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(15, 23, 42, 0.9);
    box-shadow: var(--shadow-glow);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5), var(--shadow-glow);
    filter: brightness(1.08);
}

.btn-success {
    background: var(--gradient-success);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    filter: brightness(1.08);
}

.btn-danger {
    background: var(--gradient-danger);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}
.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: none;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* =========================================================================
   TABLAS Y REGISTROS
   ========================================================================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: rgba(17, 24, 39, 0.4);
}

.table th {
    background-color: rgba(15, 23, 42, 0.9);
    padding: 1rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-main);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Badges de Estados */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-success { background-color: var(--success-bg); color: var(--success); }
.badge-danger { background-color: var(--danger-bg); color: var(--danger); }
.badge-warning { background-color: var(--warning-bg); color: var(--warning); }
.badge-info { background-color: var(--info-bg); color: var(--info); }

/* =========================================================================
   PAGINAS ESPECIFICAS Y ACCIONES (LOGIN, DASHBOARD)
   ========================================================================= */

/* Login Premium */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
                var(--bg-main);
}

.login-card {
    width: 100%;
    max-width: 440px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: inline-flex;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-glow);
}

.login-logo svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.login-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Alertas */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid transparent;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: var(--success-bg);
    border-left-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background-color: var(--danger-bg);
    border-left-color: var(--danger);
    color: var(--danger);
}

/* Grid de dos columnas */
.grid-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Comprobante de Pago Imprimible interactivo */
.receipt-wrapper {
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-main);
    font-family: var(--font-body);
}

.receipt-header {
    border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.receipt-header-left h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.receipt-header-left p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.receipt-header-right {
    text-align: right;
}

.receipt-folio {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.receipt-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.receipt-row-label {
    color: var(--text-muted);
    font-weight: 500;
}

.receipt-row-value {
    font-weight: 600;
}

.receipt-total {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.receipt-total-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
}

.receipt-total-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.receipt-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

/* Certificado Municipal */
.certificate-frame {
    background: #0f172a;
    border: 8px double rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 3rem;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-main);
}

.certificate-seal {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--success);
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.certificate-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    text-align: center;
    color: var(--success);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.certificate-body {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

.certificate-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    text-align: center;
}

.signature-line {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Botón menú móvil */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    z-index: 101;
}

/* Responsividad general */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .page-header {
        margin-top: 2rem;
    }
}

/* Simulación de transmisión */
.simulation-screen {
    background: #020617;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    font-family: monospace;
    color: #10b981;
    height: 250px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}
.simulation-log {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
}

/* =========================================================================
   ESTILOS DE LANDING PAGE COMERCIAL Y AUTENTICACIÓN MODAL
   ========================================================================= */
html {
    scroll-behavior: smooth;
}

/* Contenedor General de la Landing */
.landing-body {
    background-color: #030712;
    overflow-x: hidden;
}

.landing-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Barra de Navegación Premium */
.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 500;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.landing-navbar.scrolled {
    padding: 0.85rem 5%;
    background: rgba(3, 7, 18, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.landing-logo-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
}

.landing-logo-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.landing-nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.landing-nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* Sección Hero con Imagen de Plaza Vecinal */
.landing-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 7rem 5% 4rem;
    background: linear-gradient(135deg, rgba(3, 7, 18, 0.82) 0%, rgba(15, 23, 42, 0.95) 100%), 
                url('../img/landing_bg.png') no-repeat center center / cover;
    overflow: hidden;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #030712, transparent);
    z-index: 2;
}

.landing-hero-content {
    max-width: 750px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.landing-hero-tag {
    align-self: flex-start;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-hero-tag::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.landing-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    font-family: var(--font-heading);
}

.landing-hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
}

.landing-hero-ctas {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Grilla de Objetivos / Características */
.landing-features-section {
    padding: 6rem 5%;
    background-color: #030712;
    position: relative;
}

.landing-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.landing-section-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-section-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(99, 102, 241, 0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(17, 24, 39, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.05);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    z-index: 2;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.feature-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: var(--transition);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-main);
    z-index: 2;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    z-index: 2;
}

/* Footer de la Landing */
.landing-footer {
    background-color: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.landing-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-footer-logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
}

.landing-footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
}

/* Portal de Autenticación Modal (Ultra-Premium Glassmorphism) */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
}

.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(20px);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.auth-modal-overlay.active .auth-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.2);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

/* Responsividad para la Landing */
@media (max-width: 768px) {
    .landing-hero-title {
        font-size: 2.5rem;
    }
    
    .landing-nav-links {
        display: none; /* Simplificado para móviles */
    }
    
    .landing-navbar {
        padding: 1rem 1.5rem;
    }
    
    .landing-hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .landing-hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .landing-hero-ctas .btn {
        width: 100%;
    }
    
    .landing-features-section {
        padding: 4rem 1.5rem;
    }
    
    .auth-modal {
        padding: 2rem 1.5rem;
    }
}

