/* --- Reset Básico y Fuentes --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    background-color: var(--color-dark-primary);
    color: #ccc;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 h2 h3 h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 0.8em;
    color: var(--text-light);
}

.cursos-section h2 {
    color: var(--color-dark-primary);
}

.demo-visual-container .demo-text {
    font-weight: 700;
    color: var(--color-dark-primary);
    font-family: 'Montserrat', sans-serif;
    margin-top: 1.5rem;
    text-align: center;
}


/* --- Paleta de Colores Oficiales --- */
:root {
    --color-dark-primary: #23263d;
    --color-accent-orange: #ffb601;
    --color-accent-magenta: #c50069;
    --color-accent-blue: #00a0f0;
    --color-accent-red: #00FFFF;

    --primary-blue: var(--color-accent-blue);
    --accent-red: var(--color-accent-magenta);
    --accent-yellow: var(--color-accent-orange);
    --accent-orange: var(--color-accent-orange);
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --bg-light: #f4f7f9;
    --bg-white: #FFFFFF;
    --border-light: #e0e0e0;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 92, 187, 0.15);

    --space-dark-bg: #1a1d2f;
    --space-darker-bg: #1a1d2f;
    --neon-blue: var(--color-accent-blue);
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}


/* --- Header --- */
.main-header {
    background-color: var(--color-dark-primary);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-header .logo {
    height: 45px;
    filter: none;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-accent-orange);
}

.main-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-accent-blue);
}

.greeting-time {
    font-size: 1rem;
    color: var(--color-accent-orange);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}


/* --- Hero Section --- */
.hero-section {
    background-image: url('galaxy.gif');
    background-size: cover;
    background-position: center;
    background-color: var(--color-dark-primary);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 3rem 20px 5rem 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    box-shadow: inset 0 -50px 100px rgba(0, 0, 0, 0.5);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0.5px, transparent 0.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 0.5px, transparent 0.5px);
    background-size: 50px 50px, 100px 100px;
    background-position: 0 0, 25px 25px;
    opacity: 0.5;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(var(--color-accent-magenta), 0.3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(45deg);
    opacity: 0.7;
    z-index: 1;
    filter: blur(5px);
    animation: floatShape 8s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background-color: rgba(var(--color-accent-blue), 0.3);
    border-radius: 50%;
    opacity: 0.5;
    z-index: 1;
    filter: blur(7px);
    animation: floatShape 10s ease-in-out infinite alternate reverse;
}

.hero-image-container {
    flex-shrink: 0;
    width: 300px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 2;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpContent 0.8s ease-out forwards 0.5s;
}

.neon-text-banner {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #0957a2;
    text-shadow: none;
    animation: none;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-content {
    flex-grow: 1;
    max-width: 700px;
    text-align: center;
    color: var(--text-light);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpContent 0.8s ease-out forwards 0.7s;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.4em;
    color: var(--text-light);
}

.highlight-text {
    color: var(--color-accent-orange);
}

.hero-content .subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.beneficios-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.5rem auto;
    display: inline-block;
    text-align: left;
}

.beneficios-list li {
    margin-bottom: 0.6rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.benefit-icon {
    color: var(--color-accent-orange);
    margin-right: 10px;
    font-size: 1.2em;
}

.hero-content .subtexto {
    font-size: 1rem;
    margin: 0 auto 2rem auto;
    opacity: 0.8;
    max-width: 550px;
}


/* --- Botones --- */
.cta-button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center; /* ¡Añadido para centrar el texto del botón! */
}

.primary-cta {
    background: linear-gradient(45deg, var(--color-accent-orange), #ff9500);
    color: var(--color-dark-primary);
    box-shadow: 0 4px 15px rgba(var(--color-accent-orange), 0.4);
    padding: 10px 25px;
    font-size: 0.95rem;
}

.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(var(--color-accent-orange), 0.6);
}

.card-cta {
    background-color: var(--color-accent-blue);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(var(--color-accent-blue), 0.4);
}

.card-cta:hover {
    background-color: #007bb5;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(var(--color-accent-blue), 0.6);
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


/* --- Sección Cursos --- */
.cursos-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--color-dark-primary);
    margin-bottom: 1rem;
}

.styled-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent-magenta) 50%, transparent 100%);
    border: none;
    margin: 0 auto 3.5rem auto;
    border-radius: 2px;
    filter: drop-shadow(0 0 5px rgba(var(--color-accent-magenta), 0.6));
}

.cursos-grid {
    display: grid;
    /* Forzar 4 columnas iguales en PC */
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    align-items: stretch;
    justify-content: center;
}

.curso-card {
    box-shadow: 0 0 8px rgba(var(--neon-blue), 0.6), var(--shadow-soft);
    border-radius: 15px 15px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Retraso escalonado para la animación de aparición */
.cursos-grid .curso-card:nth-child(1) { animation-delay: 0.3s; }
.cursos-grid .curso-card:nth-child(2) { animation-delay: 0.4s; }
.cursos-grid .curso-card:nth-child(3) { animation-delay: 0.5s; }
.cursos-grid .curso-card:nth-child(4) { animation-delay: 0.6s; }


.demo-visual-container {
     opacity: 0;
     transform: translateY(20px);
     animation: fadeInUp 0.6s ease-out forwards;
     animation-delay: 0.5s;
}

.curso-card:hover,
.demo-visual-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(var(--neon-blue), 0.8),
        0 0 30px rgba(var(--color-accent-magenta), 0.6),
        var(--shadow-medium);
}

.card-image-container {
    background-color: var(--color-accent-blue);
    padding: 1rem;
    text-align: center;
}

.card-image-container img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.card-content {
    background-color: var(--color-accent-magenta);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    color: var(--text-light);
}

/* Ajuste de tamaño de fuente para el título de la tarjeta y quitar marquee */
.card-content h3 {
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.2rem; /* Tamaño más pequeño para que quepa */
    white-space: normal; /* Permite que el texto se rompa */
    overflow: visible; /* Asegura que todo el texto sea visible */
    text-overflow: clip; /* Asegura que no haya ellipsis */
    position: static; /* Restaura posición normal */
    /* Animación de banda eliminada */
}

/* Regla del marquee-text eliminada */


.curso-level {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.curso-level.basico {
    background-color: rgba(var(--color-accent-orange), 0.4);
    color: var(--color-accent-blue);
}

.curso-level.combinado {
    background-color: rgba(var(--color-accent-blue), 0.4);
    color: var(--color-accent-orange);
}

.curso-level.intermedio {
    background-color: rgba(var(--color-accent-blue), 0.4);
    color: var(--color-accent-orange);
}

.curso-level.avanzado {
    background-color: rgba(var(--color-accent-blue), 0.4);
    color: var(--color-accent-red);
}

.curso-duration {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.curso-duration i {
    margin-right: 5px;
    color: var(--text-light);
}

.card-content h4 {
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1rem;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    border-top: 1px solid rgba(var(--text-light), 0.3);
    padding-top: 0.8em;
}

.skills-list {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5em;
    flex-grow: 1;
}

.skills-list li {
    margin-bottom: 0.4em;
    display: flex;
    align-items: center;
}

.skills-list i {
    color: var(--color-accent-orange);
    margin-right: 8px;
    font-size: 0.8em;
}

.course-link-internal {
    color: var(--color-accent-orange);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-accent-orange);
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.course-link-internal:hover {
    color: var(--neon-blue);
    border-bottom-color: var(--neon-blue);
}

.card-content .cta-button {
    align-self: center; /* Centra el botón "Ver Detalles" */
    margin-top: auto;
}

/* Estilos para la tarjeta "Próximamente" */
.curso-card.coming-soon-card {
    position: relative;
    overflow: hidden;
    opacity: 0.8;
    pointer-events: none;
}

.curso-card.coming-soon-card .card-image-container,
.curso-card.coming-soon-card .card-content {
    filter: grayscale(80%);
    opacity: 0.6;
}

/* Estilo para la cinta "Próximamente" */
.coming-soon-ribbon {
    position: absolute;
    width: 300px; /* Aumentado ancho */
    top: 30px; /* Ajustado posición */
    right: -80px; /* Ajustado posición */
    padding: 8px 0;
    background-color: var(--color-accent-magenta);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.1rem;
    transform: rotate(45deg);
    transform-origin: 50% 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}


/* --- Estilos para el Celular Animado (si se reincorpora) --- */
.demo-visual-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid rgba(var(--neon-blue), 0.5);
    box-shadow: 0 0 8px rgba(var(--neon-blue), 0.6), var(--shadow-soft);
    border-radius: 15px;
    background-color: var(--bg-white);
}

.demo-visual-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(var(--neon-blue), 0.8),
        0 0 30px rgba(var(--color-accent-magenta), 0.6),
        var(--shadow-medium);
}

.phone {
    width: 300px;
    height: 620px;
    background: #1e1e2f;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    border: 4px solid #000;
    flex-shrink: 0;
}

.phone .screen {
    width: 92%;
    height: 90%;
    background: white;
    margin: 5% auto;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.phone .header {
    height: 55px;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.phone .view {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    height: calc(100% - 55px);
    overflow-y: auto;
    transition: transform 0.7s ease-in-out;
    background: white;
}

.phone .view.overlay {
    transform: translateY(100%);
    z-index: 2;
}

.phone .view.overlay.active {
    transform: translateY(0%);
}

.phone .view.main-view {
    z-index: 1;
}

.phone .app-elements {
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.phone .app-element {
    background: #f7f9fc;
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
}

.phone .app-element:hover {
    background: #e3ecff;
    transform: scale(1.02);
}

.phone .graphs-content,
.phone .extra-content {
    background: #f4f5f9;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.phone .bar-chart {
    width: 200px;
    display: flex;
    align-items: flex-end;
    height: 120px;
    gap: 12px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.phone .bar {
    width: 28px;
    background: var(--color-accent-orange);
    border-radius: 6px 6px 0 0;
    animation: grow 1s ease-out forwards;
    transform-origin: bottom;
    opacity: 0;
}

.phone .donut-chart {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-blue) 0% 40%, var(--color-accent-orange) 40% 75%, #ccc 75% 100%);
    position: relative;
    animation: rotateChart 6s linear infinite;
}

.phone .donut-chart::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background: white;
    border-radius: 50%;
}

.phone .back-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.phone .back-button:hover {
    background-color: #007bb5;
}

.phone .finger {
    width: 38px;
    height: 38px;
    background: #f1c27d;
    border-radius: 50%;
    position: absolute;
    top: -60px;
    left: 120px;
    animation: tapSequence 20s infinite ease-in-out;
    z-index: 3;
    opacity: 0.8;
}


/* --- Sección Banda Transportadora de Logos --- */
.logo-belt-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
    overflow: hidden;
    position: relative;
}

.logo-belt-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.logo-belt-logos {
    display: flex;
    align-items: center;
    gap: 0;
    animation: scroll-logos linear infinite;
    animation-duration: 40s;
}

.logo-belt-logos img {
    height: 80px;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-belt-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Keyframes para la animación de desplazamiento */
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-120px * 13)); }
}


/* --- Footer --- */
.main-footer {
    background-color: var(--color-dark-primary);
    color: rgba(var(--text-light), 0.7);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer-content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px 3rem;
    align-items: start;
    grid-template-areas:
        "left-area right-motto"
        "left-area right-contact";
}

.footer-left {
    grid-area: left-area;
    padding-right: 30px;
    text-align: left;
}

.footer-left .footer-logo img {
    max-width: 150px;
    margin-bottom: 1.5rem;
    filter: none;
}

.footer-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 400px;
    line-height: 1.6;
}

.footer-contact {
    grid-area: right-contact;
    margin-top: 1rem;
    text-align: left;
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--color-accent-orange);
}

.footer-contact h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-content-wrapper .footer-contact .social-links.vertical {
     justify-content: flex-start;
     margin-top: 1rem;
}

.footer-right {
    grid-area: right-motto;
    text-align: right;
}

.footer-motto {
    font-size: 1.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.4;
}

.footer-bottom {
    background-color: var(--space-darker-bg);
    color: rgba(var(--text-light), 0.5);
    padding: 1rem 0;
    font-size: 0.8rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom .copyright,
.footer-bottom .designed-by {
    margin: 5px 0;
}


/* Floating WhatsApp button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}


/* --- Loading Overlay Styles --- */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--color-dark-primary), 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

#loading-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.loading-planet {
    width: 100px;
    height: 100px;
    animation: rotate3d-coin 6s infinite linear;
}

.orbiting-element {
    width: 20px;
    height: 20px;
    background-color: var(--color-accent-orange);
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    transform-origin: 50px 0;
    animation: orbit 3s infinite linear;
}

/* --- Keyframes Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rocketLaunch {
    0% { transform: translate(0, 0) rotate(-10deg); opacity: 1; }
    20% { transform: translate(20vw, -30vh) rotate(25deg); }
    50% { transform: translate(45vw, -60vh) rotate(45deg); opacity: 1; }
    80% { transform: translate(80vw, -110vh) rotate(60deg); opacity: 0.8; }
    100% { transform: translate(100vw, -130vh) rotate(70deg); opacity: 0; }
}

@keyframes flameWaver {
    0% { height: 45px; transform: translateX(-50%) scaleX(0.9); opacity: 0.9; }
    100% { height: 55px; transform: translateX(-50%) scaleX(1.1); opacity: 1; }
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(45deg); }
    100% { transform: translate(20px, 30px) rotate(50deg); }
}

@keyframes fadeInUpContent {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Keyframes para la animación de Pulso Neón (OPCIONAL) */
/*
@keyframes pulsate-neon {
    0% {
        text-shadow:
            0 0 7px #fff,
            0 0 10px var(--neon-blue),
            0 0 21px var(--neon-blue),
            0 0 42px var(--neon-blue),
            0 0 82px var(--neon-blue),
            0 0 92px var(--neon-blue),
            0 0 102px var(--neon-blue),
            0 0 151px var(--neon-blue);
    }
    100% {
        text-shadow:
            0 0 4px #fff,
            0 0 5px var(--neon-blue),
            0 0 10px var(--neon-blue),
            0 0 20px var(--neon-blue),
            0 0 35px var(--neon-blue),
            0 0 45px var(--neon-blue),
            0 0 50px var(--neon-blue),
            0 0 75px var(--neon-blue);
    }
}
*/

/* Keyframes para la animación de desplazamiento de logos */
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-120px * 13)); }
}


/* --- Media Queries --- */

/* Estilos para pantallas de hasta 768px */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    /* Header */
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav {
        justify-content: center;
        margin-top: 10px;
    }

    .main-nav a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }

    .logo-container {
        justify-content: center;
        width: 100%;
    }

    .main-header .logo {
        height: 35px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .greeting-time {
        font-size: 0.9rem;
        margin-top: 5px;
    }

    /* Hero Section */
    .hero-section {
         gap: 15px;
         padding: 2rem 15px;
    }

     .hero-image-container {
         margin-bottom: 20px;
     }

    .neon-text-banner {
        font-size: 2.5rem;
        text-shadow: none;
        color: #0957a2;
        white-space: normal;
    }


    /* Tamaño de fuente ajustado para H1 y H2 de sección en móvil */
    .hero-content h1,
    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-weight: 900;
    }

    /* Ajuste de tamaño de fuente para subtítulo, lista y subtexto en móvil */
    .hero-content .subtitle,
    .beneficios-list li,
    .hero-content .subtexto {
         font-size: 0.9rem;
    }


    .hero-content .subtitle {
        margin-bottom: 1rem;
    }

    .beneficios-list {
        margin: 0 auto 1rem auto;
    }

    .beneficios-list li {
        margin-bottom: 0.5rem;
    }

    .benefit-icon {
        font-size: 1em;
    }

    .hero-content .subtexto {
        margin: 0 auto 1.5rem auto;
    }


    .primary-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Cursos Section */
    .cursos-section {
        padding: 3rem 0;
    }

    .section-title {
        margin-bottom: 0.8rem;
    }

    .styled-divider {
        margin: 0 auto 2rem auto;
    }

    .cursos-grid {
        /* Fuerza 1 columna en móvil */
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Ajustes para las tarjetas de curso (forma actualizada en móvil) */
    .curso-card {
        box-shadow: 0 0 6px rgba(var(--neon-blue), 0.5), var(--shadow-soft);
        border-radius: 10px 10px 0 0;
    }

    .curso-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 15px rgba(var(--neon-blue), 0.7),
            0 0 20px rgba(var(--color-accent-magenta), 0.5),
            var(--shadow-medium);
    }

    /* Reducción de padding del contenedor de imagen en móvil */
     .card-image-container {
         padding: 0.8rem;
     }

     /* Reducción del tamaño de la imagen en móvil */
     .card-image-container img {
         max-width: 120px;
     }

     /* Ajuste del tamaño de fuente para el título de la tarjeta en móvil */
     .card-content h3 {
         font-size: 1rem; /* Más pequeño para móvil */
         white-space: normal; /* Permite que el texto se rompa */
         overflow: visible; /* Asegura que todo el texto sea visible */
     }

    /* Regla del marquee-text eliminada */


    /* Banda de logos keyframes móvil */
    .logo-belt-logos img {
        height: 60px;
        margin: 0 30px;
    }

    @keyframes scroll-logos {
         0% { transform: translateX(0); }
         100% { transform: translateX(calc(-80px * 13)); }
    }

    .logo-belt-logos {
        animation-duration: 30s;
    }

    /* Footer */
    .main-footer {
        background-color: var(--color-dark-primary);
        color: rgba(var(--text-light), 0.7);
        padding: 4rem 0 0;
        position: relative;
        overflow: hidden;
    }

    .footer-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px 2rem;
        text-align: center;
        grid-template-areas:
            "left-area"
            "right-motto"
            "right-contact";
    }

    .footer-left {
        grid-area: left-area;
        padding-right: 0;
        text-align: center;
    }

    .footer-left .footer-logo img {
        margin: 0 auto 1rem auto;
    }

    .footer-description {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .footer-contact {
        grid-area: right-contact;
        margin-top: 1rem;
        text-align: center;
    }

    .footer-contact a {
        color: var(--text-light);
        text-decoration: none;
    }

    .footer-contact h4 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .footer-contact .social-links.vertical {
         justify-content: center;
         margin-top: 0.8rem;
    }

    .footer-right {
        grid-area: right-motto;
        text-align: center;
    }

    .footer-motto {
        font-size: 1.5rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom .copyright,
    .footer-bottom .designed-by {
        margin: 3px 0;
    }

    /* WhatsApp Button */
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 15px;
        right: 15px;
    }

    /* Loading Overlay */
    #loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(var(--color-dark-primary), 0.95);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        color: white;
        flex-direction: column;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        pointer-events: none;
    }

    #loading-overlay.visible {
        opacity: 1;
        pointer-events: all;
    }

    .loading-content {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .loading-planet {
        width: 80px;
        height: 80px;
    }

    .orbiting-element {
        width: 16px;
        height: 16px;
        transform-origin: 40px 0;
    }
}

/* Estilos para pantallas de hasta 992px (Tablet) */
@media (max-width: 992px) {
    .neon-text-banner {
        font-size: 3.5rem;
        text-shadow: none;
        color: #0957a2;
        white-space: normal;
    }

    .hero-content h1,
    .section-title {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-weight: 900;
    }

    .hero-content .subtitle,
    .beneficios-list li,
    .hero-content .subtexto {
         font-size: 1rem;
    }

    .cursos-grid {
        /* Dos columnas en tablet */
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .card-image-container {
         padding: 1.2rem;
    }

    .card-image-container img {
         max-width: 130px;
    }

    /* Ajuste del tamaño de fuente para el título de la tarjeta en tablet */
    .card-content h3 {
         font-size: 1.1rem; /* Más pequeño para tablet */
         white-space: normal; /* Permite que el texto se rompa */
         overflow: visible; /* Asegura que todo el texto sea visible */
    }


    @media (min-width: 769px) and (max-width: 992px) {
        .footer-content-wrapper {
            grid-template-columns: 1.5fr 1fr;
            gap: 40px;
            text-align: left;
            grid-template-areas:
                "left-area right-motto"
                "left-area right-contact";
        }

        .footer-left {
            grid-area: left-area;
            padding-right: 30px;
            text-align: left;
        }

        .footer-left .footer-logo img {
            margin: 0 0 1.5rem 0;
        }

        .footer-contact {
            grid-area: right-contact;
             margin-top: 2rem;
             text-align: left;
        }

        .footer-contact .social-links.vertical {
              justify-content: flex-start;
              margin-top: 1rem;
        }

        .footer-right {
            grid-area: right-motto;
            text-align: left;
        }
    }
}

@media (min-width: 1141px) {
    .container {
        max-width: 1300px;
    }
}

/* Keyframes para animaciones existentes */
@keyframes rotate3d-coin {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
}