/* =========================================
   RESET GLOBAL (PONER AL INICIO DEL CSS)
   ========================================= */
* {
    box-sizing: border-box; /* Esto evita que el padding aumente el ancho */
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Corta cualquier desborde rebelde */
    width: 100%;
    position: relative;
}
/* =========================================
   CABECERA (HEADER) - Responsive Fix
   ========================================= */

:root {
    --primary-blue: #007bff;
    --dark-bg: #1a1a1a;
    --light-bg: #ffffff;
    --text-gray: #b0b0b0;
    --header-height: 70px; /* Altura fija para cálculos */
}

/* Configuración Base de Cabecera */
.header {
    background: var(--light-bg);
    padding: 0 20px; /* Padding horizontal reducido */
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center; /* Centrado vertical perfecto */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 20px;
}

/* 1. LOGO */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; 
    width: auto;
    object-fit: contain;
    margin-right: 8px;
}

.logo-text {
    font-family: 'ExtraBold 800', sans-serif; /* Fuente futurista */
    font-weight: 700;
    font-size: 30px;
    color: #102E69;
    letter-spacing: 1px;
    
    /* --- NUEVOS AJUSTES DE ALINEACIÓN --- */
    line-height: 1;    /* Elimina espacios extra arriba y abajo de la fuente */
    margin-top: 10px;   /* Empuja el texto hacia abajo (ajusta este número si quieres más/menos) */
    display: block;    /* Asegura que el margen funcione correctamente */
}

.logo-text span {
    color: var(--primary-blue);
}

/* 2. BUSCADOR (Desktop) */
.search-bar {
    display: flex;
    border: 1px solid #e1e4e8;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 5px 15px;
    flex: 1; /* Ocupa el espacio disponible */
    max-width: 500px; /* Pero no más de 500px */
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    padding: 8px;
    background: transparent;
    font-size: 14px;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-blue);
    font-size: 16px;
}

/* 3. NAVEGACIÓN DERECHA */
.nav-right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Contenedor de los iconos (Carrito y Campana) */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 35px; /* Aumentado de 20px a 35px para dar más espacio */
}

/* (Opcional) Aseguramos que los iconos mantengan el tamaño correcto */
.nav-icons i {
    font-size: 22px; 
    color: #1a1a1a;
}

.icon-link {
    color: #555;
    font-size: 20px;
    transition: 0.3s;
    position: relative;
}

.icon-link:hover {
    color: var(--primary-blue);
    transform: scale(1.1);
}

/* Botones Desktop */
.desktop-buttons {
    display: flex;
    gap: 15px; /* Espacio entre los dos botones */
    align-items: center;
}

/* Estilos base compartidos para ambos botones */
.btn-login, 
.btn-cert {
    display: inline-block;
    text-decoration: none;
    font-family: 'Roboto', sans-serif; /* Asegura la fuente */
    font-size: 15px;       /* Tamaño de letra legible */
    font-weight: 700;      /* Texto en negrita (Bold) */
    padding: 10px 20px;    /* Relleno interno para dar altura y ancho */
    border-radius: 6px;    /* Bordes ligeramente redondeados (no píldora) */
    transition: all 0.2s ease-in-out;
    white-space: nowrap;   /* Evita que el texto se parta en dos líneas */
    line-height: 1.2;
}

/* BOTÓN 1: INICIAR SESIÓN (Borde Azul Claro, Fondo Blanco) */
.btn-login {
    background-color: transparent;
    border: 1px solid #56ccf2; /* Azul cian/cielo del borde */
    color: #4dbcfeb0;          /* Color del texto igual al borde */
    /* Ajuste visual para que se vea como en la foto */
    border-color: #2d9cdb; 
    color: #2d9cdb;
}

.btn-login:hover {
    background-color: rgba(45, 156, 219, 0.1); /* Fondo sutil al pasar el mouse */
}

/* BOTÓN 2: VERIFICADOR (Fondo Azul Sólido, Texto Blanco) */
.btn-cert {
    background-color: #0F66F5; /* Azul rey vibrante */
    border: 1px solid #0F66F5; /* Borde del mismo color */
    color: #ffffff !important; /* Texto blanco forzado */
    box-shadow: 0 2px 5px rgba(15, 102, 245, 0.2); /* Sombra suave */
}

.btn-cert:hover {
    background-color: #0a4cb5; /* Azul un poco más oscuro al hover */
    border-color: #0a4cb5;
    transform: translateY(-1px); /* Efecto leve de elevación */
}

/* 4. TOGGLE MENÚ MÓVIL (Oculto en desktop) */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

/* =========================================
   ESTILO DE BÚSQUEDA ACTIVA (Romper Carrusel)
   ========================================= */

/* Cuando se activa la búsqueda, convertimos el riel en una rejilla */
.courses-track.search-active {
    display: flex;
    flex-wrap: wrap; /* Permite que bajen a la siguiente línea */
    gap: 30px;
    transform: none !important; /* Resetea el desplazamiento del carrusel */
    width: 100%;
    justify-content: center; /* Centra los resultados */
}

/* Ocultar controles del carrusel durante la búsqueda */
.carousel-controls.hidden {
    display: none !important;
}

/* Mensaje de "No resultados" */
.no-results-message {
    text-align: center;
    width: 100%;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
    display: none; /* Oculto por defecto */
}

/* =========================================
   FIX BUSCADOR VS CARRUSEL (AGREGAR AL FINAL)
   ========================================= */

/* 1. Convierte el carrusel en una rejilla normal cuando se busca */
.courses-track.search-active {
    display: flex !important;
    flex-wrap: wrap !important; /* Permite que bajen a la siguiente línea */
    gap: 30px;
    transform: none !important; /* ANULA el movimiento del carrusel */
    width: 100% !important;
    justify-content: center; /* Centra los resultados */
}

/* 2. Oculta los controles (flechas) mientras se busca */
.carousel-controls.hidden {
    display: none !important;
}

/* 3. Asegura que las tarjetas se vean bien en la rejilla */
.courses-track.search-active .course-card {
    flex: 0 0 280px; /* Tamaño fijo para resultados ordenados */
    max-width: 300px;
}

/* 4. Mensaje de no resultados */
.no-results-message {
    text-align: center;
    width: 100%;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
    display: none; /* Oculto por defecto */
    grid-column: 1 / -1;
}

/* =========================================
   ESTILOS MENÚ LATERAL (MÓVIL)
   ========================================= */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px; /* Oculto a la izquierda */
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0; /* Mostrar menú */
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.sidebar-title {
    font-weight: 800;
    font-size: 18px;
    color: #333;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    color: #555;
    cursor: pointer;
}

.sidebar-content {
    padding: 20px;
    overflow-y: auto;
}

.mobile-search-container {
    margin-bottom: 25px;
}

.mobile-search {
    max-width: 100%; /* Ancho completo en móvil */
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.mobile-btn {
    text-align: center;
    width: 100%;
    padding: 12px;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 15px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 5px 0;
}

/* Overlay oscuro para el fondo */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   ESTILOS DE BOTONES EN MENÚ MÓVIL
   ========================================= */

/* Estilo de la lista de enlaces */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.mobile-nav-links li a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0; /* Línea sutil entre items */
    transition: color 0.3s;
}

.mobile-nav-links li a:hover {
    color: #0F66F5;
    padding-left: 5px; /* Pequeño movimiento al hover */
}

/* Separador */
.sidebar-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 20px 0;
}

/* Contenedor de Botones */
.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reducido de 15px a 10px */
    margin-top: 10px;
    padding: 0 5px; /* Un pequeño margen lateral interno */
}

/* 2. Botones más delgados y con letra más pequeña */
.mobile-btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    
    /* CAMBIOS CLAVE AQUÍ: */
    padding: 8px 15px;      /* Menos altura (antes era 14px) */
    font-size: 0.9rem;      /* Letra más pequeña (aprox 14px) */
    
    border-radius: 6px;     /* Bordes sutiles */
    font-weight: 600;       /* Un poco menos de grosor en la letra */
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    gap: 8px;               /* Icono más cerca del texto */
}

/* Ajustar el tamaño del icono dentro del botón */
.mobile-btn-action i {
    font-size: 0.9rem; /* Icono del mismo tamaño que el texto */
}

/* Botón Iniciar Sesión (Estilo Borde Azul) */
.mobile-btn-action.login {
    background-color: #fff;
    border: 2px solid #0F66F5;
    color: #0F66F5;
}

.mobile-btn-action.login:active {
    background-color: #f0f7ff;
    transform: scale(0.98);
}

/* Botón Verificador (Estilo Sólido Azul) */
.mobile-btn-action.cert {
    background-color: #0F66F5;
    border: 2px solid #0F66F5;
    color: white;
    box-shadow: 0 4px 6px rgba(15, 102, 245, 0.2);
}

.mobile-btn-action.cert:active {
    background-color: #0a4cb5;
    transform: scale(0.98);
}

/* =========================================
   MEDIA QUERIES (ADAPTACIÓN TABLET Y MÓVIL)
   ========================================= */

/* Tablet y Móviles (< 992px) */
@media (max-width: 992px) {
    /* Ocultar elementos desktop */
    .desktop-search, 
    .desktop-buttons {
        display: none !important;
    }

    /* Mostrar Toggle */
    .menu-toggle {
        display: block;
        order: 1; /* Poner el menú a la izquierda */
        margin-right: 15px;
    }

    /* Ajustar Logo */
    .logo {
        order: 2; /* Logo al centro (visualmente) o seguido del menú */
        margin-right: auto; /* Empuja los iconos a la derecha */
    }
    
    .logo img {
        height: 35px; /* Ligeramente más pequeño */
    }
    
    .logo-text {
        font-size: 18px; /* Texto más pequeño */
    }

    /* Iconos a la derecha */
    .nav-right-section {
        order: 3;
    }
    
    .nav-icons {
        gap: 15px; /* Menos espacio entre iconos */
    }
    
    .icon-link {
        font-size: 18px;
    }
}

/* Móviles pequeños (< 480px) */
@media (max-width: 480px) {
    .header {
        padding: 0 15px;
    }
    
    /* En pantallas muy pequeñas, ocultamos el texto del logo y dejamos solo el icono
       O reducimos mucho el texto */
    .logo-text {
        display: block; /* Mantenemos el texto */
        font-size: 16px;
    }
    
    .logo img {
        height: 30px;
        margin-right: 5px;
    }
    
    .menu-toggle {
        font-size: 20px;
        margin-right: 10px;
    }
}

/* =========================================
   CONTENEDOR GLOBAL (Limita el ancho)
   ========================================= */
.container {
    max-width: 1350px;  /* El ancho máximo que solicitaste */
    width: 100%;        /* Ocupa todo el espacio disponible hasta llegar a 1450px */
    margin: 0 auto;     /* Esto centra el contenedor horizontalmente */
    padding: 0 20px;    /* Margen interno para que en móviles no pegue al borde */
}

/* Ajuste opcional: Sincronizar cabecera y pie de página */
.header-container, 
.footer-container {
    max-width: 1450px; /* Igualamos la cabecera al mismo ancho */
    margin: 0 auto;
}


/* =========================================
   OFERTA CARRUSEL
   ========================================= */
:root {
    --hud-bg: #0b0d10;
    --hud-panel: #141619;
    --hud-blue: #0F66F5;      /* Arco eléctrico */
    --hud-orange: #ff9f1c;    /* Chispa / Metal caliente */
    --hud-text: #e0e6ed;
    --hud-dim: #5c677d;
}

/* Contenedor Principal */
.welding-hud-section {
    /* Mantenemos las dimensiones y estructura */
    padding: 20px 0 30px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* --- NUEVO FONDO DEGRADADO --- */
    background: #020a1a;
    background: linear-gradient(90deg,rgba(2, 10, 26, 1) 0%, rgba(2, 26, 56, 1) 50%, rgba(0, 10, 26, 1) 100%);
}

/* Fondo Grid Sutil */
.hud-grid-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(15, 102, 245, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 102, 245, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

/* Header del HUD */
.hud-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.hud-title-bar {
    display: inline-block;
    border-bottom: 2px solid var(--hud-blue);
    padding-bottom: 10px;
}

.hud-header h1 {
    color: white;
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
}

.text-arc {
    color: transparent;
    -webkit-text-stroke: 1px var(--hud-orange);
    text-shadow: 0 0 10px rgba(255, 159, 28, 0.3);
}

/* === LÓGICA DEL CARRUSEL (CORRECCIÓN) === */
.hud-carousel-wrapper {
    position: relative;
    max-width: 1100px; /* Reducido de 1200px a 960px */
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 15px;
    z-index: 2;
}

/* El contenedor que recorta lo que sobra */
.hud-track-container {
    overflow: hidden; /* Oculta los slides que están a los lados */
    width: 100%;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* La pista que se mueve */
.hud-track {
    display: flex; /* Pone los elementos uno al lado del otro */
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Animación suave */
}

/* CADA DIAPOSITIVA INDIVIDUAL */
.hud-slide {
    min-width: 100%; /* OBLIGATORIO: Fuerza a que mida el 100% del contenedor */
    width: 100%;
    flex-shrink: 0;  /* OBLIGATORIO: Impide que el navegador "aplaste" los slides */
    display: flex;
    justify-content: center;
    align-items: stretch; /* Asegura que la tarjeta ocupe toda la altura */
}
 
/* Asegurar que la tarjeta interna llene el slide */
.hud-card {
    width: 100%;
    display: flex;
    background: var(--hud-panel);
    border: 1px solid #2d3748;
    position: relative;
    overflow: hidden;
    /* Sombras y bordes */
    box-shadow: 0 0 0 1px rgba(15, 102, 245, 0.1);
}

/* Lado Izquierdo: Imagen */
.hud-visual {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    min-height: 360px; /* Reducido de 450px a 360px */
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%); /* Ajuste ligero del ángulo */
}

.hud-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hud-card:hover .hud-img {
    transform: scale(1.05);
}

/* Overlay azulado sobre la imagen */
.visual-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(15,102,245,0.3) 0%, transparent 60%);
    z-index: 2;
}

/* Etiquetas flotantes en la imagen */
.hud-tag {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: var(--hud-orange);
    padding: 5px 10px;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.8rem;
    border-left: 3px solid var(--hud-orange);
    z-index: 3;
}
.hud-tag.top-left { top: 20px; left: 20px; }

/* Barra de escaneo lenta (estabilidad) */
.hud-scan-bar {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--hud-blue);
    box-shadow: 0 0 15px var(--hud-blue);
    animation: hudScan 4s ease-in-out infinite;
    z-index: 3;
    opacity: 0.7;
}

@keyframes hudScan {
    0% { top: 5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 95%; opacity: 0; }
}

/* Lado Derecho: Datos */
.hud-data {
    flex: 1;
    padding: 30px; /* Reducido de 40px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* Fondo se mantiene igual */
    background: linear-gradient(90deg, rgba(20,22,25,0) 0%, rgba(20,22,25,1) 20%), url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMTQxNjE5Ii8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxYTIwMmMiLz4KPC9zdmc+');
}

/* Decoración esquina superior derecha */
.hud-data::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    border-top: 3px solid var(--hud-blue);
    border-right: 3px solid var(--hud-blue);
}

.data-title {
    /* 1. Cambiamos a BLOCK para que actúe como texto normal corrido */
    display: block; 
    
    font-size: 1.8rem; 
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    line-height: 1.2;
    margin-bottom: 8px;
    
    /* Aseguramos que el texto no se corte si es largo */
    white-space: normal; 
}

/* 2. Ocultamos el <br> que está en el HTML para que no corte la línea */
.data-title br {
    display: none;
}

/* 3. Aseguramos que el texto naranja sea parte de la misma línea */
.highlight-orange {
    display: inline; /* Se comporta como una palabra más */
    color: var(--hud-orange);
    margin-left: 6px; /* Un pequeño espacio para separarlo del texto blanco */
}


.highlight-orange {
    color: var(--hud-orange);
}

.data-subtitle {
    font-family: monospace;
    color: var(--hud-dim);
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.data-line {
    width: 50px;
    height: 4px;
    background: var(--hud-blue);
    margin-bottom: 10px;
}

.data-specs {
    list-style: none;
    margin-bottom: 25px;
}

.data-specs li {
    color: var(--hud-text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

.data-specs li i {
    color: var(--hud-blue);
}

/* Footer de Datos */
.data-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Barra de capacidad (Estilo videojuego/maquinaria) */
.capacity-bar label {
    display: block;
    font-size: 0.75rem;
    color: var(--hud-dim);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.capacity-bar .progress {
    width: 100%;
    height: 6px;
    background: #2d3748;
    border-radius: 3px;
    overflow: hidden;
}

.capacity-bar .fill {
    height: 100%;
    background: var(--hud-orange); /* Color de alerta/metal caliente */
    box-shadow: 0 0 10px var(--hud-orange);
}

/* Botón sólido y seguro */
.btn-hud {
    background: var(--hud-blue);
    color: white;
    padding: 12px 25px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-hud:hover {
    background: #0b4cb5;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(15, 102, 245, 0.4);
}

/* Navegación */
.hud-nav {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid var(--hud-dim);
    width: 45px; height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-nav:hover {
    background: var(--hud-blue);
    border-color: var(--hud-blue);
    box-shadow: 0 0 15px var(--hud-blue);
}

/* Responsive */
@media (max-width: 992px) {
    .hud-card {
        flex-direction: column;
    }
    .hud-visual {
        height: 250px; /* Altura fija para la imagen en móvil */
        min-height: auto;
    }
    .hud-data {
        padding: 30px 20px;
    }
    .data-title { font-size: 1.8rem; }
}

/* Agrega esto a tus estilos del carrusel */
.hud-track-container {
    /* ... tus estilos anteriores ... */
    cursor: grab; /* Muestra una manito abierta */
    touch-action: pan-y; /* Permite scroll vertical pero detecta horizontal */
}

.hud-track-container:active {
    cursor: grabbing; /* Muestra una manito cerrada al hacer clic */
}

/* Evita que se seleccione el texto al arrastrar */
.hud-slide {
    user-select: none; 
    -webkit-user-select: none;
}

/* =====
   CORRECCIÓN DEFINITIVA: MÓVIL (CARRUSEL Y BOTONES)
   ======*/

@media (max-width: 768px) {
    
    /* 1. CONTENEDOR GENERAL */
    .welding-hud-section {
        width: 100%;
        padding: 20px 0 60px 0;
        overflow: hidden; 
    }

    .welding-hud-section .container {
        padding: 0; 
        width: 100%;
        max-width: 100%;
    }

    /* 2. PISTA DEL CARRUSEL (TRACK) */
    .hud-carousel-wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .hud-track-container {
        width: 100%;
        overflow: hidden;
    }

    .hud-track {
        display: flex;
        gap: 0; /* IMPORTANTE: Quitar huecos para que el avance sea exacto del 100% */
        width: 100%;
    }

    /* 3. DIAPOSITIVA INDIVIDUAL (SLIDE) - CORRECCIÓN ERROR 2 */
    .hud-slide {
        min-width: 100%; /* Fuerza a que ocupe el 100% del ancho disponible */
        width: 100%;     /* Asegura el ancho */
        flex-shrink: 0;  /* CRÍTICO: Evita que se "aplasten" o se vean dos a la vez */
        padding: 0 10px; /* Margen interno para que no pegue a los bordes de la pantalla */
        box-sizing: border-box; 
    }

    /* 4. TARJETA (CARD) */
    .hud-card {
        width: 100%; 
        margin: 0;   
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        height: auto; /* Permite que crezca si el texto es largo */
        background: var(--hud-panel); 
        border: 1px solid #2d3748;
        overflow: hidden; /* Mantiene los bordes redondos */
    }

    /* 5. IMAGEN */
    .hud-visual {
        width: 100%;
        height: 200px; 
        flex-shrink: 0; /* Que la imagen no se achique */
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%); /* Recorte sutil */
    }
    
    .hud-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /*  TEXTOS (Títulos): EN UNA SOLA LÍNEA */
    .hud-header h1 {
        /* Forzar alineación horizontal */
        display: flex !important;
        flex-direction: row !important; /* Fila, no columna */
        flex-wrap: nowrap !important;   /* Prohibido bajar de línea */
        justify-content: center;
        align-items: center;
        
        /* Tamaño dinámico: 4.5% del ancho de la pantalla */
        /* Esto asegura que siempre quepa en una línea sin importar el celular */
        font-size: 4.5vw !important; 
        
        gap: 4px; /* Espacio pequeño entre palabras */
        width: 100%;
        margin: 0 auto 10px auto; /* Centrado y con margen inferior */
        padding: 0;
    }

    .text-arc {
        display: inline-block;
        font-size: 4.5vw !important; /* Mismo tamaño que el h1 */
        -webkit-text-stroke: 0.5px var(--hud-orange); /* Borde anaranjado más fino */
        white-space: nowrap;
    }

    /* 6. CONTENIDO DE TEXTO Y BOTÓN - CORRECCIÓN ERROR 1 */
    .hud-data {
        /* Aumentamos mucho el padding inferior (50px) para que el botón quepa sobrado */
        padding: 20px 20px 50px 20px; 
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: auto; /* Altura automática */
    }
    
    .hud-data::after {
        width: 20px; height: 20px;
        border-width: 2px;
    }

    .data-title {
        font-size: 0.9rem;
        line-height: 1.0;
        margin-bottom: 5px;
    }

    /* Ocultar <br> en títulos móviles para ahorrar espacio */
    .data-title br {
        display: none;
    }

    .data-subtitle {
        font-size: 0.7rem;
        margin-bottom: 15px;
    }

    .data-line {
        height: 2px;
        margin-bottom: 10px;
        width: 30px;
    }

    /* Lista de características */
    .data-specs {
        margin-bottom: 20px;
        padding-left: 0;
    }

    .data-specs li {
        font-size: 0.8rem;
        margin-bottom: 1px;
        padding-bottom: 1px;
        list-style: none;
    }    
    
    .data-specs li i {
        font-size: 0.8rem;
        min-width: 20px; /* Alineación de iconos */
    }

    /* 7. BOTÓN Y BARRA DE PROGRESO */
    .data-footer {
        margin-top: auto; /* Empuja el footer al final si sobra espacio */
        gap: 15px;
        width: 100%;
    }

    .capacity-bar label {
        font-size: 0.55rem;
    }
    
    .capacity-bar .progress {
        height: 2px;
    }

    .btn-hud {
        padding: 12px 10px;
        font-size: 0.85rem; 
        width: 100%;
        justify-content: center;
        gap: 8px;
        /* Aseguramos que se vea completo */
        display: flex;
        align-items: center;
    }

    /* 8. FLECHAS DE NAVEGACIÓN */
    .hud-nav {
        position: absolute;
        top: 100px; /* Centrado respecto a la imagen de 200px */
        transform: translateY(-50%);
        width: 35px; height: 35px;
        background: rgba(0,0,0,0.6);
        border-radius: 50%;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hud-nav.prev { left: 15px; } 
    .hud-nav.next { right: 15px; }
}

/* Ajustes extra para móviles muy estrechos (ej. Galaxy Fold) */
@media (max-width: 360px) {
    .hud-visual { height: 160px; }
    .hud-nav { top: 80px; }
    .data-title { font-size: 1.1rem; }
}


/* =========================================
   NUEVA SECCIÓN SKILLS FUTURISTA
   ========================================= */

.skills-future {
    position: relative;
    padding: 80px 0;
    background-color: #F7F7F7; /* Fondo Claro */
    overflow: hidden;
}

/* Fondo de malla animada sutil */
.skills-bg-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(15, 102, 245, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 102, 245, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.skills-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr; /* El texto es un poco más ancho */
    gap: 25px;
    align-items: stretch;
}

/* --- 1. Panel de Intro (Izquierda) --- */
.skill-intro-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Línea decorativa azul neón a la izquierda */
.skill-intro-panel::before {
    content: '';
    position: absolute;
    left: 0; top: 20px; bottom: 20px;
    width: 4px;
    background: #0F66F5;
    box-shadow: 0 0 15px #0F66F5;
    border-radius: 0 4px 4px 0;
}

.skill-future-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #073469;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.text-gradient {
    background: linear-gradient(90deg, #0F66F5, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-future-desc {
    color: #4F4F4F;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.tech-stats {
    display: flex;
    gap: 30px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.tech-stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4F4F4F;
}

.stat-label {
    font-size: 0.8rem;
    color: #6a6f73;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 2. Tarjetas Tech (Derecha) --- */
.tech-card {
    position: relative;
    height: 400px; /* Altura fija */
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Imagen de fondo */
.tech-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    filter: grayscale(80%) brightness(0.6); /* Oscuro y desaturado por defecto */
}

/* Gradiente oscuro encima de la imagen */
.tech-card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #000 0%, transparent 80%);
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

/* Contenido dentro de la tarjeta */
.tech-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px 20px;
    z-index: 10;
    transform: translateY(60px); /* Ocultamos parte del texto por defecto */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-icon-box {
    width: 50px; height: 50px;
    background: rgba(15, 102, 245, 0.2);
    border: 1px solid rgba(15, 102, 245, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #4facfe;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(15, 102, 245, 0.2);
}

/* 1. Estado por defecto: GRIS CLARO (Visible siempre sobre el fondo oscuro) */
.tech-card .tech-title {
    color: #b0b0b0 !important; /* Gris claro forzado */
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    /* Sombra de texto para asegurar legibilidad sobre cualquier imagen */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); 
    transition: color 0.3s ease, transform 0.3s ease;
}

/* 2. Estado al pasar el mouse: BLANCO PURO */
.tech-card:hover .tech-title {
    color: #ffffff !important; /* Blanco puro forzado */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Brillo sutil */
}

/* 3. Aseguramos que el contenedor del texto no oculte el color */
.tech-content {
    color: #b0b0b0; /* Color de respaldo para todo el bloque */
}

/* Información oculta que aparece al hover */
.tech-hidden-info {
    opacity: 0;
    transition: opacity 0.3s ease 0.1s; /* Pequeño retraso */
}

.tech-hidden-info p {
    color: #cbd5e0;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.tech-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #00ff88; /* Verde neón */
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.tech-counter {
    display: block;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: white;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}

/* Borde brillante al hover */
.tech-border-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 16px;
    box-shadow: inset 0 0 0 2px transparent;
    transition: box-shadow 0.4s ease;
    pointer-events: none;
    z-index: 20;
}

/* =====
   EFECTOS HOVER (INTERACCIÓN)
   ===== */

.tech-card:hover {
    transform: translateY(-10px);
}

.tech-card:hover .tech-card-bg {
    transform: scale(1.1); /* Zoom imagen */
    filter: grayscale(0%) brightness(0.9); /* Vuelve el color */
}

.tech-card:hover .tech-card-overlay {
    opacity: 0.7; /* Aclara el overlay */
    background: linear-gradient(to top, #0F66F5 0%, rgba(0,0,0,0.8) 50%, transparent 100%); /* Tinte azulado abajo */
}

.tech-card:hover .tech-content {
    transform: translateY(0); /* Sube el contenido */
}

.tech-card:hover .tech-hidden-info {
    opacity: 1; /* Muestra info */
}

.tech-card:hover .tech-border-glow {
    box-shadow: inset 0 0 0 2px #0F66F5; /* Borde interior azul brillante */
}

.tech-card:hover .tech-icon-box {
    background: #0F66F5;
    color: white;
    box-shadow: 0 0 20px rgba(15, 102, 245, 0.6);
}

/* =====
   RESPONSIVE
   ===== */

@media (max-width: 992px) {
    .skills-wrapper {
        grid-template-columns: 1fr 1fr; /* 2 columnas */
    }
    .skill-intro-panel {
        grid-column: 1 / -1; /* El panel ocupa todo el ancho arriba */
        flex-direction: row;
        align-items: center;
        gap: 20px;
        min-height: auto;
    }
    .tech-card {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .skills-wrapper {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 20px;
    }
    
    .skill-intro-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }
    
    .skill-future-title {
        font-size: 1.8rem;
    }
    
    .tech-card {
        height: 300px; /* Más compacto en móvil */
    }
    
    /* En móvil, mostramos un poco más de info por defecto */
    .tech-content {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    }
    .tech-hidden-info {
        opacity: 1;
    }
    .tech-badge {
        display: none; /* Ahorrar espacio en móvil */
    }
}



/* =========================================
   Sección de Cursos Destacados
   ========================================= */
.featured-courses {
    padding: 60px 0;
    background-color: white;
}

.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Menú horizontal de categorías */
.categories-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.category-filter {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-filter:hover {
    background-color: rgba(86, 36, 208, 0.05);
    border-color: var(--primary-color);
}

.category-filter.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Courses */
.courses {
    padding: 60px 0;
    background-color: white;
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.courses-carousel {
    position: relative;
    overflow: hidden;
}

.courses-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.course-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: calc(25% - 22.5px);
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* Importante para el correcto funcionamiento de flex */
}

/* CORRECCIÓN: Título siempre en 2 líneas */
.course-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.3;
    
    /* Forzar siempre 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em; /* Aproximadamente 2 líneas */
    max-height: 2.6em;
}

.courses-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    /* AGREGAR ESTO: Mejora la respuesta táctil en Chrome/Android */
    touch-action: pan-y; 
    cursor: grab; /* Muestra una manito para indicar que se puede arrastrar */
}

.courses-track:active {
    cursor: grabbing;
}

/* CORRECCIÓN: Descripción en máximo 3 líneas */
.course-instructor {
    color: #6a6f73;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
    
    /* Limitar a 3 líneas máximo */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.2em; /* Aproximadamente 3 líneas */
    max-height: 4.2em;
    flex-shrink: 0;
}

.course-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.rating-stars {
    color: var(--warning-color);
    margin-right: 5px;
}

.rating-value {
    font-weight: bold;
    margin-right: 5px;
}

.rating-count {
    color: #6a6f73;
    font-size: 14px;
}

.course-price {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Botón del curso con margen auto para empujarlo hacia abajo */
.btn-course {
    background-color: #0F66F5;
    color: white;
    border: 1px solid #0F66F5;
    margin-top: auto; /* Empuja el botón hacia abajo */
    flex-shrink: 0;
}

.btn-course:hover {
    background-color: #0d5cdd;
    border-color: #0d5cdd;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 0 20px;
}

.feature-icon {
    font-size: 48px;
    color: #0F66F5; /* Color azul específico */
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-description {
    color: #6a6f73;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #cec0fc;
    font-size: 14px;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #3e4143;
    font-size: 14px;
}

.footer-logo {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 18px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    min-width: 300px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}
.modal-close:hover {
    color: #333;
}

/* Media Queries */
@media (max-width: 1200px) {
    .course-card {
        flex-basis: calc(33.333% - 20px);
    }
    
    .category-card {
        flex-basis: calc((100% / 5) - (20px * 4 / 5));
    }
    
    .hero-image {
        width: 400px;
        height: 300px;
    }
    
    .categories-menu {
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero-image {
        width: 100%;
        max-width: 500px;
        height: auto;
    }
    
    .skills-text {
        padding: 40px 30px;
    }
    
    .skills-card {
        min-height: 250px;
        padding: 30px 25px;
    }
    
    .course-card {
        flex-basis: calc(50% - 15px);
    }

    .category-card {
        flex-basis: calc((100% / 4) - (20px * 3 / 4));
    }
}

/* Ajustes específicos para pantallas muy pequeñas */
@media (max-width: 480px) {
    .auth-buttons .btn {
        font-size: 12px;
        padding: 8px 6px;
    }
    
    .auth-buttons {
        gap: 8px;
    }
    
    .header-actions {
        padding: 15px;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .skills-card {
        min-height: 100px;
        padding: 10px;
    }
    
    .skills-card-content {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 12px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .category-filter {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .course-content {
        padding: 15px;
    }
    
    .course-title {
        font-size: 14px;
        min-height: 2.6em;
        max-height: 2.6em;
    }
    
    .course-instructor {
        font-size: 12px;
        min-height: 4.2em;
        max-height: 4.2em;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    .feature-description {
        font-size: 14px;
    }
}

/* Ajustes para pantallas extremadamente pequeñas */
@media (max-width: 360px) {
    .auth-buttons .btn {
        font-size: 11px;
        padding: 7px 4px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .skills, .featured-courses, .features {
        padding: 40px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo img {
        height: 32px;
    }
}
.best-seller-badge {
    background-color: #ffe799;
    color: #593d00;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.cyber-tag {
    position: absolute;
    top: 10px; right: 10px;
    background: #0F66F5;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    z-index: 3;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}

.cyber-tag.warning { background: #f69c08; color: black; }
.cyber-tag.success { background: #3cb371; }

/* ======
   ESTILO MODERN CLEAN & PREMIUM (Fondo #F0F0F0)
   ====== */

/* Fondo solicitado */
.modern-courses-section {
    background-color: #F0F0F0;
    padding: 80px 0;
    font-family: 'Segoe UI', sans-serif;
}

/* --- Header y Títulos --- */
.modern-header {
    text-align: left;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.highlight-blue {
    color: #0F66F5;
    position: relative;
    display: inline-block;
}

/* Subrayado decorativo bajo "Cursos Destacados" */
.highlight-blue::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(15, 102, 245, 0.15);
    z-index: -1;
    border-radius: 4px;
}

/* --- Menú de Filtros (Pills) --- */
.modern-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px;
    border: none; /* Quitamos borde inferior antiguo */
}

.modern-menu .category-filter {
    background-color: white;
    color: #555;
    padding: 10px 20px;
    border-radius: 50px; /* Forma de píldora completa */
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modern-menu .category-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    color: #0F66F5;
}

.modern-menu .category-filter.active {
    background-color: #0F66F5;
    color: white;
    box-shadow: 0 5px 15px rgba(15, 102, 245, 0.3);
}

/* --- TARJETAS (The "Surprise") --- */
.modern-card {
    background: white;
    border: none;
    border-radius: 20px; /* Bordes muy redondeados */
    overflow: hidden;
    /* Sombra suave y difusa (Estilo Apple/Modern Web) */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: 0;
}

/* Efecto Hover de la Tarjeta */
.modern-card:hover {
    transform: translateY(-10px); /* Se eleva */
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Imagen */
.modern-image-box {
    height: 190px;
    position: relative;
    overflow: hidden;
}

.modern-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Zoom suave en la imagen al hover */
.modern-card:hover .modern-image-box img {
    transform: scale(1.1);
}

/* Badges Flotantes (Reemplaza la barra amarilla antigua) */
.modern-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modern-badge.best-seller {
    background: #FFD700; /* Dorado brillante */
    color: #4a3b00;
}

.modern-badge.popular {
    background: #ff6b6b; /* Rojo suave */
    color: white;
}

/* Contenido */
.modern-content {
    padding: 25px;
}

.modern-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-tag {
    font-size: 0.75rem;
    color: #0F66F5;
    background: rgba(15, 102, 245, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.rating-stars {
    color: #FFD700;
    font-size: 0.9rem;
    font-weight: bold;
}

.rating-count {
    color: #999;
    font-weight: normal;
    font-size: 0.8rem;
}

.course-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #222;
    line-height: 1.4;
    margin-bottom: 10px;
    /* Limitar a 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2em; /* Altura fija para alineación */
}

.course-instructor {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    /* Limitar a 3 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5em;
}

/* Botón de la tarjeta */
.btn-modern-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    background-color: #f8f9fa; /* Fondo gris muy claro */
    color: #0F66F5;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-modern-card:hover {
    background-color: #0F66F5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 102, 245, 0.25);
}

/* --- Controles de Navegación --- */
.modern-controls .modern-nav {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #333;
    transition: all 0.3s;
}

.modern-controls .modern-nav:hover {
    background: #0F66F5;
    color: white;
    transform: scale(1.1);
}

.modern-dots .carousel-dot {
    width: 10px; height: 10px;
    background: #ccc;
    transition: all 0.3s;
}

.modern-dots .carousel-dot.active {
    width: 30px; /* Se estira al estar activo */
    border-radius: 10px;
    background: #0F66F5;
}

/* Botón "Ver Todos" al final */
.btn-view-all {
    display: inline-block;
    background: transparent;
    color: #0F66F5;
    border: 2px solid #0F66F5;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #0F66F5;
    color: white;
    box-shadow: 0 10px 20px rgba(15, 102, 245, 0.2);
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .modern-menu {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 15px; /* Espacio para scrollbar */
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* =========================================
   SECCIÓN CONFIANZA: FUTURISTA (CLEAN TECH)
   ========================================= */
   
/* 1. Contenedor "Ventana": Oculta lo que se sale de la pantalla */
.trust-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0; /* Espacio para que no se corten las sombras */
    z-index: 2; /* Asegurar que esté encima del fondo */
}

/* 2. Pista "Tren": Obliga a los logos a estar en fila */
.trust-carousel-track {
    display: flex;             /* OBLIGATORIO: Alineación horizontal */
    align-items: center;       /* Centrados verticalmente */
    gap: 40px;                 /* Espacio entre logos */
    width: max-content;        /* El ancho se adapta al contenido total */
    animation: scroll-infinite 30s linear infinite; /* Animación continua */
}

/* 3. Asegurar que las tarjetas de logos no se aplasten */
.trust-logo.tech-logo-card {
    flex-shrink: 0;           /* OBLIGATORIO: Impide que el navegador los encoja */
    /* Mantenemos tus estilos visuales previos */
    min-width: 200px;
    height: 100px;
    background: #ffffff;
    border: 1px solid #e6e9f0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fondo General */
.trust-section.tech-trust-bg {
    position: relative;
    padding: 80px 0;
    background-color: #ffffff; /* Fondo blanco limpio */
    overflow: hidden;
    border-top: 1px solid #eef1f5;
    border-bottom: 1px solid #eef1f5;
}

/* Malla de fondo (Grid Tecnológico) */
.trust-grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(15, 102, 245, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 102, 245, 0.03) 1px, transparent 1px);
    background-size: 40px 40px; /* Tamaño de la cuadrícula */
    z-index: 1;
    pointer-events: none;
}

/* Títulos */
.trust-content {
    position: relative;
    z-index: 3;
}

.trust-title-single {
    font-size: 2.5rem; /* Ajusta el tamaño según necesites */
    font-weight: 800;
    color: #1a1a1a; /* Color negro para RESPALDO */
    text-transform: uppercase;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Espacio entre las dos palabras */
}

.highlight-blue-line {
    color: #0F66F5; /* Color azul para GLOBAL */
    position: relative;
    z-index: 1;
    display: inline-block;
}

/* El efecto de la barrita celeste de fondo */
.highlight-blue-line::after {
    content: '';
    position: absolute;
    bottom: 2px; /* Ajusta la posición vertical */
    left: -4px;
    width: calc(100% + 8px); /* Que sea un poquito más ancha que el texto */
    height: 12px; /* Grosor de la barra de fondo */
    background: rgba(15, 102, 245, 0.15); /* Color celeste transparente */
    z-index: -1; /* Lo pone detrás del texto */
    border-radius: 4px;
}

.tech-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

/* Etiqueta pequeña encima del título */
.tech-label {
    font-size: 0.8rem;
    color: #0F66F5;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(15, 102, 245, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
}

/* Estilo de la imagen (Logo) */
.tech-logo-card img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
    /* Escala de grises por defecto (apagado) */
    filter: grayscale(100%) opacity(0.6); 
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* EFECTO HOVER (ENCENDIDO) */
.tech-logo-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(15, 102, 245, 0.4); /* Borde azul */
    box-shadow: 0 10px 25px rgba(15, 102, 245, 0.15); /* Resplandor azul */
    background: white;
}

.tech-logo-card:hover img {
    filter: grayscale(0%) opacity(1); /* Color real */
    transform: scale(1.1);
}

/* Barra de energía inferior (Decoración) */
.tech-logo-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #0F66F5;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px #0F66F5;
}

.tech-logo-card:hover::after {
    width: 100%; /* La barra se llena al pasar el mouse */
}

/* MÁSCARAS DE DESVANECIMIENTO (Fade lateral) */
/* Esto hace que los logos parezcan aparecer y desaparecer suavemente */
.fade-mask-left,
.fade-mask-right {
    position: absolute;
    top: 0;
    width: 150px; /* Ancho del desvanecido */
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.fade-mask-left {
    left: 0;
    background: linear-gradient(to right, #ffffff 10%, transparent 100%);
}

.fade-mask-right {
    right: 0;
    background: linear-gradient(to left, #ffffff 10%, transparent 100%);
}


/* 4. Definición de la Animación (Por si se borró) */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Se mueve hacia la izquierda el 50% del ancho total 
           (Asumiendo que duplicaste los logos como indicamos en el HTML) */
        transform: translateX(-50%);
    }
}

/* Pausar animación al pasar el mouse (Mejora la experiencia) */
.trust-carousel-track:hover {
    animation-play-state: paused;
}


/* Ajustes Responsive */
@media (max-width: 768px) {
    .tech-title {
        font-size: 1.6rem;
    }
    .fade-mask-left, .fade-mask-right {
        width: 50px; /* Máscara más pequeña en móvil */
    }
    .trust-logo.tech-logo-card {
        min-width: 150px;
        height: 80px;
        padding: 10px;
    }
    .tech-logo-card img {
        max-width: 100px;
    }
}


/* =========================================
   TESTIMONIOS: SOLUCIÓN FINAL (3 COLUMNAS)
   ========================================= */

.testimonials {
    padding: 80px 0;
    background-color: #f4f4f4;
    position: relative;
    overflow: hidden;
}

.testimonials * {
    box-sizing: border-box; /* CRÍTICO: Asegura que el padding no aumente el ancho */
}

.testimonials-carousel {
    width: 100%;
    overflow: hidden; 
    padding: 20px 0 40px 0;
    /* Aseguramos que no haya padding lateral aquí que rompa el cálculo */
    padding-left: 0;
    padding-right: 0;
}

.testimonials-track {
    display: flex;
    gap: 30px; /* Espacio fijo */
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0 2px; /* Pequeño margen de seguridad para sombras */
}

/* --- TARJETA (CÁLCULO EXACTO) --- */
.testimonial-card.tech-card-style {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* FÓRMULA MATEMÁTICA ESTRICTA */
    /* (100% del ancho - 60px de los dos huecos) / 3 tarjetas */
    /* El -4px es un ajuste de seguridad para navegadores que redondean hacia arriba */
    flex: 0 0 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
    
    /* Evita que se encoja o estire */
    flex-grow: 0;
    flex-shrink: 0;
    min-width: 0; 
}

/* --- RESPONSIVE --- */

/* Tablet (hasta 1200px): 2 tarjetas */
@media (max-width: 1200px) {
    .testimonial-card.tech-card-style {
        flex: 0 0 calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
}

/* Móvil (hasta 768px): 1 tarjeta */
@media (max-width: 768px) {
    .testimonials-track {
        gap: 20px;
    }
    .testimonial-card.tech-card-style {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- ESTILOS VISUALES (ICONOS Y TEXTO) --- */
.card-header {
    display: flex; align-items: center; gap: 15px; margin-bottom: 20px;
    padding-right: 35px; 
}
.author-avatar-tech { width: 50px; height: 50px; position: relative; flex-shrink: 0; }
.author-avatar-tech img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.header-info { flex: 1; overflow: hidden; }
.author-name { font-size: 1rem; font-weight: 800; color: #1a1a1a; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.author-role { font-size: 0.75rem; color: #0F66F5; font-weight: 700; text-transform: uppercase; }
.card-body { flex: 1; margin-bottom: 20px; }
.testimonial-text { font-size: 0.95rem; line-height: 1.6; color: #555; margin: 0; }
.card-footer-tech { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f5f7fa; padding-top: 15px; margin-top: auto; }
.rating-tech { color: #FFD700; font-size: 0.85rem; letter-spacing: 2px; }
.verified-badge { background: rgba(15, 102, 245, 0.08); color: #0F66F5; padding: 4px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 800; display: flex; align-items: center; gap: 5px; text-transform: uppercase; }
.card-decoration-top { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #0F66F5, #00d4ff); }

/* Iconos Sociales */
.social-source-icon {
    position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.social-source-icon.facebook { background-color: #1877F2; }
.social-source-icon.linkedin { background-color: #0077b5; }
.social-source-icon.tiktok { background-color: #000000; }

/* Controles */
.testimonials-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 20px; }
.tech-nav-btn { width: 45px; height: 45px; border-radius: 50%; background: #fff; border: 1px solid #e1e4e8; color: #333; font-size: 1rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.tech-nav-btn:hover:not(:disabled) { background: #0F66F5; color: white; border-color: #0F66F5; transform: scale(1.1); }
.tech-nav-btn:disabled { opacity: 0.5; cursor: not-allowed; background: #f9f9f9; color: #ccc; }
.tech-dots { display: flex; gap: 8px; }
.testimonials-dot { width: 10px; height: 10px; background: #d1d5db; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.testimonials-dot.active { background: #0F66F5; transform: scale(1.3); }
/* --- RESPONSIVE (MEDIA QUERIES) --- */

/* Tablet (hasta 1200px): 2 Columnas */
@media (max-width: 1200px) {
    .testimonial-card.tech-card-style {
        /* (100% - 30px de 1 hueco) / 2 */
        flex: 0 0 calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
}

/* Móvil (hasta 768px): 1 Columna (100%) */
@media (max-width: 768px) {
    .testimonials-track {
        gap: 20px; /* Gap más pequeño en móvil */
    }
    .testimonial-card.tech-card-style {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================================
   CERTIFICADO FUTURE LAB STYLE
   ========================================= */

.certificate-future-section {
    position: relative;
    padding: 100px 0;
    /* Mantenemos el fondo claro/gris que pediste */
    background: linear-gradient(135deg, #f0f2f5 0%, #eef1f5 100%);
    overflow: hidden;
}

/* Luces ambientales de fondo (Blur Blobs) */
.ambient-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}

.light-1 {
    width: 400px; height: 400px;
    background: rgba(15, 102, 245, 0.15); /* Azul muy suave */
    top: -100px; right: -100px;
}

.light-2 {
    width: 300px; height: 300px;
    background: rgba(0, 200, 255, 0.1); /* Cyan suave */
    bottom: -50px; left: -50px;
}

.container {
    position: relative;
    z-index: 2;
}

.cert-future-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- COLUMNA IMAGEN (Visual) --- */
.cert-visual-col {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px; /* Para efecto 3D */
}

.cert-floating-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    animation: floatCert 6s ease-in-out infinite;
}

/* La imagen del certificado SIN CAJA BLANCA */
.cert-main-img {
    width: 100%;
    height: auto;
    display: block;
    /* Sombra realista difusa en lugar de caja sólida */
    filter: drop-shadow(0 20px 40px rgba(15, 102, 245, 0.2));
    transform: rotateY(-5deg) rotateX(2deg); /* Ligera inclinación 3D */
    transition: transform 0.3s ease;
}

.cert-floating-container:hover .cert-main-img {
    transform: rotateY(0) rotateX(0) scale(1.02); /* Se endereza al hover */
}

/* Badge IWS Flotante */
.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 10px 20px rgba(212, 175, 55, 0.4)); /* Sombra dorada */
    animation: floatBadge 5s ease-in-out infinite alternate;
}

.floating-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Anillos decorativos tecnológicos detrás */
.tech-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(15, 102, 245, 0.3);
    z-index: -1;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 120%; height: 120%;
    border-style: dashed;
    animation: spinSlow 30s linear infinite;
}

.ring-2 {
    width: 140%; height: 140%;
    border: 1px solid rgba(15, 102, 245, 0.1);
}

/* --- COLUMNA INFO --- */
.future-header {
    margin-bottom: 40px;
}

.tech-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0F66F5;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.future-title {
    font-size: 2.8rem;
    line-height: 1.1;
    color: #1a1a1a;
    font-weight: 800;
    margin-bottom: 20px;
}

.text-highlight {
    background: linear-gradient(90deg, #0F66F5, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.future-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* Grid de características (Glass Cards) */
.tech-features-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.tech-feature-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.6); /* Semi transparente */
    backdrop-filter: blur(10px); /* Efecto vidrio */
    padding: 15px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.tech-feature-card:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: 0 8px 25px rgba(15, 102, 245, 0.1);
}

.feature-icon-glass {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #0F66F5 0%, #00a8ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(15, 102, 245, 0.3);
}

.feature-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Botón Futurista */
.btn-future-verify {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #0F66F5;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(15, 102, 245, 0.4);
}

.btn-future-verify:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(15, 102, 245, 0.6);
}

.btn-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.btn-future-verify:hover .btn-glow {
    transform: scale(1);
    animation: pulseGlow 2s infinite;
}

/* Animaciones */
@keyframes floatCert {
    0%, 100% { transform: translateY(0) rotateY(-5deg) rotateX(2deg); }
    50% { transform: translateY(-15px) rotateY(-5deg) rotateX(2deg); }
}

@keyframes floatBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes spinSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .cert-future-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cert-visual-col {
        margin-bottom: 40px;
    }

    .tech-features-grid {
        text-align: left;
    }
    
    .future-title {
        font-size: 2.2rem;
    }
    
    .floating-badge {
        width: 90px; height: 90px;
        bottom: -10px; left: 0;
    }
}

/* =========================================
   PORQUE ELEGIRNOS
   ========================================= */

/* --- SECCIÓN POR QUÉ ELEGIR (FUTURISTA) --- */
.features-futuristic {
    position: relative;
    padding: 100px 0;
    background-color: #f8fafc; /* Gris muy claro futurista */
    overflow: hidden;
}

.tech-grid-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(15, 102, 245, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 102, 245, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.section-header-tech {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.tech-main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: 2px;
}

.glow-text {
    color: #0F66F5;
    text-shadow: 0 0 10px rgba(15, 102, 245, 0.3);
}

.title-underline {
    width: 100px;
    height: 4px;
    background: #0F66F5;
    margin: 15px auto;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 1px;
    background: rgba(15, 102, 245, 0.2);
    left: -50px;
    bottom: 2px;
}

/* --- GRID DE TARJETAS --- */
.features-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* TARJETA TECH */
.feature-card-tech {
    position: relative;
    padding: 50px 30px;
    background: white;
    border: 1px solid rgba(15, 102, 245, 0.1);
    border-radius: 4px; /* Bordes rectos con esquinas HUD */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card-tech:hover {
    transform: translateY(-10px);
    border-color: #0F66F5;
    box-shadow: 0 20px 40px rgba(15, 102, 245, 0.1);
}

/* Efecto de cristal al hover */
.card-glass-effect {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 102, 245, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card-tech:hover .card-glass-effect {
    opacity: 1;
}

/* Esquinas HUD decorativas */
.card-corner-top, .card-corner-bottom {
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid #0F66F5;
    opacity: 0;
    transition: 0.3s;
}

.card-corner-top { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.card-corner-bottom { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.feature-card-tech:hover .card-corner-top,
.feature-card-tech:hover .card-corner-bottom {
    opacity: 1;
    width: 30px; height: 30px;
}

/* ICONOS TECH */
.feature-icon-wrapper {
    position: relative;
    width: 80px; height: 80px;
    background: rgba(15, 102, 245, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: 0.4s;
}

.feature-icon-wrapper i {
    font-size: 2.5rem;
    color: #0F66F5;
    z-index: 2;
}

.feature-card-tech:hover .feature-icon-wrapper {
    background: #0F66F5;
    box-shadow: 0 0 20px rgba(15, 102, 245, 0.4);
}

.feature-card-tech:hover .feature-icon-wrapper i {
    color: white;
}

/* Pulso animado detrás del icono */
.icon-pulse {
    position: absolute;
    width: 100%; height: 100%;
    border: 1px solid #0F66F5;
    border-radius: 50%;
    animation: techPulse 2s infinite;
}

@keyframes techPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* TEXTOS TECH */
.feature-title-tech {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-desc-tech {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Tarjeta activa o resaltada */
.active-tech {
    border-bottom: 4px solid #0F66F5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tech-main-title { font-size: 1.8rem; }
    .feature-card-tech { padding: 40px 20px; }
}

/* =========================================
   MEJORA RESPONSIVE: POR QUÉ ELEGIRNOS
   ========================================= */

/* 1. Ajuste General del Grid (Tablets y Escritorios pequeños) */
.features-tech-grid {
    /* Usamos auto-fit para que si no caben 3, se pongan 2 automáticamente */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; /* Espacio equilibrado */
    padding-bottom: 20px;
}

/* 2. Ajustes Específicos para MÓVILES (max 768px) */
@media (max-width: 768px) {
    
    .features-futuristic {
        padding: 50px 0; /* Reducir aire vertical excesivo */
    }

    /* TÍTULO DE LA SECCIÓN */
    .section-header-tech {
        margin-bottom: 35px; /* Menos espacio debajo del título */
        padding: 0 15px;
    }

    .tech-main-title {
        font-size: 1.6rem; /* Título más pequeño para que no se parta mal */
        line-height: 1.2;
    }

    /* Línea decorativa debajo del título */
    .title-underline {
        width: 60px;
        margin: 10px auto;
    }
    .title-underline::after {
        width: 120px;
        left: -30px;
    }

    /* TARJETAS (CARDS) */
    .feature-card-tech {
        padding: 30px 20px; /* Mucho menos relleno interno */
        margin-bottom: 10px; /* Separación extra por si acaso */
        min-height: auto; /* Altura automática según contenido */
    }

    /* ÍCONOS */
    .feature-icon-wrapper {
        width: 65px;  /* Círculo más pequeño */
        height: 65px;
        margin-bottom: 15px;
    }

    .feature-icon-wrapper i {
        font-size: 1.8rem; /* Icono ajustado */
    }

    /* TEXTOS DENTRO DE LA TARJETA */
    .feature-title-tech {
        font-size: 1.2rem; /* Subtítulo legible */
        margin-bottom: 10px;
    }

    .feature-desc-tech {
        font-size: 0.9rem; /* Texto de párrafo cómodo */
        line-height: 1.5;
        padding: 0 5px; /* Evitar que el texto toque los bordes visuales */
    }

    /* ANIMACIÓN MÓVIL (Hacer visible el borde activo siempre o quitarlo) */
    /* Opción: En móvil, mostrar el borde inferior sutilmente siempre para dar color */
    .feature-card-tech {
        border-bottom: 2px solid rgba(15, 102, 245, 0.3);
    }
    
    .active-tech {
        border-bottom: 4px solid #0F66F5; /* El destacado se mantiene más grueso */
    }
}

/* 3. Ajustes para TABLETS (Entre 768px y 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-tech-grid {
        /* Forzar 2 columnas centradas si hay 3 elementos, o grid normal */
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
    
    /* El tercer elemento (si son impares) que ocupe el ancho completo o se centre */
    .feature-card-tech:last-child:nth-child(odd) {
        grid-column: span 2; /* Ocupa las 2 columnas */
        max-width: 600px; /* Pero no lo dejamos estirarse infinito */
        margin: 0 auto; /* Centrado */
        width: 100%;
    }
}

/* =========================================
   SECCIÓN EVENTOS: CAROUSEL TECH STYLE (CORREGIDO)
   ========================================= */

.events-tech-section {
    padding: 90px 0;
    background-color: #f4f6f9; /* Fondo Gris Claro */
    position: relative;
    overflow: hidden;
}

/* Malla decorativa de fondo */
.tech-grid-bg-light {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(#e0e6ed 1px, transparent 1px),
        linear-gradient(90deg, #e0e6ed 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

/* --- ESTRUCTURA CRÍTICA DEL CARRUSEL --- */

/* 1. La "Ventana" (Oculta lo que se sale) */
.events-carousel-container {
    width: 100%;
    overflow: hidden; /* IMPORTANTE: Oculta el desbordamiento */
    padding: 20px 0 40px 0; /* Espacio para sombras */
    position: relative;
    z-index: 2;
}

/* 2. El "Tren" (Mueve las tarjetas) */
.events-track {
    display: flex; /* IMPORTANTE: Pone tarjetas en fila */
    gap: 30px;     /* Espacio entre tarjetas */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;   /* Ocupa todo el ancho disponible */
    box-sizing: border-box;
}

/* 3. Las Tarjetas (Tamaño fijo según pantalla) */
.event-card-tech {
    /* Cálculo: (100% / 3 columnas) - (Espacio de gap ajustado) */
    flex: 0 0 calc(33.333% - 20px); 
    min-width: 300px; /* Evita que se aplasten */
    
    /* Estilos visuales */
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e1e4e8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* RESPONSIVE: Ajuste de columnas */
@media (max-width: 1200px) {
    .event-card-tech {
        flex: 0 0 calc(50% - 15px); /* 2 Columnas */
    }
}

@media (max-width: 768px) {
    .event-card-tech {
        flex: 0 0 100%; /* 1 Columna */
        min-width: 100%;
    }
}

/* --- ESTILOS VISUALES DE LA TARJETA --- */
.event-card-tech:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 102, 245, 0.15);
    border-color: rgba(15, 102, 245, 0.3);
}

.event-image-box {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.event-image-box img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card-tech:hover .event-image-box img { transform: scale(1.1); }

.event-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 1;
}

.event-status {
    position: absolute; top: 15px; right: 15px;
    padding: 6px 12px; font-size: 0.7rem; font-weight: 800;
    color: white; text-transform: uppercase; letter-spacing: 1px;
    border-radius: 4px; z-index: 2; backdrop-filter: blur(5px);
}
.event-status.upcoming { background: rgba(15, 102, 245, 0.9); }
.event-status.active { background: rgba(60, 179, 113, 0.9); }
.event-status.limited { background: rgba(246, 156, 8, 0.9); }

.event-body {
    padding: 25px; display: flex; gap: 20px; position: relative; flex: 1;
}

.event-date-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 60px; height: 60px; background: #f0f2f5;
    border-radius: 12px; border: 1px solid #d1d7dc; flex-shrink: 0;
    transition: all 0.3s ease;
}

.event-card-tech:hover .event-date-badge {
    background: #0F66F5; color: white; border-color: #0F66F5;
}

.event-date-badge .day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-badge .month { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; }

.event-info { flex: 1; display: flex; flex-direction: column; }

.event-meta {
    display: flex; gap: 15px; font-size: 0.8rem; color: #6a6f73;
    margin-bottom: 10px; font-family: monospace;
}
.event-meta i { color: #0F66F5; margin-right: 5px; }

.event-title { font-size: 1.2rem; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; line-height: 1.3; }
.event-desc { font-size: 0.9rem; color: #555; margin-bottom: 20px; line-height: 1.5; flex: 1; }

.btn-event-tech {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 20px; background: transparent;
    color: #0F66F5; border: 1px solid #0F66F5;
    border-radius: 6px; font-weight: 700; font-size: 0.85rem;
    text-decoration: none; transition: all 0.3s ease; margin-top: auto;
    width: 85%; /* Botón ancho completo */
}
.btn-event-tech:hover {
    background: #0F66F5; color: white; box-shadow: 0 5px 15px rgba(15, 102, 245, 0.3);
}

/* --- CONTROLES (Flechas) --- */
/* Aseguramos que los estilos de controles existan si no se copiaron antes */
.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}

.tech-nav-btn {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 50%;
    background: #ffffff; border: 1px solid #e1e4e8;
    color: #1a1a1a; font-size: 1.2rem; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.tech-nav-btn:hover {
    background: #0F66F5; color: white; border-color: #0F66F5;
    transform: translateY(-3px); box-shadow: 0 10px 15px rgba(15, 102, 245, 0.3);
}
.tech-nav-btn:disabled {
    opacity: 0.5; cursor: not-allowed; background: #f4f6f9; color: #ccc; border-color: #e1e4e8;
    transform: none; box-shadow: none;
}


/* =========================================
   FOOTER (PIE)
   ========================================= */

.footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 5% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
}

.sede-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.map-placeholder img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #333;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* RESPONSIVE (MÓVIL Y TABLET) */
@media (max-width: 992px) {
    .search-bar { display: none; } /* Ocultar búsqueda en tablets */
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px;
    }
    .btn-login, .btn-cert {
        display: none; /* Ocultar botones en móvil para menú hamburguesa */
    }
    .menu-toggle {
        display: block;
    }
    .hola-text {
        font-size: 3rem;
    }
}