* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Mona Sans", serif;
    font-weight: 400;
    font-style: normal;
}

html {
    scroll-behavior: auto;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

a {
    text-decoration: none;
}

/* Pantalla 1 */
.pantalla1 {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    overflow: hidden;
    scroll-snap-align: start;
}

/* Contenedor del logo */
.logoIni {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Letras de RAYA */
.rayaIni {
    display: flex;
    justify-content: center;
    width: 270px;
    animation: rayaIniopa 2s;
}
@keyframes rayaIniopa {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.letras img {
    height: 80px;
    margin: 0 5px;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: shrink 1s ease-in-out forwards;
}

.letras img:hover {
    transform: scale(1.1);
}

.letras:nth-child(1) img { animation-delay: 0s; }
.letras:nth-child(2) img { animation-delay: 0.3s; }
.letras:nth-child(3) img { animation-delay: 0.6s; }
.letras:nth-child(4) img { animation-delay: 0.9s; }

/* Texto < CODE & DESIGN > */
.codeDesign {
    width: 360px;
    text-align: center;
}

.codeDesign p {
    color: #848484;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 3px;
    white-space: nowrap;
    animation: slideUp 1s ease-in-out 1.6s forwards;
    opacity: 0;
}

/* Barras de colores */
.logoColors {
    display: flex;
    justify-content: center;
    width: 360px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 2s forwards;
}

.logoColors1, .logoColors2, .logoColors3, .logoColors4 {
    width: 110px;
    height: 15px;
    display: inline-block;
}

.logoColors1 { background: #ee7752; }
.logoColors2 { background: #e73c7e; }
.logoColors3 { background: #23a6d5; }
.logoColors4 { background: #23d5ab; }

/* Animaciones */
@keyframes shrink {
    0% { transform: scale(20) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; width: 0px; }
    100% { opacity: 1; }
}

/* Contenedor de los puntos */
.nav-dots {
    position: fixed;
    left: 98%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    animation: fadeInDots 1s ease-in-out forwards;
    animation-delay: 2.5s;
    align-items: center;
}

@keyframes fadeInDots {
    0% { opacity: 0; visibility: hidden; scale: 5; gap: 200px; }
    100% { opacity: 1; visibility: visible; }
}

/* Estilo de cada punto */
.dot {
    position: relative;
    width: 12px;
    height: 12px;
    background-color: #aaa;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot:hover {
    background-color: black;
}

.dot.active {
    width: 16px;
    height: 16px;
    background-color: #dadada;
}

/* Estilo base de las etiquetas */
.dot-label {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    font-size: 1rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    text-align: right;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.dot-label:hover{
    font-size: 1.1rem;
}

/* Mostrar automáticamente (inicio) con desplazamiento desde la derecha */
.dot-label.visible {
    opacity: 1;
    visibility: visible;
    font-weight: bold;
    transform: translateY(-50%) translateX(-40px);
}

/* Ocultar sin animación forzada (salida de inicio) */
.dot-label.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(0);
}

/* Hover: se muestra y se desplaza hacia la izquierda SOLO si no está visible */
.dot:hover .dot-label:not(.visible) {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-40px);
    font-weight: bold;
}

/* Estilos para los banners */
.banner {
    width: 100%;
    overflow: hidden;
    position: absolute;
    background: transparent;
}

.banner-top {
    top: 15px;
    height: 45px;
}

.banner-bottom {
    bottom: 25px;
    height: 50px;
}

.banner-text {
    display: inline-block;
    color: #e6e6e6;
    font-family: "Mona Sans", serif;
    font-size: 2rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 20px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInBanner 1s ease-in-out forwards;
    animation-delay: 4s;
}

.banner-top .banner-text {
    animation: scroll-left 25s linear infinite 3s, fadeInBanner 1s ease-in-out forwards 3.5s;
}

.banner-bottom .banner-text {
    animation: scroll-right 25s linear infinite 3s, fadeInBanner 1s ease-in-out forwards 3.5s;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes fadeInBanner {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    .rayaIni {
        width: 150px;
    }

    .letras img {
        height: 40px;
        margin: 0 2px;
    }

    .codeDesign {
        width: 200px;
    }

    .codeDesign p {
        font-size: 1.2rem;
    }

    .logoColors {
        width: 200px;
    }

    .logoColors1, .logoColors2, .logoColors3, .logoColors4 {
        width: 60px;
        height: 10px;
    }

    .nav-dots {
        left: 90%;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 12px;
        height: 12px;
    }

    .dot-label {
        font-size: 0.8rem;
    }

    .banner-text {
        font-size: 1.2rem;
        padding: 5px 10px;
    }
}
