/* ------------------------------------- */
/* ESTILOS DEL PRELOADER (MANTENIDOS)    */
/* ------------------------------------- */

.hidden {
display: none;
}

#preloader {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000;
    transition: opacity 0.5s ease-out; 
}

#logo-preloader {
    width: 220px; 
    height: 150px;
    border-radius: 50%; 
    animation: spin 1.5s linear infinite; 
}

#company-name {
    margin-top: 60px; 
    font-size: 1.5em; 
    
    color: #333333; 
    text-align: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Restablecer */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
}

/* ------------------------------------- */
/* ESTILOS DEL ENCABEZADO (Header Fijo)  */
/* ------------------------------------- */

.main-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    padding: 5px 30px; 
    background-color: transparent; 
    color: white;
    transition: background-color 0.3s ease; 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
}

.main-header.scrolled {
    background-color: #000000; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); 
}

.menu-toggle {
    display: none;
}

/* Logo y Nombre */
.logo-container h1 {
    margin: 0;
    font-size: 100%; 
}

.logo-container h1 a {
    display: flex; 
    align-items: center; 
    color: inherit;
    text-decoration: none;
}

.my-company-logo {
    height: 90px;
    width: auto;
    margin-right: 10px; 
}

.company-name {
    font-size: 1.7em; 
    font-weight: 300; 
    letter-spacing: 1px;
    color: #e0e0e0; 
    font-family:Georgia, 'Times New Roman', Times, serif;
}

/* Navegación */
.main-nav ul {
    list-style: none;
    display: flex; 
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav a:hover,
.main-nav a.active { 
    background-color: #ff1900;
    color: white;
}






/* -------------------------------------------------- */
/* ✅ BOTÓN WHATSAPP: VERSIÓN GRANDE + EFECTOS         */
/* -------------------------------------------------- */

.whatsapp-float {
    position: fixed;
    bottom: 30px; /* Separación del borde inferior */
    right: 30px;  /* Separación del borde derecho */
    width: 90px;  /* Tamaño del círculo */
    height: 90px; 
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.4);
    
    /* Z-INDEX: Máxima prioridad sobre cualquier elemento */
    z-index: 999999; 
    
    /* Estado inicial invisible para el JS */
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
    
    /* Suavidad para el cambio de color al pasar el mouse */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* --- 🔥 ANIMACIONES DE ENTRADA Y ESTADO ACTIVO --- */
.whatsapp-float.activo {
    opacity: 1;
    visibility: visible;
    /* Ejecuta rebote al entrar y pulso infinito */
    animation: bounceIn 0.8s both, pulse-green 2s infinite;
}

/* Efecto Hover (PC y Celular) */
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1); /* Crece un poco más al tocarlo */
}

/* 🟢 EL CUADRO DIAGONAL (Tamaño Grande) */
.whatsapp-tooltip {
    position: absolute;
    right: 110px; /* Posicionado a la izquierda del botón */
    background-color: #ffffff;
    color: #333333;
    padding: 15px 25px; 
    border-radius: 35px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 18px;    /* Texto grande y legible */
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #f0f0f0;
    
    /* EFECTO DIAGONAL INICIAL */
    opacity: 0;
    visibility: hidden;
    transform: translateX(25px) translateY(15px) rotate(-12deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

/* Mostrar Tooltip al hacer Hover */
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0) rotate(0deg);
}

/* Icono Grande */
.whatsapp-icon {
    width: 60px; 
    height: 60px;
    object-fit: contain;
    z-index: 2;
}

/* --- 🎭 KEYFRAMES (LAS ANIMACIONES) --- */

/* 1. Rebote de entrada */
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* 2. Pulso Verde (Aura circular expansiva) */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 25px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- AJUSTE RESPONSIVO PARA CELULARES --- */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 75px; /* Un poco más pequeño en móvil para no estorbar tanto */
        height: 75px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 50px;
        height: 50px;
    }
    .whatsapp-tooltip {
        right: 90px;
        font-size: 15px;
        visibility: visible; /* Se activa al tocar el botón */
    }
}







/* ------------------------------------- */
/* 🎯 ESTILOS DE LA NUEVA PORTADA (#anfitriones) */
/* ------------------------------------- */

#anfitriones {
    /* Nueva URL de la imagen */
    background: linear-gradient( rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.469)), url("../IMG/Gemini_Generated_Image_s7fbogs7fbogs7fb.png");
    background-size: cover;
    background-position: center 40%; 
    background-attachment: fixed;
    min-height: 86vh; /* Altura de la portada ajustada */
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-direction: column; 
    text-align: center;
    color: white; 
}

.presentacion {
    max-width: 800px; 
    padding: 20px;
    margin-top: 0;
}

.presentacion .bienvenida {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 2px;
}

.presentacion h2 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}
/*
.social-icons a {
    color: white;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: #ff1900;
}
*/
/* ----------------------------------- */
/* RESPONSIVIDAD (MÓVIL) */
/* ----------------------------------- */

@media (max-width: 768px) {
    /* Ajuste para la nueva portada en móvil */
    #anfitriones {
        min-height: 70vh; 
        background-position: center 30%;
    }
    
    .main-header {
        display: grid;
        grid-template-columns: 1fr auto; 
        padding: 15px 20px;
    }

    .menu-toggle {
        
        display: block;
        background: transparent;
        border: none;
        color: white;
        font-size: 2em;
        cursor: pointer;
        line-height: 1; 
        outline: none; 
    }

    .main-nav {
        grid-column: 1 / 3; 
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .main-nav.open {
        max-height: 300px; 
        padding-top: 10px;
    }

    .main-nav ul {
        flex-direction: column; 
    }

    .main-nav li {
        margin: 5px 0; 
        text-align: center;
    }

    .main-nav a {
        display: block; 
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .my-company-logo {
        height: 50px;
    }

    /* Ajuste de Texto de Portada en móvil */
    .presentacion {
        margin-top: 50px; 
    }
    .presentacion h2 {
        font-size: 2em;
    }
    .presentacion .bienvenida {
        font-size: 1.2em;
    }
}


* ------------------------------------- */
/* 📋 ESTILOS DE LA BIO (SECCIÓN NOSOTROS) */
/* ------------------------------------- */

.bio-section {
    background-color: #f4f4f4; /* Fondo claro */
    padding: 80px 20px;
    text-align: center;
}

.bio-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 110px 20px;
    color: #333;
}

.bio-name {
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 5px;
    color: #6f0101; /* Un tono gris para el nombre */
}

.bio-title {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 30px;
    color: #9a0202;
}

.bio-about {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #666;
    text-transform: uppercase;
}

.bio-text p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
    text-align: left; /* Alineación del texto de la biografía */
}


/* ----------------------------------- */
/* RESPONSIVIDAD (MÓVIL) */
/* ----------------------------------- */

@media (max-width: 768px) {
    /* ... (Estilos de menú y portada móvil anteriores se mantienen) ... */

    #anfitriones {
        min-height: 70vh; 
        background-position: center 30%;
    }
    
    .bio-section {
        padding: 50px 15px;
    }
    
    .bio-name {
        font-size: 2em;
    }
    
    .bio-title {
        font-size: 1.2em;
    }
}






/* ------------------------------------- */
/* ESTILOS DE LA SECCIÓN ÚLTIMAS CLASES (#ultimas-clases) */
/* ------------------------------------- */

.ultimas-clases-section {
    padding: 80px 20px;
    padding-top: 100px;
    background-color: #c91919; /* Fondo blanco */
    text-align: center;
}

.section-title {
    font-size: 6em;
    color: #ffffff;
    margin-bottom: 50px;
    font-weight: 900;
    text-transform: uppercase;
    font-family: 'Times New Roman', Times, serif;
}

.header-clases {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding: 0 10px;
}

.subtitle-clases {
    font-size: 2.2em;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
}

.ver-mas-link {
    font-size: 0.9em;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.ver-mas-link:hover {
    color: #000000;
    text-decoration: underline;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Permite envolver las tarjetas en móvil */
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    width: 280px; /* Ancho fijo para cada tarjeta (similar a la imagen) */
    display: block;
    transition: transform 0.3s ease;
}

.video-card-link:hover {
    transform: translateY(-5px);
}

.video-card {
    background-color: #000000; /* Fondo negro como en el ejemplo */
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    height: 100%; /* Ocupa la altura completa del enlace */
}

.video-thumbnail {
    width: 100%;
    height: 150px; /* Altura de la miniatura */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.play-icon {
    font-size: 3em;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.video-card-link:hover .play-icon {
    color: #ff0000; /* Icono rojo al pasar el ratón */
}

.video-info {
    padding: 15px;
    text-align: left;
    color: white;
}

.video-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.3;
}

.video-desc {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 15px;
}

/* Metadata (Autor y Fecha) */
.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #aaa;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.speaker {
    display: flex;
    align-items: center;
}

.speaker-img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.date i {
    margin-right: 5px;
    color: #ff0000;
}

/* Responsividad para la nueva sección */
@media (max-width: 900px) {
    .cards-container {
        gap: 15px;
    }
    .video-card-link {
        width: 45%; /* Dos tarjetas por fila */
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 3.2em;

    }
    .header-clases {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .subtitle-clases {
        font-size: 1em;
    }
    .video-card-link {
        width: 90%; /* Una tarjeta por fila en móvil */
        max-width: 350px;
    }
}
