/* assets/css/style.css */

/* Fuente Road Rage */
@import url('https://fonts.googleapis.com/css2?family=Road+Rage&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Road Rage', sans-serif;
}

/* Contenedor principal con scroll horizontal */
.sections-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

section {
    flex: 0 0 100vw;
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
}

/* Menú fijo superior */
.main-menu {
    position: fixed;
    top: 14px;
    left: 20px;
    z-index: 1000;
}

.main-menu ul {
    list-style: none;
    display: flex;
    gap: 16px;
    align-items: center;
}

.main-menu a {
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    text-shadow: 2px 2px 0px #000;
    transition: color 0.25s ease;
}

.main-menu a:hover {
    color: #9ab427; /* Verde lima contest94 */
}

/* INTRO */
#inicio {
    background: url('../images/fondo.png') no-repeat center center;
    background-size: cover;
}

.overlay {
    position: relative;
    width: 100%;
    height: 100%;
}

.icon-wrapper {
    position: absolute;
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.mod-icon {
    width: 180px;
    height: auto;
    animation: jitter 1s steps(2) infinite alternate;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@keyframes jitter {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(2px, -2px) rotate(-2deg) scale(1.02);
    }
    50% {
        transform: translate(-2px, 2px) rotate(2deg) scale(0.98);
    }
    75% {
        transform: translate(2px, 2px) rotate(-1deg) scale(1.01);
    }
    100% {
        transform: translate(-2px, -2px) rotate(1deg) scale(1);
    }
}

.mod-icon:hover {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0% {
        transform: translateY(0) scale(1);
    }
    30% {
        transform: translateY(-40px) scale(1.05);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    70% {
        transform: translateY(-20px) scale(1.03);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Tooltip */
.tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 2rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #9ab427; /* Verde lima */
    z-index: 2;
}

.icon-wrapper:hover .tooltip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.intro-text {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 3.5rem;
    color: #fff;
    text-transform: uppercase;
    text-shadow:
        3px 3px 0px #000,
        -2px -2px 0px #000;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* INFO TORNEO */
#info-torneo {
    background: url('../images/fondo.png') no-repeat center center;
    background-size: cover;
    color: #fff;
}

.info-title {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 5rem;
    color: #fff;
    text-shadow:
        3px 3px 0px #000,
        -2px -2px 0px #000;
    margin: 0;
    text-transform: uppercase;
}

.info-content {
    position: absolute;
    right: 40px;
    bottom: 10%;
    max-width: 40%;
    font-size: 1.8rem;
    line-height: 1.4;
    text-shadow: 2px 2px 0px #000;
}

/* Otras secciones */
#modalidades {
    background: #121212;
    color: #fff;
}

#formulario {
    background: #1f1f1f;
    color: #fff;
}

#galeria {
    background: #0a0a0a;
    color: #fff;
}

#terminos {
    background: #222;
    color: #fff;
}

.section-title {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 5rem;
    text-transform: uppercase;
    text-shadow:
        3px 3px 0px #000,
        -2px -2px 0px #000;
}

/* Responsive */
@media (max-width: 768px) {
    .mod-icon {
        width: 120px;
    }

    .tooltip {
        font-size: 1.4rem;
        padding: 6px 10px;
    }

    .intro-text {
        font-size: 2rem;
        bottom: 3%;
    }

    .info-content {
        max-width: 80%;
        font-size: 1.4rem;
    }

    .info-title,
    .section-title {
        font-size: 3rem;
    }
}

/* Roller animado en INFO */
.roller-info {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.roller-info.hidden {
    opacity: 0;
    transform: translateX(-300px) translateY(-50%) scale(0.9);
}

@keyframes slowSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-300px) translateY(-50%) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateX(20px) translateY(-50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(-50%) scale(1);
    }
}

.roller-info.animate {
    animation: slowSlideIn 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
