body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px; /* Espacio para el header flotante */
    color: #333;
    background-color: #f4f4f9;
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* HEADER (Flotante) */
.header {
    background-color: #002c5f; /* Color azul oscuro de fondo */
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* CONTENEDOR DE LOGO Y TEXTO */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    height: 50px;
    width: auto;
    display: block;
}
.logo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

/* NAVEGACIÓN */
.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.nav ul li {
    margin-left: 25px;
}
.nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    /* Animación: Transición en el color y la sombra */
    transition: color 0.3s, text-shadow 0.3s;
}
.nav ul li a:hover {
    color: #ffcc00; /* Amarillo para el hover */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* SECCIONES Y TARJETAS */
section {
    padding: 60px 0;
    text-align: center;
}
h2 {
    color: #002c5f;
    font-size: 2.2em;
    margin-bottom: 40px;
    border-bottom: 3px solid #ffcc00;
    display: inline-block;
    padding-bottom: 5px;
}
.card-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}
.card {
    background-color: white;
    padding: 30px;
    margin: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 45%;
    text-align: left;
    /* Animación: Transición en la sombra y la escala */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* BANNER PRINCIPAL */
#inicio {
    background-color: #004d99;
    color: white;
    padding: 100px 0;
}
#inicio h1 {
    font-size: 3em;
    margin-bottom: 10px;
    /* Animación: Ligera caída al cargar */
    animation: fadeInDown 1s ease-out;
}

/* KEYFRAMES PARA ANIMACIONES */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* BOTONES DE PLATAFORMA Y LIMPIAR */
.platform-button, .clear-button {
    background-color: #ffcc00;
    color: #002c5f;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin: 10px 5px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.platform-button:hover, .clear-button:hover {
    background-color: #ffe066;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Estilo específico para el botón de limpiar */
.clear-button {
    background-color: #cc0000;
    color: white;
}
.clear-button:hover {
    background-color: #ff3333;
}


/* CONTENEDOR DE TABLAS (OCULTO/VISIBLE) */
.platform-content {
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow-x: auto;
    /* Animación: Aparecer con un fade-in */
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.course-table th, .course-table td {
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 0.9em;
}
.course-table th {
    background-color: #002c5f;
    color: white;
    text-transform: uppercase;
}


/* FOOTER */
.footer {
    background-color: #222;
    color: white;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

/* BOTÓN DE WHATSAPP FLOTANTE */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 2.5em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s;
}
.whatsapp-button:hover {
    transform: scale(1.1) rotate(5deg); /* Animación extra al hacer hover */
}

/* ESTILOS DE LA GALERÍA */
#galeria {
    background-color: #ffffff;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.3s;
}
.gallery-item:hover {
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 300px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
}

/* ESTILOS DE LA SECCIÓN YOUTUBE */
#youtube {
    background-color: #fff;
    padding: 60px 0;
}
.youtube-channel-btn {
    display: inline-block;
    background-color: #FF0000; /* Rojo YouTube */
    color: white;
    padding: 15px 30px;
    margin-bottom: 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.3s;
}
.youtube-channel-btn:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.video-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.video-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 400px; /* Ancho máximo para videos horizontales */
}
.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.video-item.shorts {
    /* Configuración para el video vertical (Shorts) */
    width: 100%;
    max-width: 250px;
    height: 450px; /* Alto fijo para el short */
}

.video-item iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}


/* ESTILOS DE LA VENTANA MODAL (CABINAS Y LIGHTBOX) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    padding-top: 50px;
    /* Animación: Aparecer con un fade */
    animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Contenido para Modal de Cabinas */
#cabinasModal .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%; 
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: left;
}

/* Contenido para Modal de Imagen (Lightbox) */
#imageModal .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

#modalImage {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.close {
    color: #fff; /* Color blanco para el botón de cierre del Lightbox */
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
#cabinasModal .close {
    color: #aaa; /* Color gris para el botón de cierre de la Modal de Cabinas */
}
.close:hover, .close:focus {
    color: #ffcc00;
    text-decoration: none;
    cursor: pointer;
}

.tabla-imagen {
width: 100%;
max-width: 900px;
margin: 20px auto;
display: block;
border-radius: 10px;
}

/* ============================= */
/*      ESTILOS DE COMENTARIOS  */
/* ============================= */

#comentarios {
    background: #f2f7ff;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 3px solid #003c80;
}

.comment-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.comment-box input,
.comment-box textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #003c80;
    border-radius: 8px;
    font-size: 16px;
}

.comment-box button {
    width: 200px;
    padding: 10px;
    background: #003c80;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.comment-box button:hover {
    background: #0059c0;
}

.comment-list {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #d0d7e5;
}

.comment-item {
    padding: 12px;
    margin-bottom: 12px;
    background: #eef4ff;
    border-left: 4px solid #003c80;
    border-radius: 6px;
}

.comment-item h4 {
    margin: 0;
    font-size: 17px;
    color: #003c80;
}

.comment-item p {
    margin: 5px 0 0;
}

  .btn-cabinas {
    display: inline-block;
    padding: 14px 28px;
    background: #ffe066;
    color: #000;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: brillo 2s infinite;
  }

  @keyframes brillo {
    0% {
      box-shadow: 0 0 5px #ffe066, 0 0 10px #ffd43b;
    }
    50% {
      box-shadow: 0 0 15px #ffe066, 0 0 25px #ffd43b;
    }
    100% {
      box-shadow: 0 0 5px #ffe066, 0 0 10px #ffd43b;
    }
  }
/* ================================
   ESTILOS PARA MÓVIL (RESPONSIVE)
   ================================ */
   @media (max-width: 768px) {

    /* HEADER */
    .header .container {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }

    .logo-container {
        flex-direction: column;
        align-items: center;
    }

    .logo-img {
        width: 120px;
        margin-bottom: 10px;
    }

    .nav ul {
        flex-direction: column;
        gap: 12px;
        padding: 0;
        margin-top: 15px;
    }

    .nav ul li a {
        font-size: 18px;
        padding: 10px;
    }

    /* TITULOS */
    h1, h2, h3 {
        text-align: center;
    }

    /* SECCIONES */
    .container {
        padding: 15px;
    }

    /* CARDS */
    .card-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* IMÁGENES DE TABLAS */
    .tabla-imagen {
        width: 100%;
        height: auto;
    }

    /* GALERÍA */
    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item img {
        width: 100%;
        border-radius: 10px;
    }

    /* VIDEOS */
    .video-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .video-item iframe {
        width: 100%;
        height: 220px;
    }

    /* BOTONES DE PLATAFORMAS */
    .platform-button, .clear-button {
        width: 100%;
        margin: 5px 0;
        font-size: 18px;
        padding: 12px;
    }

    /* FORMULARIO DE COMENTARIOS */
    .comment-box {
        display: flex;
        flex-direction: column;
    }

    .comment-box input,
    .comment-box textarea {
        width: 100%;
        font-size: 16px;
    }

    /* BOTÓN WHATSAPP */
    .whatsapp-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 15px;
        font-size: 28px;
    }

    /* BOTÓN CABINAS BRILLANTE */
    .btn-cabinas {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}
@media (max-width: 768px) {

    /* HEADER HORIZONTAL */
    .header .container {
        display: flex;
        flex-direction: row;      /* ← Mantener horizontal */
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .logo-container {
        display: flex;
        flex-direction: row;      /* ← Mantener horizontal */
        align-items: center;
        gap: 10px;
    }

    .logo-img {
        width: 60px;  /* Más pequeño para que no rompa el diseño */
    }

    .logo-text {
        font-size: 16px;
        font-weight: bold;
        white-space: nowrap;
    }

    /* MENÚ EN UNA FILA PERO CON SCROLL SI NO CABE */
    .nav ul {
        display: flex;
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;        /* ← Permite deslizar si no cabe */
        white-space: nowrap;
        padding: 5px 0;
    }

    .nav ul li a {
        font-size: 16px;
        padding: 6px 10px;
    }
}
/* --- QUE TODO SE VEA CENTRADO EN CELULAR --- */
@media (max-width: 768px) {

    /* Centrar contenedores */
    .container {
        text-align: center;
    }

    /* HEADER CENTRADO Y ORDENADO */
    .header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
    }

    .logo-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .logo-img {
        width: 60px;
    }

    /* MENÚ QUE NO SE ROMPE EN CELULAR */
    .nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .nav ul li a,
    .btn-cabinas {
        font-size: 16px;
        padding: 8px 14px;
        display: inline-block;
    }

    /* HACER QUE CABINAS SE VEA EN CELULAR */
    .btn-cabinas {
        background: yellow;
        color: black;
        font-weight: bold;
        border-radius: 8px;
        animation: cabinablink 1.5s infinite;
    }

    @keyframes cabinablink {
        0% { box-shadow: 0 0 8px yellow; }
        50% { box-shadow: 0 0 18px gold; }
        100% { box-shadow: 0 0 8px yellow; }
    }

}

/* --- ESTILO DEL COMENTARIO --- */
.comment {
    background: #f3f3f3;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: left;
}

.delete-comment {
    background: red;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
}
/* Contenedor que aparece en pantalla completa */
.fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fullscreen-container {
    position: relative;
}

.fullscreen-image {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 10px;
}

.close-fullscreen {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    color: black;
    font-size: 28px;
    padding: 4px 12px;
    border-radius: 50%;
    cursor: pointer;
}
.tiktok-button {
    position: fixed;
    bottom: 90px; /* arriba del WhatsApp */
    right: 20px;
    width: 60px; /* tamaño similar al de WhatsApp */
    height: 60px;
    z-index: 1000;
}

.tiktok-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(255, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tiktok-button img:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 10px rgba(183, 9, 9, 0.4);
}
/* --- COLORES BASE --- */
:root {
    --color-principal: #002c5f; /* Azul Oscuro (Del logo) */
    --color-acento: #ffcc00; /* Amarillo/Dorado */
    --color-secundario: #a300ff; /* Púrpura/Magenta (Del logo, para fondos sutiles) */
    --color-fondo-claro: #f4f9ff; /* Fondo muy claro, con toque azul */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px; /* Espacio para el header flotante */
    color: #333;
    background-color: var(--color-fondo-claro);
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center; /* ¡IMPORTANTE! Centra todos los textos por defecto */
}

/* HEADER (Flotante) */
.header {
    background-color: var(--color-principal); 
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    text-align: left; /* Restablecer para el header */
}

/* CONTENEDOR DE LOGO Y TEXTO */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    height: 50px;
    width: auto;
    display: block;
}
.logo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

/* BOTÓN DE HAMBURGUESA (Oculto por defecto en escritorio) */
.menu-toggle {
    display: none; /* Oculto en vista de escritorio */
    background: transparent;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    z-index: 1001;
}

/* NAVEGACIÓN DE ESCRITORIO */
.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.nav ul li {
    margin-left: 25px;
}
.nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav ul li a:hover {
    color: var(--color-acento);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* SECCIONES Y TARJETAS */
section {
    padding: 60px 0;
    /* text-align: center; (Ahora está en .container) */
}
h2 {
    color: var(--color-principal);
    font-size: 2.2em;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--color-acento);
    display: inline-block;
    padding-bottom: 5px;
}
.card-grid {
    display: flex;
    justify-content: center; /* Centrar las tarjetas */
    flex-wrap: wrap;
    margin-top: 30px;
}
.card {
    background-color: white;
    padding: 30px;
    margin: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 45%;
    text-align: center; /* Centrar texto dentro de la tarjeta */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* BANNER PRINCIPAL */
#inicio {
    background-color: var(--color-principal);
    color: white;
    padding: 100px 0;
}
#inicio h1 {
    font-size: 3em;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease-out;
}

/* SECCIÓN DE CURSOS - NUEVO COLOR DE FONDO */
#cursos {
    background-color: #e6e6ff; /* Un lila muy sutil, cerca del púrpura del logo */
}

/* FOOTER */
.footer {
    background-color: #222;
    color: white;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer a {
    color: var(--color-acento);
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

/* BOTÓN WHATSAPP/TIKTOK FLOTANTE - AJUSTES PARA ESPACIO */
.whatsapp-button {
    bottom: 20px;
}
.tiktok-button {
    bottom: 90px;
}

/* BOTÓN CABINAS BRILLANTE */
.btn-cabinas {
    display: inline-block;
    padding: 10px 15px; /* Ajuste el padding para móvil y escritorio */
    background: var(--color-acento);
    color: var(--color-principal);
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: brillo 2s infinite;
}


/* =======================================
   MEDIA QUERIES (RESPONSIVE PARA MÓVIL)
   ======================================= */
@media (max-width: 992px) {
    /* Mostrar el botón de hamburguesa */
    .menu-toggle {
        display: block; 
    }

    /* Ocultar la navegación por defecto */
    .nav {
        display: none;
        position: absolute;
        top: 70px; /* Debajo del header */
        left: 0;
        width: 100%;
        background-color: var(--color-principal);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
        /* Animación de apertura */
        transition: transform 0.3s ease-out;
    }

    /* Mostrar la navegación cuando tenga la clase 'open' */
    .nav.open {
        display: block;
    }

    /* Estilos de la lista de navegación en móvil */
    .nav ul {
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
    }
    .nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    .nav ul li a {
        display: block;
        padding: 10px;
        font-size: 1.1em;
    }
    
    .cabinas-item {
        margin-top: 15px;
    }

    .btn-cabinas {
        width: 80%;
    }

    /* AJUSTES DE TAMAÑO PARA TITULOS GRANDES EN MÓVIL */
    #inicio h1 {
        font-size: 2em; /* Título más pequeño */
    }
    h2 {
        font-size: 1.8em;
    }

    /* Las tarjetas ocupan todo el ancho en móvil */
    .card {
        width: 90%;
        margin: 10px 0;
    }

    /* AJUSTES GENERALES */
    .container {
        padding: 15px;
        text-align: center;
    }
    section {
        padding: 40px 0;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2em;
    }

    /* Estilo del header en móvil para evitar que se rompa */
     .header .container {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
     }

}

/* --- MANTENER TODOS LOS TEXTOS CENTRADOS EN MOBILE --- */
@media (max-width: 992px) {
    /* Aplicar centrado a todo el contenido del body */
    .container, 
    #inicio, 
    #modalidades, 
    #cursos, 
    #quienes-somos, 
    #galeria, 
    #youtube, 
    #comentarios,
    .card,
    .comment-item {
        text-align: center;
    }

    /* Centrar elementos que no son texto directamente */
    .card-grid, .video-grid, .gallery-grid {
        justify-content: center;
    }
}
/* Tu código CSS existente continúa aquí (excepto las partes que reemplacé/moví) */
/* ... (El resto de tu código CSS original: keyframes, botones, tablas, etc.) */