:root {
    --primary-color: #FFD700; /* Amarillo */
    --secondary-color: #000000; /* Negro */
    --accent-color: #ffd700;  /* Dorado */
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    --gradient-secondary: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hover-color: #FFC107; /* Amarillo más oscuro para hover */
    --gradient-start: #FFD700;
    --gradient-end: #FFC107;
    --border-radius: 8px;
    --card-padding: 1.5rem;
    --focus-ring: 0 0 0 3px rgba(255, 215, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --neon-glow: 0 0 10px rgba(255, 215, 0, 0.5),
                 0 0 20px rgba(255, 215, 0, 0.3),
                 0 0 30px rgba(255, 215, 0, 0.1);
    --hud-grid-color: rgba(255, 215, 0, 0.1);
    --hud-line-color: rgba(255, 215, 0, 0.2);
    --hud-glow: 0 0 10px rgba(255, 215, 0, 0.3);
    --hud-animation-duration: 20s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-bg);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, var(--hud-grid-color) 1px, transparent 1px) 0 0 / 50px 50px,
        linear-gradient(0deg, var(--hud-grid-color) 1px, transparent 1px) 0 0 / 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: gridMove var(--hud-animation-duration) linear infinite;
}

/* Estilos para centrar títulos al lado de cada sección */
section {
    position: relative;
    padding-top: 60px; /* Espacio para el título */
    margin-bottom: 40px;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, var(--hud-grid-color) 1px, transparent 1px) 0 0 / 30px 30px,
        linear-gradient(0deg, var(--hud-grid-color) 1px, transparent 1px) 0 0 / 30px 30px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
    animation: gridPulse 4s ease-in-out infinite;
}

/* Centrado de títulos para todas las pantallas */
h1, h2, h3, h4, h5, h6 {
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

/* Ajustes específicos para cada tipo de título */
.hero h1 {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
}

section > h2 {
    text-align: center;
    width: 100%;
    margin: 0 auto 2rem;
    position: relative;
}

.feature-card h2,
.cultura-card h3,
.recurso-card h3,
.estadistica-card h3,
.testimonial-card h4,
.video-info h4,
.podcast-info h4 {
    text-align: center;
    width: 100%;
    margin: 1rem auto;
}

/* Ajustes para títulos de sección */
.section-title {
    text-align: center;
    width: 100%;
    margin: 2rem auto;
}

/* Ajustes para títulos de tarjetas */
.card-title {
    text-align: center;
    width: 100%;
    margin: 1rem auto;
}

/* Ajustes para títulos de artículos */
.article-title {
    text-align: center;
    width: 100%;
    margin: 2rem auto;
}

/* Ajustes para títulos de recursos */
.resource-title {
    text-align: center;
    width: 100%;
    margin: 1.5rem auto;
}

/* Ajustes para títulos de testimonios */
.testimonial-title {
    text-align: center;
    width: 100%;
    margin: 1.5rem auto;
}

/* Ajustes para títulos de cultura */
.culture-title {
    text-align: center;
    width: 100%;
    margin: 1.5rem auto;
}

/* Ajustes para títulos de estadísticas */
.stats-title {
    text-align: center;
    width: 100%;
    margin: 1.5rem auto;
}

/* Ajustes para títulos de ejercicios */
.exercise-title {
    text-align: center;
    width: 100%;
    margin: 1.5rem auto;
}

/* Ajustes para títulos de juegos */
.game-title {
    text-align: center;
    width: 100%;
    margin: 1.5rem auto;
}

/* Ajustes para títulos de multimedia */
.multimedia-title {
    text-align: center;
    width: 100%;
    margin: 1.5rem auto;
}

/* Ajustes para títulos de contacto */
.contact-title {
    text-align: center;
    width: 100%;
    margin: 1.5rem auto;
}

/* Ajustes para títulos de foro */
.forum-title {
    text-align: center;
    width: 100%;
    margin: 1.5rem auto;
}

/* Media queries para asegurar el centrado en todas las pantallas */
@media (max-width: 1200px) {
    h1, h2, h3, h4, h5, h6 {
        text-align: center;
        width: 90%;
    }
}

@media (max-width: 992px) {
    h1, h2, h3, h4, h5, h6 {
        text-align: center;
        width: 95%;
    }
}

@media (max-width: 768px) {
    h1, h2, h3, h4, h5, h6 {
        text-align: center;
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    h1, h2, h3, h4, h5, h6 {
        text-align: center;
        width: 100%;
        padding: 0 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        width: 100%;
        padding: 0 0.5rem;
    }
}

/* Ajustes para contenedores de títulos */
.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

/* Ajustes para títulos con iconos */
.title-with-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
}

.title-with-icon i {
    font-size: 1.5em;
    color: var(--primary-color);
}

/* Ajustes para títulos con líneas decorativas */
.title-with-lines {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.title-with-lines::before,
.title-with-lines::after {
    content: '';
    height: 2px;
    width: 50px;
    background: var(--primary-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.title-with-lines::before {
    left: calc(50% - 100px);
}

.title-with-lines::after {
    right: calc(50% - 100px);
}

/* Ajustes específicos para cada sección */
.hero {
    padding-top: 0;
}

.hero h1 {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: none;
    box-shadow: none;
}

.diccionario-section > h2,
.features > h2,
.cultura-section > h2,
.recursos-descargables > h2,
.estadisticas-section > h2,
.recursos-gratuitos > h2,
.recursos-adicionales > h2,
.testimonials > h2,
.recursos-multimedia > h2,
.cta-section > h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Ajustes para subtítulos y títulos de tarjetas */
.feature-card h2,
.cultura-card h3,
.recurso-card h3,
.estadistica-card h3,
.testimonial-card h4,
.video-info h4,
.podcast-info h4 {
    text-align: center;
    margin: 15px 0;
    color: #2c3e50;
}

/* Ajustes para el diccionario */
.diccionario-stats {
    text-align: center;
    margin: 20px 0;
}

/* Ajustes para el footer */
.footer-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Ajustes para el chatbot */
.chatbot-header h3 {
    text-align: center;
    margin: 0;
    padding: 15px;
    background: #007bff;
    color: white;
}

/* Ajustes para la sección de recursos adicionales */
.recursos-adicionales .recurso-card h3 {
    text-align: center;
    margin: 15px 0;
    color: #2c3e50;
}

/* Ajustes para la sección de multimedia */
.multimedia-section h3 {
    text-align: center;
    margin: 20px 0;
    color: #2c3e50;
}

/* Ajustes para la sección de testimonios */
.testimonial-author h4 {
    text-align: center;
    margin: 10px 0;
    color: #2c3e50;
}

/* Ajustes para la sección de cultura */
.cultura-card h3 {
    text-align: center;
    margin: 15px 0;
    color: #2c3e50;
}

/* Ajustes para la sección de estadísticas */
.estadistica-card h3 {
    text-align: center;
    margin: 10px 0;
    color: #2c3e50;
}

.estadistica-card .numero {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    color: #007bff;
}

/* Ajustes para la sección de recursos descargables */
.recurso-card h3 {
    text-align: center;
    margin: 15px 0;
    color: #2c3e50;
}

/* Ajustes para la sección de recursos gratuitos */
.recurso-card h3 {
    text-align: center;
    margin: 15px 0;
    color: #2c3e50;
}

/* Ajustes para la sección de recursos adicionales */
.palabra-dia h4 {
    text-align: center;
    margin: 10px 0;
    color: #2c3e50;
}

/* Ajustes para la sección de frases útiles */
.frase .catalan,
.frase .espanol {
    text-align: center;
    margin: 5px 0;
    color: #2c3e50;
}

/* Ajustes para la sección de subtítulos interactivos */
.subtitles-controls {
    text-align: center;
    margin: 15px 0;
}

/* Ajustes para la sección de CTA */
.cta-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.cta-content p {
    text-align: center;
    margin-bottom: 30px;
    color: #6c757d;
}

.cta-buttons {
    text-align: center;
}

/* Ajustes para la sección de diccionario */
.resultado-header h3 {
    text-align: center;
    margin: 15px 0;
    color: #2c3e50;
}

.significado h4,
.ejemplos h4 {
    text-align: center;
    margin: 10px 0;
    color: #2c3e50;
}

/* Ajustes para la sección de búsquedas recientes */
.recent-searches h4 {
    text-align: center;
    margin: 15px 0;
    color: #2c3e50;
}

/* Ajustes para la sección de audio */
.audio-info h4 {
    text-align: center;
    margin: 10px 0;
    color: #2c3e50;
}

.audio-description {
    text-align: center;
    margin: 10px 0;
    color: #6c757d;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    section > h2 {
        font-size: 1.5rem;
        padding: 0 15px;
    }

    .feature-card h2,
    .cultura-card h3,
    .recurso-card h3,
    .estadistica-card h3 {
        font-size: 1.2rem;
    }
}

/* Hero Section */
.hero {
    background: var(--gradient-primary),
                url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Estilos para los botones del hero */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.hero-btn.primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.hero-btn.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn.primary:hover {
    background-color: var(--hover-color);
    color: var(--secondary-color);
}

.hero-btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Content Section */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.content-section h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Info Cards */
.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.info-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.info-card li {
    margin-bottom: 0.5rem;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card ul {
    list-style: none;
    text-align: left;
}

.resource-card ul li {
    margin-bottom: 0.5rem;
}

.resource-card a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-card a:hover {
    color: var(--accent-color);
}

/* Grammar Grid */
.grammar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grammar-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.grammar-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.grammar-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.grammar-card ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.grammar-card li {
    margin-bottom: 0.5rem;
}

/* Level Buttons */
.level-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.level-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-color);
    background: none;
    color: var(--accent-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.level-btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

.level-btn.active {
    background: var(--accent-color);
    color: var(--white);
}

/* Exercises Grid */
.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.exercise-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.exercise-card:hover {
    transform: translateY(-5px);
}

.exercise-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.exercise-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.exercise-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.exercise-content ul {
    list-style: none;
    text-align: left;
}

.exercise-content ul li {
    margin-bottom: 0.5rem;
}

.exercise-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.exercise-content a:hover {
    color: var(--accent-color);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.game-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.game-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.game-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.game-btn:hover {
    background-color: var(--primary-color);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: var(--light-bg);
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer Styles */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-section a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-section p {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .features {
        padding: 2rem 1rem;
    }

    .content-section {
        padding: 1rem;
    }

    .content-section h1 {
        font-size: 2rem;
    }

    .resources-grid,
    .grammar-grid,
    .exercises-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }

    .level-buttons {
        gap: 0.25rem;
    }

    .level-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .game-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Estilos para la página de cultura */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.culture-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.culture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.culture-card:hover::before {
    transform: translateX(100%);
}

.culture-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.culture-card:hover i {
    transform: scale(1.1);
}

.culture-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.culture-card:hover h2 {
    color: var(--hover-color);
}

.culture-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.culture-content ul {
    list-style: none;
    padding: 0;
}

.culture-content li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.culture-content li:hover {
    transform: translateX(5px);
}

.culture-content li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    transition: color 0.3s ease;
}

.culture-content li:hover:before {
    color: var(--hover-color);
}

/* Mejoras en accesibilidad */
.culture-card:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.culture-link-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
    text-align: center;
    border: 2px solid var(--primary-color);
    font-weight: 500;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.culture-link-btn:hover,
.culture-link-btn:focus {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.culture-link-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
}

/* Mejoras en responsividad */
@media (max-width: 768px) {
    .culture-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .culture-card {
        padding: 1.5rem;
    }

    .culture-card h2 {
        font-size: 1.3rem;
    }

    .culture-content h3 {
        font-size: 1.1rem;
    }
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.culture-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Efecto de brillo en hover */
.culture-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.culture-card:hover::after {
    opacity: 1;
}

/* Estilos para la página de contacto */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    width: 2rem;
    text-align: center;
}

.social-contact {
    margin-top: 2rem;
}

.social-contact h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--primary-color);
}

/* Estilos para la página del foro */
.forum-container {
    margin-top: 2rem;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.new-topic-btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.new-topic-btn:hover {
    background-color: var(--primary-color);
}

.forum-search {
    display: flex;
    gap: 0.5rem;
}

.forum-search input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 300px;
}

.forum-search button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0 1rem;
    cursor: pointer;
}

.forum-category {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.forum-category h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forum-category h2 i {
    color: var(--accent-color);
}

.topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.topic:last-child {
    border-bottom: none;
}

.topic-info h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.topic-info p {
    color: #666;
    font-size: 0.9rem;
}

.topic-stats {
    display: flex;
    gap: 1rem;
}

.topic-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
}

.topic-stats i {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .forum-header {
        flex-direction: column;
        gap: 1rem;
    }

    .forum-search input {
        width: 100%;
    }

    .topic {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .topic-stats {
        width: 100%;
        justify-content: flex-start;
    }
}

.entrevista-preview {
    background-color: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.entrevista-preview .container {
    max-width: 800px;
    margin: 0 auto;
}

.entrevista-preview h2 {
    color: #1a237e;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.entrevista-preview p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #1a237e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #283593;
}

.entrevista-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.intro-section {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.entrevista-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.entrevista-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.pregunta h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.resposta {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.resposta p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.resposta ul {
    list-style-type: none;
    padding-left: 1.5rem;
}

.resposta ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.resposta ul li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: -1.5rem;
}

.image-gallery {
    padding: 3rem 2rem;
    background: var(--light-bg);
}

.image-gallery h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.image-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.image-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.map-container {
    padding: 3rem 2rem;
    background: var(--white);
}

.map-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.map-container iframe {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .entrevista-content {
        padding: 1rem;
    }

    .entrevista-section {
        padding: 1.5rem;
    }

    .intro-section h2 {
        font-size: 2rem;
    }

    .entrevista-section h3 {
        font-size: 1.5rem;
    }

    .pregunta h4 {
        font-size: 1.1rem;
    }

    .image-cards {
        grid-template-columns: 1fr;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.scroll-to-top:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Media queries para el botón de subir */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 25px;
        right: 25px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

@media (max-width: 320px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Asegurar que el botón sea visible en modo oscuro */
@media (prefers-color-scheme: dark) {
    .scroll-to-top {
        box-shadow: 0 2px 5px rgba(255,255,255,0.2);
    }
}

/* Estilos para las imágenes en las tarjetas */
.about-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Estilos para la lista de dialectos */
.dialect-list {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

.dialect-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

/* Estilos para la sección multimedia */
.multimedia-section {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.video-container {
    margin: 20px 0;
    text-align: center;
}

.video-container iframe {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para la cuadrícula de artículos */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card h3 {
    padding: 15px;
    margin: 0;
    color: #333;
}

.article-card p {
    padding: 0 15px 15px;
    color: #666;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    margin: 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #45a049;
}

/* Estilos para la sección de recursos de aprendizaje */
.learning-resources {
    margin: 40px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.resource-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resource-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.resource-card ul {
    list-style: none;
    padding: 0;
}

.resource-card ul li {
    margin-bottom: 0.8rem;
}

.resource-card ul li a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-card ul li a:hover {
    color: #2980b9;
}

@media (max-width: 768px) {
    .articles-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .video-container iframe {
        height: 250px;
    }
}

.multimedia-resources {
    margin-top: 2rem;
    padding: 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.video-card h3 {
    padding: 1rem;
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.video-card p {
    padding: 0 1rem 1rem;
    color: #666;
    margin: 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.image-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-card h3 {
    padding: 1rem;
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.image-card p {
    padding: 0 1rem 1rem;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .video-grid, .image-grid {
        grid-template-columns: 1fr;
    }
    
    .video-card iframe {
        height: 250px;
    }
} 





.recursos-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.recurso-section {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.recurso-section:hover {
    transform: translateY(-5px);
}

.recurso-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
}

.recurso-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3498db;
}

.recurso-item h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.descripcion {
    color: #34495e;
    line-height: 1.6;
}

.btn-recurso {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.btn-recurso:hover {
    background-color: var(--hover-color);
}

.image-gallery {
    padding: 2rem;
    background: #f8f9fa;
}

.image-gallery h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.image-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.image-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: scale(1.05);
}

.image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

ul li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.intro-section {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.intro-text {
    color: #34495e;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .recursos-content {
        padding: 1rem;
    }

    .recurso-section {
        padding: 1.5rem;
    }

    .image-cards {
        grid-template-columns: 1fr;
    }
}

.section-button {
    text-align: center;
    margin: 20px 0;
}

.section-button .btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #ff6b6b;
}

.section-button .btn:hover {
    background-color: white;
    color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section-button .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-image {
    flex: 0 0 350px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main-logo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.logo-description {
    flex: 1;
    padding: 1rem;
}

.logo-description h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.logo-description p {
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.logo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--light-bg);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid transparent;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.social-link i {
    margin-right: 0.8rem;
    font-size: 1.3rem;
}

/* Colores específicos para cada red social */
.social-link:nth-child(1) i { color: #1877f2; } /* Facebook */
.social-link:nth-child(2) i { color: #000000; } /* TikTok */
.social-link:nth-child(3) i { color: #ff0000; } /* YouTube */
.social-link:nth-child(4) i { color: var(--primary-color); } /* Portal Heavy Metal */
.social-link:nth-child(5) i { color: var(--hover-color); } /* Revista Urukais */

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .logo-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .logo-description h3 {
        font-size: 1.8rem;
    }

    .logo-description p {
        font-size: 1.1rem;
    }

    .logo-links {
        justify-content: center;
    }

    .social-link {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

.contact-social-section {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-image {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.contact-main-image:hover {
    transform: scale(1.02);
}

.contact-social-links h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-card:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.social-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.social-card span {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.social-card p {
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Colores específicos para cada red social */
.social-card:nth-child(1) i { color: #1877f2; } /* Facebook */
.social-card:nth-child(2) i { color: #000000; } /* TikTok */
.social-card:nth-child(3) i { color: #ff0000; } /* YouTube */
.social-card:nth-child(4) i { color: var(--primary-color); } /* Portal Heavy Metal */
.social-card:nth-child(5) i { color: var(--hover-color); } /* Revista Urukais */

@media (max-width: 768px) {
    .contact-social-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .contact-social-links h3 {
        font-size: 1.8rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .social-card {
        padding: 1.5rem;
    }

    .social-card i {
        font-size: 2rem;
    }

    .social-card span {
        font-size: 1.2rem;
    }
}

.web-dev-article {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.web-dev-article h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.article-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.article-image {
    flex: 0 0 40%;
}

.article-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.article-img:hover {
    transform: scale(1.02);
}

.article-text {
    flex: 1;
}

.article-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.article-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.tech-stack {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.tech-stack h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tech-stack ul {
    list-style: none;
    padding: 0;
}

.tech-stack li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tech-stack li i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.article-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature h5 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-color);
}

.article-cta {
    text-align: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.cta-button:hover {
    background-color: var(--white);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .article-content {
        flex-direction: column;
        gap: 2rem;
    }

    .article-image {
        flex: 0 0 auto;
    }

    .article-features {
        grid-template-columns: 1fr;
    }

    .web-dev-article h2 {
        font-size: 2rem;
    }

    .article-text h3 {
        font-size: 1.5rem;
    }

    .tech-stack li {
        font-size: 1rem;
    }
}

/* Estilos para la página de cultura */
.intro-text {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
}

.video-section {
    margin: 3rem 0;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.culture-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.culture-card:hover {
    transform: translateY(-5px);
}

.culture-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.culture-card ul {
    list-style: none;
    padding: 0;
}

.culture-card ul li {
    margin-bottom: 0.8rem;
}

.culture-card ul li a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.culture-card ul li a:hover {
    color: #2980b9;
}

.card-description {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.additional-info {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.resource-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resource-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.resource-card ul {
    list-style: none;
    padding: 0;
}

.resource-card ul li {
    margin-bottom: 0.8rem;
}

.resource-card ul li a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-card ul li a:hover {
    color: #2980b9;
}

@media (max-width: 768px) {
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        margin: 0 1rem;
    }
}

/* Estilos para los botones de enlaces en la página de cultura */
.culture-link-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
    text-align: center;
    border: 2px solid var(--primary-color);
    font-weight: 500;
    width: 100%;
}

.culture-link-btn:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.culture-card ul li {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.culture-card ul li span {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.resource-link-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
    text-align: center;
    border: 2px solid var(--accent-color);
    font-weight: 500;
    width: 100%;
}

.resource-link-btn:hover {
    background-color: white;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.resource-card ul li {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.resource-card ul li span {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Estilos para el botón de volver */
.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-btn i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .back-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Estilos para los botones de recursos */
.resource-buttons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-buttons li {
    margin: 10px 0;
}

.resource-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FFD700; /* Amarillo */
    color: #000000; /* Texto negro para mejor contraste */
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #FFA500; /* Borde naranja */
}

.resource-button:hover {
    background-color: #FF0000; /* Rojo al pasar el mouse */
    color: #FFFFFF; /* Texto blanco al pasar el mouse */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-color: #CC0000; /* Borde rojo oscuro */
}

.resource-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background-color: #CC0000; /* Rojo más oscuro al hacer clic */
}

/* Estilos para la sección Why Learn */
.why-learn {
    padding: 4rem 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

.why-learn h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reason-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-10px);
}

.reason-card i {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 1.5rem;
}

.reason-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Estilos para la sección Learning Path */
.learning-path {
    padding: 4rem 2rem;
    text-align: center;
}

.learning-path h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.path-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    position: relative;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #FFD700;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Estilos para la sección Testimonials */
.testimonials {
    padding: 4rem 2rem;
    background: var(--white);
}

.testimonial-card {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    margin: 1rem;
    position: relative;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -2rem;
    left: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

/* Estilos para la sección CTA */
.cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.cta-btn.primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.cta-btn.secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.cta-btn.primary:hover {
    background-color: var(--hover-color);
    color: var(--secondary-color);
}

.cta-btn.secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .path-steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 100%;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Sección de Dialectos */
.dialectos-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.dialectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dialecto-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dialecto-card:hover {
    transform: translateY(-5px);
}

.dialecto-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dialecto-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.dialecto-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.dialecto-card ul li {
    padding: 0.5rem 0;
    color: #666;
}

/* Sección de Cultura */
.cultura-section {
    padding: 4rem 2rem;
    background-color: white;
}

.cultura-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cultura-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cultura-card:hover {
    transform: translateY(-5px);
}

.cultura-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cultura-card h3 {
    color: #2c3e50;
    padding: 1.5rem 1.5rem 0.5rem;
}

.cultura-card p {
    color: #666;
    padding: 0 1.5rem;
}

.cultura-card ul {
    list-style: none;
    padding: 1rem 1.5rem;
    margin: 0;
}

.cultura-card ul li {
    padding: 0.5rem 0;
    color: #666;
}

/* Sección de Estadísticas */
.estadisticas-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: var(--secondary-color);
}

.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.estadistica-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.estadistica-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.estadistica-card .numero {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* Sección de Recursos Gratuitos */
.recursos-gratuitos {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.recurso-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.recurso-card:hover {
    transform: translateY(-5px);
}

.recurso-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recurso-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.btn-recurso {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.btn-recurso:hover {
    background-color: var(--hover-color);
}

/* Media Queries */
@media (max-width: 768px) {
    .dialectos-grid,
    .cultura-grid,
    .estadisticas-grid,
    .recursos-grid {
        grid-template-columns: 1fr;
    }

    .dialecto-card,
    .cultura-card,
    .estadistica-card,
    .recurso-card {
        margin: 1rem 0;
    }
}

/* Estilos para la sección de gramática */
.grammar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.grammar-section {
    margin-bottom: 3rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grammar-article {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.grammar-article:hover {
    transform: translateY(-5px);
}

.grammar-article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grammar-article h3 {
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
}

.grammar-article p {
    color: var(--text-color);
    padding: 0 1.5rem 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0 1.5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.read-more:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* Estilos para los botones de nivel */
.level-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.level-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    background: none;
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.level-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.level-btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Estilos para la sección de videos */
.video-section {
    margin-top: 4rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.video-card h3 {
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
}

.video-card p {
    color: var(--text-color);
    padding: 0 1.5rem 1.5rem;
}

/* Estilos para la sección de ejercicios */
.exercise-section {
    margin-top: 4rem;
}

.exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.exercise-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.exercise-card:hover {
    transform: translateY(-5px);
}

.exercise-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.exercise-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.start-exercise {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.start-exercise:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .level-buttons {
        flex-direction: column;
        align-items: center;
    }

    .level-btn {
        width: 100%;
        max-width: 300px;
    }

    .article-grid,
    .video-grid,
    .exercise-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para artículos de gramática */
.grammar-article {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.grammar-article h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}

.article-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.article-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.article-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.article-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Estilos para la tabla de pronombres */
.pronoun-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.pronoun-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.pronoun-table th,
.pronoun-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #dee2e6;
}

.pronoun-table th {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.pronoun-table tr:nth-child(even) {
    background: #f8f9fa;
}

.pronoun-table tr:hover {
    background: #e9ecef;
}

/* Estilos para ejemplos */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.example-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
}

.example-card p:first-child {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.example-card p:last-child {
    color: #666;
    font-style: italic;
}

/* Estilos para el video */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 2rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilos para ejercicios */
.exercises {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.exercise h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.exercise ol {
    padding-left: 1.5rem;
}

.exercise li {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Estilos para recursos */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.resource-card {
    display: block;
    padding: 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.resource-card:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .grammar-article {
        padding: 1rem;
        margin: 1rem;
    }

    .article-section {
        padding: 1rem;
    }

    .grammar-article h1 {
        font-size: 2rem;
    }

    .article-section h2 {
        font-size: 1.5rem;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-section {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Estilos para el texto */
.article-section p {
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Estilos para listas */
.article-section ul,
.article-section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Estilos para enlaces dentro del artículo */
.article-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.recursos-descargables {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 1000px;
    margin: 0 auto 2rem auto;
}

.recursos-grid:last-child {
    margin-bottom: 0;
}

.recurso-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .recursos-grid {
        gap: 1rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .recursos-grid {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .recurso-card {
        padding: 0.8rem;
    }
}

.chatbot-container {
    position: fixed;
    left: 30px;  /* Cambiado de right a left */
    bottom: 30px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.chatbot-box {
    position: fixed;
    left: 30px;  /* Cambiado de right a left */
    bottom: 100px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

/* Media queries para el chatbot */
@media (max-width: 768px) {
    .chatbot-container {
        left: 25px;  /* Cambiado de right a left */
        bottom: 25px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .chatbot-box {
        left: 25px;  /* Cambiado de right a left */
        bottom: 90px;
        width: 300px;
        height: 450px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        left: 20px;  /* Cambiado de right a left */
        bottom: 20px;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .chatbot-box {
        left: 20px;  /* Cambiado de right a left */
        bottom: 80px;
        width: 280px;
        height: 400px;
    }
}

@media (max-width: 320px) {
    .chatbot-container {
        left: 15px;  /* Cambiado de right a left */
        bottom: 15px;
    }

    .chatbot-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .chatbot-box {
        left: 15px;  /* Cambiado de right a left */
        bottom: 70px;
        width: 260px;
        height: 380px;
    }
}





.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 4rem 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mejoras en la sección de características */
.features {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    text-align: center;
    transition: var(--transition);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-card:hover i {
    transform: scale(1.1);
}

/* Mejoras en la sección de testimonios */
.testimonials {
    padding: 4rem 2rem;
    background: var(--white);
}

.testimonial-card {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    margin: 1rem;
    position: relative;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -2rem;
    left: -1rem;
}

/* Mejoras en la sección de recursos */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.resource-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Mejoras en la sección de cultura */
.culture-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.culture-img {
    transition: var(--transition);
}

.culture-card:hover .culture-img {
    transform: scale(1.05);
}

.culture-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--card-padding);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
}

/* Mejoras en la navegación */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mejoras en el footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-section a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-section p {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .features, .testimonials, .resources-grid {
        padding: 2rem 1rem;
    }
    
    .culture-content {
        position: relative;
        background: var(--secondary-color);
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Animaciones y efectos visuales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Aplicar animaciones a elementos */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card {
    animation: scaleIn 0.6s ease-out;
}

.testimonial-card {
    animation: slideIn 0.6s ease-out;
}

/* Efectos de hover mejorados */
.card, .feature-card, .resource-card, .culture-card, .testimonial-card {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before, .feature-card::before, .resource-card::before, .culture-card::before, .testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover::before, .feature-card:hover::before, .resource-card:hover::before, .culture-card:hover::before, .testimonial-card:hover::before {
    opacity: 0.1;
}

/* Efectos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejoras en el scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        var(--primary-color),
        var(--hover-color)
    );
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

/* Efectos de carga progresiva */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Mejoras en el contraste y legibilidad */
.text-shadow {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.box-shadow {
    box-shadow: var(--shadow);
}

.box-shadow-hover:hover {
    box-shadow: var(--shadow-hover);
}

/* Efectos de profundidad */
.depth-1 {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.depth-2 {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.depth-3 {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Efectos de glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Mejoras en el diseño responsivo */
@media (max-width: 768px) {
    .glass {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .depth-1, .depth-2, .depth-3 {
        box-shadow: var(--shadow);
    }
}

/* Animaciones de tipografía */
@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                     0 0 20px rgba(255, 215, 0, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
                     0 0 30px rgba(255, 215, 0, 0.3),
                     0 0 40px rgba(255, 215, 0, 0.2);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                     0 0 20px rgba(255, 215, 0, 0.2);
    }
}

@keyframes textSlide {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes textWave {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes textGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Estilos para títulos animados */
.hero h1 {
    animation: textGlow 3s infinite, textSlide 1s ease-out;
    background: linear-gradient(45deg, var(--primary-color), var(--hover-color), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 3s linear infinite;
}

section > h2 {
    animation: textWave 2s ease-in-out infinite;
    position: relative;
}

section > h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-50%);
    animation: lineWidth 2s ease-in-out infinite;
}

@keyframes lineWidth {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

.feature-card h2,
.cultura-card h3,
.recurso-card h3,
.estadistica-card h3,
.testimonial-card h4 {
    animation: textGlow 3s infinite;
    transition: transform 0.3s ease;
}

.feature-card h2:hover,
.cultura-card h3:hover,
.recurso-card h3:hover,
.estadistica-card h3:hover,
.testimonial-card h4:hover {
    transform: scale(1.05);
}

/* Efecto de máquina de escribir para subtítulos */
.hero .subtitle {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end),
               blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Efecto de revelación para títulos de sección */
.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    animation: reveal 2s ease-in-out infinite;
}

@keyframes reveal {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Efecto de rotación 3D para títulos especiales */
.special-title {
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: rotate3D 5s infinite linear;
}

@keyframes rotate3D {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Efecto de rebote para títulos de tarjetas */
.card-title {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Media queries para animaciones responsivas */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
        animation: textSlide 1s ease-out;
    }
    
    .hero .subtitle {
        animation: none;
        white-space: normal;
        border-right: none;
    }
    
    .special-title {
        animation: none;
    }
}

/* Efectos de energía y pulso para botones */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes energyGlow {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Estilos base para botones con efectos */
.btn,
.hero-btn,
.cta-btn,
.level-btn,
.game-btn,
.submit-btn,
.new-topic-btn,
.btn-recurso,
.culture-link-btn,
.resource-link-btn,
.back-btn,
.cta-button,
.social-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, var(--primary-color), var(--hover-color), var(--primary-color));
    background-size: 200% auto;
    border: none;
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    animation: energyGlow 3s infinite;
}

/* Efecto de pulso al hover */
.btn:hover,
.hero-btn:hover,
.cta-btn:hover,
.level-btn:hover,
.game-btn:hover,
.submit-btn:hover,
.new-topic-btn:hover,
.btn-recurso:hover,
.culture-link-btn:hover,
.resource-link-btn:hover,
.back-btn:hover,
.cta-button:hover,
.social-link:hover {
    animation: buttonPulse 1s infinite, energyGlow 3s infinite;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Efecto de energía al hacer clic */
.btn:active,
.hero-btn:active,
.cta-btn:active,
.level-btn:active,
.game-btn:active,
.submit-btn:active,
.new-topic-btn:active,
.btn-recurso:active,
.culture-link-btn:active,
.resource-link-btn:active,
.back-btn:active,
.cta-button:active,
.social-link:active {
    animation: pulse 1s;
    transform: scale(0.95);
}

/* Efecto de brillo en el borde */
.btn::before,
.hero-btn::before,
.cta-btn::before,
.level-btn::before,
.game-btn::before,
.submit-btn::before,
.new-topic-btn::before,
.btn-recurso::before,
.culture-link-btn::before,
.resource-link-btn::before,
.back-btn::before,
.cta-button::before,
.social-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--hover-color), 
        var(--primary-color), 
        var(--hover-color));
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 32px;
    animation: energyGlow 3s ease infinite;
}

/* Efecto de partículas al hover */
.btn::after,
.hero-btn::after,
.cta-btn::after,
.level-btn::after,
.game-btn::after,
.submit-btn::after,
.new-topic-btn::after,
.btn-recurso::after,
.culture-link-btn::after,
.resource-link-btn::after,
.back-btn::after,
.cta-button::after,
.social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.3) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::after,
.hero-btn:hover::after,
.cta-btn:hover::after,
.level-btn:hover::after,
.game-btn:hover::after,
.submit-btn:hover::after,
.new-topic-btn:hover::after,
.btn-recurso:hover::after,
.culture-link-btn:hover::after,
.resource-link-btn:hover::after,
.back-btn:hover::after,
.cta-button:hover::after,
.social-link:hover::after {
    opacity: 1;
}

/* Ajustes responsivos para botones */
@media (max-width: 768px) {
    .btn,
    .hero-btn,
    .cta-btn,
    .level-btn,
    .game-btn,
    .submit-btn,
    .new-topic-btn,
    .btn-recurso,
    .culture-link-btn,
    .resource-link-btn,
    .back-btn,
    .cta-button,
    .social-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn,
    .hero-btn,
    .cta-btn,
    .level-btn,
    .game-btn,
    .submit-btn,
    .new-topic-btn,
    .btn-recurso,
    .culture-link-btn,
    .resource-link-btn,
    .back-btn,
    .cta-button,
    .social-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Separadores animados */
.energy-separator {
    position: relative;
    height: 2px;
    margin: 3rem 0;
    overflow: hidden;
}

.energy-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-color),
        var(--hover-color),
        var(--primary-color),
        transparent
    );
    animation: energyFlow 3s linear infinite;
}

.energy-separator::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-color),
        transparent
    );
    filter: blur(2px);
    opacity: 0.5;
}

/* Separador con puntos de energía */
.energy-dots {
    position: relative;
    height: 4px;
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.energy-dots::before,
.energy-dots::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 1px;
    background: var(--hud-line-color);
    box-shadow: var(--hud-glow);
}

.energy-dots::before {
    left: 0;
}

.energy-dots::after {
    right: 0;
}

.energy-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--hud-glow);
    animation: dotPulse 2s ease-in-out infinite;
}

/* Separador con líneas de energía */
.energy-lines {
    position: relative;
    height: 4px;
    margin: 3rem 0;
    overflow: hidden;
}

.energy-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        var(--primary-color) 20px,
        var(--primary-color) 40px
    );
    animation: linesMove 2s linear infinite;
}

/* Animaciones */
@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes energyFlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes linesMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-40px);
    }
}

/* Clases de utilidad para fondos HUD */
.hud-background {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%,
        rgba(255, 215, 0, 0.1) 100%
    );
    border: 1px solid var(--hud-line-color);
    box-shadow: var(--hud-glow);
}

.hud-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, var(--hud-grid-color) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(0deg, var(--hud-grid-color) 1px, transparent 1px) 0 0 / 20px 20px;
    pointer-events: none;
    z-index: -1;
    animation: gridPulse 4s ease-in-out infinite;
}

/* Efecto de borde HUD */
.hud-border {
    position: relative;
    border: 1px solid var(--hud-line-color);
    box-shadow: var(--hud-glow);
}

.hud-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent,
        var(--primary-color),
        transparent
    );
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Media queries para efectos responsivos */
@media (max-width: 768px) {
    body::before {
        background-size: 30px 30px;
    }
    
    section::before {
        background-size: 20px 20px;
    }
    
    .energy-dots {
        gap: 0.5rem;
    }
    
    .energy-dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    body::before {
        background-size: 20px 20px;
    }
    
    section::before {
        background-size: 15px 15px;
    }
    
    .energy-dots {
        gap: 0.3rem;
    }
    
    .energy-dot {
        width: 4px;
        height: 4px;
    }
}

/* Efectos HUD adicionales */
.hud-corner {
    position: relative;
}

.hud-corner::before,
.hud-corner::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--hud-glow);
}

.hud-corner::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.hud-corner::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Efecto de escaneo */
.hud-scan {
    position: relative;
    overflow: hidden;
}

.hud-scan::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-color),
        transparent
    );
    animation: scanLine 3s linear infinite;
    box-shadow: var(--hud-glow);
}

@keyframes scanLine {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

/* Efecto de datos */
.hud-data {
    position: relative;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    text-shadow: var(--hud-glow);
}

.hud-data::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-color),
        transparent
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Efecto de partículas */
.hud-particles {
    position: relative;
}

.hud-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, var(--primary-color) 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, var(--primary-color) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, var(--primary-color) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, var(--primary-color) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.3;
    animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* Efecto de conexión */
.hud-connection {
    position: relative;
}

.hud-connection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, var(--primary-color) 49%, var(--primary-color) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--primary-color) 49%, var(--primary-color) 51%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.2;
    animation: connectionPulse 2s ease-in-out infinite;
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

/* Efecto de holograma */
.hud-hologram {
    position: relative;
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.1),
        rgba(255, 215, 0, 0.2)
    );
    backdrop-filter: blur(5px);
    border: 1px solid var(--hud-line-color);
    box-shadow: var(--hud-glow);
}

.hud-hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        var(--hud-line-color) 2px,
        var(--hud-line-color) 4px
    );
    opacity: 0.1;
    animation: hologramScan 3s linear infinite;
}

@keyframes hologramScan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

/* Efecto de interfaz */
.hud-interface {
    position: relative;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--hud-line-color);
    box-shadow: var(--hud-glow);
}

.hud-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, var(--hud-line-color) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(0deg, var(--hud-line-color) 1px, transparent 1px) 0 0 / 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

/* Efecto de carga */
.hud-loading {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 215, 0, 0.1);
    overflow: hidden;
}

.hud-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-color),
        transparent
    );
    animation: loadingProgress 2s linear infinite;
}

@keyframes loadingProgress {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Media queries para efectos responsivos */
@media (max-width: 768px) {
    .hud-corner::before,
    .hud-corner::after {
        width: 15px;
        height: 15px;
    }
    
    .hud-particles::before {
        background-size: 50px 50px;
    }
    
    .hud-connection::before {
        background-size: 15px 15px;
    }
}

@media (max-width: 480px) {
    .hud-corner::before,
    .hud-corner::after {
        width: 10px;
        height: 10px;
    }
    
    .hud-particles::before {
        background-size: 30px 30px;
    }
    
    .hud-connection::before {
        background-size: 10px 10px;
    }
}

/* Tarjetas Responsive con Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.card-modern {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Galería con Zoom */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Loaders */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Spinner Loader */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-bg);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dots Loader */
.dots-loader {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Barra de Carga */
.progress-bar {
    width: 200px;
    height: 6px;
    background: var(--light-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--primary-color);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* Tooltip Personalizado */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--secondary-color) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-image {
        height: 250px;
    }

    [data-tooltip]::before {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        height: 200px;
    }
}