/* Variables y reset */
:root {
    --primary-color: #333333;
    --secondary-color: #555555;
    --accent-color: #FF5D0C;
    --accent-color-hover: #e54e10;
    --highlight-color: #4BD305;
    --highlight-color-hover: #42b804;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333333;
    --border-radius: 5px;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Botones */
.btn-primary {
    display: inline-block;
    background-color: var(--highlight-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--highlight-color);
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--highlight-color-hover);
    border-color: var(--highlight-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(75, 211, 5, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--accent-color-hover);
    border-color: var(--accent-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 89, 22, 0.3);
}

.btn-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-light:hover {
    background-color: white;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.hero-buttons, .cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Títulos de sección */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

/* Navegación - Versión corregida */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 80px; /* Altura fija */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px; /* Tamaño fijo del logo */
}

/* Clase para el header compacto */
header.compact {
    height: 60px; /* Altura reducida */
}

header.compact .logo img {
    height: 40px; /* Logo más pequeño */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--highlight-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section - Definición unificada */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0 80px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.hero-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Estilos para el contenido */
.hero-content {
    flex: 1;
    padding-right: 0;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.hero-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 87, 34, 0.1);
    color: #ff5722;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    color: #333;
    padding-top: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.text-highlight {
    color: #ff5722;
    position: relative;
}

.hero-subtitle {
    font-size: 2.5rem;
    color: #4caf50;
    margin-bottom: 20px;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    max-width: 90%;
}

/* Estadísticas */
.hero-stats {
    display: flex;
    margin-bottom: 30px;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ff5722;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Botones */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 100%;
}

.btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-primary {
    background: #4caf50;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: #43a047;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-outline {
    border: 2px solid #ff5722;
    color: #ff5722;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 87, 34, 0.1);
    transform: translateY(-3px);
}

/* Parte visual - Marco de imagen mejorado */
.hero-visual {
    flex: 1;
    position: relative;
    margin: 0;
    padding: 0;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 8px solid white;
    transform: rotate(-2deg);
    transition: all 0.5s ease;
    width: 100%;
    margin: 0;
}

.hero-image-container:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.2));
}

/* Formas decorativas */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(76, 175, 80, 0.05);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 87, 34, 0.05);
    bottom: 50px;
    right: -50px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: rgba(33, 150, 243, 0.05);
    top: 50%;
    left: 50%;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    z-index: 2;
}

.scroll-indicator i {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Animaciones */
[data-animation="fadeInLeft"] {
    animation: fadeInLeft 1s ease forwards;
}

[data-animation="fadeInRight"] {
    animation: fadeInRight 1s ease forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contador animado */
.counter {
    display: inline-block;
}

/* Los media queries se manejan más abajo con la solución definitiva */

/* Características */
.features {
    background-color: white;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.feature-box {
    flex: 1;
    min-width: 300px;
    padding: 40px 30px;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
    border-color: var(--highlight-color);
    box-shadow: 0 10px 20px rgba(75, 211, 5, 0.1);
}

.feature-box i {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-box p {
    color: var(--secondary-color);
}

/* Cursos Preview */
.courses-preview {
    background-color: var(--light-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    align-items: stretch; /* Asegurar que todas las cards tengan la misma altura */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.course-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 620px; /* Altura máxima para garantizar botón SIEMPRE visible */
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--highlight-color);
    box-shadow: 0 10px 20px rgba(75, 211, 5, 0.1);
}

.course-image {
    height: 200px !important; /* Forzar altura fija */
    overflow: hidden;
    flex-shrink: 0; /* No permitir que se reduzca */
}

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

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

.course-content {
    padding: 25px;
    flex: 1; /* Toma el espacio restante */
    display: flex;
    flex-direction: column;
    height: 350px; /* Altura fija para el contenido */
}

.course-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
    max-height: 2.8em; /* Altura máxima para el título */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Máximo 2 líneas para el título */
    -webkit-box-orient: vertical;
}

.course-content p {
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex: 1; /* Toma el espacio disponible */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limitado a 3 líneas para control */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-height: 4.2em; /* Altura máxima equivalente a 3 líneas */
}

.courses-cta {
    text-align: center;
}

/* Estilos específicos para metadatos del curso */
.course-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    flex-shrink: 0; /* No se comprime */
}

.course-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.course-detail i {
    color: var(--highlight-color);
    width: 16px;
    flex-shrink: 0;
}

/* Área del botón fija en la parte inferior */
.course-actions {
    margin-top: auto; /* Empuja hacia abajo */
    padding-top: 15px;
    flex-shrink: 0; /* No se comprime */
}

.course-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.price-info {
    flex: 1;
}

.btn-info {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-info:hover {
    background-color: #e64a19;
    transform: translateY(-1px);
}

/* Testimonios */
.testimonials {
    background-color: white;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--secondary-color);
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    color: var(--accent-color);
    font-size: 1.5rem;
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    justify-content: center;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--highlight-color);
    margin-top: 10px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animaciones y Media Queries */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        background-color: white;
        flex-direction: column;
        width: 100%;
        height: 100vh;
        text-align: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 0 20px;
        gap: 0;
        z-index: 900;
        overflow-y: auto;
    }
    
    .nav-links li {
        margin: 20px 0;
        opacity: 1;
        transform: translateY(20px);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .nav-active li {
        transform: translateY(0);
        transition-delay: 0.1s;
    }
    
    .nav-active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-active li:nth-child(4) { transition-delay: 0.25s; }
    
    .burger {
        display: block;
        z-index: 1000;
        position: relative;
    }
    
    header {
        position: fixed;
        width: 100%;
        z-index: 1000;
        background-color: white;
        top: 0;
        left: 0;
    }
    
    body {
        padding-top: 80px;
    }
    
    .hero, .page-banner {
        margin-top: -80px;
        padding-top: 160px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .feature-box {
        min-width: 100%;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after,
    .footer-social h3::after {
        margin: 10px auto 0;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .hero-buttons, .cta-buttons {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-box,
    .course-card,
    .testimonial-card {
        padding: 20px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Animaciones para elementos al hacer scroll */
.animate__animated {
    opacity: 0;
}

.animate__fadeIn,
.animate__fadeInUp,
.animate__fadeInLeft,
.animate__fadeInRight {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeIn.animate__active {
    animation-name: fadeIn;
}

.animate__fadeInUp.animate__active {
    animation-name: fadeInUp;
}

.animate__fadeInLeft.animate__active {
    animation-name: fadeInLeft;
}

.animate__fadeInRight.animate__active {
    animation-name: fadeInRight;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilos para el burger menu */
.line1.toggle {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.line2.toggle {
    opacity: 0;
}

.line3.toggle {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Botón flotante de WhatsApp con animación sutil sin movimiento */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--highlight-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Efecto al hacer hover - sin movimiento */
.whatsapp-float:hover {
    background-color: var(--highlight-color-hover);
    box-shadow: 0 4px 15px rgba(75, 211, 5, 0.5);
}

/* Efecto de resplandor sutil */
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--highlight-color);
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::after {
    opacity: 0.3;
    transform: scale(1.3);
}

/* Efecto de pulso suave para el ícono */
.whatsapp-float i {
    transition: all 0.3s ease;
}

.whatsapp-float:hover i {
    animation: gentle-pulse 1s infinite alternate;
}

/* Tooltip para el botón de WhatsApp */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Animación de pulso suave */
@keyframes gentle-pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Animación de pulso para llamar la atención */
@keyframes subtle-pulse {
    0% {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(75, 211, 5, 0.5);
    }
    100% {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

/* Aplicamos la animación después de que la página ha cargado */
.whatsapp-float.pulse {
    animation: subtle-pulse 2s infinite;
}

/* Estilos para la página Quiénes Somos */

/* Hero específico para Quiénes Somos */
.about-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Sección Nuestra Historia */
.about-section {
    padding: 80px 0;
    background-color: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text .highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--highlight-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Estadísticas */
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--highlight-color);
    margin-bottom: 5px;
}

.stat-text {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Misión, Visión y Valores */
.mission-vision {
    background-color: var(--light-color);
    padding: 80px 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-box {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.mission-box:hover {
    transform: translateY(-10px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--highlight-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-circle i {
    font-size: 2rem;
    color: white;
}

.mission-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mission-box p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.values-list {
    text-align: left;
    padding-left: 0;
    margin-top: 15px;
    list-style: none;
}

.values-list li {
    margin-bottom: 10px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.values-list li i {
    color: var(--highlight-color);
    margin-right: 10px;
}

/* Por qué elegirnos */
.why-choose-us {
    padding: 80px 0;
    background-color: white;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Equipo */
.team {
    padding: 80px 0;
    background-color: var(--light-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.team-member {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--highlight-color);
    box-shadow: 0 10px 20px rgba(75, 211, 5, 0.1);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 25px;
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.member-position {
    color: var(--highlight-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.member-bio {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.member-social {
    display: flex;
    gap: 10px;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--highlight-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

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

.team-cta {
    text-align: center;
}

/* Instalaciones */
.facilities {
    padding: 80px 0;
    background-color: white;
}

.facilities-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .facilities-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .testimonial-slider {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .about-text .highlight {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .mission-box,
    .team-member,
    .gallery-item {
        padding: 20px;
    }
    
    .facilities-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Estilos para la página de Contacto */

/* Hero específico para Contacto */
.contact-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Sección de Información de Contacto */
.contact-info-section {
    padding: 80px 0;
    background-color: white;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: var(--highlight-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-card p {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: white;
    border-radius: 5px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--highlight-color);
    color: white;
}

.social-link i {
    font-size: 1.2rem;
}

/* Sección de Formulario de Contacto */
.contact-form-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.form-container {
    flex: 1;
    min-width: 300px;
}

.form-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--highlight-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 211, 5, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input {
    width: auto;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-checkbox a {
    color: var(--highlight-color);
    text-decoration: underline;
}

.form-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.form-note {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.map-container {
    flex: 1;
    min-width: 300px;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    min-height: 400px;
}

/* Sección de Preguntas Frecuentes */
.faq-section {
    padding: 80px 0;
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    transition: var(--transition);
}

.faq-toggle i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    color: var(--secondary-color);
    padding-bottom: 20px;
    margin: 0;
}

.faq-item.active .faq-question {
    background-color: #e9ecef;
    border-left: 3px solid var(--highlight-color);
}

.faq-item.active .faq-toggle {
    background-color: #e74c3c;
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 20px 20px 0;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .map-wrapper {
        min-height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .contact-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-element {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.circle {
    width: 15px;
    height: 15px;
    margin: 0 8px;
    border-radius: 50%;
    background-color: var(--highlight-color);
    animation: bounce 1.5s infinite ease-in-out;
}

.circle:nth-child(1) {
    animation-delay: 0s;
}

.circle:nth-child(2) {
    animation-delay: 0.2s;
}

.circle:nth-child(3) {
    animation-delay: 0.4s;
}

.loader p {
    color: var(--secondary-color);
    font-size: 1rem;
    letter-spacing: 3px;
    font-weight: 500;
    position: relative;
}

.loader p::after {
    content: '...';
    position: absolute;
    animation: dots 1.5s infinite;
}

.preloader-finish {
    opacity: 0;
    visibility: hidden;
}

/* Ocultar el contenido hasta que se cargue completamente */
body > *:not(.preloader) {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

body.loaded > *:not(.preloader) {
    opacity: 1;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        background-color: rgba(75, 211, 5, 0.7);
    }
    50% {
        transform: translateY(-15px);
        background-color: rgba(75, 211, 5, 1);
    }
}

@keyframes dots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* Estilos adicionales para la página de cursos */

/* Categorías de cursos */
.courses-categories {
    background-color: var(--light-color);
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--highlight-color);
    box-shadow: 0 10px 20px rgba(75, 211, 5, 0.1);
}

.category-icon {
    width: auto;
    height: auto;
    background-color: transparent;
    color: var(--highlight-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.category-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Secciones de cursos */
.courses-section {
    padding: 80px 0;
}

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

.course-details {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.detail {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.detail i {
    margin-right: 5px;
    color: var(--highlight-color);
}

.course-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--highlight-color);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-toggle i {
    color: white;
    font-size: 0.8rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--secondary-color);
}

.faq-item.active .faq-question {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Media Queries para la página de cursos */
@media screen and (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-card {
        max-width: 280px;
        margin: 0 auto;
        height: 280px;
        padding: 20px;
        width: 280px;
    }
    
    .category-icon {
        width: auto;
        height: auto;
        background-color: transparent;
        color: var(--highlight-color);
        border-radius: 0;
        font-size: 2.2rem;
    }
    
    .course-card {
        max-width: 400px;
        margin: 0 auto;
        height: 580px; /* Altura aumentada para móvil */
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .course-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .course-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .price {
        font-size: 1.3rem;
    }
    
    .btn-secondary {
        margin-bottom: 12px;
        margin-top: 12px;
    }
}

@media screen and (max-width: 480px) {
    .category-card {
        height: 220px;
        width: 220px;
        max-width: 220px;
        padding: 15px;
    }
    
    .category-icon {
        width: auto;
        height: auto;
        background-color: transparent;
        color: var(--highlight-color);
        border-radius: 0;
        font-size: 2.5rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
    
    .course-card {
        height: 560px; /* Altura aumentada para pantallas pequeñas */
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .categories-grid {
        justify-items: center;
    }
    
    .course-content h3 {
        font-size: 1.2rem;
    }
    
    .course-content {
        padding: 20px; /* Menos padding en móvil */
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
    
    .faq-toggle {
        width: 25px;
        height: 25px;
    }
    
    .faq-toggle i {
        font-size: 0.7rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .btn-secondary {
        padding: 8px 15px;
        font-size: 0.9rem;
        margin-bottom: 15px;
        margin-top: 15px;
    }
}

/* Animaciones para los elementos de la página de cursos */
.category-card, .course-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.category-card.animate__active, .course-card.animate__active {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para el filtro de cursos */
.courses-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: white;
    border: 2px solid var(--highlight-color);
    color: var(--highlight-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

/* Estilos para la barra de búsqueda de cursos */
.courses-search {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.courses-search input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.courses-search input:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 2px 15px rgba(75, 211, 5, 0.1);
}

.courses-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--highlight-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.courses-search button:hover {
    background-color: var(--primary-color);
}

/* Estilos para la paginación de cursos */
.courses-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    border: 1px solid #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover, .pagination-btn.active {
    background-color: var(--highlight-color);
    color: white;
    border-color: var(--highlight-color);
}

.pagination-btn.prev, .pagination-btn.next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

/* Estilos para las etiquetas de los cursos */
.course-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(75, 211, 5, 0.1);
    color: var(--highlight-color);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 10px;
}

/* Estilos para las calificaciones de los cursos */
.course-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-stars {
    color: #FFD700;
    margin-right: 5px;
}

.rating-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Estilos para los instructores de los cursos */
.course-instructor {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-name {
    font-weight: 500;
    color: var(--primary-color);
}

/* Estilos para los badges de los cursos */
.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--highlight-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.course-badge.popular {
    background-color: var(--accent-color);
}

.course-badge.new {
    background-color: var(--highlight-color);
    color: white;
}

.course-badge.discount {
    background-color: #9C27B0;
}

/* Ajustes adicionales para dispositivos móviles */
@media screen and (max-width: 768px) {
    .courses-search button {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        margin-top: 10px;
    }
    
    .courses-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
}

/* Corregir la animación fadeInRight */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Asegúrate de que la clase active no mantenga transformaciones */
.animate__active {
    opacity: 1 !important;
    transform: none !important;
}

/* Asegúrate de que la imagen no tenga transformaciones por defecto */
.hero-image {
    transform: none !important;
}

/* Estilos específicos para hero secundarios */
.secondary-hero {
    min-height: 80vh; /* Un poco más pequeño que el hero principal */
    padding: 120px 0 80px;
}

.secondary-hero h1 {
    font-size: 3.5rem; /* Ligeramente más pequeño que el principal */
}

.secondary-hero .hero-subtitle {
    font-size: 2.2rem;
}

/* Asegurarse de que las imágenes de las páginas secundarias se vean bien */
.secondary-hero .hero-image-container {
    border: 8px solid white;
    transform: rotate(-2deg);
}

.secondary-hero .hero-image-container:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Ajustes para dispositivos móviles */
@media (max-width: 992px) {
    .secondary-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .secondary-hero h1 {
        font-size: 2.8rem;
    }
    
    .secondary-hero .hero-subtitle {
        font-size: 1.8rem;
    }
}

/* Estilos para el Sweet Alert */
.custom-swal-popup {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
}

.swal2-actions {
    margin-top: 15px !important;
    z-index: 2 !important;
}

/* Contenedor personalizado con fondo blanco sólido */
.custom-alert-wrapper {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 100%;
}

/* Contenedor de la imagen */
.course-image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Imagen del curso */
.course-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Badge de nuevo */
.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #FF5D0C;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(252, 89, 22, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Estadísticas */
.course-stats {
    display: flex;
    justify-content: space-around;
    padding: 25px 15px;
    background: white;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat:nth-child(1) .stat-number {
    color: #4BD305;
}

.stat:nth-child(2) .stat-number {
    color: #FF5D0C;
}

.stat:nth-child(3) .stat-number {
    color: #2196F3;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botón de cierre */
.custom-swal-close {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    width: 36px !important;
    height: 36px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #FF5D0C !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    z-index: 10 !important;
}

.custom-swal-close:hover {
    background-color: #FF5D0C !important;
    color: white !important;
    transform: rotate(90deg) !important;
    box-shadow: 0 5px 12px rgba(252, 89, 22, 0.4) !important;
}

/* Botón de confirmación */
.custom-swal-confirm-button {
    padding: 12px 30px !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(75, 211, 5, 0.3) !important;
    background-color: #4BD305 !important;
}

.custom-swal-confirm-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(75, 211, 5, 0.4) !important;
    background-color: #43a047 !important;
}

/* Asegurarse de que no haya fondos transparentes */
.swal2-container {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Forzar la eliminación del fondo del modal */
.swal2-modal {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Media queries para responsividad */
@media (max-width: 480px) {
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .custom-swal-close {
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }
    
    .custom-swal-confirm-button {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* Estilos para certificación MDT en footer */
.mdt-certification {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mdt-certification img {
    height: 40px;
    width: auto;
}

.mdt-certification p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Para versión móvil */
@media (max-width: 768px) {
    .mdt-certification {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .mdt-certification img {
        height: 35px;
    }
}

/* SOLUCION DEFINITIVA PARA HERO SECTION - Media queries optimizados */

/* Asegurar que body no tenga scroll horizontal */
body {
    overflow-x: hidden;
}

/* Media queries optimizados */
@media (max-width: 1200px) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 40px 0 30px;
        min-height: auto;
    }
    
    .hero-container {
        flex-direction: column;
        padding: 0 25px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
        padding: 0;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 25px 0 20px;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding: 0;
        margin-bottom: 30px;
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        margin-top: 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 20px 0 15px;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 400px) {
    .hero-section {
        padding: 15px 0 10px;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 12px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
}

/* Botón flotante MDT (Ministerio del Trabajo) */
.mdt-float {
    position: fixed;
    width: 90px;
    height: 90px;
    bottom: 30px;
    left: 30px;
    background-color: #ffffff;
    color: #333;
    border-radius: 15px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.mdt-float img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Efecto al hacer hover */
.mdt-float:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    border-color: #4BD305;
}

.mdt-float:hover img {
    transform: scale(1.1);
}

/* Tooltip para el botón MDT */
.mdt-tooltip {
    position: absolute;
    left: 100px;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 200px;
    text-align: center;
    line-height: 1.2;
}

.mdt-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    border-width: 8px 8px 8px 0;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
}

.mdt-float:hover .mdt-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Responsivo para botones flotantes */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .mdt-float {
        width: 75px;
        height: 75px;
        bottom: 20px;
        left: 20px;
    }
    
    .mdt-float img {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-tooltip,
    .mdt-tooltip {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .mdt-tooltip {
        left: 85px;
    }
    
    .whatsapp-tooltip {
        right: 60px;
    }
}

@media (max-width: 480px) {
    .mdt-float {
        bottom: 20px; /* Mismo nivel que WhatsApp */
        left: 20px;
        width: 70px;
        height: 70px;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        right: 20px;
        font-size: 22px;
    }
    
    .mdt-float img {
        width: 50px;
        height: 50px;
    }
    
    /* Ajustar tooltips para móviles pequeños */
    .mdt-tooltip {
        left: 80px;
        font-size: 11px;
        padding: 5px 8px;
        max-width: 160px;
    }
    
    .whatsapp-tooltip {
        right: 55px;
        font-size: 11px;
        padding: 5px 8px;
    }
}

@media (max-width: 360px) {
    .mdt-float {
        left: 15px;
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-float {
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .mdt-float img {
        width: 42px;
        height: 42px;
    }
}

/* Estilos para SweetAlert2 MDT */
.swal2-popup.mdt-modal {
    background-color: #ffffff !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.swal2-container {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(3px);
}

.swal2-modal {
    background-color: #ffffff !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.swal2-html-container {
    color: #333 !important;
}

.swal2-title {
    color: #333 !important;
    font-weight: 600 !important;
}

/* Asegurar que el overlay sea opaco */
.swal2-container.swal2-backdrop-show {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* ===== ESTILOS PARA SECCIÓN MDT EN FOOTER ===== */
.footer-mdt {
    background-color: #212529;
    padding: 40px 0;
    margin-top: 0;
}

.mdt-certification {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.mdt-logo {
    flex-shrink: 0;
}

.mdt-logo img {
    width: 400px;
    height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.mdt-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.7));
}

.mdt-info {
    color: white;
    text-align: center;
}

.mdt-info p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #e5e7eb;
}

.mdt-info p strong {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.4rem;
}

/* Responsive para MDT */
@media (max-width: 768px) {
    .footer-mdt {
        padding: 30px 0;
    }
    
    .mdt-certification {
        gap: 15px;
    }
    
    .mdt-logo img {
        width: 300px;
        height: 180px;
    }
    
    .mdt-info p {
        font-size: 1.1rem;
    }
    
    .mdt-info p strong {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .footer-mdt {
        padding: 25px 0;
    }
    
    .mdt-logo img {
        width: 250px;
        height: 150px;
    }
    
    .mdt-info p {
        font-size: 1rem;
    }
    
    .mdt-info p strong {
        font-size: 1.1rem;
    }
}