/* video background */ 

/* Estilo base para el video de fondo */
/* Estilo base para el video de fondo */
.video-fondo {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

/* Para pantallas pequeÃƒÆ’Ã‚Â±as (384px - 479px) */
@media (max-width: 479px) {
    .video-fondo {
        width: 100%;
        height: 19em;
        position: absolute;
        top: 18%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }
}

/* Para pantallas pequeÃƒÆ’Ã‚Â±as (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .video-fondo {
        width: 100%;
        height: auto;
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }
}

/* Para tabletas pequeÃƒÆ’Ã‚Â±as (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .video-fondo {
        width: 100%;
        height: auto;
        position: absolute;
        top: 28%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }
}

/* Para monitores medianos (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .video-fondo {
        width: 100%;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }
}

/* Para monitores grandes (1281px - 1600px) */
@media (min-width: 1281px) and (max-width: 1600px) {
    .video-fondo {
        width: 100%;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }
}

/* Para pantallas muy grandes (1601px - 2000px) */
@media (min-width: 1601px) and (max-width: 2000px) {
    .video-fondo {
        width: 100%;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }
}

/* Para pantallas ultra grandes (>2000px) */
@media (min-width: 2001px) {
    .video-fondo {
        width: 100%;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }
}

/* Bienvenida inicio nuevo 2025 */
.black-screen {
  position: absolute;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 10;
  animation: fadeOut 0.5s forwards ease-in-out;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Bienvenida */
.welcome-container {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 9;
  animation: slideDown 2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -70%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.register-btn {
    display: block;
    width: 80%; /* Ocupa más ancho en móviles */
    margin: 20px auto; /* Centrar el botón */
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 0; /* Espaciado interno ajustado */
    font-size: 14px; /* Reducir tamaño de fuente */
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.register-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}


.register-btn:active {
    background-color: #003d80; /* Fondo aÃºn mÃ¡s oscuro al presionar */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) inset; /* Sombra interna para simular presiÃ³n */
    transform: translateY(2px); /* BotÃ³n hacia abajo */
}


/* Bola con candado */
.circle-container {
    position: absolute;
    top: 10em; /* Ajusta a la posición inicial deseada */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}


.circle-container.stopped {
    top: 350px;
    transform: translateX(-8.56365px) rotate(-4.28183deg);
}


/* Base */
.circle {
    left: -5em;
    top: 10em;
    width: 150px;
    height: 150px;
    background-color: #ccc;
    border-radius: 50%;
    position: absolute;
}

/* Pantallas grandes (1200px a 1499px) */
@media (min-width: 1200px) and (max-width: 1499px) {
    .circle {
        left: -5em; /* Ajusta la posición izquierda */
        top: 12em; /* Ajusta la posición superior */
        width: 161px; /* Incrementa el ancho */
        height: 180px; /* Incrementa la altura */
    }
}

/* Pantallas muy grandes (1500px a 1999px) */
@media (min-width: 1500px) and (max-width: 1999px) {
    .circle {
        left: -6em; /* Ajusta la posición izquierda */
        top: 18em; /* Ajusta la posición superior */
        width: 200px; /* Incrementa aún más el ancho */
        height: 200px; /* Incrementa aún más la altura */
    }
}

/* Pantallas ultra grandes (2000px en adelante) */
@media (min-width: 2000px) {
    .circle {
        left: -12em; /* Ajusta la posición izquierda */
        top: 16em; /* Ajusta la posición superior */
        width: 250px; /* Tamaño mayor para pantallas ultra grandes */
        height: 250px; /* Tamaño mayor para pantallas ultra grandes */
    }
}


.circle-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* Base */
.lock-icon {
    right: 57px;
    margin-top: -4.4em;
    position: absolute;
    font-size: 2rem;
    z-index: 2;
    cursor: pointer;
}

/* Pantallas grandes (1200px a 1499px) */
@media (min-width: 1200px) and (max-width: 1499px) {
    .lock-icon {
        right: 58px; /* Ajusta la posición hacia la derecha */
        margin-top: -4.3em; /* Ajusta el margen superior */
        font-size: 2.5rem; /* Incrementa ligeramente el tamaño */
    }
}

/* Pantallas muy grandes (1500px a 1999px) */
@media (min-width: 1500px) and (max-width: 1999px) {
    .lock-icon {
        right: 72px; /* Incrementa la posición hacia la derecha */
        margin-top: -3.9em; /* Ajusta más el margen superior */
        font-size: 3rem; /* Aumenta el tamaño de la fuente */
    }
}

/* Pantallas ultra grandes (2000px en adelante) */
@media (min-width: 2000px) {
    .lock-icon {
        right: 110px; /* Mayor ajuste hacia la derecha */
        margin-top: -6em; /* Incrementa el margen superior */
        font-size: 3.5rem; /* Tamaño mayor para pantallas ultra grandes */
    }
}


.unlock-text {
    position: absolute;
    bottom: -30px;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
} 


/* Login */
.login-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  animation: bounceIn 2s ease-in-out;
}

@keyframes bounceIn {
  0% { transform: scale(0.9); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Idiomas */
.language-selector {
  position: fixed;
  bottom: 10px;
  left: 10px;
  color: white;
  font-size: 16px;
  z-index: 2;
}
.language-selector span {
  margin-right: 10px;
  cursor: pointer;
  opacity: 0.7;
}
.language-selector span:hover {
  opacity: 1;
}


.welcome-container {
  perspective: 1000px;
}

.welcome-text {
    color: #fbffca;
    transform: translateZ(0);
    transition: transform 1s ease-out;
    text-shadow: 0 0 5px #fbffca, 0 0 10px #000000, 0 0 20px #ffffff, 0 0 40px #ffd7005c, 0 0 80px #000000;      /* Luz dorada mÃ¡s amplia */
}


.scrolled .welcome-text {
  transform: translateZ(50px);
}


/* Contenedor principal */
.contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

/* Marco del telÃƒÆ’Ã‚Â©fono */
.phone-frame {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 50px auto;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.blur-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Fondo semitransparente */
    backdrop-filter: blur(10px); /* Desenfoque inicial */
    transition: backdrop-filter 0.5s ease, opacity 0.5s ease; /* Transición suave */
    pointer-events: none; /* Evitar que interfiera con la interacción */
}

.blur-overlay.unlocked {
    backdrop-filter: blur(0); /* Quitar el desenfoque al desbloquear */
    opacity: 0; /* Hacer la capa invisible */
    transition: backdrop-filter 0.5s ease, opacity 0.5s ease; /* Transición suave */
}


@keyframes zigzag {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-10px, 20px) rotate(-10deg);
    }
    50% {
        transform: translate(10px, 40px) rotate(10deg);
    }
    75% {
        transform: translate(-5px, 60px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 80px) rotate(0deg);
    }
}



/* Video dentro del telÃƒÆ’Ã‚Â©fono */
.video-inside-phone {
    width: 95%;
    height: 90%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 1;
}

/* Botones del telÃƒÆ’Ã‚Â©fono */
.phone-buttons {
    position: absolute;
    width: 100%;
    bottom: 10px; /* Ajuste para posicionar el botÃƒÆ’Ã‚Â³n en la parte inferior */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* BotÃƒÆ’Ã‚Â³n en forma de bolita con triÃƒÆ’Ã‚Â¡ngulo y efecto realista */
.phone-bottom-button {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #0a0a5c; /* Azul oscuro */
    border-radius: 50%; /* Hace que el botÃƒÆ’Ã‚Â³n sea redondo */
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.6), 0 8px 10px rgba(0, 0, 0, 0.4);
    border: 2px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden; /* Asegura que los pseudoelementos no se desborden */
    z-index: 2;
}

/* AnimaciÃƒÆ’Ã‚Â³n al presionar */
.phone-bottom-button:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 6px 8px rgba(0, 0, 0, 0.4);
}

/* TriÃƒÆ’Ã‚Â¡ngulo verde neÃƒÆ’Ã‚Â³n en el botÃƒÆ’Ã‚Â³n */
.phone-bottom-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 30px solid #39ff14; /* Verde neÃƒÆ’Ã‚Â³n brillante */
    top: calc(50% - 20px); /* Ajuste vertical para centrar */
    left: calc(50% - 16px); /* Ajuste horizontal para centrar */
     /* Capa superior */
    filter: drop-shadow(0px 2px 4px rgba(57, 255, 20, 0.5)); /* Brillo para triÃƒÆ’Ã‚Â¡ngulo neÃƒÆ’Ã‚Â³n */
}

/* TriÃƒÆ’Ã‚Â¡ngulo interno mÃƒÆ’Ã‚Â¡s oscuro */
.phone-bottom-button::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent; /* MÃƒÆ’Ã‚Â¡s pequeÃƒÆ’Ã‚Â±o */
    border-right: 10px solid transparent; /* MÃƒÆ’Ã‚Â¡s pequeÃƒÆ’Ã‚Â±o */
    border-bottom: 18px solid #228b22; /* Verde sombreado interno */
    top: calc(50% - 13px); /* Ajuste vertical para centrar */
    left: calc(50% - 10px); /* Ajuste horizontal para centrar */
    z-index: 1; /* Capa inferior */
}


/* Efecto hover */
.phone-bottom-button:hover {
    transform: scale(1.1); /* Aumenta ligeramente el tamaÃƒÆ’Ã‚Â±o al pasar el ratÃƒÆ’Ã‚Â³n */
    background-color: #555; /* Cambia el color al pasar el ratÃƒÆ’Ã‚Â³n */
}




/* Botones adicionales (si los necesitas) */
.phone-top-button {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background-color: #666;
    border-radius: 3px;
}

.phone-side-button {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 80px;
    background-color: #666;
    border-radius: 3px;
}







/* TÃƒÂ­tulo principal */
.titulo {
    position: relative;
    font-size: clamp(1.5rem, 5vw, 4rem);
    color: #fbffca;
    text-align: center;
    margin-top: 0rem;
    text-shadow: 2px 2px 10px #000000;
    overflow: hidden;
    white-space: nowrap;
    animation: slide 7s infinite;
    z-index: 1;
}

/* AnimaciÃƒÂ³n de movimiento del tÃƒÂ­tulo */
@keyframes slide {
    0% {
        transform: translateX(100%); /* Comienza fuera de la pantalla a la derecha */
    }
    20% {
        transform: translateX(0); /* Llega al centro */
    }
    80% {
        transform: translateX(0); /* Se mantiene en el centro mÃƒÂ¡s tiempo */
    }
    100% {
        transform: translateX(-100%); /* Se mueve fuera de la pantalla a la izquierda */
    }
}


/* Brillo en las letras durante la pausa */
.letters span {
    display: inline-block;
    animation: shine 7s infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

@keyframes shine {
    0% {
        color: #fbffca; /* Color original */
        text-shadow: none;
    }
    20% {
        color: #f0f8ff; /* Alice Blue */
        text-shadow: 0 0 10px #f0f8ff, 0 0 20px #f0f8ff;
    }
    40% {
        color: #fbffca; /* Apagado rÃƒÂ¡pido despuÃƒÂ©s del brillo */
        text-shadow: none;
    }
    50% {
        color: #fbffca; /* MantÃƒÂ©n apagado */
        text-shadow: none;
    }
    75% {
        color: #f0f8ff; /* Brillo otra vez antes de salir */
        text-shadow: 0 0 10px #f0f8ff, 0 0 20px #f0f8ff;
    }
    100% {
        color: #fbffca; /* Sin brillo al salir */
        text-shadow: none;
    }
}


/* Control de tiempo para cada letra */
.letters span:nth-child(1) { --i: 0; }
.letters span:nth-child(2) { --i: 1; }
.letters span:nth-child(3) { --i: 2; }
.letters span:nth-child(4) { --i: 3; }
.letters span:nth-child(5) { --i: 4; }
.letters span:nth-child(6) { --i: 5; }
.letters span:nth-child(7) { --i: 6; }
.letters span:nth-child(8) { --i: 7; }
.letters span:nth-child(9) { --i: 8; }
.letters span:nth-child(10) { --i: 9; }

/* Ajustes de tamaÃƒÂ±o y mÃƒÂ¡rgenes para pantallas pequeÃƒÂ±as y grandes */
@media (min-width: 300px) and (max-width: 500px) {
    .titulo {
        font-size: 1.5rem;
        margin-top: 21.5rem;
    }
}

@media (min-width: 501px) and (max-width: 800px) {
    .titulo {
        font-size: 2rem;
        margin-top: 7rem;
    }
}

@media (min-width: 801px) and (max-width: 992px) {
    .titulo {
        font-size: 2.5rem;
        margin-top: 18rem;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .titulo {
        font-size: 3rem;
        margin-top: 15rem;
    }
}

@media (min-width: 1201px) and (max-width: 1500px) {
    .titulo {
        font-size: 3.5rem;
        margin-top: 20rem;
    }
}

@media (min-width: 1501px) and (max-width: 2000px) {
    .titulo {
        font-size: 4rem;
        margin-top: 25rem;
    }
}

@media (min-width: 2001px) {
    .titulo {
        font-size: 4.5rem;
        margin-top: 30rem;
    }
}





/* barra interactiva */ 

/* Contenedor general para la barra */
/* Estilos base */
.interactive-bar-container {
    position: absolute;
    left: 1%;
    top: 10%;
    z-index: 10;
    width: 90%;
    display: flex;
    justify-content: center;
}

/* Pantallas pequeñas (hasta 480px) */
@media screen and (max-width: 480px) {
    .interactive-bar-container {
        top: 5%; /* Reduce la posición superior */
        left: -38px; /* Centra horizontalmente */
        width: 100%; /* Ocupa todo el ancho */
        flex-wrap: wrap; /* Permite que los elementos se ajusten si es necesario */
        justify-content: space-around; /* Espaciado más uniforme */
    }
}

/* Pantallas entre 481px y 768px */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .interactive-bar-container {
        top: 7%; /* Ajusta la posición superior */
        left: 2%; /* Ajusta la posición lateral */
        width: 96%; /* Reduce ligeramente el ancho */
        justify-content: space-between; /* Ajusta el espacio entre elementos */
    }
}

/* Pantallas entre 769px y 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .interactive-bar-container {
        top: 8%; /* Ajusta la posición superior */
        left: 3%; /* Ajusta la posición lateral */
        width: 94%; /* Ajusta el ancho */
        justify-content: center; /* Mantiene el contenido centrado */
    }
}

/* Pantallas grandes (mayores a 1024px) */
@media screen and (min-width: 1025px) {
    .interactive-bar-container {
        top: 10%; /* Mantén la posición superior original */
        left: 1%; /* Mantén la posición lateral original */
        width: 90%; /* Mantén el ancho original */
        justify-content: center; /* Mantén el contenido centrado */
    }
}


/* Barra interactiva */
.interactive-bar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #111;
    padding: 10px 10px; /* Reduce el padding horizontal */
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    width: 90%; /* Reduce el ancho total */
    max-width: 800px; /* Ajusta el ancho máximo para evitar que sea muy grande */
    margin-left: -102px;
}



/* Botones en la barra */
.button_bg {
    position: relative;
    background-color: rgb(38, 38, 38);
    color: #fff;
    padding: 8px 12px; /* Reduce el padding horizontal */
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    margin: 0 5px; /* Reduce el espacio entre los botones */
    transition: all 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.button_bg:hover {
    transform: translateY(-3px);
    background-color: #fbffca; /* Color de fondo amarillo al pasar el ratón */
    color: #111; /* Cambia el color del texto */
    box-shadow: 0 4px 10px rgba(251, 255, 202, 0.8); /* Sombra más brillante */
}

.button_bg:active {
    transform: scale(0.95); /* Efecto de clic */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Sombra reducida */
}

/* Diseño para dispositivos móviles */
@media (max-width: 768px) {
    .interactive-bar {
        flex-direction: column; /* Organiza los botones en columna */
        padding: 15px;
        border-radius: 10px; /* Redondea todos los bordes */
    }

    .button_bg {
        margin-bottom: 10px; /* Espaciado entre los botones */
        font-size: 0.8rem; /* Reduce el tamaño del texto */
        padding: 8px 10px; /* Ajusta el padding para dispositivos pequeños */
    }

    .button_bg:last-child {
        margin-bottom: 0; /* Elimina el margen del último botón */
    }
}



/* Vista mÃ³vil: menÃº colapsado */
.mobile-menu {
    display: none; /* Por defecto estÃ¡ oculto en pantallas grandes */
}

.menu-toggle {
    background-color: #111;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: #fbffca;
    color: #111;
}

/* Dropdown oculto inicialmente */
.menu-dropdown {
    display: none;
    background-color: #222;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.menu-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-dropdown ul li {
    margin: 10px 0;
}

.menu-dropdown ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.menu-dropdown ul li a:hover {
    color: #fbffca;
}

/* Vista mÃ³vil */
@media (max-width: 768px) {
    .interactive-bar {
        display: none; /* Oculta la barra original en pantallas mÃ³viles */
    }
    .mobile-menu {
        display: block; /* Activa el menÃº mÃ³vil */
        text-align: center;
    }
}



/* Añadir brillo suave al candado */
.highlight-lock {
    animation: pulse 1.5s infinite; /* Efecto de brillo */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 255, 0, 1);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 0, 0.7);
    }
}

/* Ajustar visibilidad del texto "Unlock Now!" */
.unlock-text {
    position: absolute;
    bottom: 51px;
    font-size: 1.2rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0; /* Inicialmente oculto */
    z-index: 9999;
    text-align: center;
    transition: opacity 0.5s ease; /* Transición suave para mostrar/ocultar */
}

