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

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            /* Colores primarios (Claude inspired) */
            --primary: #d97757; /* Claude Terracotta */
            --primary-dark: #c16345;
            --primary-light: #e6a48e;
            --secondary: #2c2c2c; /* Updated charcoal */
            --accent: #d97757;
            
            /* Colores de estado */
            --success: #2d7a5f;
            --warning: #b77a1f;
            --danger: #b33939;
            
            /* Tema claro - Matching Evaluations Claude Theme */
            --bg-primary: #f5f2ed;
            --bg-secondary: #e8e4db;
            --header-bg: #020b47;
            --bg-tertiary: #dfd8cb;
            --bg-card: #ffffff;
            --bg-hover: #dfd8cb;
            
            /* Textos */
            --text-primary: #2c2c2c;
            --text-secondary: #5a5a5a;
            --text-muted: #8a8a8a;
            --text-light: #a9a7a1;
            
            /* Bordes y divisores */
            --border: #d1c7b7;
            --border-light: #dfd8cb;
            --border-hover: #b7ac9a;
            
            /* Sombras suaves */
            --shadow: 0 1px 3px 0 rgba(44, 44, 44, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(44, 44, 44, 0.08);
            --shadow-lg: 0 10px 15px -3px rgba(44, 44, 44, 0.1);
            --shadow-xl: 0 20px 25px -5px rgba(44, 44, 44, 0.12);
            
            /* Gradientes suaves */
            --gradient-primary: linear-gradient(135deg, #d97757 0%, #da7756 100%);
            --gradient-secondary: #f5f2ed;
            --gradient-hero: #f5f2ed;
            
            /* Espaciado */
            --radius: 8px;
            --radius-lg: 12px;
            --radius-xl: 16px;

            /* Variables móviles */
            --mobile-padding: 1rem;
            --mobile-margin: 0.75rem;
            --touch-target: 44px; /* Tamaño mínimo recomendado para elementos táctiles */

            /* Header */
            --header-height: 77px;
        }

        body {
            font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            background: #f5f2ed;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            /* Mejoras para móvil */
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        /* Permitir selección de texto en elementos específicos */
        p, h1, h2, h3, h4, h5, h6, span, .module-description, .hero-text p {
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }

        /* ============================================
           TOP NAVIGATION BAR STYLES
           ============================================ */
        .main-header {
            background-color: var(--header-bg);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50;
            height: 55px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        @media (min-width: 768px) {
            .main-header {
                height: 77px;
            }
        }

        .top-nav {
            height: 100%;
        }

        .top-nav__link {
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: opacity 0.3s ease;
        }

        .top-nav__link:hover {
            opacity: 0.8;
        }

        .top-nav__link img {
            width: 100px;
            height: auto;
        }

        @media (min-width: 768px) {
            .top-nav__link img {
                width: 150px;
            }
        }

        .top-nav__menu {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 2rem;
        }

        @media (max-width: 767px) {
            .top-nav__menu {
                position: fixed;
                top: 55px;
                left: 0;
                right: 0;
                flex-direction: column;
                background-color: var(--header-bg);
                padding: 1.5rem;
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                max-height: calc(100vh - 55px);
                overflow-y: auto;
                z-index: 45;
            }

            .top-nav__menu.active {
                transform: translateX(0);
            }
        }

        .top-nav__li {
            display: flex;
            align-items: center;
        }

        @media (max-width: 767px) {
            .top-nav__li {
                width: 100%;
                padding: 0.5rem 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }
        }

        .top-nav__li--social {
            display: none;
        }

        @media (max-width: 767px) {
            .top-nav__li--social {
                display: flex;
                border-bottom: none;
                margin-top: 0.5rem;
                padding-top: 1.25rem;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
                width: 100%;
            }

            .top-nav__li--social > div {
                display: flex;
                align-items: center;
                gap: 1.5rem;
                width: 100%;
                justify-content: flex-start;
            }

            .top-nav__li--social .social-icon__svg {
                width: 1.5rem;
                height: 1.5rem;
            }

            .top-nav__li--social .social-icon__text {
                font-size: 1.75rem;
                line-height: 1;
            }
        }

        .top-nav__anchor {
            color: #ffffff;
            text-decoration: none;
            font-size: 1rem;
            font-weight: 500;
            transition: color 0.2s ease;
            position: relative;
        }

        .top-nav__anchor:hover {
            color: #60a5fa;
        }

        .top-nav__anchor::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #60a5fa;
            transition: width 0.3s ease;
        }

        .top-nav__anchor:hover::after {
            width: 100%;
        }

        /* Login button */
        .top-nav__login-btn {
            display: inline-flex;
            align-items: center;
            padding: 0.4rem 1.15rem;
            background: #22c55e;
            color: #ffffff;
            border: none;
            border-radius: 50px;
            font-size: 0.875rem;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            transition: background 0.2s ease, transform 0.15s ease;
            flex-shrink: 0;
        }

        .top-nav__login-btn:hover {
            background: #16a34a;
            transform: translateY(-1px);
            color: #ffffff;
        }

        .top-nav__li--login {
            display: flex;
            align-items: center;
        }

        /* En móvil el botón de login se muestra fuera del menú desplegable,
           junto al hamburger. Se oculta dentro del menú lateral. */
        @media (max-width: 767px) {
            .top-nav__li--login {
                display: none;
            }
        }

        /* Botón Ingresar visible en la barra superior en móvil */
        .top-nav__mobile-login {
            display: none;
        }

        /* Contenedor derecho en móvil (login + hamburger) */
        .top-nav__mobile-right {
            display: none;
        }

        @media (max-width: 767px) {
            .top-nav__mobile-right {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                flex-shrink: 0;
            }

            .top-nav__mobile-login {
                display: inline-flex;
                align-items: center;
                padding: 0.4rem 1rem;
                background: #22c55e;
                color: #ffffff;
                border: none;
                border-radius: 50px;
                font-size: 0.8rem;
                font-weight: 600;
                text-decoration: none;
                white-space: nowrap;
                transition: background 0.2s ease;
                flex-shrink: 0;
            }

            .top-nav__mobile-login:hover,
            .top-nav__mobile-login:active {
                background: #16a34a;
                color: #ffffff;
            }
        }

        @media (max-width: 767px) {
            .top-nav__anchor {
                font-size: 1.125rem;
                display: block;
                width: 100%;
            }
        }

        .main-container {
            margin: 0 auto;
            width: 100%;
            max-width: 1600px;
            padding: 0 20px;
            box-sizing: border-box;
        }

        @media (min-width: 768px) {
            .main-container {
                padding: 0 2rem;
            }
        }

        .main-container .content {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* ============================================
           SOCIAL ICONS
           ============================================ */
        .social-icon {
            color: #ffffff;
            transition: color 0.2s ease, transform 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .social-icon:hover {
            color: #60a5fa;
            transform: translateY(-2px);
        }

        .social-icon__text {
            font-family: Georgia, serif;
            font-size: 1.5rem;
            font-weight: bold;
            font-style: italic;
        }

        .social-icon__svg {
            width: 1.25rem;
            height: 1.25rem;
            fill: currentColor;
        }

        /* ============================================
           MOBILE HAMBURGER MENU
           ============================================ */
        .mobile-menu-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            background: transparent;
            border: none;
            cursor: pointer;
            z-index: 10000;
        }

        @media (min-width: 768px) {
            .mobile-menu-toggle {
                display: none;
            }
        }

        .mobile-menu-toggle:focus {
            outline: 2px solid #60a5fa;
            outline-offset: 2px;
        }

        .hamburger-box {
            width: 24px;
            height: 24px;
            display: inline-block;
            position: relative;
        }

        .hamburger-inner {
            display: block;
            top: 50%;
            margin-top: -2px;
        }

        .hamburger-inner,
        .hamburger-inner::before,
        .hamburger-inner::after {
            width: 24px;
            height: 2px;
            background-color: #ffffff;
            position: absolute;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .hamburger-inner::before,
        .hamburger-inner::after {
            content: '';
            display: block;
        }

        .hamburger-inner::before {
            top: -8px;
        }

        .hamburger-inner::after {
            bottom: -8px;
        }

        .mobile-menu-toggle.active .hamburger-inner {
            transform: rotate(45deg);
        }

        .mobile-menu-toggle.active .hamburger-inner::before {
            transform: rotate(-90deg);
            top: 0;
        }

        .mobile-menu-toggle.active .hamburger-inner::after {
            opacity: 0;
        }

        /* ============================================
           UTILITIES
           ============================================ */
        body.menu-open {
            overflow: hidden;
        }

        @media (min-width: 768px) {
            body.menu-open {
                overflow: auto;
            }
        }

        .menu-overlay {
            position: fixed;
            top: 55px;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            z-index: 40;
        }

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

        @media (min-width: 768px) {
            .menu-overlay {
                display: none;
            }
        }

        /* General utility classes */
        .flex {
            display: flex;
        }

        .items-center {
            align-items: center;
        }

        .justify-between {
            justify-content: space-between;
        }

        .h-full {
            height: 100%;
        }

        .w-auto {
            width: auto;
        }

        .h-8 {
            height: 2rem;
        }

        @media (min-width: 768px) {
            .md\:h-10 {
                height: 2.5rem;
            }
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: 60px; /* Altura mínima para consistencia */
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            min-height: var(--touch-target);
            min-width: var(--touch-target);
        }

        .brand-chip {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .brand-emblem {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: #ffffff;
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            border: 2px solid var(--primary);
            flex-shrink: 0;
        }

        .brand-emblem-main {
            position: relative;
            display: inline-block;
            line-height: 1;
            font-size: 0;
        }

        .brand-emblem-main::before {
            content: 'E';
            position: relative;
            font-size: 1.4rem;
            font-weight: 800;
            letter-spacing: -1px;
        }

        .brand-emblem-main::after {
            content: '1';
            position: absolute;
            top: -2px;
            right: -10px;
            font-size: 0.75rem;
            font-weight: 900;
            line-height: 1;
        }

        .brand-text {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.5px;
            display: flex;
            align-items: baseline;
        }

        .brand-highlight {
            color: var(--primary);
        }

        .logo i {
            color: var(--primary);
            background: none;
            -webkit-text-fill-color: var(--primary);
        }

        .nav-buttons {
            display: flex;
            gap: 0.75rem;
            align-items: center;
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: var(--radius);
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            white-space: nowrap;
            position: relative;
            overflow: hidden;
            /* Mejoras táctiles */
            min-height: var(--touch-target);
            min-width: var(--touch-target);
            -webkit-tap-highlight-color: transparent;
        }

	        .btn::before {
	            content: '';
	            position: absolute;
	            top: 0;
	            left: -100%;
	            width: 100%;
	            height: 100%;
	            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	            transition: left 0.5s ease;
	        }
	
	        .btn:hover::before {
	            left: 100%;
	        }
	
	        .btn:disabled {
	            opacity: 0.55;
	            cursor: not-allowed;
	            transform: none;
	            box-shadow: none;
	        }
	
	        .btn:disabled::before {
	            display: none;
	        }

        .btn-outline {
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid var(--border);
            backdrop-filter: blur(8px);
        }

        .btn-outline:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(217, 119, 87, 0.1);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .btn-primary {
            background: #06ebf7;
            color: #141514;
            border: 1px solid transparent;
            box-shadow: 0 4px 6px rgba(6, 235, 247, 0.3);
            padding: 1.25rem 2rem;
            font-size: 1.125rem;
            font-weight: 600;
            border-radius: 50px;
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        @media (min-width: 768px) {
            .btn-primary {
                padding: 1.5rem 2.5rem;
                font-size: 1.25rem;
            }
        }

        .btn-primary:hover {
            background: #05d4de;
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(6, 235, 247, 0.4);
        }

        /* Mobile Navigation */
        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.75rem; /* Área táctil más grande */
            border-radius: var(--radius);
            transition: all 0.3s ease;
            min-height: var(--touch-target);
            min-width: var(--touch-target);
            -webkit-tap-highlight-color: transparent;
        }

        .mobile-menu-toggle:hover {
            background: var(--bg-hover);
            color: var(--primary);
        }

        .mobile-menu-toggle:active {
            transform: scale(0.95);
        }

        /* Mobile Menu */
        .mobile-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #ffffff;
            border-bottom: 1px solid var(--border);
            box-shadow: var(--shadow-lg);
            transform: translateY(-100%);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            max-height: 0;
            overflow: hidden;
        }

        .mobile-menu.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
            max-height: 300px;
        }

        .mobile-menu .nav-buttons {
            display: flex;
            flex-direction: column;
            padding: 1.5rem 2rem;
            gap: 1rem;
        }

        .mobile-menu .btn {
            width: 100%;
            justify-content: center;
            padding: 1rem 1.5rem;
            font-size: 1rem; /* Texto más grande en móvil */
        }

        /* =================================
        SECCIÓN HERO MEJORADA
        ================================= */
        .hero {
            margin-top: var(--header-height);
            padding: 6rem 2rem;
            background: url('../images/hero_optimized.webp') center/cover no-repeat !important;
            position: relative;
            overflow: hidden;
            min-height: 90vh;
            display: flex;
            align-items: center;
        }

        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1;
        }

        /* Particles.js Container */
        .particles-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        #particles-js {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 0;
        }

        #particles-js canvas {
            display: block;
            width: 100% !important;
            height: 100% !important;
            position: absolute;
            top: 0;
            left: 0;
        }

        .hero-content {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            z-index: 2;
            padding: 0 2rem;
        }

        .hero-text h1 {
            font-size: 5rem;
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            color: #ffffff;
            text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        }

        /* Tailwind utility classes fallback */
        .text-white {
            color: #ffffff;
        }

        .mb-6 {
            margin-bottom: 1.5rem;
        }

        .drop-shadow-lg {
            filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.15));
        }

        .text-cyan-400 {
            color: #06ebf7;
        }

        .font-semibold {
            font-weight: 600;
        }

        .main-title {
            display: block;
            line-height: 1.1;
        }

        @media (min-width: 768px) {
            .hero-text h1 {
                font-size: 5.5rem;
            }
        }

        .hero-text .highlight {
            color: #06ebf7;
            font-weight: 700;
        }

	        .hero-text p {
	            font-size: 1.5rem;
	            color: rgba(255, 255, 255, 0.9);
	            margin-bottom: 2rem;
	            line-height: 1.4;
	            max-width: 700px;
	            margin-left: auto;
	            margin-right: auto;
	        }
	
	        @media (min-width: 768px) {
	            .hero-text p {
	                font-size: 1.75rem;
	            }
	        }
	
	        .hero-buttons {
	            display: flex;
	            flex-direction: column;
	            gap: 1rem;
	            align-items: center;
	            margin-top: 2rem;
	        }
	
	        @media (min-width: 640px) {
	            .hero-buttons {
	                flex-direction: row;
	                justify-content: center;
	            }
	        }
	
	        .btn-whatsapp {
	            background: #25D366;
	            color: #ffffff;
	            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 1.25rem 2rem;
            font-size: 1.125rem;
            font-weight: 600;
            border-radius: 50px;
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        @media (min-width: 768px) {
            .btn-whatsapp {
                padding: 1.5rem 2.5rem;
                font-size: 1.25rem;
                background: #20bd5a;
                transform: translateY(-2px);
                box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
            }
        }


        .hero-buttons-row {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: flex-start;
        }

        .hero-buttons-center {
            display: flex;
            justify-content: center;
            margin-top: 1rem;
        }

        .btn-secondary {
            background: rgba(217, 119, 87, 0.1);
            color: var(--accent);
            border: 1px solid rgba(217, 119, 87, 0.3);
            backdrop-filter: blur(8px);
        }

        .btn-secondary:hover {
            border-color: var(--accent);
            background: rgba(217, 119, 87, 0.2);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(217, 119, 87, 0.3);
        }

        .hero-features {
            display: flex;
            gap: 2rem;
            align-items: center;
            color: var(--text-muted);
            flex-wrap: wrap;
        }

        .hero-feature {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .hero-feature i {
            color: var(--primary);
        }

        /* Multiplatform Badge Styles */
        .multiplatform-badge {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-top: 2.5rem;
            padding: 0.75rem 1.25rem;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            width: fit-content;
            backdrop-filter: blur(8px);
        }

        .multiplatform-icons {
            display: flex;
            gap: 0.75rem;
            font-size: 1.25rem;
            color: var(--success);
        }

        .multiplatform-badge span {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .hero-visual {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .dashboard-preview {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-xl);
            padding: 2rem;
            transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
            transition: transform 0.5s ease;
            backdrop-filter: blur(10px);
        }

        .dashboard-preview:hover {
            transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
        }

        .dashboard-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border);
        }

        .dashboard-header .icon {
            width: 40px;
            height: 40px;
            background: var(--gradient-primary);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        .dashboard-stat {
            background: var(--bg-tertiary);
            padding: 1.5rem;
            border-radius: var(--radius);
            margin-bottom: 1rem;
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        }

        .dashboard-stat:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            border-color: var(--primary);
        }

        .dashboard-stat h4 {
            font-size: 0.875rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .dashboard-stat .number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
        }

        /* =================================
        SECCIONES RESTANTES
        ================================= */
        .section-header {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 4rem;
        }

        .section-header h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .section-header p {
            font-size: 1.125rem;
            color: var(--text-secondary);
            line-height: 1.8;
        }

        /* =================================
        MÓDULOS DESTACADOS - MEJORADOS CON DISEÑOS REALES
        ================================= */
        .modules-section {
            padding: 6rem 2rem;
            background: #ffffff;
            position: relative;
        }

        .modules-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--primary), transparent);
        }

        .modules-grid {
            max-width: 1200px;
            margin: 3rem auto 0;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            padding: 0 1.5rem;
        }

        .module-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            padding: 2rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 1.25rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            text-decoration: none;
        }

        /* Colores sutiles para las tarjetas */
        .module-card[data-module="estudiantes"] { background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.2); }
        .module-card[data-module="chat-e1"] { background: rgba(217, 119, 87, 0.08); border-color: rgba(217, 119, 87, 0.2); }
        .module-card[data-module="asistencia"] { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.2); }
        .module-card[data-module="cotidiano"] { background: rgba(147, 51, 234, 0.08); border-color: rgba(147, 51, 234, 0.2); }
        .module-card[data-module="evaluaciones"] { background: rgba(234, 88, 12, 0.08); border-color: rgba(234, 88, 12, 0.2); }
        .module-card[data-module="espacios-educativos"] { background: rgba(2, 132, 199, 0.08); border-color: rgba(2, 132, 199, 0.2); }
        .module-card[data-module="minutas"] { background: rgba(219, 39, 119, 0.08); border-color: rgba(219, 39, 119, 0.2); }
        .module-card[data-module="planeamiento"] { background: rgba(217, 119, 87, 0.08); border-color: rgba(217, 119, 87, 0.2); }
        .module-card[data-module="recursos"] { background: rgba(217, 119, 87, 0.08); border-color: rgba(217, 119, 87, 0.2); }
        .module-card[data-module="materias"] { background: rgba(71, 85, 105, 0.08); border-color: rgba(71, 85, 105, 0.2); }
        .module-card[data-module="reportes"] { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.2); }
        .module-card[data-module="sea"] { background: rgba(193, 99, 69, 0.08); border-color: rgba(193, 99, 69, 0.2); }
        .module-card[data-module="boletas"] { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.2); }
        .module-card[data-module="horarios"] { background: rgba(217, 119, 6, 0.08); border-color: rgba(217, 119, 6, 0.2); }
        .module-card[data-module="trabajos"] { background: rgba(100, 116, 139, 0.08); border-color: rgba(100, 116, 139, 0.2); }
        .module-card[data-module="formularios"] { background: rgba(217, 119, 87, 0.08); border-color: rgba(217, 119, 87, 0.2); }

        .module-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-xl);
        }

        .module-card[data-module="estudiantes"]:hover { background: rgba(37, 99, 235, 0.15); border-color: #2563eb; }
        .module-card[data-module="chat-e1"]:hover { background: rgba(217, 119, 87, 0.15); border-color: #d97757; }
        .module-card[data-module="asistencia"]:hover { background: rgba(22, 163, 74, 0.15); border-color: #16a34a; }
        .module-card[data-module="cotidiano"]:hover { background: rgba(147, 51, 234, 0.15); border-color: #9333ea; }
        .module-card[data-module="evaluaciones"]:hover { background: rgba(234, 88, 12, 0.15); border-color: #ea580c; }
        .module-card[data-module="espacios-educativos"]:hover { background: rgba(2, 132, 199, 0.15); border-color: #0284c7; }
        .module-card[data-module="minutas"]:hover { background: rgba(219, 39, 119, 0.15); border-color: #db2777; }
        .module-card[data-module="planeamiento"]:hover { background: rgba(217, 119, 87, 0.15); border-color: #d97757; }
        .module-card[data-module="recursos"]:hover { background: rgba(217, 119, 87, 0.15); border-color: #d97757; }
        .module-card[data-module="materias"]:hover { background: rgba(71, 85, 105, 0.15); border-color: #475569; }
        .module-card[data-module="reportes"]:hover { background: rgba(22, 163, 74, 0.15); border-color: #16a34a; }
        .module-card[data-module="sea"]:hover { background: rgba(193, 99, 69, 0.15); border-color: #c16345; }
        .module-card[data-module="boletas"]:hover { background: rgba(220, 38, 38, 0.15); border-color: #dc2626; }
        .module-card[data-module="horarios"]:hover { background: rgba(217, 119, 6, 0.15); border-color: #d97706; }
        .module-card[data-module="trabajos"]:hover { background: rgba(100, 116, 139, 0.15); border-color: #64748b; }
        .module-card[data-module="formularios"]:hover { background: rgba(217, 119, 87, 0.15); border-color: #d97757; }

        .module-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-xl);
        }

        .module-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;
        }

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

        .module-card-icon {
            width: 56px;
            height: 56px;
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }

        /* Colores de módulos sincronizados con el Dashboard */
        .module-card-icon.students { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
        .module-card-icon.attendance { background: rgba(22, 163, 74, 0.15); color: #4ade80; }
        .module-card-icon.cotidiano { background: rgba(147, 51, 234, 0.15); color: #e6a48e; }
        .module-card-icon.evaluations { background: rgba(234, 88, 12, 0.15); color: #fb923c; }
        .module-card-icon.boletas { background: rgba(220, 38, 38, 0.15); color: #f87171; }
        .module-card-icon.minutas { background: rgba(219, 39, 119, 0.15); color: #f472b6; }
        .module-card-icon.planeamiento { background: rgba(217, 119, 87, 0.15); color: #e6a48e; }
        .module-card-icon.recursos { background: rgba(217, 119, 87, 0.15); color: #22d3ee; }
        .module-card-icon.materias { background: rgba(71, 85, 105, 0.15); color: #cbd5e1; }
        .module-card-icon.reportes { background: rgba(22, 163, 74, 0.15); color: #4ade80; }
        .module-card-icon.sea { background: rgba(193, 99, 69, 0.15); color: #e6a48e; }
        .module-card-icon.comportamiento { background: rgba(2, 132, 199, 0.15); color: #38bdf8; }
        .module-card-icon.trabajos { background: rgba(100, 116, 139, 0.15); color: #cbd5e1; }
        .module-card-icon.horarios { background: rgba(217, 119, 6, 0.15); color: #fbbf24; }
        .module-card-icon.formularios { background: rgba(217, 119, 87, 0.15); color: #e6a48e; }
        .module-card-icon.chat-e1 { background: rgba(217, 119, 87, 0.15); color: #e6a48e; }

        /* Modo oscuro para iconos (ya integrados arriba para mejor contraste) */

        .module-card:hover .module-card-icon {
            transform: scale(1.1);
        }

        .module-card-icon svg {
            width: 24px;
            height: 24px;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
        }

        .module-card-content h3 {
            font-size: 1.25rem;
            margin-bottom: 0.75rem;
            color: var(--text-primary);
            font-weight: 700;
        }

        .module-card-content p {
            font-size: 0.95rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        .module-image-container {
            width: 100%;
            height: 160px;
            border-radius: var(--radius-lg);
            overflow: hidden;
            margin-top: 0.5rem;
            border: 1px solid var(--border);
            background: var(--bg-primary);
            position: relative;
        }

        .module-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .module-card:hover .module-image {
            transform: scale(1.08);
        }

        .module-image-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 0.5rem;
            background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
            color: var(--text-primary);
            font-size: 0.75rem;
            font-weight: 600;
            opacity: 0;
            transition: opacity 0.3s ease;
            text-align: left;
        }

        .module-card:hover .module-image-overlay {
            opacity: 1;
        }

        .ia-badge {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: var(--gradient-primary);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            z-index: 2;
            box-shadow: var(--shadow-md);
        }

        .gallery-badge {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            background: rgba(217, 119, 87, 0.9);
            backdrop-filter: blur(8px);
            color: white;
            padding: 0.4rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            z-index: 2;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .gallery-badge i {
            font-size: 0.85rem;
        }

        .module-card:hover .gallery-badge {
            background: var(--primary-dark);
            transform: scale(1.05) translateY(-2px);
            box-shadow: 0 6px 15px rgba(217, 119, 87, 0.4);
        }

        /* Stacked effect for gallery badge */
        .gallery-badge::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            right: -4px;
            bottom: -4px;
            background: rgba(217, 119, 87, 0.4);
            border-radius: 20px;
            z-index: -1;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.95);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            padding: 2rem;
            backdrop-filter: blur(8px);
        }

        .modal.active {
            display: flex;
            animation: fadeIn 0.3s ease-out;
        }

        .modal-content {
            max-width: 90%;
            max-height: 90%;
            position: relative;
            animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes zoomIn {
            from { 
                opacity: 0;
                transform: scale(0.8);
            }
            to { 
                opacity: 1;
                transform: scale(1);
            }
        }

        .modal-image {
            max-width: 100%;
            max-height: 80vh;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-xl);
            border: 1px solid var(--border);
            transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        }

        .modal-image.changing {
            opacity: 0;
            transform: scale(0.95);
        }

        .modal-close {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid var(--border);
            border-radius: 50%;
            color: var(--text-primary);
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1001;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-md);
        }

        .modal-close:hover {
            background: var(--bg-hover);
            transform: scale(1.1) rotate(90deg);
        }

        .modal-caption {
            color: var(--text-primary);
            text-align: center;
            margin-top: 1rem;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .modal-nav {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            padding: 0 1rem;
            pointer-events: none;
        }

        .modal-nav button {
            background: rgba(217, 119, 87, 0.8);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
            width: 4rem;
            height: 4rem;
            border-radius: 50%;
            cursor: pointer;
            pointer-events: auto;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
        }

        .modal-nav button:hover {
            background: var(--primary);
            transform: scale(1.1);
            border-color: white;
            box-shadow: 0 0 20px rgba(217, 119, 87, 0.6);
        }

        .modal-nav button:active {
            transform: scale(0.95);
        }

        .modal-nav .prev-btn {
            margin-left: -2rem;
        }

        .modal-nav .next-btn {
            margin-right: -2rem;
        }

        @media (max-width: 768px) {
            .modal-nav button {
                width: 3.5rem;
                height: 3.5rem;
                font-size: 1.25rem;
            }
            
            .modal-nav .prev-btn { margin-left: 0; }
            .modal-nav .next-btn { margin-right: 0; }
        }

        @media (max-width: 640px) {
            .modules-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .module-card {
                padding: 1.5rem;
            }
            
            .module-card-icon {
                width: 52px;
                height: 52px;
            }
        }

        .module-status.available {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .module-description {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

        /* =================================
        DISEÑOS VISUALES DE MÓDULOS MEJORADOS
        ================================= */

        .module-preview {
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1rem;
            margin-bottom: 1.5rem;
            min-height: 250px;
            position: relative;
            overflow: hidden;
            /* Scroll horizontal para tablas en móvil */
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .module-preview::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--gradient-primary);
        }

        /* Gestión de Estudiantes - Tabla mejorada con validación CR */
        .students-table {
            width: 100%;
            font-size: 0.75rem;
            min-width: 400px; /* Ancho mínimo para evitar compresión excesiva */
        }

        .students-table th,
        .students-table td {
            padding: 0.5rem 0.3rem;
            text-align: left;
            border-bottom: 1px solid var(--border);
            white-space: nowrap; /* Evitar corte de texto */
        }

        .students-table th {
            background: var(--bg-tertiary);
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: sticky;
            top: 0; /* Cabeceras fijas en scroll */
            z-index: 1;
        }

        .students-table td {
            color: var(--text-secondary);
        }

        .status-badge {
            padding: 0.2rem 0.5rem;
            border-radius: 12px;
            font-size: 0.6rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .status-active {
            background: rgba(16, 185, 129, 0.2);
            color: var(--success);
        }

        .status-inactive {
            background: rgba(239, 68, 68, 0.2);
            color: var(--danger);
        }

        .cedula-valid {
            background: rgba(16, 185, 129, 0.1);
            padding: 0.2rem 0.4rem;
            border-radius: 4px;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        /* Control de Asistencia - Interfaz real mejorada */
        .attendance-interface {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .attendance-controls {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .attendance-btn {
            padding: 0.4rem 0.8rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            font-size: 0.65rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            /* Mejoras táctiles */
            min-height: 36px;
            -webkit-tap-highlight-color: transparent;
        }

        .attendance-btn.success {
            background: rgba(16, 185, 129, 0.2);
            border-color: var(--success);
            color: var(--success);
        }

        .attendance-btn.warning {
            background: rgba(245, 158, 11, 0.2);
            border-color: var(--warning);
            color: var(--warning);
        }

        .attendance-btn.danger {
            background: rgba(239, 68, 68, 0.2);
            border-color: var(--danger);
            color: var(--danger);
        }

        .student-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem;
            background: var(--bg-tertiary);
            border-radius: var(--radius);
            margin-bottom: 0.5rem;
            border: 1px solid var(--border);
            /* Mejoras táctiles */
            min-height: var(--touch-target);
        }

        .student-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex: 1;
            min-width: 0; /* Permitir truncado */
        }

        .student-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 600;
            color: white;
            flex-shrink: 0;
        }

        .student-avatar.avatar-1 { background: #d97757; }
        .student-avatar.avatar-2 { background: #c16345; }
        .student-avatar.avatar-3 { background: #d97757; }
        .student-avatar.avatar-4 { background: #10b981; }
        .student-avatar.avatar-5 { background: #f59e0b; }
        .student-avatar.avatar-6 { background: #ef4444; }
        .student-avatar.avatar-7 { background: #84cc16; }

        .student-name {
            font-size: 0.75rem;
            color: var(--text-primary);
            font-weight: 500;
            /* Truncar texto largo en móvil */
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .attendance-status {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-shrink: 0;
        }

        .status-badge-new {
            padding: 0.3rem 0.6rem;
            border-radius: 12px;
            font-size: 0.65rem;
            font-weight: 600;
            white-space: nowrap;
        }

        .status-presente {
            background: rgba(16, 185, 129, 0.2);
            color: var(--success);
        }

        .status-ausente-j {
            background: rgba(217, 119, 87, 0.2);
            color: var(--accent);
        }

        .status-tardia-j {
            background: rgba(245, 158, 11, 0.2);
            color: var(--warning);
        }

        .status-ausente-i {
            background: rgba(239, 68, 68, 0.2);
            color: var(--danger);
        }

        .mep-percentage {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--success);
        }

        /* Módulo Cotidiano - Matriz de calificaciones real */
        .cotidiano-matrix {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .matrix-header {
            display: grid;
            grid-template-columns: 120px repeat(4, 1fr) 60px 60px;
            gap: 0.3rem;
            padding: 0.5rem;
            background: var(--bg-tertiary);
            border-radius: var(--radius);
            font-size: 0.65rem;
            font-weight: 600;
            color: var(--text-muted);
            min-width: 500px; /* Ancho mínimo para scroll horizontal */
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .matrix-row {
            display: grid;
            grid-template-columns: 120px repeat(4, 1fr) 60px 60px;
            gap: 0.3rem;
            align-items: center;
            padding: 0.5rem;
            background: var(--bg-tertiary);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            min-width: 500px; /* Ancho mínimo para scroll horizontal */
        }

        .matrix-student {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            min-width: 0;
        }

        .matrix-student-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.6rem;
            font-weight: 600;
            color: white;
            flex-shrink: 0;
        }

        .matrix-student-avatar.avatar-cn { background: #d97757; }
        .matrix-student-avatar.avatar-gr { background: #ec4899; }
        .matrix-student-avatar.avatar-hr { background: #d97757; }
        .matrix-student-avatar.avatar-lh { background: #84cc16; }
        .matrix-student-avatar.avatar-mc { background: #f59e0b; }
        .matrix-student-avatar.avatar-rm { background: #c16345; }
        .matrix-student-avatar.avatar-rs { background: #ef4444; }

        .matrix-student-name {
            font-size: 0.65rem;
            color: var(--text-primary);
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .grade-box {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 600;
            margin: 0 auto;
            cursor: pointer;
            transition: all 0.2s ease;
            /* Mejoras táctiles */
            min-width: 32px;
            min-height: 32px;
            -webkit-tap-highlight-color: transparent;
        }

        .grade-box:active {
            transform: scale(0.95);
        }

        .grade-box.grade-1 {
            background: #ef4444;
            color: white;
        }

        .grade-box.grade-2 {
            background: #f59e0b;
            color: white;
        }

        .grade-box.grade-3 {
            background: #10b981;
            color: white;
        }

        .cotidiano-total, .total-score {
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-primary);
            text-align: center;
        }

        /* Sistema SEA - Tabla mejorada con ponderaciones MEP exactas */
        .sea-header {
            background: var(--bg-tertiary);
            padding: 0.75rem;
            border-radius: var(--radius);
            margin-bottom: 1rem;
            text-align: center;
        }

        .sea-table {
            width: 100%;
            font-size: 0.7rem;
            min-width: 600px; /* Ancho mínimo para scroll horizontal */
        }

        .sea-table th,
        .sea-table td {
            padding: 0.4rem 0.2rem;
            text-align: center;
            border-bottom: 1px solid var(--border);
            white-space: nowrap;
        }

        .sea-table th {
            background: var(--bg-tertiary);
            color: var(--text-muted);
            font-weight: 600;
            font-size: 0.65rem;
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .weight-info {
            font-size: 0.55rem;
            color: var(--text-light);
            font-style: italic;
        }

        .grade-excellent {
            background: rgba(16, 185, 129, 0.2);
            color: var(--success);
            font-weight: 600;
        }

        .grade-good {
            background: rgba(217, 119, 87, 0.2);
            color: var(--accent);
            font-weight: 600;
        }

        .grade-regular {
            background: rgba(245, 158, 11, 0.2);
            color: var(--warning);
            font-weight: 600;
        }

        /* Gestión de Materias - Lista mejorada */
        .subjects-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .subject-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            background: var(--bg-tertiary);
            border-radius: var(--radius);
            border-left: 3px solid var(--primary);
            /* Mejoras móviles */
            min-height: var(--touch-target);
        }

        .subject-info {
            flex: 1;
            min-width: 0;
        }

        .subject-info h5 {
            color: var(--text-primary);
            font-size: 0.8rem;
            margin-bottom: 0.2rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .subject-details {
            font-size: 0.65rem;
            color: var(--text-muted);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .subject-stats {
            text-align: right;
            font-size: 0.65rem;
            color: var(--text-muted);
            flex-shrink: 0;
        }

        /* Evaluaciones - Interfaz mejorada */
        .evaluations-interface {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .eval-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            background: var(--bg-tertiary);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            min-height: var(--touch-target);
        }

        .eval-info {
            flex: 1;
            min-width: 0;
        }

        .eval-info h5 {
            color: var(--text-primary);
            font-size: 0.75rem;
            margin-bottom: 0.2rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .eval-meta {
            font-size: 0.6rem;
            color: var(--text-muted);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .eval-grade {
            text-align: right;
            flex-shrink: 0;
        }

        .eval-score {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--primary);
        }

        .eval-percentage {
            font-size: 0.6rem;
            color: var(--text-muted);
        }

        /* Reportes - Interfaz completa mejorada */
        .reports-main-interface {
            display: flex;
            gap: 1rem;
            height: 180px;
        }

        .reports-sidebar {
            width: 180px;
            background: var(--bg-tertiary);
            border-radius: var(--radius);
            padding: 1rem;
            border: 1px solid var(--border);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .report-types {
            margin-bottom: 1rem;
        }

        .report-types h6 {
            font-size: 0.65rem;
            color: var(--text-muted);
            text-transform: uppercase;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .report-type-buttons {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
        }

        .report-type-btn {
            padding: 0.4rem 0.6rem;
            border: 1px solid var(--border);
            background: var(--bg-primary);
            color: var(--text-secondary);
            border-radius: 4px;
            font-size: 0.6rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            min-height: 32px;
            -webkit-tap-highlight-color: transparent;
        }

        .report-type-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .report-filters {
            margin-bottom: 1rem;
        }

        .filter-group {
            margin-bottom: 0.75rem;
        }

        .filter-label {
            font-size: 0.65rem;
            color: var(--text-muted);
            margin-bottom: 0.3rem;
            display: block;
            font-weight: 500;
        }

        .filter-select {
            width: 100%;
            padding: 0.4rem;
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: 4px;
            color: var(--text-secondary);
            font-size: 0.65rem;
            min-height: 32px;
        }

        .format-options {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .format-option {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            min-height: 32px;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .format-checkbox {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .format-label {
            font-size: 0.6rem;
            color: var(--text-secondary);
            cursor: pointer;
            flex: 1;
        }

        .reports-preview {
            flex: 1;
            background: var(--bg-primary);
            border: 2px dashed var(--border);
            border-radius: var(--radius);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 2rem;
        }

        .preview-icon {
            width: 48px;
            height: 48px;
            background: rgba(217, 119, 87, 0.1);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--primary);
            font-size: 1.5rem;
        }

        .preview-title {
            font-size: 0.8rem;
            color: var(--text-primary);
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .preview-subtitle {
            font-size: 0.65rem;
            color: var(--text-muted);
            line-height: 1.4;
        }

        .module-features {
            list-style: none;
            margin-top: auto;
        }

        .module-features li {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .module-features li i {
            color: var(--success);
            font-size: 0.7rem;
            width: 16px;
            flex-shrink: 0;
        }

        .module-highlight {
            background: rgba(217, 119, 87, 0.1);
            border: 1px solid rgba(217, 119, 87, 0.2);
            border-radius: var(--radius);
            padding: 0.75rem;
            margin-top: 1rem;
            position: relative;
        }

        .module-highlight::before {
            content: '✨';
            position: absolute;
            top: -8px;
            left: 1rem;
            background: var(--bg-card);
            padding: 0 0.5rem;
            font-size: 0.875rem;
        }

        .module-highlight p {
            font-size: 0.8rem;
            color: var(--primary);
            font-weight: 500;
            margin: 0;
            line-height: 1.4;
        }

        /* CTA Banner Section */
        .cta-banner {
            position: relative;
            background: linear-gradient(135deg, #000d1a 0%, #001a33 40%, #004d6e 75%, #06b6c8 100%);
            overflow: hidden;
            min-height: 100vh;
            display: flex;
            align-items: stretch;
        }

        .cta-particles {
            position: absolute;
            inset: 0;
            z-index: 1;
        }

        .cta-particles canvas {
            width: 100% !important;
            height: 100% !important;
        }

        .cta-banner__content {
            position: relative;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: 100%;
            max-width: 1600px;
            margin: 0 auto;
            padding: 4rem 5vw;
            gap: 2rem;
        }

        .cta-banner__left {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2rem;
            padding-bottom: 4rem;
        }

        .cta-banner__title {
            color: #ffffff;
            font-size: clamp(1.75rem, 3vw, 2.75rem);
            font-weight: 800;
            line-height: 1.2;
        }

        .cta-banner__btn {
            display: inline-block;
            background: #06ebf7;
            color: #001a33;
            font-weight: 700;
            font-size: 1rem;
            padding: 1rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            transition: transform 0.2s, box-shadow 0.2s;
            width: fit-content;
        }

        .cta-banner__btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(6, 235, 247, 0.4);
        }

        .cta-banner__right {
            position: absolute;
            right: 150px;
            bottom: 0;
            z-index: 2;
            pointer-events: none;
        }

        .cta-banner__img {
            width: 1650px;
            height: auto;
            display: block;
            object-fit: contain;
            object-position: bottom;
            margin-bottom: 0;
        }

        .cta-banner--secondary .cta-particles {
            z-index: 4;
        }

        .cta-banner--secondary .cta-banner__right {
            left: 120px;
            right: auto;
            z-index: 2;
        }

        .cta-banner__content--secondary {
            justify-content: flex-end;
            text-align: right;
        }

        .cta-banner__content--secondary .cta-banner__left {
            align-items: flex-end;
            max-width: 1100px;
            margin-left: auto;
            animation: ctaFadeRightToLeft 0.9s ease-out both;
        }

        .cta-banner--secondary .cta-banner__title {
            font-size: clamp(1.45rem, 3.6vw, 2.85rem);
            line-height: 1.08;
            font-weight: 800;
            letter-spacing: -0.01em;
            margin: 0;
        }

        .cta-banner--secondary .cta-banner__title-highlight {
            color: #06ebf7;
            text-shadow: 0 0 14px rgba(6, 235, 247, 0.5);
        }

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

        @media (max-width: 768px) {
            .cta-banner {
                min-height: auto;
            }
            .cta-banner__content {
                flex-direction: column;
                padding: 3rem 1.5rem 0;
                align-items: center;
                text-align: center;
            }
            .cta-banner__left {
                align-items: center;
                padding-bottom: 2rem;
            }
            .cta-banner__img {
                width: 80vw;
                max-width: 340px;
            }

            .cta-banner--secondary .cta-banner__right {
                left: auto;
                right: 0;
            }

            .cta-banner__content--secondary {
                justify-content: center;
                text-align: center;
            }

            .cta-banner__content--secondary .cta-banner__left {
                align-items: center;
                margin-left: 0;
            }
        }

        /* Advanced Features Section */
        .advanced-features {
            padding: 5rem 2rem;
            background: #ffffff;
        }

        .advanced-features__header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .advanced-features__header h2 {
            font-size: clamp(1.75rem, 3vw, 2.5rem);
            font-weight: 800;
            color: #001a33;
            margin-bottom: 0.75rem;
        }

        .advanced-features__header p {
            font-size: 1rem;
            color: #5a6a7a;
            font-style: italic;
        }

        .advanced-features__grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .advanced-feature-card {
            perspective: 1000px;
            min-height: 220px;
            cursor: pointer;
        }

        .afc-inner {
            position: relative;
            width: 100%;
            height: 100%;
            min-height: 220px;
            transition: transform 0.65s ease;
            transform-style: preserve-3d;
        }

        .advanced-feature-card:hover .afc-inner {
            transform: rotateY(180deg);
        }

        .afc-front,
        .afc-back {
            position: absolute;
            inset: 0;
            border-radius: 20px;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.75rem;
            text-align: center;
            background: linear-gradient(160deg, #021e3a 0%, #004d6e 50%, #06ebf7 100%);
            box-shadow: 0 4px 20px rgba(0, 61, 92, 0.2);
        }

        .afc-front span {
            color: #ffffff;
            font-size: 1.2rem;
            font-weight: 700;
            line-height: 1.3;
        }

        .afc-back {
            transform: rotateY(180deg);
        }

        .afc-back p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1rem;
            font-weight: 500;
            line-height: 1.6;
        }

        .afc-back p strong {
            color: #06ebf7;
            font-weight: 700;
        }

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

        @media (max-width: 600px) {
            .advanced-features__grid {
                grid-template-columns: 1fr;
            }
        }

        /* Nforma Section */
        .nforma {
            position: relative;
            background: linear-gradient(160deg, #000d1a 0%, #001a33 40%, #004d6e 75%, #06b6c8 100%);
            overflow: hidden;
            padding: 5rem 2rem;
        }

        .nforma-particles {
            position: absolute;
            inset: 0;
            z-index: 1;
        }

        .nforma-particles canvas {
            width: 100% !important;
            height: 100% !important;
        }

        .nforma-header {
            text-align: center;
            margin-bottom: 1rem;
        }

        .nforma-header h2 {
            font-size: clamp(1.8rem, 3.5vw, 2.8rem);
            font-weight: 800;
            color: #06ebf7;
            margin-bottom: 1.2rem;
            line-height: 1.2;
        }

        .nforma-header p {
            color: #ffffff;
            font-size: clamp(1rem, 1.5vw, 1.25rem);
            line-height: 1.8;
            max-width: 900px;
            margin: 0 auto;
            letter-spacing: 0.02em;
        }

        .nforma-inner {
            position: relative;
            z-index: 10;
            max-width: 1600px;
            width: 95vw;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 2.5rem;
        }

        .nforma-row {
            display: flex;
            align-items: stretch;
            gap: 1.5rem;
        }

        .nforma-card {
            flex: 1;
            background: #ffffff;
            display: flex;
            align-items: center;
            padding: 3rem 3.5rem;
            border-radius: 18px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
            min-height: 240px;
        }

        .nforma-text h3 {
            font-size: clamp(1.15rem, 1.9vw, 1.5rem);
            font-weight: 800;
            color: #001a33;
            margin-bottom: 1rem;
            line-height: 1.3;
        }

        .nforma-text p {
            font-size: 0.97rem;
            color: #374151;
            line-height: 1.75;
        }

        .nforma-text p strong {
            color: #06a0b0;
            font-weight: 700;
        }

        .nforma-img-wrap {
            flex-shrink: 0;
            width: 360px;
            overflow: hidden;
            border-radius: 18px;
            border: 1px solid #ffffff;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
        }

        .nforma-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        @media (max-width: 768px) {
            .nforma-row,
            .nforma-row--reverse {
                flex-direction: column;
            }
            .nforma-img-wrap {
                width: 100%;
                height: 200px;
            }
        }

        /* Planes Section */
        .planes {
            padding: 5.5rem 0;
            background: #f5f6fa;
        }

        .planes .content {
            max-width: 980px;
            margin: 0 auto;
            height: auto;
            display: block;
        }

        .planes-header {
            text-align: center;
            margin-bottom: 2.8rem;
        }

        .planes-header h2 {
            color: #0a1a63;
            font-size: clamp(2rem, 3.3vw, 3.2rem);
            font-weight: 800;
            line-height: 1.15;
            margin-bottom: 0.9rem;
        }

        .planes-header p {
            color: #4b5688;
            font-size: 1.05rem;
            line-height: 1.45;
            max-width: 700px;
            margin: 0 auto;
        }

        .planes-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(330px, 1fr));
            gap: 3rem;
            align-items: stretch;
            justify-content: center;
            max-width: 860px;
            margin: 0 auto;
        }

        .plan-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 2rem 1.8rem 1.4rem;
            box-shadow: 0 14px 30px rgba(16, 30, 79, 0.12);
            display: flex;
            flex-direction: column;
            min-height: 640px;
            position: relative;
        }

        .plan-card--monthly {
            border: 2px solid #4d8dff;
        }

        .plan-card--yearly {
            border: 2px solid #29c462;
        }

        .plan-card h3 {
            font-size: 2rem;
            line-height: 1.1;
            margin-bottom: 0.4rem;
            color: #22c3df;
            font-weight: 800;
        }

        .plan-subtitle {
            color: #334175;
            font-size: 0.95rem;
            margin-bottom: 0.7rem;
        }

        .plan-price-wrap {
            position: relative;
            display: block;
            margin-bottom: 0.55rem;
        }

        .plan-price-wrap::before,
        .plan-price-wrap::after {
            content: '';
            position: absolute;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            pointer-events: none;
        }

        .plan-price-wrap::before {
            background: #4d8dff;
            top: 6px;
            left: -10px;
            box-shadow:
                calc(100% + 14px) 2px 0 0 rgba(77,141,255,0.7),
                22px -10px 0 -1px rgba(34,81,204,0.5),
                calc(100% - 24px) 26px 0 -1px rgba(77,141,255,0.4),
                -4px 22px 0 1px rgba(41,196,98,0.5);
            animation: planPriceParticles 3.2s ease-in-out infinite;
        }

        .plan-price-wrap::after {
            background: rgba(41,196,98,0.6);
            top: -8px;
            right: 18%;
            box-shadow:
                -28px 10px 0 -1px rgba(77,141,255,0.45),
                14px 22px 0 0 rgba(41,196,98,0.4),
                -12px -6px 0 -1px rgba(34,81,204,0.5);
            animation: planPriceParticles 3.2s ease-in-out infinite 1.6s;
        }

        @keyframes planPriceParticles {
            0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
            33%       { transform: translateY(-7px) scale(0.55); opacity: 0.35; }
            66%       { transform: translateY(4px) scale(1.25); opacity: 0.7; }
        }

        @keyframes planPriceFadeIn {
            from { opacity: 0; transform: translateY(14px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .plan-price {
            color: #22c3df;
            font-size: 1.08rem;
            font-weight: 800;
            margin-bottom: 0.55rem;
            line-height: 1.2;
        }

        .plan-price--yearly {
            background: linear-gradient(125deg, #2251cc 0%, #4d8dff 60%, #29c462 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 2.4rem;
            font-weight: 800;
            margin-bottom: 0;
            line-height: 1.15;
            letter-spacing: -0.03em;
            animation: planPriceFadeIn 0.7s cubic-bezier(0.22,0.61,0.36,1) both 0.15s;
        }

        .plan-old-price {
            color: #8f95aa;
            text-decoration: line-through;
            margin-bottom: 0.25rem;
            font-size: 0.9rem;
        }

        .plan-note,
        .plan-equivalent {
            color: #6a7295;
            font-size: 0.85rem;
            margin-bottom: 0.55rem;
        }

        .plan-equivalent {
            color: #8f95aa;
            font-size: 0.8rem;
            font-weight: 400;
        }

        .plan-chip {
            display: inline-flex;
            width: fit-content;
            background: #d9f7ff;
            color: #2d6f98;
            padding: 0.45rem 0.8rem;
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .plan-chip--yearly {
            background: #ddf7e6;
            color: #1f7f47;
        }

        .plan-badge {
            position: absolute;
            top: 1.15rem;
            right: 1rem;
            background: #28c463;
            color: #ffffff;
            border-radius: 999px;
            padding: 0.35rem 0.7rem;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.03em;
        }

        .plan-features {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .plan-features li {
            position: relative;
            padding-left: 1.1rem;
            color: #425184;
            font-size: 0.97rem;
            line-height: 1.35;
        }

        .plan-features li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.55em;
            width: 0.42rem;
            height: 0.42rem;
            border-radius: 50%;
            background: #2ac5df;
        }

        .plan-features strong {
            color: #22c3df;
            font-weight: 800;
        }

        .plan-btn {
            margin-top: auto;
            text-align: center;
            text-decoration: none;
            font-size: 1rem;
            font-weight: 800;
            border-radius: 12px;
            padding: 0.9rem 1rem;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .plan-btn:hover {
            transform: translateY(-2px);
        }

        .plan-btn--monthly {
            color: #ffffff;
            background: #3e7ae2;
            box-shadow: 0 10px 22px rgba(62, 122, 226, 0.3);
        }

        .plan-btn--yearly {
            color: #062a19;
            background: #49d17c;
            box-shadow: 0 10px 22px rgba(73, 209, 124, 0.3);
        }

        @media (max-width: 900px) {
            .planes-grid {
                grid-template-columns: 1fr;
            }

            .plan-card {
                min-height: auto;
            }
        }

        /* Stats Section */
        .stats {
            padding: 4rem 2rem;
            background: var(--gradient-primary);
            color: white;
        }

        .stats-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            text-align: center;
        }

        .stat-item {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s ease;
        }

        .stat-item.animate {
            opacity: 1;
            transform: translateY(0);
        }

        .stat-item h3 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .stat-item p {
            font-size: 1.125rem;
            opacity: 0.9;
        }

        /* CTA Section */
        .cta {
            padding: 6rem 2rem;
            background: var(--bg-secondary);
            text-align: center;
        }

        .cta-content {
            max-width: 700px;
            margin: 0 auto;
        }

        .cta h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
        }

        .cta p {
            font-size: 1.25rem;
            color: var(--text-secondary);
            margin-bottom: 2.5rem;
            line-height: 1.8;
        }

        .cta-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-large {
            font-size: 1.125rem;
            padding: 1rem 2rem;
            min-height: 50px; /* Área táctil más grande */
        }

        /* Footer */
        .footer {
            background: #ffffff;
            color: var(--text-secondary);
            padding: 4rem 2rem 2rem;
            border-top: 1px solid var(--border);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-brand h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .footer-brand p {
            line-height: 1.8;
        }

        .footer-section h4 {
            font-size: 1rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section li {
            margin-bottom: 0.75rem;
        }

        .footer-section a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.3s ease;
            padding: 0.25rem 0; /* Área táctil más grande */
            display: block;
            min-height: 32px;
            line-height: 1.5;
        }

        .footer-section a:hover {
            color: var(--primary);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid var(--border);
            color: var(--text-muted);
        }

        /* Animaciones */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        .fade-in.animate {
            opacity: 1;
            transform: translateY(0);
        }

        /* =================================
        RESPONSIVE DESIGN MEJORADO PARA MÓVILES
        ================================= */

        /* Tablet landscape - 1024px */
        @media (max-width: 1024px) {
            .hero-content {
                gap: 3rem;
            }
            
            .hero-text h1 {
                font-size: 3rem;
            }
            
            .modules-grid {
                grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
                gap: 2rem;
            }
        }

        /* Tablet portrait - 768px */
        @media (max-width: 768px) {
            /* Variables móviles */
            :root {
                --mobile-padding: 1rem;
                --mobile-margin: 0.75rem;
            }

            /* Navegación móvil */
            .nav-buttons {
                display: none;
            }

            .mobile-menu-toggle {
                display: block;
            }

            .nav-container {
                padding: var(--mobile-padding) 1.5rem;
            }

            /* Hero adaptado */
            .hero {
                padding: 4rem var(--mobile-padding);
                min-height: auto;
                margin-top: 60px; /* Navbar más pequeña en móvil */
            }

            .hero-content {
                grid-template-columns: 1fr;
                gap: 3rem;
                text-align: center;
            }

            .hero-text h1 {
                font-size: 2.5rem;
                line-height: 1.2;
            }

            .hero-text p {
                font-size: 1.125rem;
                margin-bottom: 2rem;
            }

            .hero-buttons-row {
                justify-content: center;
                gap: 0.75rem;
            }

            .hero-buttons-center {
                margin-top: 1rem;
            }

            .hero-features {
                justify-content: center;
                gap: 1.5rem;
            }

            .hero-feature {
                font-size: 0.9rem;
            }

            /* Dashboard preview */
            .dashboard-preview {
                transform: none;
                max-width: 100%;
                padding: 1.5rem;
            }

            .dashboard-stat {
                padding: 1rem;
            }

            .dashboard-stat .number {
                font-size: 1.5rem;
            }

            /* Módulos adaptados */
            .modules-section {
                padding: 4rem var(--mobile-padding);
            }

            .modules-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
                margin-top: 2rem;
            }

            .module-card {
                min-height: 500px;
            }

            .module-content {
                padding: 1.5rem;
            }

            .module-icon {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }

            .module-info h3 {
                font-size: 1.2rem;
            }

            /* Tablas mejoradas para móvil */
            .module-preview {
                padding: 0.75rem;
                min-height: 200px;
            }

            .students-table {
                font-size: 0.7rem;
                min-width: 350px;
            }

            .sea-table {
                font-size: 0.65rem;
                min-width: 550px;
            }

            /* Matriz cotidiano optimizada */
            .matrix-header,
            .matrix-row {
                grid-template-columns: 100px repeat(4, 50px) 50px 50px;
                gap: 0.25rem;
                padding: 0.4rem;
                min-width: 450px;
            }

            .matrix-student-name {
                font-size: 0.6rem;
            }

            .grade-box {
                width: 24px;
                height: 24px;
                font-size: 0.65rem;
                min-width: 28px;
                min-height: 28px;
            }

            /* Reportes móviles */
            .reports-main-interface {
                flex-direction: column;
                height: auto;
                gap: 1rem;
            }

            .reports-sidebar {
                width: 100%;
                order: 2;
            }

            .reports-preview {
                order: 1;
                min-height: 150px;
                padding: 1.5rem;
            }

            /* Asistencia móvil */
            .attendance-controls {
                gap: 0.4rem;
            }

            .attendance-btn {
                font-size: 0.6rem;
                padding: 0.3rem 0.6rem;
            }

            .student-row {
                padding: 0.6rem;
            }

            .student-name {
                font-size: 0.7rem;
            }

            .attendance-status {
                gap: 0.5rem;
            }

            .status-badge-new {
                font-size: 0.6rem;
                padding: 0.25rem 0.5rem;
            }

            /* Secciones generales */
            .section-header {
                margin-bottom: 3rem;
            }

            .section-header h2 {
                font-size: 2rem;
            }

            .section-header p {
                font-size: 1rem;
            }

            /* Stats responsive */
            .stats {
                padding: 3rem var(--mobile-padding);
            }

            .stats-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 2rem;
            }

            .stat-item h3 {
                font-size: 2.5rem;
            }

            .stat-item p {
                font-size: 1rem;
            }

          

            /* CTA */
            .cta {
                padding: 4rem var(--mobile-padding);
            }

            .cta h2 {
                font-size: 2rem;
            }

            .cta p {
                font-size: 1.125rem;
                margin-bottom: 2rem;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
                gap: 0.75rem;
            }

            .btn-large {
                width: 100%;
                max-width: 300px;
            }

            /* Footer */
            .footer {
                padding: 3rem var(--mobile-padding) 2rem;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 2rem;
                text-align: center;
            }
        }

        /* Mobile pequeño - 480px */
        @media (max-width: 480px) {
            /* Navegación compacta */
            .nav-container {
                padding: 0.75rem 1rem;
            }

            .logo {
                font-size: 1.5rem;
            }

            /* Hero compacto */
            .hero {
                padding: 3rem 1rem;
                margin-top: 55px;
            }

            .hero-text h1 {
                font-size: 2rem;
                line-height: 1.1;
                margin-bottom: 1rem;
            }

            .hero-text p {
                font-size: 1rem;
                margin-bottom: 1.5rem;
            }

            .hero-buttons-row {
                flex-direction: column;
                gap: 0.75rem;
            }

            .hero-features {
                flex-direction: column;
                gap: 1rem;
                align-items: center;
            }

            .hero-feature {
                font-size: 0.85rem;
            }

            /* Botones móviles optimizados */
            .btn {
                padding: 0.75rem 1.25rem;
                font-size: 0.9rem;
                min-width: 120px;
            }

            .btn-large {
                padding: 1rem 1.5rem;
                font-size: 1rem;
                min-height: 50px;
                width: 100%;
                max-width: 280px;
            }

            /* Módulos ultra compactos */
            .modules-section {
                padding: 3rem 1rem;
            }

            .module-card {
                min-height: 450px;
            }

            .module-content {
                padding: 1.25rem;
            }

            .module-icon {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .module-info h3 {
                font-size: 1.1rem;
                line-height: 1.2;
            }

            .module-description {
                font-size: 0.9rem;
                line-height: 1.5;
            }

            /* Tablas ultra compactas */
            .students-table {
                font-size: 0.65rem;
                min-width: 320px;
            }

            .students-table th,
            .students-table td {
                padding: 0.4rem 0.2rem;
            }

            .sea-table {
                font-size: 0.6rem;
                min-width: 480px;
            }

            /* Matriz ultra compacta */
            .matrix-header,
            .matrix-row {
                grid-template-columns: 80px repeat(4, 40px) 40px 40px;
                gap: 0.2rem;
                padding: 0.3rem;
                min-width: 350px;
                font-size: 0.6rem;
            }

            .matrix-student-avatar {
                width: 20px;
                height: 20px;
                font-size: 0.55rem;
            }

            .matrix-student-name {
                font-size: 0.55rem;
            }

            .grade-box {
                width: 20px;
                height: 20px;
                font-size: 0.6rem;
                min-width: 24px;
                min-height: 24px;
            }

            /* Asistencia compacta */
            .attendance-btn {
                font-size: 0.55rem;
                padding: 0.25rem 0.5rem;
                min-height: 32px;
            }

            .student-avatar {
                width: 28px;
                height: 28px;
                font-size: 0.65rem;
            }

            .student-name {
                font-size: 0.65rem;
            }

            .status-badge-new {
                font-size: 0.55rem;
                padding: 0.2rem 0.4rem;
            }

            .mep-percentage {
                font-size: 0.65rem;
            }

            /* Reportes móvil pequeño */
            .reports-sidebar {
                padding: 0.75rem;
            }

            .report-type-btn {
                font-size: 0.55rem;
                padding: 0.3rem 0.5rem;
            }

            .filter-select {
                font-size: 0.6rem;
                padding: 0.3rem;
            }

            .format-label {
                font-size: 0.55rem;
            }

            /* Stats una columna */
            .stats {
                padding: 3rem 1rem;
            }

            .stats-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .stat-item h3 {
                font-size: 2.25rem;
            }

  

            /* CTA compacto */
            .cta {
                padding: 3rem 1rem;
            }

            .cta h2 {
                font-size: 1.75rem;
                line-height: 1.2;
            }

            .cta p {
                font-size: 1rem;
            }

            /* Footer compacto */
            .footer {
                padding: 2.5rem 1rem 1.5rem;
            }

            .footer-brand h3 {
                font-size: 1.25rem;
            }

            .footer-brand p {
                font-size: 0.9rem;
                line-height: 1.6;
            }

            .footer-section h4 {
                font-size: 0.9rem;
            }

            .footer-section a {
                font-size: 0.85rem;
                padding: 0.2rem 0;
                min-height: 28px;
            }

            .footer-bottom {
                font-size: 0.8rem;
                padding-top: 1.5rem;
            }
        }

        /* Mobile extra pequeño - 360px */
        @media (max-width: 360px) {
            .hero-text h1 {
                font-size: 1.75rem;
            }

            .module-content {
                padding: 1rem;
            }

            .module-icon {
                width: 36px;
                height: 36px;
                font-size: 0.9rem;
            }

            .matrix-header,
            .matrix-row {
                grid-template-columns: 70px repeat(4, 35px) 35px 35px;
                min-width: 300px;
            }

            .grade-box {
                width: 18px;
                height: 18px;
                font-size: 0.55rem;
                min-width: 22px;
                min-height: 22px;
            }

            .btn-large {
                max-width: 250px;
                font-size: 0.9rem;
            }
        }

        /* Mejoras de accesibilidad */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Focus states mejorados para móvil */
        .btn:focus,
        .mobile-menu-toggle:focus,
        .grade-box:focus,
        .attendance-btn:focus,
        .report-type-btn:focus {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        /* Estados activos para mejor feedback táctil */
        .btn:active {
            transform: scale(0.98);
        }

        .module-card:active {
            transform: translateY(-4px) scale(1.01);
        }

        .grade-box:active,
        .attendance-btn:active,
        .report-type-btn:active {
            transform: scale(0.95);
        }

        /* Scroll suave para toda la página */
        html {
            scroll-behavior: smooth;
        }

        /* Ocultar scrollbars en webkit para una apariencia más limpia */
        .module-preview::-webkit-scrollbar,
        .cotidiano-matrix::-webkit-scrollbar,
        .reports-sidebar::-webkit-scrollbar {
            height: 4px;
            width: 4px;
        }

        .module-preview::-webkit-scrollbar-track,
        .cotidiano-matrix::-webkit-scrollbar-track,
        .reports-sidebar::-webkit-scrollbar-track {
            background: var(--bg-tertiary);
        }

        .module-preview::-webkit-scrollbar-thumb,
        .cotidiano-matrix::-webkit-scrollbar-thumb,
        .reports-sidebar::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 2px;
        }

        .module-preview::-webkit-scrollbar-thumb:hover,
        .cotidiano-matrix::-webkit-scrollbar-thumb:hover,
        .reports-sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--border-hover);
        }

        /* ===================== AVI Section Styles ===================== */
        
        .avi-dk {
            padding: 3rem 0;
            background: #ffffff;
        }

        @media (min-width: 768px) {
            .avi-dk {
                padding: 4rem 0;
            }
        }

        .avi-container {
            border-radius: 24px;
            overflow: visible;
            max-width: 100%;
            margin: 0 auto;
        }

        .avi-card {
            position: relative;
            border-radius: 16px;
            background: linear-gradient(135deg, #003d5c 0%, #0a5f7a 50%, #06ebf7 100%);
            padding: 2rem;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(6, 235, 247, 0.2);
            min-height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 85vw;
            margin-left: calc(-42.5vw + 50%);
        }

        .avi-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
            pointer-events: none;
            border-radius: 16px;
        }

        @media (min-width: 768px) {
            .avi-card {
                padding: 2.5rem 3rem;
                min-height: 220px;
                width: 85vw;
                margin-left: calc(-42.5vw + 50%);
            }
        }

        .avi-particles {
            position: absolute;
            inset: 0;
            z-index: 1;
            border-radius: 16px;
        }

        .avi-particles canvas {
            width: 100% !important;
            height: 100% !important;
            display: block;
        }

        .avi-wrapper {
            position: relative;
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            align-items: flex-start;
        }

        .avi-top-section {
            display: flex;
            gap: 1.25rem;
            align-items: flex-start;
            width: auto;
        }

        .avi-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            overflow: hidden;
            border: 3px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }

        .avi-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .avi-text {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            justify-content: center;
        }

        .avi-text h2 {
            color: #ffffff;
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.2;
            margin: 0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .avi-text p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.875rem;
            line-height: 1.4;
            margin: 0;
        }

        .avi-question {
            font-weight: 600;
            color: #ffffff;
        }

        .avi-input-section {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            width: 100%;
        }

        .avi-input-wrapper {
            flex: 1;
            position: relative;
            min-width: 0;
            width: 100%;
        }

        .avi-input-wrapper input {
            width: 100%;
            border-radius: 50px;
            border: none;
            background: rgba(255, 255, 255, 0.95);
            padding: 0.875rem 1.5rem;
            font-size: 0.9rem;
            color: #1f2937;
            font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .avi-input-wrapper input::placeholder {
            color: #9ca3af;
        }

        .avi-input-wrapper input:focus {
            outline: none;
            background-color: #ffffff;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        #avi-send-btn {
            flex-shrink: 0;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #06ebf7;
            color: #003d5c;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 16px rgba(6, 235, 247, 0.4);
            font-weight: 600;
        }

        #avi-send-btn:hover {
            background: #26f6ff;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(6, 235, 247, 0.5);
        }

        #avi-send-btn:active {
            transform: translateY(0);
        }

        #avi-send-btn svg {
            width: 22px;
            height: 22px;
        }

        .avi-input-wrapper input:focus-visible {
            outline: 2px solid #ffffff;
            outline-offset: 2px;
        }

        #avi-send-btn:focus-visible {
            outline: 2px solid #ffffff;
            outline-offset: 2px;
        }

        @media (min-width: 768px) {
            .avi-top-section {
                gap: 1.75rem;
            }

            .avi-avatar {
                width: 100px;
                height: 100px;
            }

            .avi-text h2 {
                font-size: 1.5rem;
            }

            .avi-text p {
                font-size: 0.95rem;
            }

            .avi-input-wrapper input {
                padding: 1rem 1.75rem;
                font-size: 1rem;
            }

            #avi-send-btn {
                width: 52px;
                height: 52px;
            }
        }

        /* About Platform Section */
        .about-platform {
            padding: 3rem 0;
            background: linear-gradient(135deg, #000d1a 0%, #001a33 50%, #003d5c 100%);
            position: relative;
            overflow: hidden;
        }

        @media (min-width: 768px) {
            .about-platform {
                padding: 4rem 0;
            }
        }

        .about-container {
            border-radius: 24px;
            overflow: visible;
            max-width: 100%;
            margin: 0 auto;
        }

        .about-card {
            position: relative;
            border-radius: 16px;
            background: #ffffff;
            padding: 1.5rem 2rem;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            min-height: 100px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            width: 85vw;
            margin-left: calc(-42.5vw + 50%);
        }

        .about-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
            pointer-events: none;
            border-radius: 16px;
        }

        @media (min-width: 768px) {
            .about-card {
                padding: 2rem 3rem;
                min-height: 120px;
                width: 85vw;
                margin-left: calc(-42.5vw + 50%);
            }

            .about-text p {
                font-size: 1.1rem;
                line-height: 1.7;
            }

            .about-logo img {
                width: 160px;
            }
        }

        .about-particles {
            position: absolute;
            inset: 0;
            z-index: 1;
            border-radius: 16px;
            display: block;
        }

        .about-particles canvas {
            width: 100% !important;
            height: 100% !important;
            display: block;
        }

        .about-wrapper {
            position: relative;
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            align-items: center;
            justify-content: center;
            text-align: left;
        }

        .about-logo {
            flex-shrink: 0;
        }

        .about-logo img {
            width: 140px;
            height: auto;
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
        }

        .about-text {
            flex: 1;
            max-width: 100%;
            width: 100%;
        }

        .about-text p {
            color: #1f2937;
            font-size: 1.1rem;
            font-weight: 500;
            line-height: 1.6;
            margin: 0;
            text-shadow: none;
        }

        @media (min-width: 768px) {
            .about-text p {
                font-size: 1.2rem;
                font-weight: 500;
                line-height: 1.7;
            }

            .about-logo img {
                width: 160px;
            }
        }

        /* ============================================
           FAQ SECTION
           ============================================ */
        .FAQ {
            background: #f5f2ed;
            padding: 5rem 0;
        }

        .FAQ .content {
            flex-direction: column;
            align-items: stretch;
            max-width: 1500px;
            margin: 0 auto;
            padding: 0 2rem;
            width: 100%;
        }

        .FAQ h2 {
            color: #0a0f2e;
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 2.5rem;
            width: 100%;
        }

        @media (min-width: 768px) {
            .FAQ h2 {
                font-size: 3.5rem;
                margin-bottom: 3rem;
            }
        }

        .FAQ .bg-\[var\(--bg-secondary\)\] {
            background: #0d1540;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 18px;
            padding: 0.25rem 2rem;
            width: 100%;
        }

        .FAQ .w-full {
            width: 100%;
        }

        @media (max-width: 767px) {
            .FAQ .bg-\[var\(--bg-secondary\)\] {
                padding: 0.25rem 1rem;
            }
        }

        .faq-item {
            border-color: rgba(255, 255, 255, 0.12);
        }

        .faq-question {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.25rem 0;
            cursor: pointer;
            list-style: none;
            color: #ffffff;
            font-size: 1rem;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .faq-question::-webkit-details-marker { display: none; }

        .faq-question:hover {
            color: #06ebf7;
        }

        .faq-icon::before {
            content: '+';
        }

        details[open] .faq-icon {
            transform: rotate(45deg);
            display: inline-block;
        }

        details[open] .faq-question {
            color: #06ebf7;
        }

        .faq-answer {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.95rem;
            line-height: 1.7;
            padding-bottom: 1.25rem;
            padding-top: 0.25rem;
        }

        .border-t.border-gray-700 {
            border-top: 1px solid rgba(255, 255, 255, 0.12);
        }

        /* ============================================
           MSJTMP SECTION
           ============================================ */
        .msjtmp {
            background: #f5f2ed;
            padding: 5rem 0;
        }

        .msjtmp .content {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 2rem;
        }

        .msjtmp h2 {
            color: #0a0f2e;
            font-size: 2rem;
            font-weight: 700;
            max-width: 800px;
            line-height: 1.3;
        }

        .msjtmp-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 2.5rem;
            background: #06ebf7;
            color: #0a0f2e;
            font-weight: 600;
            font-size: 1.1rem;
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(6, 235, 247, 0.3);
        }

        .msjtmp-btn:hover {
            background: #05d4e3;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(6, 235, 247, 0.4);
        }

        @media (min-width: 768px) {
            .msjtmp h2 {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 767px) {
            .msjtmp {
                padding: 3rem 0;
            }

            .msjtmp h2 {
                font-size: 1.5rem;
            }

            .msjtmp-btn {
                padding: 0.875rem 2rem;
                font-size: 1rem;
            }
        }

        /* ============================================
           NEWSLETTER SECTION
           ============================================ */
        .newsletter {
            position: relative;
            background: linear-gradient(135deg, #0a1e4d 0%, #1a4a7e 50%, #245f9e 100%);
            padding: 5rem 0;
            overflow: hidden;
        }

        .newsletter-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .newsletter .main-container {
            position: relative;
            z-index: 2;
        }

        .newsletter .content {
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .newsletter-container {
            text-align: center;
            max-width: 700px;
            width: 100%;
        }

        .newsletter h2 {
            color: #ffffff;
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 2rem;
            line-height: 1.3;
        }

        .newsletter-form {
            display: flex;
            gap: 1rem;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
        }

        .newsletter-input {
            flex: 1;
            min-width: 250px;
            padding: 1rem 1.5rem;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            background: #ffffff;
            color: #2c2c2c;
            outline: none;
            transition: all 0.3s ease;
        }

        .newsletter-input::placeholder {
            color: #999;
        }

        .newsletter-input:focus {
            box-shadow: 0 0 0 3px rgba(6, 235, 247, 0.3);
        }

        .newsletter-btn {
            padding: 1rem 2.5rem;
            background: #06ebf7;
            color: #0a0f2e;
            font-weight: 600;
            font-size: 1.1rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(6, 235, 247, 0.3);
            white-space: nowrap;
        }

        .newsletter-btn:hover {
            background: #05d4e3;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(6, 235, 247, 0.4);
        }

        @media (min-width: 768px) {
            .newsletter h2 {
                font-size: 2.25rem;
            }
        }

        @media (max-width: 767px) {
            .newsletter {
                padding: 3rem 0;
            }

            .newsletter h2 {
                font-size: 1.5rem;
                margin-bottom: 1.5rem;
            }

            .newsletter-form {
                flex-direction: column;
                width: 100%;
            }

            .newsletter-input {
                width: 100%;
                min-width: unset;
            }

            .newsletter-btn {
                width: 100%;
                padding: 0.875rem 2rem;
            }
        }

/* ========================================================
   HABLEQ SECTION
   ======================================================== */
.hableq {
    background: transparent;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hableq .main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hableq .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hableq-btn {
    display: inline-block;
    background: #06ebf7;
    color: #000;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 235, 247, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.hableq-btn:hover {
    background: #05d4df;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(6, 235, 247, 0.5);
}

.hableq-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(6, 235, 247, 0.4);
}

@media (max-width: 768px) {
    .hableq {
        padding: 3rem 0;
    }

    .hableq-btn {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

/* ========================================================
   SITE FOOTER
   ======================================================== */
.site-footer {
    background-color: #0a1540;
    color: #d0d8f0;
    font-family: 'Montserrat', sans-serif;
    padding-top: 3.5rem;
}

.site-footer__top {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem 3rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Brand column */
.site-footer__logo {
    margin-bottom: 1.25rem;
}

.site-footer__logo-img {
    height: 65px;
    width: auto;
    display: block;
}

.site-footer__tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: #d0d8f0;
    margin-bottom: 0.5rem;
}

.site-footer__desc {
    font-size: 0.92rem;
    color: #9ab0d0;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.site-footer__email {
    font-size: 0.92rem;
    color: #9ab0d0;
}

.site-footer__email a {
    color: #9ab0d0;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__email a:hover {
    color: #06ebf7;
}

/* Link columns */
.site-footer__col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    text-transform: none;
    letter-spacing: 0.02em;
}

.site-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-footer__col ul li a {
    font-size: 0.95rem;
    color: #9ab0d0;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__col ul li a:hover {
    color: #06ebf7;
}

/* Bottom bar */
.site-footer__bottom {
    text-align: center;
    padding: 1.25rem 2rem;
    background-color: #070f2e;
}

.site-footer__bottom p {
    font-size: 0.85rem;
    color: #6a80a8;
    letter-spacing: 0.04em;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .site-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding: 0 2.5rem 3rem;
    }
}

@media (max-width: 600px) {
    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem 2.5rem;
    }
}

/* ============================================================
   OPTIMIZACIONES MÓVILES ADICIONALES
   Correcciones específicas para mejorar la vista en celulares
   ============================================================ */

/* ── CTA Banner: corregir imagen absolutamente posicionada ── */
@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        overflow: hidden;
    }

    /* Sacar la imagen del flujo absoluto y apilarla debajo del texto */
    .cta-banner__right {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        order: 2;
        overflow: hidden;
        max-height: 280px;
    }

    .cta-banner--secondary .cta-banner__right {
        left: auto !important;
        right: auto !important;
        order: 2;
    }

    .cta-banner__content {
        order: 1;
        padding: 2.5rem 1.5rem 1.25rem !important;
        width: 100%;
    }

    .cta-banner__content--secondary {
        order: 1;
    }

    .cta-banner__img {
        width: auto !important;
        max-width: 260px !important;
        height: 260px;
        object-fit: contain;
        object-position: bottom center;
    }

    .cta-banner__title {
        font-size: clamp(1.35rem, 5.5vw, 1.9rem) !important;
        line-height: 1.3 !important;
    }

    .cta-banner__btn {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
    }
}

/* ── Nforma section: reducir padding excesivo en móvil ── */
@media (max-width: 768px) {
    .nforma {
        padding: 3rem 0;
    }

    .nforma-inner {
        width: 100%;
        padding: 0 1rem;
    }

    .nforma-card {
        padding: 1.75rem 1.5rem;
        min-height: auto;
    }

    .nforma-header {
        padding: 0 0.75rem;
        margin-bottom: 2rem;
    }

    .nforma-header p {
        font-size: 0.95rem;
    }

    .nforma-img-wrap {
        height: 220px;
    }
}

/* ── Hero: contener texto en pantallas < 600px ── */
@media (max-width: 600px) {
    .hero {
        padding: 2.5rem 1rem 2rem;
    }

    .hero-content {
        padding: 0 0.25rem;
    }

    /* Asegurar que el título no desborde */
    .main-title {
        font-size: 1.95rem !important;
        line-height: 1.2 !important;
        word-break: break-word;
        hyphens: auto;
    }

    .main-title .text-cyan-400 span,
    .main-title span {
        font-size: inherit;
    }
}

/* ── Advanced features flip cards: soporte táctil ── */
.advanced-feature-card.is-flipped .afc-inner {
    transform: rotateY(180deg);
}

@media (max-width: 768px) {
    .advanced-features {
        padding: 3.5rem 1.25rem;
    }

    /* Indicar que las tarjetas son interactivas en móvil */
    .advanced-feature-card {
        cursor: pointer;
    }

    .afc-front::after {
        content: '↻';
        position: absolute;
        bottom: 0.75rem;
        right: 1rem;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.6);
    }
}

/* ── Modules section: padding en móvil ── */
@media (max-width: 768px) {
    .modules-section {
        padding: 3.5rem 0.75rem;
    }

    .modules-grid {
        padding: 0;
    }

    .section-header {
        padding: 0 1rem;
        margin-bottom: 2.5rem;
    }
}

/* ── Planes section: espaciado móvil ── */
@media (max-width: 768px) {
    .planes {
        padding: 3.5rem 0;
    }

    .planes-header {
        padding: 0 1rem;
    }

    .plan-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .plan-card h3 {
        font-size: 1.7rem;
    }
}

/* ── FAQ: espaciado móvil ── */
@media (max-width: 768px) {
    .FAQ {
        padding: 3.5rem 0;
    }

    .FAQ .content {
        padding: 0 1rem;
    }
}

/* ── Pantallas muy pequeñas (< 480px): ajustes finos ── */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.75rem !important;
    }

    .nforma-card {
        padding: 1.5rem 1rem;
    }

    .nforma-text h3 {
        font-size: 1.05rem;
    }

    .nforma-text p {
        font-size: 0.92rem;
    }

    .nforma-img-wrap {
        height: 180px;
    }

    .msjtmp h2 {
        font-size: 1.4rem;
        padding: 0 0.75rem;
    }

    .msjtmp-btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }

    .hableq-btn {
        font-size: 0.9rem;
        padding: 0.9rem 1.75rem;
        text-align: center;
    }

    .planes-header h2 {
        font-size: 1.75rem;
    }

    .cta-banner__img {
        max-width: 210px !important;
        height: 210px !important;
    }

    /* Avi card: reducir padding y texto en móvil pequeño */
    .avi-card {
        padding: 1.5rem !important;
    }

    .avi-text h2 {
        font-size: 1.1rem;
    }

    .avi-text p {
        font-size: 0.82rem;
    }

    /* About card */
    .about-card {
        padding: 1.25rem 1.5rem !important;
    }

    .about-text p {
        font-size: 0.95rem !important;
    }

    /* Newsletter */
    .newsletter h2 {
        font-size: 1.4rem;
    }
}

/* ── Pantallas extra pequeñas (< 380px): mínimos ── */
@media (max-width: 380px) {
    .main-title {
        font-size: 1.6rem !important;
    }

    .avi-avatar {
        width: 64px !important;
        height: 64px !important;
    }

    .avi-text h2 {
        font-size: 1rem;
    }

    .nforma-card {
        padding: 1.25rem 0.875rem;
    }

    .cta-banner__title {
        font-size: 1.25rem !important;
    }
}