/* ============================================
   LANDING PAGE ENHANCED STYLES
   ============================================ */

/* === SISTEMA DE TIPOGRAFÍA Y DISEÑO COHERENTE === */
:root {
    /* Fuente única para toda la landing */
    --font-family-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    
    /* Escala modular de tamaños optimizada */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.75rem;   /* 60px */
    
    /* Pesos de fuente coherentes */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-bold: 700;
    --font-black: 900;
    
    /* Altura de línea coherente */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* Colores principales del dashboard - referenciados a BRAND */
    --primary-color: var(--brand-primary);
    --primary-hover: var(--brand-primary-hover);
    --secondary-color: #f7fafc;
    --success-color: var(--brand-success);
    --info-color: var(--brand-info);
    --warning-color: var(--brand-warning);
    --danger-color: var(--brand-danger);
    
    /* Colores de texto del dashboard */
    --text-primary: #32325d;
    --text-secondary: #8898aa;
    --text-muted: #adb5bd;
    --text-white: #ffffff;
    
    /* Fondos del dashboard */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #172b4d;
    --bg-card: #ffffff;
    
    /* Gradientes del dashboard - referenciados a BRAND */
    --gradient-primary: var(--brand-gradient-primary);
    --gradient-success: var(--brand-gradient-success);
    --gradient-warning: var(--brand-gradient-warning);
    --gradient-info: var(--brand-gradient-info);
    
    /* Sombras mejoradas */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.18);
    
    /* Espaciado optimizado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

/* === APLICACIÓN DE FUENTE GLOBAL === */
.main-landing {
    font-family: var(--font-family-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    font-weight: var(--font-normal);
}

/* === CLASES DE TIPOGRAFÍA COHERENTES === */
.main-landing .display-1 {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing .display-2 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing .display-3 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing .display-4 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing h5 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing h6 {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing .lead {
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
}

.main-landing .text-body {
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
}

.main-landing .text-small {
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
}

.main-landing .text-xs {
    font-size: var(--text-xs);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
}

/* === COLORES DE TEXTO === */
.text-accent {
    color: #ffffff !important;
    font-weight: var(--font-black);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* === HEADER === */
/* Navbar styles moved to global.css to avoid duplication and ensure consistency */

.main-landing .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.main-landing .navbar-brand img {
    height: 35px;
    transition: all 0.3s ease;
}

.main-landing .navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
}

.main-landing .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(94, 114, 228, 0.1);
}

.main-landing.dark-mode .navbar-nav .nav-link {
    color: var(--text-white) !important;
}

.main-landing.dark-mode .navbar-nav .nav-link:hover {
    color: var(--text-white) !important;
    background: rgba(255, 255, 255, 0.1);
}

.main-landing .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.main-landing .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.main-landing .btn-outline-primary:hover {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.main-landing .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: var(--shadow);
}

.main-landing .btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Dark mode toggle button */
.main-landing .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.main-landing .dark-mode-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.main-landing.dark-mode .dark-mode-toggle {
    background: var(--bg-dark);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.main-landing.dark-mode .dark-mode-toggle:hover {
    background: var(--primary-color);
    color: white;
}

/* === HERO SECTION === */
.main-landing .hero-section {
    background: var(--gradient-primary);
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.main-landing .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.main-landing .hero-section .container {
    position: relative;
    z-index: 2;
}

.main-landing .hero-section h1 {
    color: white;
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    margin-bottom: 1.5rem;
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing .hero-section h1 .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-landing .hero-section .h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xl);
    font-weight: var(--font-light);
    margin-bottom: 1.5rem;
    line-height: var(--leading-relaxed);
}

.main-landing .hero-section .lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    margin-bottom: 2rem;
}

.main-landing .hero-section .btn {
    padding: 0.75rem 2rem;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.main-landing .hero-section .btn-white {
    background: white;
    color: var(--primary-color);
    border: none;
    box-shadow: var(--shadow);
}

.main-landing .hero-section .btn-white:hover {
    background: white;
    color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.main-landing .hero-section .btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.main-landing .hero-section .btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

/* === BOTONES DEL HEADER === */
body.main-landing .btn-neutral {
    background: rgba(94, 114, 228, 0.15);
    border: 1px solid rgba(94, 114, 228, 0.3);
    color: var(--primary-color);
    font-weight: var(--font-semibold);
}

body.main-landing .btn-neutral:hover {
    background: rgba(94, 114, 228, 0.25);
    border-color: rgba(94, 114, 228, 0.4);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

body.main-landing .btn-white {
    background: white;
    border: 1px solid white;
    color: var(--primary-color);
    font-weight: 600;
}

body.main-landing .btn-white:hover {
    background: #f8f9fa;
    border-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* === SWITCH DE TEMA MEJORADO === */
body.main-landing #darkModeBtn {
    background: rgba(94, 114, 228, 0.1);
    border: 1px solid rgba(94, 114, 228, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.main-landing #darkModeBtn:hover {
    background: rgba(94, 114, 228, 0.2);
    transform: scale(1.1);
}

body.main-landing #darkModeIcon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

body.main-landing.dark-mode #darkModeIcon {
    transform: rotate(180deg);
    color: white;
}

/* === MAIN CONTENT === */
body.main-landing .main-content {
    background: var(--gradient-primary) !important;
    position: relative;
}

/* === HEADER SECTION === */
.main-landing .header.bg-primary {
    background: var(--gradient-primary) !important;
    position: relative;
    overflow: hidden;
}

/* === HEADER EXTENDIDO SOLO PARA MAIN === */
.main-landing .header.bg-primary.main-hero-extended {
    min-height: 100vh; /* Extender a toda la altura de la pantalla */
    display: flex;
    align-items: center;
}

/* Aumentar espaciado en desktop para Header/Hero */
@media (min-width: 992px) {
    .main-landing .header.bg-primary.main-hero-extended {
        padding-top: 1rem !important; /* Más espacio arriba en desktop */
        padding-bottom: 8rem !important; /* Más espacio abajo en desktop */
        min-height: 100vh; /* Asegurar que cubra toda la pantalla */
    }
}

/* Asegurar que el contenedor azul cubra más espacio en móvil */
@media (max-width: 991.98px) {
    .main-landing .header.bg-primary.main-hero-extended {
        min-height: 90vh; /* En móvil, cubrir al menos 90% de la pantalla */
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* === PSEUDO-ELEMENTOS PARA HEADER EXTENDIDO === */
.main-landing .header.bg-primary.main-hero-extended::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.8;
    z-index: 1;
}

/* Agregar degradado suave en la parte inferior del contenedor azul */
.main-landing .header.bg-primary.main-hero-extended::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, rgba(94, 114, 228, 0.1) 50%, rgba(94, 114, 228, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.main-landing .header .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Ajustar el espaciado del contenido dentro del header extendido */
.main-landing .header .header-body {
    width: 100%;
}

/* Asegurar que las columnas se distribuyan mejor en el espacio extendido */
.main-landing .header .row {
    align-items: center;
}

/* === ESTILOS ESPECÍFICOS PARA HEADER EXTENDIDO === */
.main-landing .header.main-hero-extended .header-body {
    padding: 2rem 0;
}

.main-landing .header.main-hero-extended .row {
    min-height: 60vh;
}

/* === TRANSICIÓN SUAVE ENTRE HEADER Y FEATURES === */
.main-landing .header.bg-primary + section {
    margin-top: 0;
    border-top: none;
    position: relative;
    z-index: 2;
}

/* === TRANSICIÓN SUAVE SOLO PARA HEADER EXTENDIDO === */
.main-landing .header.bg-primary.main-hero-extended + section {
    margin-top: 0;
    border-top: none;
    position: relative;
    z-index: 2;
}

/* Crear una transición más suave con un pseudo-elemento */
.main-landing .header.bg-primary.main-hero-extended + section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(94, 114, 228, 0.3) 0%, transparent 100%);
    z-index: 1;
}

/* === ASEGURAR QUE NO HAYA ESPACIOS EN BLANCO === */
.main-landing .main-content {
    margin: 0;
    padding: 0;
}

/* === Solo aplicar a headers con bg-primary (main.html) === */
.main-landing .main-content .header.bg-primary {
    margin: 0;
    border-radius: 0;
}

/* === OPTIMIZACIONES ADICIONALES PARA HEADER EXTENDIDO === */
.main-landing .header.bg-primary.main-hero-extended {
    box-sizing: border-box;
    background-attachment: local;
}

/* Asegurar que el contenido se distribuya bien en el espacio extendido */
.main-landing .header.main-hero-extended .header-body .row {
    min-height: 70vh;
    align-items: center;
    justify-content: space-between;
}

/* Optimizar el espaciado de las cards en el lado derecho */
.main-landing .header.main-hero-extended .row .col-12.col-md-6 {
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .main-landing .header.main-hero-extended .row .col-12.col-md-6 {
        margin-bottom: 2rem;
    }
}

/* === SEPARADOR MEJORADO === */
.main-landing .separator .fill-default {
    fill: var(--bg-light) !important;
}

.main-landing.dark-mode .separator .fill-default {
    fill: var(--bg-dark) !important;
}

/* === SEPARADOR INTERNO === */

/* === SEPARADOR LEGACY (mantener para compatibilidad) === */
.main-landing .wave-separator {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    margin-top: -1px;
}

.main-landing .wave-separator .wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: wave 6s ease-in-out infinite;
}

.main-landing .wave-separator path {
    transition: fill 0.3s ease;
}

.main-landing.dark-mode .wave-separator path {
    fill: var(--bg-dark) !important;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
    }
}

/* === SEPARADOR ALTERNATIVO PARA SECCIONES INTERNAS === */
.main-landing .section-divider {
    position: relative;
    height: 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    margin: 0;
    overflow: hidden;
}

.main-landing.dark-mode .section-divider {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f35 100%);
}

.main-landing .section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

/* === BADGES === */
.main-landing .badge-pill {
    border-radius: 50rem;
    padding: 0.5rem 1rem;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.025em;
}

.main-landing .badge-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* === BOTONES PRINCIPALES === */
.main-landing .btn {
    border-radius: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.main-landing .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.main-landing .btn:hover::before {
    left: 100%;
}

.main-landing .btn-warning {
    background: var(--gradient-warning);
    border: none;
    color: white;
    box-shadow: var(--shadow);
}

.main-landing .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.main-landing .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.main-landing .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* === CARDS === */
.main-landing .card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.main-landing .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-landing .card:hover::before {
    transform: scaleX(1);
}

.main-landing .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.main-landing .card-lift--hover:hover {
    transform: translateY(-8px);
}

/* =====================================
   Logo subtle hover (header navbar)
   - Slight brightness increase with smooth transition
   ===================================== */
.main-landing #navbar-main .navbar-brand .logo-img {
  transition: filter 200ms ease, opacity 200ms ease;
}
.main-landing #navbar-main .navbar-brand:hover .logo-img {
  filter: brightness(1.08);
}

/* =====================================
   Dark mode button: make it slightly smaller and subtler
   ===================================== */
.main-landing #darkModeBtn {
  padding: 0.125rem; /* smaller touch target but still accessible */
}
.main-landing #darkModeBtn i {
  font-size: 0.95rem; /* reduce prominence */
  transition: transform 180ms ease, color 180ms ease, filter 180ms ease;
}
.main-landing #darkModeBtn:hover {
  background: transparent; /* remove background on hover to reduce emphasis */
  transform: none; /* neutralize scaling from other styles to reduce prominence */
}
.main-landing #darkModeBtn:hover i {
  transform: scale(1.03);
}

/* =====================================
   Language switch button styling
   ===================================== */
.main-landing #langSwitchBtn {
  transition: color 180ms ease, background-color 180ms ease, filter 180ms ease;
}
.main-landing #langSwitchBtn:hover {
  filter: brightness(1.05);
}

/* =====================================
   Unified icon hover behavior
   - Trigger effects from parent containers (cards, hoverables)
   - Avoid applying transform on the icon element hover directly
   ===================================== */
/* Disable direct hover transforms on icon itself to ensure consistency */
.main-landing .icon-shape:hover,
.main-landing .icon-shape:focus {
  transform: none !important;
}
/* Neutralize icon inner element scaling on direct icon hover */
.main-landing .icon-shape:hover i,
.main-landing .icon-shape:focus i {
  transform: none !important;
}
/* Apply consistent effect when hovering parent containers */
.main-landing .card:hover .icon-shape,
.main-landing .card:focus-within .icon-shape,
.main-landing .card-lift--hover:hover .icon-shape {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
/* Scale inner icon subtly when parent is hovered */
.main-landing .card:hover .icon-shape i,
.main-landing .card:focus-within .icon-shape i,
.main-landing .card-lift--hover:hover .icon-shape i {
  transform: scale(1.08);
}
/* Dark mode variant */
.main-landing.dark-mode .card:hover .icon-shape,
.main-landing.dark-mode .card:focus-within .icon-shape,
.main-landing.dark-mode .card-lift--hover:hover .icon-shape {
  box-shadow: 0 8px 25px rgba(110, 168, 254, 0.30) !important;
}

/* === ICON SHAPES === */
.main-landing .icon-shape {
    width: 75px !important;
    height: 75px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-lg) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    padding: 0 !important; /* Override Argon's padding */
}

.main-landing .icon-shape.bg-gradient-primary {
    background: var(--gradient-primary);
    color: white;
}

.main-landing .icon-shape.bg-gradient-success {
    background: var(--gradient-success);
    color: white;
}

.main-landing .icon-shape.bg-gradient-warning {
    background: var(--gradient-warning);
    color: white;
}

.main-landing .icon-shape.bg-gradient-info {
    background: var(--gradient-info);
    color: white;
}

.main-landing .icon-shape::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 50% !important;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-landing .card:hover .icon-shape::before {
    opacity: 1;
}

.main-landing .card:hover .icon-shape {
    transform: scale(1.1);
}

/* === TRUST INDICATORS === */
.main-landing .trust-indicators {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.main-landing .trust-indicators .col-4 {
    transition: transform 0.3s ease;
}

.main-landing .trust-indicators .col-4:hover {
    transform: translateY(-2px);
}

.main-landing .trust-indicators i {
    transition: transform 0.3s ease;
}

.main-landing .trust-indicators .col-4:hover i {
    transform: scale(1.1);
}

/* === SECTIONS MEJORADAS === */
.main-landing .bg-default {
    background: var(--bg-light) !important;
    position: relative;
    animation: slideInFromBottom 0.8s ease-out;
}

.main-landing .bg-default::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
    pointer-events: none;
}

/* === FEATURES SECTION MEJORADA (Una Solución Completa y Profesional) === */
.main-landing .bg-default {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 2rem 0; /* Reducido de 3rem para menos espacio */
}

/* Aumentar espaciado en desktop para Features, Pricing y FAQ */
@media (min-width: 992px) {
    .main-landing .bg-default {
        padding: 4rem 0; /* Más espacio arriba y abajo en desktop */
    }
}

.main-landing .bg-default::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(94,114,228,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.main-landing.dark-mode .bg-default {
    background: linear-gradient(135deg, #1a1f35 0%, #172b4d 100%) !important;
}

.main-landing.dark-mode .bg-default::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.main-landing .bg-default .container {
    position: relative;
    z-index: 2;
}

.main-landing .bg-default .display-4 {
    color: var(--text-primary) !important;
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: 0.75rem;
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing .bg-default .lead {
    color: var(--text-secondary) !important;
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    margin-bottom: 0.5rem;
}

.main-landing .bg-default .description {
    color: var(--text-secondary) !important;
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
}

/* Reducir el margen inferior de las cards */
.main-landing .bg-default .col-lg-4.mb-5 {
    margin-bottom: 2rem !important; /* Reducido de mb-5 (3rem) */
    margin-top: 0.5rem !important; /* Agregado para reducir espacio desde arriba */
}

/* === BENEFITS SECTION === */
.main-landing .bg-white {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 2rem 0; /* Reducido de 3rem para menos espacio */
}

/* Aumentar espaciado en desktop para Benefits y How it Helps */
@media (min-width: 992px) {
    .main-landing .bg-white {
        padding: 4rem 0; /* Más espacio arriba y abajo en desktop */
    }
}

/* Utility section spacing for new blocks */
.main-landing section.py-8 { 
    padding-top: 3rem; 
    padding-bottom: 3rem; 
}

/* Aumentar espaciado en desktop para secciones con py-8 */
@media (min-width: 992px) {
    .main-landing section.py-8 { 
        padding-top: 5rem; 
        padding-bottom: 5rem; 
    }
}

@media (max-width: 991.98px) {
    .main-landing section.py-8 { 
        padding-top: 2.5rem; 
        padding-bottom: 2.5rem; 
    }
}

@media (max-width: 767.98px) {
    .main-landing section.py-8 { 
        padding-top: 2rem; 
        padding-bottom: 2rem; 
    }
}

@media (max-width: 767.98px) {
  /* Footer links: tactile feedback and larger tap targets */
  body.main-landing .footer .list-unstyled a {
    display: block;
    padding: .5rem .25rem;
    border-radius: .375rem;
    transition: background-color .18s ease, color .18s ease;
  }
  body.main-landing .footer .list-unstyled a:hover,
  body.main-landing .footer .list-unstyled a:focus {
    background: rgba(94,114,228,0.08);
    text-decoration: none;
  }
  body.main-landing.dark-mode .footer .list-unstyled a:hover,
  body.main-landing.dark-mode .footer .list-unstyled a:focus {
    background: rgba(255,255,255,0.08);
  }
  /* Footer social: comfortable circular hit area */
  body.main-landing .footer .d-flex a {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-right: .5rem;
    border-radius: 50%;
    transition: background-color .18s ease;
  }
  body.main-landing .footer .d-flex a:hover,
  body.main-landing .footer .d-flex a:focus {
    background: rgba(94,114,228,0.1);
  }
}
.main-landing .bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M 25 0 L 0 0 0 25" fill="none" stroke="rgba(94,114,228,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.main-landing.dark-mode .bg-white {
    background: linear-gradient(135deg, #172b4d 0%, #1a1f35 100%) !important;
}

.main-landing.dark-mode .bg-white::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M 25 0 L 0 0 0 25" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.main-landing .bg-white .container {
    position: relative;
    z-index: 2;
}

.main-landing .bg-white .display-4 {
    color: var(--text-primary) !important;
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: 0.75rem;
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing .bg-white .lead {
    color: var(--text-secondary) !important;
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    margin-bottom: 1rem;
}

.main-landing .bg-white .text-secondary {
    color: var(--text-secondary) !important;
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
}

/* Mejorar los títulos de los beneficios */
.main-landing .bg-white .h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

/* Reducir el espaciado entre las filas de beneficios */
.main-landing .bg-white .row .col-lg-6 {
    margin-bottom: 2rem; /* Reducido para menos espacio */
}

.main-landing .bg-white .row .col-lg-6:last-child,
.main-landing .bg-white .row .col-lg-6:nth-last-child(2) {
    margin-bottom: 0;
}

/* Hacer las cards más atractivas */
.main-landing .bg-white .card {
    border: none;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.main-landing .bg-white .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-landing .bg-white .card:hover::before {
    transform: scaleX(1);
}

.main-landing .bg-white .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 1);
}

/* Mejorar el contraste de los colores de los títulos */
.main-landing .bg-white .text-success {
    color: var(--success-color) !important;
    font-weight: 700;
}

.main-landing .bg-white .text-primary {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.main-landing .bg-white .text-warning {
    color: var(--warning-color) !important;
    font-weight: 700;
}

.main-landing .bg-white .text-info {
    color: var(--info-color) !important;
    font-weight: 700;
}

/* === CTA SECTION === */
/* Estilos base para bg-gradient-primary (sin padding ni espaciado) */
.main-landing .bg-gradient-primary {
    background: var(--gradient-primary) !important;
    position: relative;
    overflow: hidden;
}

/* Estilos específicos para CTA section con padding */
.main-landing .bg-gradient-primary.cta-section {
    padding: 2rem 0; /* Espaciado base para mobile */
}

/* Aumentar espaciado en desktop para CTA */
@media (min-width: 992px) {
    .main-landing .bg-gradient-primary.cta-section {
        padding: 4rem 0; /* Más espacio arriba y abajo en desktop */
    }
}

.main-landing .bg-gradient-primary.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="geometric" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.08)"/><rect x="0" y="0" width="40" height="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23geometric)"/></svg>'),
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.6;
}

.main-landing .bg-gradient-primary.cta-section .container {
    position: relative;
    z-index: 2;
}

.main-landing .bg-gradient-primary.cta-section .display-4 {
    color: white !important;
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing .bg-gradient-primary.cta-section .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    margin-bottom: 2rem;
}

.main-landing .bg-gradient-primary.cta-section .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.main-landing .bg-gradient-primary.cta-section .btn:hover {
    background: white;
    color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

@keyframes slide {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-10px) translateY(-10px); }
    100% { transform: translateX(0) translateY(0); }
}

/* === ANIMACIONES MEJORADAS === */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(94, 114, 228, 0.3); }
    50% { box-shadow: 0 0 20px rgba(94, 114, 228, 0.6); }
}

@keyframes slideInFromBottom {
    0% { 
        opacity: 0;
        transform: translateY(30px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(94, 114, 228, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(94, 114, 228, 0.6);
    }
}

/* === FOOTER === */
.main-landing .footer {
    background: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

/* Aumentar espaciado en desktop para Footer */
@media (min-width: 992px) {
    .main-landing .footer {
        padding: 3rem 0; /* Más espacio arriba y abajo en desktop */
    }
}

.main-landing.dark-mode .footer {
    background: var(--bg-dark);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.main-landing .footer .copyright {
    color: var(--text-secondary) !important;
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
}

.main-landing .footer .copyright a {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: var(--font-bold);
}

.main-landing .footer h6 {
    color: var(--text-primary) !important;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing .footer .text-muted {
    color: var(--text-secondary) !important;
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
}

.main-landing .footer .hover-primary:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.main-landing .footer hr {
    border-color: rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.main-landing.dark-mode .footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* === SCROLL TO TOP BUTTON === */
.main-landing #ScrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(17, 205, 239, 0.3);
    border: none;
    outline: none;
}

.main-landing #ScrollToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-landing #ScrollToTop:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(17, 205, 239, 0.5);
    color: white;
    text-decoration: none;
}

.main-landing #ScrollToTop:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(17, 205, 239, 0.4);
}

.main-landing.dark-mode #ScrollToTop {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(17, 205, 239, 0.4);
}

.main-landing.dark-mode #ScrollToTop:hover {
    box-shadow: 0 8px 25px rgba(17, 205, 239, 0.6);
}

/* Responsive adjustments for Scroll To Top */
@media (max-width: 768px) {
    .main-landing #ScrollToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* === UTILITIES === */
.main-landing .hover-primary {
    transition: color 0.3s ease;
}

.main-landing .hover-primary:hover {
    color: var(--primary-color) !important;
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
    .main-landing .header .display-3 {
        font-size: 2.5rem;
    }
    
    .main-landing .header .h3 {
        font-size: 1.25rem;
    }
    
    .main-landing .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .main-landing .header .display-3 {
        font-size: 2rem;
    }
    
    .main-landing .card {
        margin-bottom: 1rem;
    }

    /* Navbar compact spacing and full-width actions on mobile */
    #navbar-main.navbar { padding-top: .5rem; padding-bottom: .5rem; }
    #navbar-main .navbar-brand img { height: 28px; }
    #navbar-main .navbar-collapse .btn { width: 100%; margin-bottom: .5rem; }
    #navbar-main .navbar-collapse .nav-link { padding: .5rem 0; }
    #navbar-main .navbar-collapse-header .collapse-brand img { height: 28px; }

    /* Buttons: ensure comfortable tap targets */
    .btn.btn-lg { width: 100%; padding: .75rem 1rem; }
    .d-flex.gap-3 > a { margin-bottom: .75rem; }

    /* Icons and cards compact */
    .icon.icon-shape { width: 54px; height: 54px; font-size: 1.1rem; }
    .card .card-body { padding: 1rem; }
}

/* === ANIMACIONES DE ENTRADA === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* === ANIMACIONES DE ELEMENTOS === */
.main-landing .header .col-lg-6:first-child {
    animation: fadeInLeft 1s ease-out;
}

.main-landing .header .col-lg-6:last-child {
    animation: fadeInRight 1s ease-out 0.3s both;
}

.main-landing .card {
    animation: fadeInUp 0.8s ease-out;
}

.main-landing .animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* === SCROLL ANIMATION CLASSES === */
.main-landing .fade-in-scale {
    animation: fadeInScale 0.8s ease-out;
}

.main-landing .slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.main-landing .slide-in-right {
    animation: slideInFromRight 0.8s ease-out;
}

.main-landing .float-up {
    animation: floatUp 0.6s ease-out;
}

.main-landing .glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

/* === ENHANCED CARD ANIMATIONS === */
.main-landing .card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.main-landing .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* === ENHANCED ICON ANIMATIONS === */
.main-landing .icon-shape {
    width: 75px !important;
    height: 75px !important;
    border-radius: 50% !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;
    padding: 0 !important; /* Override Argon's padding */
}

.main-landing .icon-shape:hover {
    width: 75px !important;
    height: 75px !important;
    border-radius: 50% !important;
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.1);
    padding: 0 !important; /* Override Argon's padding */
}

/* === ENHANCED BUTTON ANIMATIONS === */
.main-landing .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.main-landing .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* === TEXT ANIMATION ENHANCEMENTS === */
.main-landing .display-4,
.main-landing .lead,
.main-landing .h4 {
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

/* Cards for new informative sections */
.main-landing .card.border-0.shadow-sm.h-100 {
    border-radius: 1rem;
}

/* === EFECTOS HOVER SUAVES === */
.main-landing .btn-warning:hover {
    transform: translateY(-2px);
}

.main-landing .icon-shape:hover {
    width: 75px !important;
    height: 75px !important;
    border-radius: 50% !important;
    transform: scale(1.1);
    padding: 0 !important; /* Override Argon's padding */
}

/* === LOADING STATES === */
.main-landing .loading {
    position: relative;
    overflow: hidden;
}

.main-landing .loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: slideInLeft 1.5s infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === DARK MODE === */
.main-landing.dark-mode .card {
    background: var(--bg-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.main-landing.dark-mode .card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}

.main-landing.dark-mode .text-muted {
    color: #adb5bd !important;
}

.main-landing.dark-mode .form-control {
    background-color: #2c3034;
    border-color: #495057;
    color: #fff;
}

.main-landing.dark-mode .form-control:focus {
    background-color: #2c3034;
    border-color: var(--primary-color);
    color: #fff;
}

/* === UTILITIES === */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.text-white-25 { color: rgba(255,255,255,0.25) !important; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }
.text-white-75 { color: rgba(255,255,255,0.75) !important; }

.border-white-25 { border-color: rgba(255,255,255,0.25) !important; }

/* === PERFORMANCE OPTIMIZATIONS === */
.main-landing * {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.main-landing .card,
.main-landing .btn,
.main-landing .icon-shape {
    will-change: transform;
} 

/* === Professional mobile reveal animation for landing cards === */
@media (max-width: 767.98px) {
  .main-landing .reveal-mobile {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 420ms ease, transform 420ms ease;
  }
  .main-landing .reveal-mobile.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Subtle load-in once lazy-loaded */
  .main-landing img.is-loaded {
    transition: filter 320ms ease;
    filter: none;
  }
  .main-landing [data-src],
  .main-landing [data-bg] {
    filter: blur(2px);
  }
}

/* Reset btn-block behavior from sm and up when needed */
@media (min-width: 576px) {
  .btn-block-sm-reset {
    display: inline-block !important;
    width: auto !important;
  }
}

/* Desktop active state for header register button */
@media (min-width: 992px) {
  body.main-landing .navbar .btn.active-desktop {
    box-shadow: 0 0 0 3px rgba(94,114,228,0.2) inset;
    font-weight: 600;
  }
}

/* Polishing custom switches in mobile nav */
@media (max-width: 991.98px) {
  /* ensure no overflow causing stretching at bottom decorative element */
  body.main-landing .navbar-collapse {
    overflow: visible;
  }
  /* Subtle separators between mobile menu items */
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: .35rem;
    padding-bottom: .35rem;
  }
  body.main-landing.dark-mode .navbar-collapse .navbar-nav .nav-item.d-lg-none:not(:last-child) {
    border-bottom-color: rgba(255,255,255,0.1);
  }

  /* Tactile feedback for mobile menu items */
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none .nav-link {
    border-radius: .5rem;
    transition: background-color .2s ease, transform .12s ease;
  }
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none .nav-link:hover,
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none .nav-link:focus,
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none .nav-link:active {
    background-color: rgba(94,114,228,0.08);
  }
  body.main-landing.dark-mode .navbar-collapse .navbar-nav .nav-item.d-lg-none .nav-link:hover,
  body.main-landing.dark-mode .navbar-collapse .navbar-nav .nav-item.d-lg-none .nav-link:focus,
  body.main-landing.dark-mode .navbar-collapse .navbar-nav .nav-item.d-lg-none .nav-link:active {
    background-color: rgba(255,255,255,0.08);
  }
  /* Tactile feedback for switch rows */
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none > .d-flex {
    border-radius: .5rem;
    transition: background-color .2s ease;
    padding: 0.75rem;
    margin: 0.25rem 0;
  }
  /* Align custom toggle switches compactly on the right */
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none > .d-flex .custom-toggle-switch {
    transform: scale(0.9);
    margin-left: 0.75rem;
  }
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none > .d-flex:hover,
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none > .d-flex:focus-within {
    background-color: rgba(94,114,228,0.06);
    transform: translateX(2px);
  }
  body.main-landing.dark-mode .navbar-collapse .navbar-nav .nav-item.d-lg-none > .d-flex:hover,
  body.main-landing.dark-mode .navbar-collapse .navbar-nav .nav-item.d-lg-none > .d-flex:focus-within {
    background-color: rgba(255,255,255,0.06);
  }
  /* Active link indicator in mobile menu */
  body.main-landing .navbar-collapse .navbar-nav .nav-link.active-link {
    background: rgba(94,114,228,0.10);
    border-radius: .5rem;
    font-weight: 600;
  }
  body.main-landing.dark-mode .navbar-collapse .navbar-nav .nav-link.active-link {
    background: rgba(255,255,255,0.10);
  }
  
  /* Enhanced styling for switch rows */
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none > .d-flex {
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
  }
  
  /* Icon styling in switch rows */
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none > .d-flex i {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
  }
  
  /* Text styling in switch rows */
  body.main-landing .navbar-collapse .navbar-nav .nav-item.d-lg-none > .d-flex .text-body {
    font-size: 0.9rem;
    font-weight: 500;
  }
}

/* === EFECTOS ADICIONALES PARA LA SECCIÓN DE BENEFICIOS === */
.main-landing .bg-white .card {
    border: none;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.main-landing .bg-white .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-landing .bg-white .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.02) 0%, rgba(240, 147, 251, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-landing .bg-white .card:hover::before {
    transform: scaleX(1);
}

.main-landing .bg-white .card:hover::after {
    opacity: 1;
}

.main-landing .bg-white .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 1);
}

/* Animación de entrada para las cards */
.main-landing .bg-white .card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.main-landing .bg-white .card:nth-child(1) { animation-delay: 0.1s; }
.main-landing .bg-white .card:nth-child(2) { animation-delay: 0.2s; }
.main-landing .bg-white .card:nth-child(3) { animation-delay: 0.3s; }
.main-landing .bg-white .card:nth-child(4) { animation-delay: 0.4s; }

/* Efecto de brillo en los iconos */
.main-landing .bg-white .icon-shape {
    width: 75px !important;
    height: 75px !important;
    border-radius: 50% !important;
    position: relative;
    overflow: hidden;
    padding: 0 !important; /* Override Argon's padding */
}

.main-landing .bg-white .icon-shape::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.main-landing .bg-white .card:hover .icon-shape::after {
    transform: rotate(45deg) translateX(100%);
}

/* Mejorar la tipografía de los títulos */
.main-landing .bg-white .h4 {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Efecto de subrayado animado para los títulos */
.main-landing .bg-white .h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.main-landing .bg-white .card:hover .h4::after {
    width: 100%;
} 

/* === RESPONSIVE TIPOGRAFÍA === */
@media (max-width: 991.98px) {
    .main-landing .hero-section h1 {
        font-size: var(--text-4xl);
    }
    
    .main-landing .display-4 {
        font-size: var(--text-2xl);
    }
    
    .main-landing .lead {
        font-size: var(--text-base);
    }
}

@media (max-width: 767.98px) {
    .main-landing .hero-section h1 {
        font-size: var(--text-3xl);
    }
    
    .main-landing .display-4 {
        font-size: var(--text-xl);
    }
    
    .main-landing .lead {
        font-size: var(--text-sm);
    }
    
    .main-landing .btn {
        font-size: var(--text-sm);
    }
}

/* === ELEMENTOS ESPECÍFICOS CON TIPOGRAFÍA COHERENTE === */
.main-landing .card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.main-landing .card-text {
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
}

.main-landing .text-muted {
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
}

.main-landing .small {
    font-size: var(--text-xs);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
}

/* === NAVBAR TIPOGRAFÍA === */
.main-landing .navbar-brand {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

.main-landing .navbar-nav .nav-link {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
}

.main-landing .nav-link-inner--text {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
} 

/* === ACCESSIBILITY: FOCUS RING CONSISTENTE === */
body.main-landing a:focus-visible,
body.main-landing button:focus-visible,
body.main-landing .btn:focus-visible,
body.main-landing .custom-control-input:focus ~ .custom-control-label,
body.main-landing [role="button"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94,114,228,0.35) !important;
  border-radius: .5rem;
}
body.main-landing.dark-mode a:focus-visible,
body.main-landing.dark-mode button:focus-visible,
body.main-landing.dark-mode .btn:focus-visible,
body.main-landing.dark-mode .custom-control-input:focus ~ .custom-control-label,
body.main-landing.dark-mode [role="button"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35) !important;
}

/* === BTN MIN HEIGHT EN MÓVIL PARA TAP TARGETS === */
@media (max-width: 767.98px) {
  body.main-landing .btn { min-height: 44px; }
}

/* === FOOTER OPTIMIZATION === */
.footer {
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.dark-mode .footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* === Footer Links Styling === */
.footer h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.footer ul li:hover {
    transform: translateX(2px);
}

.footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
    line-height: 1.4;
}

.footer ul li a:hover {
    color: var(--brand-primary);
    text-decoration: none;
}

/* === Emoji Icons === */
.footer ul li span {
    font-size: 1rem;
    min-width: 1.5rem;
    text-align: center;
    display: inline-block;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* === Mobile Specific Optimizations === */
@media (max-width: 991.98px) {
    .footer .col-6 {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .footer .col-12.col-lg-4 {
        margin-bottom: 2rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .footer ul li {
        margin-bottom: 1rem;
        padding-right: 0.25rem;
    }
    
    .footer ul li a {
        word-break: break-word;
        hyphens: auto;
        line-height: 1.4;
        font-size: 0.9rem;
        display: block;
        padding: 0.25rem 0;
    }
    
    /* === Company links full width on mobile === */
    .footer .col-12.col-lg-4:last-child {
        margin-bottom: 0;
        border-top: 1px solid rgba(0,0,0,0.1);
        padding-top: 1.5rem;
        margin-top: 1rem;
    }
    
    .dark-mode .footer .col-12.col-lg-4:last-child {
        border-top-color: rgba(255,255,255,0.1);
    }
    
    .footer .col-12.col-lg-4:last-child ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
    }
    
    .footer .col-12.col-lg-4:last-child ul li {
        flex: 0 0 calc(50% - 0.5rem);
        margin-bottom: 0.75rem;
        min-width: 0;
    }
    
    /* === Better mobile spacing === */
    .footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer h6 {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    /* === Mobile logo optimization === */
    .footer .col-12.col-lg-6 .mb-4 img {
        height: 28px;
    }
    
    .footer .col-12.col-lg-6 .small {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* === Enhanced mobile footer experience === */
    .footer {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .footer .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .footer .col-6,
    .footer .col-12 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* === Better mobile touch targets === */
    .footer ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    .footer ul li span {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    /* === Mobile footer shadows and depth === */
    .footer {
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    
    .dark-mode .footer {
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }

}

/* === Desktop Specific Optimizations === */
@media (min-width: 992px) {
    .footer .col-lg-4 {
        padding-right: 1rem;
        padding-left: 1rem;
    }
    
    .footer ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer ul li a {
        font-size: 0.875rem;
    }
}

/* === Footer Logo === */
.footer .mb-4 img {
    height: 30px;
    transition: transform 0.2s ease;
}

.footer .mb-4 img:hover {
    transform: scale(1.05);
}

/* === Social Media Links === */
.footer .hover-primary {
    transition: color 0.2s ease;
}

.footer .hover-primary:hover {
    color: var(--brand-primary) !important;
}

/* === Copyright Section === */
.footer .copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer .copyright a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer .copyright a:hover {
    color: var(--brand-primary-hover);
    text-decoration: underline;
}

/* === HEADER FIXED STYLES === */
.navbar.fixed-top {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
}

.dark-mode .navbar.fixed-top {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* === Fix white background above header === */
body.main-landing {
    margin: 0;
    background: var(--bg-light);
}

.dark-mode body.main-landing {
    background: var(--bg-dark);
}

/* === Ensure header extends to top of viewport === */
.navbar.fixed-top {
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border: none;
}

/* === Fix main content background to eliminate white space === */
body.main-landing .main-content {
    margin-top: 0;
    padding-top: 0;
}

/* === Solo aplicar a headers con bg-primary (main.html) === */
body.main-landing .main-content .header.bg-primary {
    margin-top: 0;
    border-top: none;
}

/* === Ensure no gaps between navbar and main content === */
body.main-landing .navbar + .main-content {
    margin-top: 0;
}

/* === Solo aplicar a headers con bg-primary (main.html) === */
body.main-landing .navbar + .main-content .header.bg-primary {
    border-radius: 0;
    margin-top: 0;
}

/* === Force eliminate any white space above header === */
html {
    margin: 0 !important;
    padding: 0 !important;
}

/* === Solo aplicar padding-top cuando sea necesario (main.html) === */
body.main-landing.main-hero-layout {
    padding-top: 72px !important;
}

@media (max-width: 991.98px) {
    body.main-landing.main-hero-layout {
        padding-top: 0px !important;
    }

}

/* === Padding para navbar fijo en register.html === */
body.main-landing:not(.main-hero-layout) {
    padding-top: 72px !important;
}

@media (max-width: 991.98px) {
    body.main-landing:not(.main-hero-layout) {
        padding-top: 0px !important;
    }

}

/* === Ensure main content starts immediately after navbar === */
body.main-landing .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* === Solo aplicar a headers con bg-primary (main.html) === */
body.main-landing .main-content .header.bg-primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* === Target specific white background issue === */
body.main-landing::before,
body.main-landing::after {
    display: none !important;
    content: none !important;
}

/* === Force dark background for entire viewport === */
body.main-landing {
    background: var(--bg-light) !important;
    background-color: var(--bg-light) !important;
}

.dark-mode body.main-landing {
    background: var(--bg-dark) !important;
    background-color: var(--bg-dark) !important;
}

/* === Ensure navbar covers entire top area === */
.navbar.fixed-top {
    background: #1a1d29 !important;
    background-color: #1a1d29 !important;
    background-image: linear-gradient(135deg, #1a1d29 0%, #2d3748 100%) !important;
}

/* === Social Media Links === */
.footer .hover-primary {
    transition: color 0.2s ease;
}

.footer .hover-primary:hover {
    color: var(--brand-primary) !important;
}

/* === Enhanced Social Media Buttons === */
.footer .d-flex a,
.footer .social-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    background: rgba(94, 114, 228, 0.08);
    border: 2px solid rgba(94, 114, 228, 0.15);
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(94, 114, 228, 0.1);
}

.footer .d-flex a:hover,
.footer .social-btn:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(94, 114, 228, 0.4);
    text-decoration: none;
    border-color: var(--brand-primary);
}

.footer .d-flex a:active,
.footer .social-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(94, 114, 228, 0.3);
}

/* === Social Media Hover Effects === */
.footer .d-flex a::before,
.footer .social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.footer .d-flex a:hover::before,
.footer .social-btn:hover::before {
    left: 100%;
}

/* === Social Media Icons === */
.footer .d-flex a i,
.footer .social-btn i {
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.footer .d-flex a:hover i,
.footer .social-btn:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* === Dark Mode Social Media === */
.dark-mode .footer .d-flex a,
.dark-mode .footer .social-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .footer .d-flex a:hover,
.dark-mode .footer .social-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(94, 114, 228, 0.5);
}

/* === Mobile Social Media Buttons === */
@media (max-width: 991.98px) {
    .footer .d-flex,
    .footer .d-lg-none .d-flex {
        justify-content: center;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .footer .d-flex a,
    .footer .social-btn {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
        margin-right: 0;
        margin-bottom: 0;
        background: rgba(94, 114, 228, 0.12);
        border: 2px solid rgba(94, 114, 228, 0.2);
        border-radius: 16px;
        box-shadow: 0 3px 12px rgba(94, 114, 228, 0.15);
    }
    
    .footer .d-flex a:hover,
    .footer .social-btn:hover {
        background: var(--brand-primary);
        border-color: var(--brand-primary);
        transform: translateY(-2px) scale(1.08);
        box-shadow: 0 10px 30px rgba(94, 114, 228, 0.5);
    }
    
    .footer .d-flex a:active,
    .footer .social-btn:active {
        transform: translateY(0) scale(1.05);
        box-shadow: 0 6px 20px rgba(94, 114, 228, 0.4);
    }
    
    .footer .d-flex a i,
    .footer .social-btn i {
        font-size: 1.4rem;
    }
    
    .footer .d-flex a:hover i,
    .footer .social-btn:hover i {
        transform: scale(1.2);
    }
}

/* === Desktop Social Media Buttons === */
@media (min-width: 992px) {
    .footer .d-flex {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .footer .d-flex a,
    .footer .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(94, 114, 228, 0.08);
        border: 2px solid rgba(94, 114, 228, 0.15);
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(94, 114, 228, 0.1);
    }
    
    .footer .d-flex a:hover,
    .footer .social-btn:hover {
        background: var(--brand-primary);
        border-color: var(--brand-primary);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 20px rgba(94, 114, 228, 0.3);
    }
    
    .footer .d-flex a:active,
    .footer .social-btn:active {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 4px 15px rgba(94, 114, 228, 0.2);
    }
    
    .footer .d-flex a i,
    .footer .social-btn i {
        font-size: 1.1rem;
    }
    
    .footer .d-flex a:hover i,
    .footer .social-btn:hover i {
        transform: scale(1.1);
    }
    
    .footer .d-flex a:last-child {
        margin-right: 0;
    }
}

/* === ENHANCED MOBILE TOGGLE SWITCHES STYLING === */
@media (max-width: 991.98px) {
    /* Custom toggle switch container */
    .custom-toggle-switch {
        position: relative;
        display: inline-block;
        margin-left: 0.75rem;
    }
    
    /* Hide the actual checkbox input */
    .toggle-input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
        pointer-events: none;
    }
    
    /* Custom toggle switch track */
    .toggle-label {
        position: relative;
        display: inline-block;
        width: 3.5rem;
        height: 2rem;
        background: #e2e8f0;
        border-radius: 1rem;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* Toggle switch thumb (circle) */
    .toggle-label::before {
        content: '';
        position: absolute;
        top: 0.125rem;
        left: 0.125rem;
        width: 1.75rem;
        height: 1.75rem;
        background: white;
        border-radius: 50%;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        z-index: 2;
    }
    
    /* Checked state - blue background */
    .toggle-input:checked + .toggle-label {
        background: var(--brand-primary);
        border-color: var(--brand-primary);
        box-shadow: inset 0 2px 4px rgba(94, 114, 228, 0.3);
    }
    
    /* Checked state - move thumb to right */
    .toggle-input:checked + .toggle-label::before {
        transform: translateX(1.5rem);
        box-shadow: 0 2px 8px rgba(94, 114, 228, 0.4);
    }
    
    /* Hover effects */
    .toggle-label:hover {
        transform: scale(1.05);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(94, 114, 228, 0.1);
    }
    
    .toggle-input:checked + .toggle-label:hover {
        background: var(--brand-primary-hover);
        box-shadow: inset 0 2px 4px rgba(94, 114, 228, 0.4), 0 0 0 3px rgba(94, 114, 228, 0.2);
    }
    
    /* Focus states for accessibility */
    .toggle-input:focus + .toggle-label {
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(94, 114, 228, 0.3);
    }
    
    .toggle-input:checked:focus + .toggle-label {
        box-shadow: inset 0 2px 4px rgba(94, 114, 228, 0.3), 0 0 0 3px rgba(94, 114, 228, 0.3);
    }
    
    /* Active/pressed state */
    .toggle-label:active::before {
        transform: scale(0.95);
    }
    
    .toggle-input:checked + .toggle-label:active::before {
        transform: translateX(1.5rem) scale(0.95);
    }
    
    /* Dark mode variants */
    .dark-mode .toggle-label {
        background: #4a5568;
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .dark-mode .toggle-label::before {
        background: #e2e8f0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }
    
    .dark-mode .toggle-input:checked + .toggle-label {
        background: var(--brand-primary);
        border-color: var(--brand-primary);
        box-shadow: inset 0 2px 4px rgba(94, 114, 228, 0.4);
    }
    
    /* Switch row styling */
    .nav-item.d-lg-none > .d-flex {
        border-radius: 0.75rem;
        transition: all 0.2s ease;
        padding: 0.75rem;
        margin: 0.25rem 0;
    }
    
    .nav-item.d-lg-none > .d-flex:hover {
        background-color: rgba(94, 114, 228, 0.06);
        transform: translateX(2px);
    }
    
    .dark-mode .nav-item.d-lg-none > .d-flex:hover {
        background-color: rgba(255, 255, 255, 0.06);
    }
    
    /* Icon and text styling in switch rows */
    .nav-item.d-lg-none > .d-flex i {
        font-size: 1.1rem;
        width: 1.5rem;
        text-align: center;
        color: var(--brand-primary);
        transition: color 0.2s ease;
    }
    
    .dark-mode .nav-item.d-lg-none > .d-flex i {
        color: #f7fafc;
    }
    
    .nav-item.d-lg-none > .d-flex .text-body {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-primary);
        transition: color 0.2s ease;
    }
    
    .dark-mode .nav-item.d-lg-none > .d-flex .text-body {
        color: #f7fafc;
    }
    
    /* Border styling for switch rows */
    .nav-item.d-lg-none > .d-flex {
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dark-mode .nav-item.d-lg-none > .d-flex {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

