/* ===== Estilos básicos ===== */
/* Estilos para justificación de texto */
body {
    text-align: justify;
    text-justify: inter-word;
}

/* Títulos centrados */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .category-title, .blog-title,
.cta-title, .footer-title, .newsletter-title {
    text-align: center;
}

/* Elementos que deben permanecer alineados a la izquierda */
.navbar, .btn, .btn-primary, .btn-outline,
input, textarea, select, button,
.nav-menu, .footer-links, .social-links,
.testimonial-rating, .blog-date, .blog-meta,
.author-info span, .testimonial-author span,
.contact-info p {
    text-align: left;
    text-justify: auto;
}

/* Asegurar que los botones mantengan su alineación */
.btn, .btn-primary, .btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
/* Estilos básicos heredados de style.css */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* Esta clase se puede seguir usando para animaciones específicas */
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos generales para todas las secciones del footer */
.footer-section {
    max-width: 100%;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 247, 255, 0.08) 0%, rgba(0, 119, 182, 0.08) 100%);
    border-radius: 16px;
    margin: 1rem 0;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        0 2px 8px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.footer-section:hover::before {
    left: 100%;
}

.footer-section:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 16px 48px 0 rgba(31, 38, 135, 0.25),
        0 4px 16px 0 rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--primary) 0%, #00a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00a8ff);
    border-radius: 3px;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

/* Estilos específicos para la sección de newsletter */
.footer-section.newsletter {
    background: linear-gradient(135deg, rgba(156, 102, 255, 0.15) 0%, rgba(96, 17, 170, 0.2) 100%);
    border: 1px solid rgba(156, 102, 255, 0.2);
}

.footer-section.newsletter h3 {
    font-size: 1.75rem;
}

/* Estilos para las listas de enlaces en el footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.footer-links li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links li:hover::before {
    transform: translateX(5px);
}

/* Estilos para la información de contacto */
.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--primary);
    margin-right: 1rem;
    margin-top: 0.25rem;
    font-size: 1.1rem;
    min-width: 20px;
}

.newsletter-form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.newsletter-form .form-control {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.newsletter-form .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.newsletter-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        0 0 0 3px rgba(0, 247, 255, 0.2),
        0 4px 20px rgba(0, 247, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-form .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    background: linear-gradient(90deg, var(--primary) 0%, #00a8ff 100%);
    color: var(--dark-1);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 247, 255, 0.3);
    white-space: nowrap;
}

.newsletter-form .btn-submit i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.newsletter-form .btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 247, 255, 0.4);
    background: linear-gradient(90deg, #00e6f0 0%, #00b8ff 100%);
}

.newsletter-form .btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.newsletter-form .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(90deg, #7f7f7f 0%, #a0a0a0 100%);
}

/* Estilos para mensajes de alerta */
.newsletter-form .alert-message {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.newsletter-form .alert-message.show {
    opacity: 1;
    max-height: 100px;
    margin-top: 1rem;
}

.newsletter-form .alert-message.success {
    background-color: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.newsletter-form .alert-message.error {
    background-color: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 1rem;
    }
    
    .footer-section.newsletter {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .footer-section.newsletter h3 {
        font-size: 1.5rem;
    }
}

/* Estilos de alertas */
.alert {
    padding: 1rem;
    border-radius: var(--radius, 8px);
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===== Variables y estilos generales ===== */
:root {
    /* Colores principales - Tono cian futurista */
    --primary: #00f7ff;
    --primary-dark: #00c4cb;
    --secondary: #00a8ff;
    --accent: #ff3366;
    --success: #00e676;
    
    /* Escala de grises - Tonos oscuros con azulados */
    --dark-1: #0a0e17;
    --dark-2: #121a29;
    --dark-3: #1a2438;
    --dark-4: #242f3e;
    
    /* Texto */
    --text-primary: #e0e0e0;
    --text-secondary: #a0a8b8;
    --text-muted: #6b7280;
    
    /* Fondos */
    --bg-primary: var(--dark-1);
    --bg-secondary: var(--dark-2);
    --bg-tertiary: var(--dark-3);
    
    /* Bordes */
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Tipografía */
    --font-primary: 'Inter', 'San Francisco Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    --font-secondary: 'Roboto Slab', 'Georgia', serif;
    
    /* Bordes redondeados */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Espaciado */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
}

/* Tema oscuro - Futurista */
[data-theme="dark"] {
    --bg-primary: #0f0524;
    --bg-secondary: #1a0a36;
    --bg-tertiary: #2a1352;
    --text-primary: #f0e6ff;
    --text-secondary: #c2b5d8;
    --border-color: rgba(156, 102, 255, 0.15);
    --primary: #9c66ff;
    --primary-dark: #7d4dcc;
    --accent: #ff66e5;
    
    /* Efecto de neón para elementos interactivos */
    --neon-glow: 0 0 5px rgba(156, 102, 255, 0.5),
                 0 0 10px rgba(156, 102, 255, 0.3),
                 0 0 15px rgba(156, 102, 255, 0.2);
}

/* ===== Reset y estilos base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(271, 100%, 71%, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-ultralight);
}

a:hover::after {
    width: 100%;
}

/* ===== Estilos de utilidad ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }

/* ===== Estilos específicos para página de cursos/recursos ===== */
.resources-page {
    padding-top: 80px;
}

.resources-hero {
    background: linear-gradient(135deg, var(--primary), #6a11cb);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.resources-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.resources-hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.resources-container {
    padding: 2rem 1rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Filtros y búsqueda */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.search-container {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

#searchInput {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        0 0 0 3px rgba(156, 102, 255, 0.2),
        0 4px 16px rgba(156, 102, 255, 0.15);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    will-change: transform;
}

.filter-tag i {
    font-size: 0.85rem;
}

.filter-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 16px rgba(156, 102, 255, 0.3),
        0 2px 6px rgba(156, 102, 255, 0.2);
}

.filter-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 
        0 6px 20px rgba(156, 102, 255, 0.4),
        0 3px 10px rgba(156, 102, 255, 0.2);
}

/* Sort container */
.sort-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.sort-container select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    font-size: 0.9rem;
}

.sort-container i {
    color: var(--text-secondary);
}

/* Grid de recursos */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-card {
    background: rgba(26, 10, 54, 0.5);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px 0 rgba(15, 5, 36, 0.4),
        0 2px 8px 0 rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(156, 102, 255, 0.15);
    opacity: 1;
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    position: relative;
}

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

.resource-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(156, 102, 255, 0.25),
        0 6px 20px rgba(156, 102, 255, 0.15);
    border-color: rgba(156, 102, 255, 0.3);
}

.resource-card.hidden {
    display: none;
}

/* Iconos de categoría */
.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(156, 102, 255, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.resource-preview {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #1a1a1a;
}

.resource-preview iframe,
.resource-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-card:hover .resource-preview img {
    transform: scale(1.05);
}

.resource-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.resource-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.resource-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.resource-duration,
.resource-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.resource-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.resource-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Estilos para los tipos de recursos */
.type-youtube { color: #ff0000; }
.type-github { color: #333; }
.type-article { color: #1a73e8; }
.type-documentation { color: #0f9d58; }
.type-course { color: #9c27b0; }

/* Responsive para recursos */
@media (max-width: 1200px) {
    .filters-container {
        gap: 0.75rem;
    }
    
    .filter-tags {
        gap: 0.3rem;
    }
    
    .filter-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .sort-container {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-container {
        width: 100%;
    }

    .filter-tags {
        width: 100%;
        justify-content: flex-start;
    }

    .sort-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .resources-hero h1 {
        font-size: 2rem;
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.2) contrast(1.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2px;
}

.logo:hover img {
    transform: scale(1.08) rotate(2deg);
    filter: brightness(1.3) contrast(1.15);
}

.logo span {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

/* Gradiente de texto */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== Estilos de las secciones ===== */
.section {
    padding: 7rem 0;
}

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

/* Timeline de Historia */
.about-timeline {
    position: relative;
    padding: 2rem 0;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    margin-left: 50%;
}

.timeline-item:nth-child(even) {
    margin-left: 0;
    margin-right: 50%;
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
}

.timeline-item:nth-child(even) .timeline-date {
    left: auto;
    right: 50%;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
}

/* Equipo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.team-member {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.team-member:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(156, 102, 255, 0.25),
        0 6px 20px rgba(156, 102, 255, 0.15);
}

.team-member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.team-member-role {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-member p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.team-member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-member-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.team-member-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

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

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(156, 102, 255, 0.3);
}

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

/* Grid de categorías */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* Grid de testimonios */
.testimonials-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0 2rem;
    margin-top: 2rem;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(156, 102, 255, 0.8);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.testimonial-nav:hover {
    background: #9c66ff;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 102, 255, 0.3);
}

.testimonial-nav-prev {
    left: 10px;
}

.testimonial-nav-next {
    right: 10px;
}

@media (max-width: 768px) {
    .testimonial-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

.testimonials-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 1rem 2rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 102, 255, 0.5) transparent;
}

.testimonials-scroll::-webkit-scrollbar {
    height: 6px;
}

.testimonials-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
    background: rgba(156, 102, 255, 0.5);
    border-radius: 10px;
}

.testimonials-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 102, 255, 0.7);
}

.testimonial-card {
    flex: 0 0 calc(100% - 2rem);
    max-width: 400px;
    scroll-snap-align: start;
    margin-right: 1rem;
    transition: transform 0.3s ease;
    background: var(--dark-2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    padding: 2rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--primary);
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Tarjetas de cursos destacados */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-secondary);
}

.course-card {
    background: var(--dark-2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow);
    will-change: transform, box-shadow;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(156, 102, 255, 0.25),
        0 6px 20px rgba(156, 102, 255, 0.15);
    background: var(--dark-3);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.course-content {
    padding: 1.5rem;
}

.course-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.course-title {
    color: var(--text-primary);
    margin: 1rem 0;
    font-size: 1.25rem;
}

.course-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.course-rating i {
    color: var(--primary);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--dark-1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 1.5rem;
}

.course-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.course-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.course-meta i {
    margin-right: 0.5rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-rating i {
    color: var(--primary);
}

.course-rating span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.btn {
    background: var(--primary);
    color: var(--dark-1);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 4px 12px rgba(0, 247, 255, 0.4),
        0 2px 6px rgba(0, 247, 255, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(156, 102, 255, 0.4),
        0 3px 10px rgba(156, 102, 255, 0.2);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.category-card {
    background: var(--dark-2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(156, 102, 255, 0.1) 0%,
        rgba(156, 102, 255, 0.05) 100%
    );
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(156, 102, 255, 0.3),
        0 6px 20px rgba(156, 102, 255, 0.2);
    border-color: var(--primary);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 2rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.category-link i {
    transition: all 0.3s ease;
}

.category-link:hover i {
    transform: translateX(3px);
}

.hero-subtitle {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 1.5rem;
}

.bg-alt {
    background-color: var(--bg-secondary);
}

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    will-change: transform;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: translateY(2px);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-ultralight);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(156, 102, 255, 0.4);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ===== Header y Navegación ===== */

/* Barra de navegación principal */
.navbar {
    background: rgba(15, 5, 36, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: fixed;
    width: 100%;
    top: 40px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(156, 102, 255, 0.15);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    top: 0;
    background: rgba(15, 5, 36, 0.95);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(156, 102, 255, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
}

/* Logo a la izquierda */
.nav-container > .logo {
    flex: 0 0 auto;
}

/* Menú principal centrado */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1 0 auto;
    justify-content: center;
}

/* Botones de acción a la derecha */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu > a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-menu > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu > a:hover {
    color: var(--primary);
    background: rgba(156, 102, 255, 0.15);
    transform: translateX(3px);
}

.nav-menu > a:hover::before {
    width: 60%;
}

.nav-menu > a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-menu > a.active::before {
    width: 60%;
    background: var(--primary);
}

/* Menú desplegable */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: rgba(26, 10, 54, 0.9);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-radius: 12px;
    padding: 0.8rem 0;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(156, 102, 255, 0.2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 0.9em;
}

.dropdown-menu a:hover {
    background: rgba(156, 102, 255, 0.1);
    color: var(--primary);
    padding-left: 1.8rem;
}

/* Botones de acción */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(156, 102, 255, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(156, 102, 255, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-login span {
    position: relative;
    z-index: 2;
}

.btn-login:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-login:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-login:hover span {
    color: var(--primary);
    font-weight: 600;
}

.btn-cta {
    background: linear-gradient(90deg, var(--primary), #b07aff);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(156, 102, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-cta span {
    position: relative;
    z-index: 2;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(156, 102, 255, 0.4);
}

.btn-cta:hover span {
    color: var(--primary);
    font-weight: 700;
}

.btn-cta:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Menú móvil */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    outline: none;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Deshabilitar scroll cuando el menú está abierto */
body.no-scroll {
    overflow: hidden;
}

/* Overlay para el menú móvil */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .overlay {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--bg-primary);
        width: 85%;
        max-width: 320px;
        height: 100vh;
        padding: 90px 1.5rem 2rem;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > a {
        width: 100%;
        padding: 1rem 1.2rem;
        margin: 0.25rem 0;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.2s ease;
    }
    
    .nav-menu > a:hover {
        background: rgba(156, 102, 255, 0.1);
        padding-left: 1.5rem;
    }

    .dropdown {
        width: 100%;
    }
    
    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .dropdown > a::after {
        content: '\f078';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active > a::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0 0.5rem 1rem;
        margin: 0.5rem 0 0.5rem 1rem;
        border-left: 2px solid rgba(156, 102, 255, 0.3);
        border-radius: 0 8px 8px 0;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease forwards;
    }
    
    .dropdown-menu a {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        color: var(--text-secondary);
    }
    
    .dropdown-menu a:hover {
        color: var(--primary);
        background: transparent;
        padding-left: 1.2rem;
    }
    
    .dropdown-menu i {
        width: 20px;
        margin-right: 0.5rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }
    
    .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0 0;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-actions .btn-login,
    .mobile-actions .btn-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar {
        top: 0;
    }
    
    .navbar.scrolled {
        top: 0;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav-container {
        padding: 0.8rem 1.5rem;
    }

    .logo img {
        height: 36px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1.2rem;
    }
    
    .logo img {
        height: 36px;
    }
    
    .top-bar {
        display: none;
    }
    
    .navbar {
        top: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .nav-menu {
        width: 90%;
        padding: 80px 1rem 2rem;
    }
    
    .nav-container {
        padding: 0.7rem 1rem;
    }
    
    .logo img {
        height: 32px;
    }
    
    .hamburger {
        width: 28px;
        height: 20px;
    }
    
    .mobile-actions .btn-login,
    .mobile-actions .btn-cta {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* ===== Hero ===== */
.hero-spacer {
    height: 15vh; /* Ajusta la altura según necesites */
    width: 100%;
}

.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.hero-image {
    display: none; /* Ocultar la imagen por ahora */
}

/* ===== Footer ===== */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.footer {
    background-color: var(--dark-2);
    color: var(--text-secondary);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.footer-section {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    border-radius: 15px;
    display: block;
    background: transparent;
    border: none;
}

.footer-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact span {
    display: block;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-section.links li,
.footer-section.courses li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0;
    position: relative;
}

.footer-section a::before {
    content: '→';
    color: var(--primary);
    margin-right: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    position: absolute;
    left: -15px;
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(10px);
}

.footer-section a:hover::before {
    opacity: 1;
    left: 0;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--dark-4);
    background: var(--dark-3);
    border-radius: 4px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(156, 102, 255, 0.2);
}

.newsletter-form button {
    background: var(--primary);
    color: var(--dark-1);
    border: none;
    padding: 0 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 20px;
    margin-top: 3rem;
    border-top: 1px solid var(--dark-4);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

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

/* Responsive */
@media (min-width: 768px) {
    .footer-section.about {
        grid-column: auto;
        text-align: left;
    }
    
    .contact span {
        justify-content: flex-start;
    }
    
    .socials {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        padding: 2rem;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Estilos para la página del blog */
.blog-page {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.blog-hero {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 5rem 0;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: var(--primary-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: rgba(26, 10, 54, 0.5);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-radius: 15px;
    padding: 1.8rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(156, 102, 255, 0.15);
    box-shadow: 
        0 8px 32px 0 rgba(15, 5, 36, 0.4),
        0 2px 8px 0 rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.7;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(156, 102, 255, 0.3);
    box-shadow: 0 12px 40px rgba(156, 102, 255, 0.2);
}

.card:hover::before {
    opacity: 1;
    height: 4px;
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-meta i {
    margin-right: 0.3rem;
}

.blog-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.blog-card h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover {
    transform: translateX(8px);
    color: var(--primary);
}

.read-more:hover i {
    transform: translateX(3px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: white;
}

.newsletter-section {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 4rem 0;
    margin-top: 4rem;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* Estilos para el botón de volver arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--dark-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
}

/* Botón de WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Animación de flotación */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.whatsapp-float {
    animation: float 3s ease-in-out infinite;
}

/* Tooltip para el botón de WhatsApp */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 80px;
}

/* Mejoras de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Estilos para el modo de alto contraste */
@media (prefers-contrast: high) {
    :root {
        --primary: #00f7ff;
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --bg-primary: #000000;
        --bg-secondary: #1a1a1a;
    }
    
    a, button, input, select, textarea {
        border: 2px solid currentColor !important;
    }
    
    .btn {
        border: 2px solid currentColor !important;
    }
}

/* Estilos para la impresión */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline !important;
    }
    
    .footer {
        border-top: 2px solid #000;
        padding-top: 1rem;
    }
}

/* Asegurar que los enlaces del footer tengan un buen contraste */
.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 247, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links ul {
        justify-content: flex-start;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 247, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 247, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 247, 255, 0); }
}

@keyframes glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Clases de utilidad para animaciones */
.float {
    animation: float 6s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.hero .container,
.categorias .container {
animation: fadeIn 1s ease-out;
}

/* Estilos para el CTA */
.cta-content {
text-align: center;
padding: 4rem 2rem;
max-width: 800px;
margin: 0 auto;
}

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

.cta-description {
font-size: 1.1rem;
color: var(--text-secondary);
margin-bottom: 2rem;
line-height: 1.6;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}

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

.btn-lg {
padding: 1rem 2rem;
font-size: 1.1rem;
border-radius: 8px;
transition: all 0.3s ease;
}

.btn-lg:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
background: var(--primary);
color: white;
border: none;
}

.btn-outline {
background: transparent;
color: var(--primary);
border: 2px solid var(--primary);
}

.btn-outline:hover {
background: var(--primary);
color: white;
}

/* Estilos para la página de blog */
.blog-page {
padding: 80px 0;
background: var(--bg-primary);
    background: var(--bg-primary);
}

.blog-hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
}

.blog-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
}

.search-bar button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    color: var(--accent);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.blog-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-meta i {
    margin-right: 0.5rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
}

.pagination a {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

.pagination a.active {
    background: var(--primary);
    color: white;
}

/* Estilos para la página de contacto */
.contact-page {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-header p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.section-description {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(156, 102, 255, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.hero .container,
.categorias .container,
.blog-hero .container {
    animation: fadeIn 1s ease-out;
}

/* ===== Footer Actualizado ===== */
.footer {
    background: linear-gradient(135deg, #1a0a36 0%, #2d0b4f 100%);
    color: var(--text-secondary);
    padding: 4rem 0 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(156, 102, 255, 0.2);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(156, 102, 255, 0.1) 0%, rgba(96, 17, 170, 0.15) 100%);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(156, 102, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-sizing: border-box;
}

.footer-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, #9c66ff, #c77dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00a8ff);
    border-radius: 3px;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Estilos para las listas de enlaces */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.footer-links li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links li:hover::before {
    transform: translateX(5px);
}

/* Estilos para la sección de contacto */
.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info i {
    color: var(--primary);
    margin-right: 1rem;
    margin-top: 0.25rem;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

/* Estilos para los iconos de redes sociales */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark-1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
}

/* Estilos para el formulario de newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

.newsletter-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    position: relative;
}

.newsletter-form .newsletter-email {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(156, 102, 255, 0.2);
    background: rgba(26, 10, 54, 0.5);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.newsletter-form .newsletter-email:focus {
    outline: none;
    border-color: #9c66ff;
    box-shadow: 0 0 0 3px rgba(156, 102, 255, 0.2);
    background: rgba(26, 10, 54, 0.7);
}

.newsletter-form .newsletter-email::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn-submit {
    background: linear-gradient(90deg, #9c66ff, #c77dff);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.newsletter-form .btn-submit .btn-text {
    font-size: 0.9em;
}

.newsletter-form .btn-submit i {
    font-size: 1em;
}

.newsletter-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 102, 255, 0.4);
    background: linear-gradient(90deg, #c77dff, #9c66ff);
}

.newsletter-message {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.newsletter-message.show {
    opacity: 1;
    height: auto;
    margin-bottom: 0.5rem;
}

.newsletter-message.success {
    color: #00ff88;
    background-color: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.newsletter-message.error {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.newsletter-note {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* Estilos responsivos para el formulario */
.newsletter-form .newsletter-email {
    border-radius: 50px;
    width: 100%;
}

.newsletter-form .btn-submit {
    border-radius: 50px;
    width: 100%;
}

/* Ajustes para móviles pequeños */
@media (max-width: 360px) {
    .newsletter-form .btn-submit .btn-text {
        font-size: 0.85em;
    }
    
    .newsletter-form .btn-submit i {
        display: none;
    }
}

.newsletter-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    line-height: 1.5;
    font-style: italic;
}

/* Pie de página inferior */
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(156, 102, 255, 0.2);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.3rem;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer-section {
        padding: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section:last-child {
        margin-bottom: 0;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding: 1rem 0;
    }
}

/* ===== Página de Cursos / Recursos ===== */
.resources-hero h1 {
    text-align: center;
    width: 100%;
}

.filters-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.filter-tags {
    width: 100%;
    justify-content: center;
}

.resource-preview-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
}

.resource-preview-link::after {
    content: none !important;
}

.resource-preview-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

/* ===== Página de Blog ===== */
.category-filters {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-btn {
    padding: 8px 16px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination button {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
}

.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
}

