/* Variables de colores */
        :root {
            --primary-color: #FF8C00;
            --primary-dark: #E67E00;
            --primary-light: #FFA726;
            --secondary-color: #333333;
            --light-color: #F5F5F5;
            --dark-color: #222222;
            --text-color: #333333;
            --text-light: #FFFFFF;
        }

        /* Centrar el título CURSOS ONLINE */
        .courses header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .header__title {
            display: inline-block;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .header__title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--primary-color);
        }

        /* Resto del CSS existente... */
        /* Iconos flotantes de redes sociales */
        .icon-group-left {
            position: fixed;
            left: 20px;
            bottom: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            z-index: 1000;
        }

        .icon-group-right {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 1000;
        }

        .floating-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #FF8C00, #E67E00);
            color: white;
            box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
            text-decoration: none;
            font-size: 28px;
        }

        .floating-icon:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 8px 20px rgba(255, 140, 0, 0.6);
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
            }
        }

        /* Responsive para iconos flotantes */
        @media (max-width: 768px) {
            .floating-icon {
                width: 50px;
                height: 50px;
                font-size: 24px;
            }
            
            .icon-group-left {
                left: 15px;
                bottom: 15px;
            }
            
            .icon-group-right {
                right: 15px;
                bottom: 15px;
            }
        }

        @media (max-width: 480px) {
            .floating-icon {
                width: 45px;
                height: 45px;
                font-size: 20px;
            }
            
            .icon-group-left {
                left: 10px;
                bottom: 10px;
                gap: 10px;
            }
            
            .icon-group-right {
                right: 10px;
                bottom: 10px;
            }
        }

        /* Estilos generales */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto', sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--light-color);
            overflow-x: hidden;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Header con fondo blanco - SIN MARGEN INFERIOR */
        header {
            background-color: #ffffff;
            padding: 0.5rem 0; /* Reducido el padding vertical */
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        #logo {
            display: flex;
            align-items: center;
        }

        #logo img {
            height: 70px; /* Logo un poco más pequeño */
            margin-right: 15px;
            transition: transform 0.3s ease;
        }

        #logo img:hover {
            transform: scale(1.05);
        }

        #logo h1 {
            color: var(--text-color);
            font-size: 1.4rem; /* Texto un poco más pequeño */
            font-weight: 700;
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        nav ul li {
            margin-left: 1.5rem;
            position: relative;
        }

        nav ul li a {
            color: var(--text-color);
            text-decoration: none;
            font-weight: 500;
            padding: 0.5rem 0.8rem;
            border-radius: 4px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        /* Efecto de subrayado animado para los enlaces del menú */
        nav ul li a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background-color: var(--primary-color);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        nav ul li a:hover::before {
            width: 80%;
        }

        nav ul li a:hover {
            color: var(--primary-color);
            background-color: rgba(255, 140, 0, 0.1);
        }

        /* Efecto para el enlace activo */
        nav ul li a.active {
            color: var(--primary-color);
            background-color: rgba(255, 140, 0, 0.1);
        }

        nav ul li a.active::before {
            width: 80%;
        }

        #mobile-menu {
            display: none;
            flex-direction: column;
            cursor: pointer;
            background: none;
            border: none;
            padding: 5px;
        }

        #mobile-menu span {
            width: 25px;
            height: 3px;
            background-color: var(--text-color);
            margin: 3px 0;
            transition: 0.3s;
            display: block;
        }

        /* Animación para el menú hamburguesa al activarse */
        #mobile-menu.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        #mobile-menu.active span:nth-child(2) {
            opacity: 0;
        }

        #mobile-menu.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        /* Carrusel Full Width - SIN MARGEN SUPERIOR */
        .carousel-container {
            position: relative;
            width: 100vw;
            margin-left: calc(-50vw + 50%);
            overflow: hidden;
            height: 80vh;
            margin-top: 0; /* Aseguramos que no haya margen superior */
        }

        .carousel {
            display: flex;
            width: 100%;
            height: 100%;
        }

        .carousel-slide {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.5s ease-in-out;
        }

        .carousel-slide img {
            min-width: 100%;
            height: 100%;
            object-fit: cover;
            flex-shrink: 0;
        }

        /* Controles del carrusel */
        .carousel-control {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 1rem;
            cursor: pointer;
            z-index: 10;
            font-size: 1.5rem;
            transition: background-color 0.3s ease;
        }

        .carousel-control:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        .carousel-control.prev {
            left: 0;
            border-radius: 0 5px 5px 0;
        }

        .carousel-control.next {
            right: 0;
            border-radius: 5px 0 0 5px;
        }

        /* Indicadores */
        .carousel-indicators {
            position: absolute;
            bottom: 1rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 0.5rem;
            z-index: 10;
        }

        .carousel-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .carousel-indicator.active {
            background-color: var(--primary-color);
        }

        /* Hero Section */
        #hero {
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/inicio/hero-bg.jpg') no-repeat center center/cover;
            color: var(--text-light);
            padding: 5rem 0;
            text-align: center;
        }

        #hero h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            animation: fadeInDown 1s ease;
        }

        #hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            animation: fadeInUp 1s ease 0.3s both;
        }

        .btn {
            display: inline-block;
            background-color: var(--primary-color);
            color: var(--text-light);
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: all 0.4s ease;
            z-index: -1;
        }

        .btn:hover {
            background-color: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .btn:hover::before {
            left: 100%;
        }

        /* Animaciones */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Footer */
        footer {
            background-color: var(--secondary-color);
            color: var(--text-light);
            padding: 2rem 0;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }

        .footer-section {
            flex: 1;
            min-width: 200px;
            margin-bottom: 1rem;
        }

        .footer-section h3 {
            margin-bottom: 1rem;
            color: var(--primary-light);
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 0.5rem;
        }

        .footer-section ul li a {
            color: var(--text-light);
            text-decoration: none;
            transition: color 0.3s;
            position: relative;
            padding-left: 0;
            transition: all 0.3s ease;
        }

        .footer-section ul li a:hover {
            color: var(--primary-light);
            padding-left: 5px;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Tablets */
        @media (max-width: 768px) {
            header .container {
                flex-wrap: wrap;
                position: relative;
            }
            
            #logo h1 {
                font-size: 1.3rem;
            }
            
            #logo img {
                height: 60px; /* Logo más pequeño en tablets */
            }
            
            nav {
                width: 100%;
                order: 3;
                margin-top: 0.5rem; /* Reducido el margen superior */
            }
            
            nav ul {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: #ffffff;
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
                z-index: 99;
                padding: 0.5rem 0; /* Reducido el padding */
            }
            
            nav ul.show {
                display: flex;
                animation: fadeInDown 0.5s ease;
            }
            
            nav ul li {
                margin: 0;
                text-align: center;
                padding: 0.6rem 0; /* Reducido el padding */
                border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            }
            
            nav ul li:last-child {
                border-bottom: none;
            }
            
            nav ul li a {
                color: var(--text-color);
                display: block;
                padding: 0.6rem; /* Reducido el padding */
                font-size: 1.1rem;
                transition: all 0.3s ease;
            }
            
            nav ul li a:hover {
                background-color: rgba(255, 140, 0, 0.1);
                transform: translateX(5px);
            }
            
            nav ul li a::before {
                display: none;
            }
            
            #mobile-menu {
                display: flex;
            }
            
            /* Ajustes del carrusel para tablets */
            .carousel-container {
                height: 35vh;
                margin-left: calc(-50vw + 50%);
                padding: 0; /* Eliminado el padding */
            }
            
            .carousel-slide {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .carousel-slide img {
                width: 80%;
                height: auto;
                max-height: 30vh;
                object-fit: contain;
                object-position: center;
                background-color: #f5f5f5;
                border-radius: 10px;
            }
            
            .carousel-control {
                padding: 0.7rem;
                font-size: 1.2rem;
            }
            
            .carousel-indicator {
                width: 10px;
                height: 10px;
            }
            
            #hero h2 {
                font-size: 2rem;
            }
            
            .footer-content {
                flex-direction: column;
            }
            
            .footer-section {
                margin-bottom: 2rem;
                text-align: center;
            }
        }

        /* Móviles */
        @media (max-width: 480px) {
            header {
                padding: 0.3rem 0; /* Reducido el padding */
            }
            
            header .container {
                padding: 0 10px; /* Reducido el padding lateral */
            }
            
            #logo {
                flex: 1;
            }
            
            #logo h1 {
                font-size: 1.1rem;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 150px;
            }
            
            #logo img {
                height: 50px; /* Logo más pequeño en móviles */
                margin-right: 8px; /* Reducido el margen derecho */
            }
            
            #mobile-menu {
                margin-left: auto;
                display: flex;
            }
            
            /* Ajustes mejorados del carrusel para móviles */
            .carousel-container {
                height: 50vh;
                margin-left: calc(-50vw + 50%);
                width: 100vw;
                margin-top: 0; /* Aseguramos que no haya margen superior */
            }
            
            .carousel {
                width: 100%;
            }
            
            .carousel-slide {
                min-width: 100%;
            }
            
            .carousel-slide img {
                width: 100%;
                min-width: 100%;
                object-fit: cover;
                object-position: center;
            }
            
            .carousel-control {
                padding: 0.5rem 0.7rem;
                font-size: 1.2rem;
                border-radius: 50%;
                width: 40px;
                height: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: rgba(255, 140, 0, 0.8);
            }
            
            .carousel-control:hover {
                background-color: rgba(255, 140, 0, 1);
            }
            
            .carousel-control.prev {
                left: 10px;
                border-radius: 50%;
            }
            
            .carousel-control.next {
                right: 10px;
                border-radius: 50%;
            }
            
            .carousel-indicators {
                bottom: 0.5rem;
                gap: 0.3rem;
            }
            
            .carousel-indicator {
                width: 8px;
                height: 8px;
            }
            
            #hero {
                padding: 2.5rem 0;
            }
            
            #hero h2 {
                font-size: 1.7rem;
                padding: 0 10px;
            }
            
            #hero p {
                font-size: 0.95rem;
                padding: 0 10px;
            }
            
            .btn {
                padding: 0.6rem 1.2rem;
                font-size: 0.9rem;
            }
            
            .footer-section {
                min-width: 100%;
            }
            
            .footer-section h3 {
                font-size: 1.1rem;
            }
        }

        /* Móviles muy pequeños */
        @media (max-width: 320px) {
            header {
                padding: 0.2rem 0; /* Mínimo padding */
            }
            
            #logo h1 {
                font-size: 0.9rem;
                max-width: 120px;
            }
            
            #logo img {
                height: 45px; /* Logo aún más pequeño */
            }
            
            .carousel-container {
                height: 40vh;
                margin-left: calc(-50vw + 50%);
            }
            
            .carousel-control {
                width: 35px;
                height: 35px;
                font-size: 1rem;
                padding: 0.4rem;
            }
            
            .carousel-control.prev {
                left: 5px;
            }
            
            .carousel-control.next {
                right: 5px;
            }
            
            .carousel-indicators {
                bottom: 0.3rem;
            }
            
            .carousel-indicator {
                width: 6px;
                height: 6px;
            }
            
            #hero h2 {
                font-size: 1.5rem;
                padding: 0 15px;
            }
            
            #hero p {
                font-size: 0.85rem;
                padding: 0 15px;
            }
            
            #mobile-menu {
                display: flex;
            }
        }

        /* Mejoras adicionales para el carrusel en móviles */
        @media (max-width: 480px) {
            .carousel-container {
                position: relative;
                width: 100vw;
                margin-left: calc(-50vw + 50%);
                left: 0;
                right: 0;
            }
            
            .carousel {
                display: flex;
                width: 100%;
                height: 100%;
                transform: translateX(0);
            }
            
            .carousel-slide {
                flex: none;
                width: 100%;
                min-width: 100%;
            }
        }

        /* Touch gestures para móviles */
        @media (max-width: 768px) {
            .carousel-container {
                touch-action: pan-y;
            }
            
            .carousel {
                scroll-behavior: smooth;
            }
        }

        /* Sección de video y mensaje */
        #video-message {
            padding: 3rem 0;
            background-color: #fff;
            border-bottom: 1px solid #eee;
        }

        .video-message-container {
            display: flex;
            justify-content: space-between;
            align-items: stretch;
            gap: 2rem;
        }

        .video-container {
            flex: 1;
            position: relative;
            padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
            height: 0;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        .message-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 1rem;
        }

        .message-container h2 {
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            font-size: 1.8rem;
            line-height: 1.3;
        }

        .message-container p {
            margin-bottom: 1.2rem;
            line-height: 1.6;
            font-size: 1.05rem;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .video-message-container {
                flex-direction: column;
            }
            
            .video-container {
                padding-bottom: 56.25%;
                width: 100%;
            }
            
            .message-container {
                padding: 1.5rem 0;
            }
        }

        @media (max-width: 768px) {
            #video-message {
                padding: 2rem 0;
            }
            
            .message-container h2 {
                font-size: 1.5rem;
            }
            
            .message-container p {
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .message-container h2 {
                font-size: 1.3rem;
            }
            
            .video-container {
                border-radius: 8px;
            }
        }
        /* Reset y configuración base */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --color-primary: #ff6b35;
            --color-secondary: #f4f4f4;
            --color-text: #333;
            --color-text-light: #666;
            --color-white: #ffffff;
            --color-shadow: rgba(0, 0, 0, 0.1);
            --border-radius: 12px;
            --transition: all 0.3s ease;
            --max-width: 1200px;
        }

        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: var(--color-text);
            background-color: var(--color-secondary);
        }

        /* Header */
        .header {
            text-align: center;
            padding: 2rem 0;
            background-color: var(--color-white);
            box-shadow: 0 2px 10px var(--color-shadow);
            margin-bottom: 3rem;
        }

        .header__title {
            font-size: 2.5rem;
            font-weight: bold;
            color: var(--color-primary);
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        /* Main container */
        .main {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 1rem;
        }

        /* Courses section */
        .courses__container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            padding: 1rem 0;
        }

        /* Course card */
        .course-card {
            background-color: var(--color-white);
            border-radius: var(--border-radius);
            box-shadow: 0 5px 15px var(--color-shadow);
            overflow: hidden;
            transition: var(--transition);
            position: relative;
        }

        .course-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        /* Card image */
        .course-card__image {
            position: relative;
            height: 200px;
            overflow: hidden;
        }

        .course-card__img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .course-card:hover .course-card__img {
            transform: scale(1.05);
        }

        .course-card__badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background-color: var(--color-primary);
            color: var(--color-white);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Card content */
        .course-card__content {
            padding: 1.5rem;
        }

        .course-card__title {
            font-size: 1.1rem;
            font-weight: bold;
            color: var(--color-text);
            margin-bottom: 1rem;
            line-height: 1.4;
            text-transform: uppercase;
        }

        .course-card__description {
            color: var(--color-text-light);
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 1.5rem;
            text-align: justify;
        }

        /* Card actions */
        .course-card__actions {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            flex-wrap: wrap;
        }

        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.6rem 1rem;
            border: none;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: bold;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: var(--transition);
            outline: none;
            min-height: 40px;
        }

        .btn--primary {
            background-color: var(--color-primary);
            color: var(--color-white);
            flex: 1;
            min-width: 160px;
        }

        .btn--primary:hover {
            background-color: #e55a2b;
            transform: translateY(-2px);
        }

        .btn--primary:active {
            transform: translateY(0);
        }

        .btn--whatsapp {
            background-color: var(--color-primary);
            color: var(--color-white);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            padding: 0;
        }

        .btn--whatsapp:hover {
            background-color: #e55a2b;
            transform: scale(1.1);
        }

        .btn__icon {
            font-size: 1.2rem;
        }

        /* Loading state */
        .course-card--loading {
            opacity: 0.7;
            pointer-events: none;
        }

        .course-card--loading .course-card__actions {
            position: relative;
        }

        .course-card--loading .course-card__actions::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            border: 2px solid var(--color-primary);
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .header__title {
                font-size: 2rem;
            }
            
            .courses__container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .course-card__content {
                padding: 1rem;
            }
            
            .course-card__title {
                font-size: 1rem;
            }
            
            .course-card__description {
                font-size: 0.85rem;
            }
            
            .btn {
                font-size: 0.75rem;
                padding: 0.5rem 0.8rem;
            }
            
            .btn--primary {
                min-width: 140px;
            }
        }

        @media (max-width: 480px) {
            .main {
                padding: 0 0.5rem;
            }
            
            .header {
                padding: 1.5rem 0;
                margin-bottom: 2rem;
            }
            
            .header__title {
                font-size: 1.8rem;
            }
            
            .course-card__actions {
                gap: 0.3rem;
            }
            
            .btn--primary {
                min-width: 120px;
                font-size: 0.7rem;
            }
            
            .btn--whatsapp {
                width: 35px;
                height: 35px;
            }
        }