/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f5;
    min-height: 100vh;
}

/* ===== BARRA FLOTANTE ===== */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 700px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a4fd4;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 8px 32px rgba(26, 79, 212, 0.35);
    transition: all 0.3s ease;
}

.nav-container:hover {
    box-shadow: 0 12px 40px rgba(26, 79, 212, 0.45);
}

/* ===== LOGO ===== */
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ===== ENLACES DE NAVEGACIÓN ===== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-links li a:active {
    transform: translateY(0);
}

/* ===== AVATAR DERECHO ===== */
.nav-avatar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-avatar img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 3px;
}

.nav-avatar img:hover {
    transform: scale(1.1);
}

/* ===== BOTÓN HAMBURGUESA ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===== MENÚ MÓVIL ===== */
.nav-mobile-menu {
    display: none;
    background: #1a4fd4;
    border-radius: 20px;
    margin-top: 10px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(26, 79, 212, 0.35);
    animation: slideDown 0.3s ease;
}

.nav-mobile-menu.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-mobile-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    display: block;
    transition: all 0.3s ease;
}

.nav-mobile-links li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== SECCIÓN HERO CON GIF ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
    position: relative;
    z-index: 10;
    background: #f0f0f5;
}

.content-section {
    padding: 100px 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section.alt-bg {
    background: #e8e8f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.container h2 {
    font-size: 3rem;
    color: #1a4fd4;
    margin-bottom: 20px;
    font-weight: 700;
}

.container p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 768px) {
    .floating-nav {
        width: 92%;
        top: 15px;
    }

    .nav-container {
        padding: 10px 16px;
    }

    .nav-links li a {
        font-size: 13px;
        padding: 7px 12px;
    }

    .nav-logo img,
    .nav-avatar img {
        width: 32px;
        height: 32px;
    }
}

/* ===== RESPONSIVE - MÓVIL ===== */
@media (max-width: 520px) {
    .floating-nav {
        width: 94%;
        top: 12px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-container {
        padding: 10px 14px;
    }

    .nav-logo img,
    .nav-avatar img {
        width: 30px;
        height: 30px;
    }

    /* HERO EN MÓVIL - GIF COMPLETO PEGADO ARRIBA */
    .hero-section {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
        margin-top: 70px; /* Espacio para la navbar flotante */
    }

    .hero-background {
        position: relative;
        width: 100%;
        height: auto;
    }

    .hero-gif {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: top center;
        display: block;
    }

    .content-section {
        padding: 60px 20px;
    }

    .container h2 {
        font-size: 2rem;
    }
}

/* ===== RESPONSIVE - MÓVIL PEQUEÑO ===== */
@media (max-width: 360px) {
    .floating-nav {
        width: 96%;
        top: 10px;
    }

    .nav-container {
        padding: 8px 12px;
    }

    .nav-logo img,
    .nav-avatar img {
        width: 28px;
        height: 28px;
    }

    .hero-section {
        margin-top: 60px;
    }
}

/* ===== BOTONES CIRCULARES ===== */
.circular-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    padding: 20px;
}

.circular-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.circular-button:hover {
    transform: translateY(-10px);
}

.button-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 5px solid transparent;
}

.circular-button:hover .button-circle {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Colores específicos para cada botón */
.circular-button:nth-child(1) .button-circle {
    border-color: #00a8e8; /* Educación - Azul */
}

.circular-button:nth-child(2) .button-circle {
    border-color: #f9c80e; /* MKT - Amarillo */
}

.circular-button:nth-child(3) .button-circle {
    border-color: #e63946; /* IA - Rojo */
}

.circular-button:nth-child(4) .button-circle {
    border-color: #f4a261; /* Space - Naranja */
}

.circular-button:nth-child(5) .button-circle {
    border-color: #3cc027; /* Inventor - Verde */
}

.button-circle img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.circular-button:hover .button-circle img {
    transform: scale(1.05);
}

.button-label {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.circular-button:hover .button-label {
    color: #1a4fd4;
    transform: scale(1.05);
}

/* Efecto de brillo */
.button-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.circular-button:nth-child(1) .button-glow {
    background: radial-gradient(circle, rgba(0, 168, 232, 0.4) 0%, transparent 70%);
}

.circular-button:nth-child(2) .button-glow {
    background: radial-gradient(circle, rgba(249, 200, 14, 0.4) 0%, transparent 70%);
}

.circular-button:nth-child(3) .button-glow {
    background: radial-gradient(circle, rgba(230, 57, 70, 0.4) 0%, transparent 70%);
}

.circular-button:nth-child(4) .button-glow {
    background: radial-gradient(circle, rgba(244, 162, 97, 0.4) 0%, transparent 70%);
}

.circular-button:nth-child(5) .button-glow {
    background: radial-gradient(circle, rgba(60, 192, 39, 1) 0%, transparent 70%);
}

.circular-button:hover .button-glow {
    opacity: 1;
    transform: scale(1.3);
}

/* Animación de flotación */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.circular-button:nth-child(odd) {
    animation: float 3s ease-in-out infinite;
}

.circular-button:nth-child(even) {
    animation: float 3s ease-in-out infinite 1.5s;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 768px) {
    .circular-buttons-container {
        gap: 30px;
    }

    .button-circle {
        width: 120px;
        height: 120px;
    }

    .button-label {
        font-size: 1rem;
    }
}

/* ===== RESPONSIVE - MÓVIL ===== */
@media (max-width: 520px) {

    .floating-nav {
        width: 94%;
        top: 12px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-container {
        padding: 10px 14px;
    }

    .nav-logo img,
    .nav-avatar img {
        width: 30px;
        height: 30px;
    }

    /* HERO EN MÓVIL - GIF COMPLETO PEGADO ARRIBA */
    .hero-section {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
        margin-top: 70px;
    }

    .hero-background {
        position: relative;
        width: 100%;
        height: auto;
    }

    .hero-gif {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: top center;
        display: block;
    }

    .content-section {
        padding: 60px 20px;
    }

    .container h2 {
        font-size: 2rem;
    }

    .circular-buttons-container {
        gap: 25px;
        padding: 10px;
    }

    .button-circle {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .button-circle img {
        width: 120%;
        height: 120%;
        object-fit: cover;
        transition: all 0.3s ease;
    }

    .button-label {
        font-size: 0.9rem;
        margin-top: 10px;
    }

    .circular-button:hover {
        transform: translateY(-5px);
    }

    .circular-button:hover .button-circle {
        transform: scale(1.05);
    }

    .circular-button:hover .button-circle img {
        transform: scale(1.05);
    }
}

/* ===== RESPONSIVE - MÓVIL PEQUEÑO ===== */
@media (max-width: 360px) {

    .button-label {
        font-size: 0.8rem;
    }
}