@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ========== ANIMACIONES GLOBALES ========== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 107, 107, 0.8);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========== SECCIÓN HERO ========== */

.hero {
    background: url("img/fotoinicio.jpeg") center / cover no-repeat;
    background-color: white;
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.titulo-principal {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    animation: slideInLeft 1s ease 0.2s both;
}

.subtitulo {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.95;
    animation: slideInRight 1s ease 0.4s both;
}

.btn-cta {
    background: linear-gradient(135deg, #65b9d8 0%, #17de6d 100%);
    color: #ffffff;
    border: none;
    padding: 15px 45px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    animation: pulse 2s infinite;
    /* Mejorar nitidez del texto */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.12);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-cta:active {
    transform: translateY(-1px);
}

.btn-grande {
    padding: 18px 60px;
    font-size: 1.3rem;
}

/* ========== SECCIÓN INFO CARDS ========== */

.info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 80px 40px;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    max-width: 1200px;
    margin: -60px auto 0;
    position: relative;
    z-index: 3;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.info-card:nth-child(1) {
    animation-delay: 0.2s;
}

.info-card:nth-child(2) {
    animation-delay: 0.4s;
}

.info-card:nth-child(3) {
    animation-delay: 0.6s;
}

.info-card:nth-child(4) {
    animation-delay: 0.8s;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #667eea;
}

.info-texto {
    font-size: 1.2rem;
    color: #764ba2;
    font-weight: 600;
}

/* Colores únicos para cada card */
.card-fecha {
    border-top: 5px solid #667eea;
}

.card-ubicacion {
    border-top: 5px solid #764ba2;
}

.card-equipos {
    border-top: 5px solid #ff6b6b;
}

.card-premio {
    border-top: 5px solid #ffd93d;
}

/* ========== SECCIÓN DESCRIPCIÓN ========== */

.descripcion-seccion {
    padding: 80px 40px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    text-align: center;
}

.descripcion-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.descripcion-seccion h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #667eea;
}

.descripcion-seccion p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

/* ========== SECCIÓN FASES ========== */

.fases-seccion {
    padding: 80px 40px;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.fases-seccion h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #667eea;
}

.fases-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.fase-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.fase-card:nth-child(1) {
    animation-delay: 0.2s;
}

.fase-card:nth-child(2) {
    animation-delay: 0.4s;
}

.fase-card:nth-child(3) {
    animation-delay: 0.6s;
}

.fase-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.fase-numero {
    font-size: 3rem;
    font-weight: 900;
    color: #667eea;
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 20px;
}

.fase-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.fase-card p {
    color: #666;
    margin-bottom: 10px;
}

.fase-desc {
    color: #764ba2;
    font-size: 0.95rem;
    font-style: italic;
}

/* ========== SECCIÓN PREMIOS ========== */

.premios-seccion {
    padding: 80px 40px;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

.premios-seccion h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.premios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.premio-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.premio-card:nth-child(1) {
    animation-delay: 0.2s;
}

.premio-card:nth-child(2) {
    animation-delay: 0.4s;
}

.premio-card:nth-child(3) {
    animation-delay: 0.6s;
}

.premio-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.premio-1 {
    transform: scale(1.05);
}

.medal {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: pulse 1s ease-in-out infinite;
}


.premio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.premio-cantidad {
    font-size: 2rem;
    font-weight: 900;
    margin: 15px 0;
    color: #ffd93d;
}

.premio-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== SECCIÓN REQUISITOS ========== */

.requisitos-seccion {
    padding: 80px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.requisitos-seccion h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #ffffff;
}

.requisitos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.req-item {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.req-item:nth-child(1) {
    animation-delay: 0.1s;
}

.req-item:nth-child(2) {
    animation-delay: 0.2s;
}

.req-item:nth-child(3) {
    animation-delay: 0.3s;
}

.req-item:nth-child(4) {
    animation-delay: 0.4s;
}

.req-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.req-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.req-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.req-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ========== SECCIÓN CTA ========== */

.cta-seccion {
    padding: 80px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-main {
    text-align: center;
    padding: 40px;
    animation: fadeInUp 0.8s ease;
}

.cta-seccion h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: slideInLeft 0.8s ease;
    font-weight: 900;
    letter-spacing: 1px;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.6;
}

.cta-seccion .btn-cta {
    animation: pulse 2s infinite;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    padding: 18px 60px;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-seccion .btn-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.4);
}

/* ========== SECCIÓN CONTACTO ========== */

.contact-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: slideInRight 0.8s ease;
}

.contact-section h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.contact-section>p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.contact-item:nth-child(1) {
    animation-delay: 0.4s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.5s;
}

.contact-item:opacity {
    opacity: 0;
}

.contact-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    flex-shrink: 0;
}

.contact-item>div {
    flex: 1;
}

.contact-label {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ========== FOOTER ========== */

.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b4581 100%);
    color: white;
    padding: 60px 20px;
    font-size: 0.9rem;
    border-top: 3px solid #10b981;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 2px 10px rgba(25, 224, 58, 0);
}

.colaboradores-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
    align-items: center;
}

.colaborador-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 8px 6px;
    transition: transform 0.28s ease, filter 0.28s ease;
    animation: fadeInUp 0.6s ease forwards;
}

.colaborador-item:hover {
    transform: translateY(-10px);
    filter: brightness(1.1);
}

.colaborador-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    filter: brightness(1);
    transition: filter 0.22s ease, transform 0.18s ease;
}

.colaborador-item:hover .colaborador-logo {
    filter: brightness(1);
}

.colaborador-item p {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    max-width: 220px;
    color: #e8e8e8;
    margin: 0;
}

.footer-copy {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #999;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .titulo-principal {
        font-size: 2.5rem;
    }

    .subtitulo {
        font-size: 1.1rem;
    }

    .info-container {
        padding: 60px 20px;
        gap: 20px;
    }

    .fases-container,
    .premios-container,
    .requisitos-grid {
        gap: 20px;
    }

    .fase-card,
    .info-card,
    .req-item,
    .premio-card {
        padding: 30px;
    }

    .descripcion-seccion h2,
    .fases-seccion h2,
    .requisitos-seccion h2 {
        font-size: 2rem;
    }

    .cta-seccion h2 {
        font-size: 2rem;
    }

    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .cta-main h2 {
        font-size: 2.2rem;
    }

    .contact-section {
        padding: 30px;
    }

    .premio-1 {
        transform: scale(1);
    }

    .hero {
        padding: 80px 20px;
    }

    .colaboradores-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-content h3 {
        font-size: 1.6rem;
        margin-bottom: 35px;
    }

    .colaborador-logo {
        width: 100px;
        height: 100px;
    }

    .colaborador-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .titulo-principal {
        font-size: 2rem;
    }

    .subtitulo {
        font-size: 1rem;
    }

    .btn-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .btn-grande {
        padding: 14px 40px;
    }

    .info-container {
        padding: 40px 15px;
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: 0;
    }

    .cta-main h2 {
        font-size: 1.8rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    .contact-section {
        padding: 25px;
    }

    .contact-section h3 {
        font-size: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .contact-label {
        font-size: 0.85rem;
    }

    .contact-value {
        font-size: 1rem;
    }

    .colaboradores-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-content h3 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .colaborador-logo {
        width: 80px;
        height: 80px;
    }

    .colaborador-item p {
        font-size: 0.75rem;
    }
}


a {
    text-decoration: none;
}

/* ========== MENÚ DESPLEGABLE ========== */

.hamburger-menu {
    position: absolute;
    /* ya no sigue al hacer scroll */
    top: 18px;
    left: 18px;
    width: 54px;
    height: 44px;
    /* espacio para 3 líneas */
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    /* mostrar las 3 líneas separadas */
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.22s ease;
    background: transparent;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
}

.hamburger-menu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%) scale(0.95);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12) 35%, rgba(255, 255, 255, 0.05) 60%, transparent 70%);
    filter: blur(14px);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 995;
    /* por debajo de las líneas */
    border-radius: 14px;
}

.hamburger-menu:hover::before,
.hamburger-menu:focus::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.03);
}

.hamburger-menu span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #000000 0%, #000000 100%);
    border-radius: 3px;
    transition: all 0.22s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    display: block;
    z-index: 1001;
    /* por encima del pseudo-elemento */
}

.hamburger-menu:hover span {
    background: linear-gradient(90deg, #000000 0%, #000000 100%);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.95), 0 0 34px rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

.hamburger-menu.active span:nth-child(1) {
    /* mantener horizontal: anulamos la rotación previa */
    transform: none !important;
    opacity: 1 !important;
}

.hamburger-menu.active span:nth-child(2) {
    transform: none !important;
    opacity: 1 !important;
}

.hamburger-menu.active span:nth-child(3) {
    transform: none !important;
    opacity: 1 !important;
}

/* Opcional: añadir un brillo sutil cuando el menú está activo */
.hamburger-menu.active span {
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.85), 0 0 36px rgba(255, 255, 255, 0.35);
}

.dropdown-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    padding: 100px 20px 20px 20px;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.active {
    left: 0;
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 18px 20px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid white;
    padding-left: 25px;
}

/* Overlay cuando el menú está activo */
body.menu-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
}


/* TEXTO DE COLABORADORES EN EL FOOTER */
.enlace-colaboradores {
    display: block;
    text-align: center;
    font-weight: 800;
    font-size: clamp(0.95rem, 1.2vw + 0.6rem, 1.1rem);
    line-height: 1.3;
    max-width: 180px;
    color: white;
    transition: transform 0.22s ease, filter 0.22s ease, text-shadow 0.22s ease;
    text-decoration: none;
    letter-spacing: 0.2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.enlace-colaboradores:hover {
    transform: translateY(-6px);
    filter: brightness(1.15);
    text-decoration: none;
    text-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}