/* ===============================
   RESET Y CONFIGURACIÓN BASE
   =============================== */

/* Elimina márgenes y rellenos por defecto de todos los elementos,
   y asegura que el tamaño de cajas considere el padding y border */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Habilita el desplazamiento suave en la página al usar enlaces internos */
html {
    scroll-behavior: smooth;
}

/* Estilos generales del cuerpo de la página */
body {
    /* Tipografía principal */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Fondo con degradado diagonal */
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #0c0c0c 100%);
    min-height: 100vh; /* Altura mínima de toda la pantalla */
    color: #ffffff; /* Color de texto principal */
    line-height: 1.6; /* Espaciado entre líneas */
    overflow-x: hidden; /* Evita scroll horizontal */
    padding-top: 80px; /* Espacio para navbar fija */
}

/* ===============================
   ANIMACIÓN DE FONDO
   =============================== */

/* Pseudoelemento para agregar efectos de luces flotantes en el fondo */
body::before {
    content: ''; /* Necesario para que se muestre */
    position: fixed; /* Fijo en la ventana, no se mueve al hacer scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    z-index: -1; /* Detrás de todo el contenido */
    animation: backgroundShift 20s ease-in-out infinite; /* Animación de opacidad */
}

/* Animación que hace que el fondo se desvanezca ligeramente y vuelva */
@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ===============================
   BARRA DE NAVEGACIÓN
   =============================== */

/* Estilos generales de la navbar */
.navbar {
    position: fixed; /* Fija en la parte superior */
    top: 0;
    left: 0;
    width: 100%; /* Ocupa todo el ancho */
    background: rgba(12, 12, 12, 0.7); /* Fondo semi-transparente */
    backdrop-filter: blur(15px); /* Desenfoque detrás de la barra */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Línea inferior */
    z-index: 1000; /* Para estar siempre encima del contenido */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transición suave */
}

/* Estado transparente de la navbar (por ejemplo, al inicio de la página) */
.navbar.transparent {
    background: rgba(12, 12, 12, 0.05); /* Muy transparente */
    backdrop-filter: blur(3px); /* Menor desenfoque */
    border-bottom: 1px solid rgba(255, 255, 255, 0.02); /* Línea muy tenue */
    box-shadow: none; /* Sin sombra */
}

/* ===============================
   ESTADO SÓLIDO DE LA NAVBAR
   =============================== */
.navbar.solid {
    background: rgba(12, 12, 12, 0.85); /* Fondo más oscuro y menos transparente */
    backdrop-filter: blur(20px); /* Más desenfoque del fondo */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Línea inferior más visible */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2); /* Sombra debajo de la barra */
}

/* ===============================
   CONTENEDOR INTERNO DE LA NAVBAR
   =============================== */
.nav-container {
    max-width: 1400px; /* Ancho máximo de la navbar */
    margin: 0 auto; /* Centrado horizontal */
    padding: 0 2rem; /* Espacio interno a los lados */
    display: flex; /* Layout flexible */
    justify-content: space-between; /* Separar logo y menú */
    align-items: center; /* Centrar verticalmente */
    height: 80px; /* Altura de la navbar */
}

/* ===============================
   LOGO
   =============================== */
.nav-logo {
    display: flex; /* Logo con icono y texto */
    align-items: center;
    gap: 0.75rem; /* Espacio entre icono y texto */
    font-size: 1.5rem; /* Tamaño del texto del logo */
    font-weight: 700; /* Negrita */
    color: #64b3f4; /* Color principal */
    transition: all 0.3s ease; /* Transición suave al cambiar estado */
}

/* Logo más transparente en navbar transparente */
.navbar.transparent .nav-logo {
    opacity: 0.6;
}

/* Logo completamente visible en navbar sólida */
.navbar.solid .nav-logo {
    opacity: 1;
}

/* Icono dentro del logo */
.logo-icon {
    width: 32px;
    height: 32px;
    color: #64b3f4;
    transition: all 0.3s ease;
}

/* Texto del logo con degradado */
.logo-text {
    background: linear-gradient(135deg, #64b3f4 0%, #c2e59c 100%);
    background-clip: text;
    -webkit-background-clip: text; /* Para navegadores webkit */
    -webkit-text-fill-color: transparent; /* Hace visible solo el gradiente */
}

/* ===============================
   MENÚ DE NAVEGACIÓN
   =============================== */
.nav-menu {
    display: flex; /* Items del menú en fila */
}

/* Lista de enlaces */
.nav-list {
    display: flex;
    list-style: none; /* Quita viñetas */
    gap: 2rem; /* Separación entre links */
    align-items: center;
}

/* Estilo de cada enlace */
.nav-link {
    color: #b0b0b0; /* Color inicial */
    text-decoration: none; /* Quita subrayado */
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem; /* Espacio interno */
    border-radius: 25px; /* Bordes redondeados */
    transition: all 0.3s ease;
    position: relative; /* Para pseudo-elementos */
}

/* Color de links en navbar transparente */
.navbar.transparent .nav-link {
    color: rgba(176, 176, 176, 0.6);
}

/* Color de links en navbar sólida */
.navbar.solid .nav-link {
    color: #b0b0b0;
}

/* Efectos hover y link activo */
.nav-link:hover,
.nav-link.active {
    color: #64b3f4;
    background: rgba(100, 179, 244, 0.1);
    transform: translateY(-2px); /* Levanta ligeramente el link */
}

/* Hover y activo en navbar transparente */
.navbar.transparent .nav-link:hover,
.navbar.transparent .nav-link.active {
    background: rgba(100, 179, 244, 0.2);
    color: #64b3f4;
}

/* Subrayado animado del link */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0; /* Empieza invisible */
    height: 2px;
    background: linear-gradient(135deg, #64b3f4, #c2e59c);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Subrayado visible al hover o activo */
.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===============================
   MENÚ HAMBURGUESA
   =============================== */
.nav-toggle {
    display: none; /* Por defecto oculto, visible en responsive */
    flex-direction: column; /* Barras en columna */
    cursor: pointer; /* Manito al pasar el mouse */
    gap: 4px; /* Separación entre barras */
}

/* Barra individual */
.bar {
    width: 25px;
    height: 3px;
    background: #64b3f4;
    border-radius: 2px; /* Bordes redondeados */
    transition: all 0.3s ease;
}

/* Color de barras en navbar transparente */
.navbar.transparent .bar {
    background: rgba(100, 179, 244, 0.6);
}

/* Color de barras en navbar sólida */
.navbar.solid .bar {
    background: #64b3f4;
}

/* Animación de menú hamburguesa activo */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0; /* Barra central desaparece */
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===============================
   CONTENEDOR GENERAL
   =============================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative; /* Para posicionar elementos hijos */
    z-index: 1; /* Que esté por encima de fondos */
}

/* ===============================
   SECCIÓN HERO - PÁGINA DE INICIO
   =============================== */
.hero-section {
    min-height: 100vh; /* Ocupa toda la altura de la pantalla */
    display: flex; /* Flexbox para centrar contenido */
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    text-align: center; /* Texto centrado */
    position: relative; /* Permite posicionar elementos hijos */
    padding: 4rem 0; /* Espaciado arriba y abajo */
}

/* Contenedor del contenido dentro del hero */
.hero-content {
    max-width: 900px; /* Ancho máximo del contenido */
    z-index: 2; /* Que esté encima de fondos/efectos */
}

/* Título principal */
.hero-title {
    font-size: clamp(1rem, 6vw, 5rem); /* Tamaño adaptable al viewport */
    font-weight: 800; /* Negrita extrema */
    background: linear-gradient(135deg, #64b3f4 0%, #c2e59c 25%, #ff6b6b 50%, #4ecdc4 75%, #64b3f4 100%);
    background-size: 300% 300%; /* Para animar el gradiente */
    background-clip: text; 
    -webkit-background-clip: text; /* Para navegadores webkit */
    -webkit-text-fill-color: transparent; /* Hace visible solo el gradiente */
    margin-bottom: 1.5rem; /* Espacio debajo del título */
    animation: gradientShift 4s ease-in-out infinite, titleFloat 3s ease-in-out infinite; /* Animación gradiente + flotante */
    text-shadow: 0 0 50px rgba(100, 179, 244, 0.5); /* Sombra difusa del texto */
    line-height: 1.1;
    white-space: nowrap; /* Evita salto de línea */
    overflow: visible; /* Permite animación fuera del contenedor */
}

/* Subtítulo principal */
.hero-subtitle-main {
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Tamaño adaptable */
    font-weight: 600;
    color: #c2e59c; /* Color verde claro */
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(194, 229, 156, 0.3); /* Sombra suave */
}

/* Descripción / párrafo */
.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem); /* Tamaño adaptable */
    color: #b0b0b0; /* Gris claro */
    font-weight: 300; /* Ligero */
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6; /* Mejor lectura */
    max-width: 800px; /* Limita ancho de párrafo */
    margin-left: auto;
    margin-right: auto; /* Centrado horizontal */
}

/* ===============================
   ANIMACIONES DEL HERO
   =============================== */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; } /* Inicio y fin */
    50% { background-position: 100% 50%; } /* Medio, gradiente se desplaza */
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px); } /* Posición normal */
    50% { transform: translateY(-10px); } /* Flotación hacia arriba */
}

/* ===============================
   BOTONES DEL HERO
   =============================== */
.hero-buttons {
    display: flex; /* Los botones en fila */
    gap: 1.5rem; /* Separación entre ellos */
    justify-content: center; /* Centrados */
    flex-wrap: wrap; /* Se ajustan si no caben */
}

/* Botones generales */
.hero-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px; /* Botón redondeado */
    text-decoration: none; /* Sin subrayado */
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* Para animaciones dentro del botón */
    text-transform: uppercase; /* Texto en mayúsculas */
    letter-spacing: 1px; /* Separación entre letras */
}

/* Botón principal */
.hero-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Degradado */
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); /* Sombra */
}

/* Botón secundario */
.hero-btn.secondary {
    background: transparent;
    color: #64b3f4;
    border: 2px solid #64b3f4; /* Borde azul */
}

/* Hover general */
.hero-btn:hover {
    transform: translateY(-3px); /* Leve elevación */
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6); /* Sombra más intensa */
}

/* Hover del botón secundario */
.hero-btn.secondary:hover {
    background: rgba(100, 179, 244, 0.1); /* Fondo azul claro */
    box-shadow: 0 15px 35px rgba(100, 179, 244, 0.3); /* Sombra más suave */
}

/* ===============================
   DECORACIÓN DEL HERO
   =============================== */
.hero-decoration {
    position: absolute; /* Posicionamiento absoluto dentro del hero */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* No interfiere con clicks */
    z-index: 1; /* Detrás del contenido principal */
}

/* Iconos flotantes */
.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(100, 179, 244, 0.1); /* Fondo azul muy suave */
    border-radius: 50%; /* Circular */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite; /* Animación de flotación */
}

.floating-icon svg {
    width: 30px;
    height: 30px;
    color: #64b3f4;
    opacity: 0.7;
}

/* Posiciones y delays de cada icono */
.floating-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 30%; right: 15%; animation-delay: 2s; }
.floating-icon:nth-child(3) { bottom: 25%; left: 20%; animation-delay: 4s; }

/* Animación de flotación + rotación */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===============================
   SECCIÓN ACERCA DE NOSOTROS
   =============================== */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)); /* Fondo sutil */
}

.about-content {
    max-width: 1200px;
    margin: 0 auto; /* Centrado */
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.intro-text {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: #ffffff;
    font-weight: 400;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Grid de tarjetas */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Tarjetas individuales */
.about-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo deslizante al hover */
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 179, 244, 0.05), transparent);
    transition: left 0.5s;
}

.about-card:hover::before { left: 100%; }

/* Hover de la tarjeta */
.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(100, 179, 244, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Icono dentro de la tarjeta */
.about-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.about-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

.about-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-card p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 1rem;
}

/* ===============================
   ESPECIALIDADES
   =============================== */
.specialties-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.specialty-tag {
    background: rgba(100, 179, 244, 0.2);
    color: #64b3f4;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(100, 179, 244, 0.3);
    transition: all 0.3s ease;
}

.specialty-tag:hover {
    background: rgba(100, 179, 244, 0.3);
    transform: translateY(-2px);
}

/* ===============================
   CITA DESTACADA
   =============================== */
.quote-section {
    text-align: center;
    margin-top: 3rem;
}

.featured-quote {
    background: linear-gradient(145deg, rgba(100, 179, 244, 0.1), rgba(194, 229, 156, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 179, 244, 0.2);
    border-radius: 25px;
    padding: 3rem 2rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote-icon {
    width: 40px;
    height: 40px;
    color: #64b3f4;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.featured-quote p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #ffffff;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===============================
   SECCIÓN PLATAFORMAS
   =============================== */
.platforms-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #64b3f4 0%, #c2e59c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================
   GRID DE TARJETAS DE IA
   =============================== */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Columnas adaptables */
    gap: 2rem; /* Espacio entre tarjetas */
    padding: 1rem 0; /* Espaciado vertical */
}

/* ===============================
   TARJETAS DE IA
   =============================== */
.ai-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); /* Fondo translúcido */
    backdrop-filter: blur(10px); /* Efecto desenfoque */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),  /* Sombra externa */
        inset 0 1px 0 rgba(255, 255, 255, 0.2); /* Sombra interna */
}

/* Efecto de brillo al pasar el mouse */
.ai-card::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.6s;
}

.ai-card:hover::before {
    left: 100%;
}

/* Hover general de la tarjeta */
.ai-card:hover {
    transform: translateY(-10px) scale(1.02); /* Elevar y agrandar un poco */
    border-color: rgba(100, 179, 244, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(100, 179, 244, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ===============================
   TARJETA ESPECIAL: MANUAL MGX
   =============================== */
.manual-mgx {
    border: 2px solid rgba(0, 119, 182, 0.3);
    background: linear-gradient(145deg, rgba(0, 119, 182, 0.1), rgba(0, 180, 216, 0.05));
}

.manual-mgx:hover {
    border-color: rgba(0, 119, 182, 0.6);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 119, 182, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Icono de la tarjeta Manual MGX */
.manual-icon {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%) !important;
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.4) !important;
}

.manual-mgx:hover .manual-icon {
    box-shadow: 0 15px 35px rgba(0, 119, 182, 0.6) !important;
}

/* Botón de la tarjeta Manual MGX */
.manual-btn {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4) !important;
}

.manual-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.6) !important;
}

.manual-btn::before {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%) !important;
}

/* ===============================
   ICONOS DE LAS TARJETAS
   =============================== */
.ai-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #64b3f4, #c2e59c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(100, 179, 244, 0.3);
}

.ai-icon svg {
    width: 40px;
    height: 40px;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Hover de iconos: rotación completa + agrandamiento */
.ai-card:hover .ai-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 15px 35px rgba(100, 179, 244, 0.5);
}

/* ===============================
   TITULOS Y DESCRIPCIONES
   =============================== */
.ai-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ai-description {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.5;
    min-height: 3rem; /* Mantiene altura consistente aunque la descripción sea corta */
}

/* ===============================
   BOTONES DE LOGIN / ACCIÓN
   =============================== */
.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Gradiente de fondo */
    border: none; /* Sin borde */
    padding: 12px 30px; /* Espaciado interno */
    border-radius: 50px; /* Bordes redondeados */
    color: white; /* Color del texto */
    font-weight: 600; /* Negrita moderada */
    font-size: 1rem; /* Tamaño de texto */
    cursor: pointer; /* Cursor tipo mano */
    transition: all 0.3s ease; /* Transiciones suaves para hover */
    position: relative; /* Para efectos ::before */
    overflow: hidden; /* Oculta contenido que sobresalga */
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); /* Sombra inicial */
    text-transform: uppercase; /* Texto en mayúsculas */
    letter-spacing: 0.5px; /* Espaciado entre letras */
}

/* Efecto de barra deslizante al pasar mouse */
.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Empieza fuera del botón */
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); /* Gradiente inverso */
    transition: left 0.3s ease; /* Desplazamiento suave */
    z-index: -1; /* Detrás del contenido */
}

.login-btn:hover::before {
    left: 0; /* La barra se desplaza cubriendo el botón */
}

.login-btn:hover {
    transform: translateY(-2px); /* Levanta ligeramente el botón */
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6); /* Sombra más intensa */
}

.login-btn:active {
    transform: translateY(0); /* Vuelve a posición original al hacer clic */
}

/* ===============================
   SECCIONES ADICIONALES
   =============================== */
.section {
    margin: 6rem 0; /* Separación vertical */
    padding: 4rem 0; /* Espaciado interno vertical */
}

/* ===============================
   GRID DE CATEGORÍAS
   =============================== */
.categories-grid {
    display: grid; /* Grid para tarjetas */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Columnas flexibles */
    gap: 2rem; /* Espacio entre tarjetas */
}

/* ===============================
   TARJETAS DE CATEGORÍAS
   =============================== */
.category-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); /* Fondo semi-transparente con gradiente */
    backdrop-filter: blur(15px); /* Efecto de desenfoque */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Borde ligero */
    border-radius: 20px; /* Bordes redondeados */
    padding: 2rem; /* Espaciado interno */
    transition: all 0.4s ease; /* Transición suave en hover */
    position: relative;
    overflow: hidden;
}

/* Efecto de barra luminosa al pasar mouse */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Comienza fuera */
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 179, 244, 0.05), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%; /* Se desplaza sobre la tarjeta */
}

.category-card:hover {
    transform: translateY(-8px); /* Levanta la tarjeta */
    border-color: rgba(100, 179, 244, 0.4); /* Cambio de color de borde */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); /* Sombra más intensa */
}

/* Icono de la categoría */
.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2); /* Gradiente */
    border-radius: 15px; /* Bordes redondeados */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.category-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg); /* Aumenta y gira ligeramente al hover */
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Texto de la tarjeta */
.category-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.category-card p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ===============================
   ETIQUETAS DE CATEGORÍAS
   =============================== */
.category-tags {
    display: flex;          /* Utiliza flexbox para alinear horizontalmente */
    flex-wrap: wrap;        /* Permite que los tags pasen a otra línea si no caben */
    gap: 0.5rem;            /* Espacio entre cada tag */
}

.tag {
    background: rgba(100, 179, 244, 0.2); /* Fondo azul semi-transparente */
    color: #64b3f4;                     /* Color del texto */
    padding: 0.25rem 0.75rem;           /* Espaciado interno: vertical y horizontal */
    border-radius: 15px;                /* Bordes redondeados */
    font-size: 0.8rem;                  /* Tamaño de fuente pequeño */
    font-weight: 500;                   /* Peso de fuente medio */
    border: 1px solid rgba(100, 179, 244, 0.3); /* Borde azul suave */
}

/* ===============================
   INFORMACIÓN DE CONTACTO
   =============================== */
.contact-info {
    text-align: center;   /* Centra el contenido */
    max-width: 600px;     /* Ancho máximo de la sección */
    margin: 0 auto;       /* Centra horizontalmente */
}

.contact-links {
    display: flex;        /* Flexbox para alinear los enlaces */
    justify-content: center; /* Centra horizontalmente los enlaces */
    gap: 2rem;            /* Espacio entre enlaces */
    margin-top: 2rem;     /* Separación superior */
}

.contact-link {
    color: #64b3f4;                           /* Color de texto azul */
    text-decoration: none;                     /* Sin subrayado */
    padding: 0.75rem 1.5rem;                  /* Espaciado interno */
    border: 1px solid rgba(100, 179, 244, 0.3); /* Borde azul claro */
    border-radius: 25px;                       /* Bordes redondeados */
    transition: all 0.3s ease;                 /* Animación suave para hover */
}

.contact-link:hover {
    background: rgba(100, 179, 244, 0.1); /* Fondo azul muy claro al pasar el mouse */
    transform: translateY(-2px);          /* Eleva ligeramente el botón */
}

/* ===============================
   FOOTER
   =============================== */
.footer {
    text-align: center;                        /* Centra el contenido */
    padding: 2rem 0;                           /* Espaciado vertical */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea superior tenue */
    margin-top: 3rem;                          /* Espacio superior antes del footer */
}

.footer p {
    color: #888;     /* Texto gris */
    font-size: 0.9rem; /* Tamaño de fuente pequeño */
}

/* ===============================
   SCROLLBAR PERSONALIZADO
   =============================== */
::-webkit-scrollbar {
    width: 8px; /* Ancho de la barra de desplazamiento */
}

::-webkit-scrollbar-track {
    background: rgba(12, 12, 12, 0.3); /* Fondo del track */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64b3f4, #c2e59c); /* Gradiente del thumb */
    border-radius: 4px; /* Bordes redondeados del thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5aa3e3, #b1d88b); /* Cambia gradiente al pasar el mouse */
}

/* ===============================
   SCROLLBAR PARA FIREFOX
   =============================== */
* {
    scrollbar-width: thin;                     /* Barra delgada */
    scrollbar-color: #64b3f4 rgba(12, 12, 12, 0.3); /* Thumb azul y track oscuro */
}

/* ===============================
   DISEÑO RESPONSIVO PARA PANTALLAS <= 768px
   =============================== */
@media (max-width: 768px) {

    /* Menú de navegación móvil */
    .nav-menu {
        position: fixed;                        /* Se fija al viewport */
        left: -100%;                            /* Inicialmente oculto a la izquierda */
        top: 80px;                              /* Desde 80px del top */
        flex-direction: column;                 /* Columnas verticales */
        background: rgba(12, 12, 12, 0.95);     /* Fondo semi-transparente */
        backdrop-filter: blur(20px);            /* Difuminado */
        width: 100%;                             /* Ocupa todo el ancho */
        text-align: center;                      /* Texto centrado */
        transition: 0.3s;                        /* Animación suave */
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); /* Sombra ligera */
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea superior tenue */
    }

    .navbar.transparent .nav-menu {
        background: rgba(12, 12, 12, 0.9);      /* Fondo ligeramente más transparente */
    }

    .nav-menu.active {
        left: 0;                                /* Se muestra cuando se activa */
    }

    .nav-list {
        flex-direction: column;                 /* Lista vertical */
        gap: 1rem;                              /* Separación entre ítems */
        padding: 2rem 0;                        /* Espaciado superior e inferior */
    }

    .nav-toggle {
        display: flex;                           /* Botón de toggle visible */
    }

    .container {
        padding: 0 1rem;                         /* Espaciado horizontal en móviles */
    }

    /* Hero Section móvil */
    .hero-section {
        min-height: 80vh;                        /* Altura mínima */
        padding: 2rem 0;
    }

    .hero-content {
        max-width: 100%;                          /* Ocupa todo el ancho disponible */
    }

    .hero-title {
        white-space: normal;                      /* Permite que el título haga wrap */
        font-size: clamp(2.5rem, 12vw, 4rem);    /* Tamaño adaptativo */
    }

    .hero-buttons {
        flex-direction: column;                   /* Botones apilados */
        align-items: center;                      /* Centrado horizontal */
    }

    .hero-btn {
        width: 100%;                              /* Botones a ancho completo */
        max-width: 300px;
    }

    /* About Section móvil */
    .about-grid {
        grid-template-columns: 1fr;               /* Una columna */
        gap: 2rem;
    }

    .about-card {
        padding: 2rem;
    }

    .featured-quote {
        padding: 2rem 1.5rem;
    }

    /* Sección IA y Categorías móvil */
    .ai-grid, .categories-grid {
        grid-template-columns: 1fr;               /* Una columna */
        gap: 1.5rem;
    }

    .ai-card, .category-card {
        padding: 1.5rem;
    }

    .ai-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .ai-icon svg {
        width: 30px;
        height: 30px;
    }

    .ai-title {
        font-size: 1.25rem;
    }

    .ai-description {
        font-size: 0.9rem;
        min-height: auto;
    }

    .contact-links {
        flex-direction: column;                  /* Enlaces apilados */
        align-items: center;
    }

    .floating-icon {
        display: none;                            /* Oculta iconos flotantes */
    }
}

/* ===============================
   DISEÑO RESPONSIVO PARA PANTALLAS <= 480px
   =============================== */
@media (max-width: 480px) {
    .ai-grid, .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ai-card, .category-card {
        padding: 1.25rem;
    }

    .login-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .about-card {
        padding: 1.5rem;
    }

    .specialties-list {
        gap: 0.5rem;
    }

    .specialty-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* ===============================
   ANIMACIONES
   =============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;                  /* Inicia invisible */
        transform: translateY(30px); /* Se mueve hacia arriba */
    }
    to {
        opacity: 1;                  /* Final visible */
        transform: translateY(0);   /* Posición original */
    }
}

.ai-card, .category-card, .about-card {
    animation: fadeInUp 0.6s ease-out;      /* Aplica animación al cargar */

}

/* ===============================
   RETRASO DE ANIMACIÓN POR TARJETA
   =============================== */

/* Primera tarjeta de IA, Categoría y About */
.ai-card:nth-child(1), .category-card:nth-child(1), .about-card:nth-child(1) {
    animation-delay: 0.1s;   /* Comienza 0.1 segundos después */
}

/* Segunda tarjeta */
.ai-card:nth-child(2), .category-card:nth-child(2), .about-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Tercera tarjeta */
.ai-card:nth-child(3), .category-card:nth-child(3), .about-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Cuarta tarjeta (solo IA y Categoría) */
.ai-card:nth-child(4), .category-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Quinta tarjeta */
.ai-card:nth-child(5), .category-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Sexta tarjeta */
.ai-card:nth-child(6), .category-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Séptima tarjeta (solo IA) */
.ai-card:nth-child(7) {
    animation-delay: 0.7s;
}

/* Octava tarjeta */
.ai-card:nth-child(8) {
    animation-delay: 0.8s;
}

/* Novena tarjeta */
.ai-card:nth-child(9) {
    animation-delay: 0.9s;
}

/* Décima tarjeta */
.ai-card:nth-child(10) {
    animation-delay: 1.0s;
}
