/* General */
/* Importar fuente Poppins desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap'); 


* {
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Hacer el desplazamiento suave */
.smooth-scroll {
    height: 100vh; /* Ajusta a tu preferencia */
    overflow-y: scroll; /* Habilita el desplazamiento vertical */
}




/* Navbar */
nav {
    display: flex;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    height: 80px;
    padding: 10px;
    background-color: #1d2b2dc0;
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out ;
    border-radius: 50px;
    z-index: 1000;
    border: solid rgb(255, 0, 0) 0px;
    
}
/* Estilos cuando el nav tiene la clase 'scrolled' */
nav.scrolled {
    top: 0px; /* Anclar al top de la página */
    left: 0; /* Alinearlo al borde izquierdo */
    transform: translateX(0); /* Eliminar el translateX que lo centraba */
    width: 100%; /* Extenderlo al 100% del ancho */
    padding: 20px; /* Reducir el padding */
    background-color: #1d2b2d; /* Fondo cuando se hace scroll */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para darle un efecto de profundidad */
    border-radius: 0; /* Eliminar el border-radius cuando se ancla */
    animation: bounceToTop 0.6s ease-out; /* Aplicar la animación de rebote */
}


.nav-container {
    display: flex;
    width: 98%;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border: solid rgb(255, 255, 255) 0px;
}
.logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
    border: solid blue 0px;
}
.nav-mobile{
    display: flex;
    position: relative;
    border: solid #007bff 0px;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.nav-links {
    display: flex;
    margin: 1px;
    list-style: none;
    border: solid white 0px;
    text-align: center;
    align-items: center;
    justify-content: center;
}
.nav-links li {
    display: flex;
    padding: 5px;
    align-items: center;
    position: relative;
}
.nav-links a {
    color: rgb(228, 66, 66);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s background-color 0.3s;
    position: relative;
    padding: 8px;
    border: none;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 5px;
    border-top-left-radius: 25px;
    border-bottom-right-radius: 25px;
    
}

.nav-links a.active {
    color: #ffffff;
    background-color: red;
  }
.nav-links li a:not(.active):hover {
    background-color: #1d2b2d;
    color: white;
}

/* Indicador que se mueve */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2bc4e3;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out; /* Transición suave */
  }
  
  /* Cuando el enlace está activo o en hover, el indicador se mueve */
  .nav-links a:hover::after,
  .nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  
  /* Transición suave para el fondo rojo */
  .nav-links a.active {
    transition: background-color 0.3s ease-out;
  }


/* estilos para el boton de accion en el nav bar */
.contact-btn {
    color: #1d2b2d;
    background: white; /* Degradado con colores vibrantes de IA */
    width: auto;
    height: 45px;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;    
    cursor: pointer;
    transition: background 0.3s, transform 0.5s ease-in-out;
    position: relative;
    animation: scaleAnimation 3s infinite ease-in-out; /* Movimiento constante de escala */
    font-family: 'Poppins', sans-serif; /* Aplicar la fuente Poppins */
    font-weight: 700; /* Aplicar el estilo en negrita */
}


.contact-btn:hover {
    color: white;
    background: linear-gradient(45deg, #f04e4e, #00d0ff, #9b59b6); /* Cambio de colores en hover */
}

@keyframes scaleAnimation {
    0% {
        transform: scale(1.0);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.0);
    }
}




 

/* Estilos para las opciones de lenguaje */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    cursor: pointer;
}

.language-selector label {
    position: absolute;
    top: -25px; /* Ajusta la distancia sobre el select */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8); /* Fondo semi-transparente */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.language-selector:hover label {
    opacity: 1;
    visibility: visible;
}

.language-selector i {
    font-size: 18px;
}

.language-selector select {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    outline: none;
}

/* Para navegadores que no permiten cambiar el color del texto */
.language-selector select option {
    color: black;
}


/* Navbar Scroll Effect */

/* ****************Estilos para el toggle************************************* */

#menu-toggle{
    display: none;
}
.menu-toggle i {
    font-size: 24px;
    color: white;
}

/* Hero Section */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}


.hero-content {
    position: absolute;
    left: 5%; /* Alinea a la izquierda */
    top: 50%; /* Centrado verticalmente */
    transform: translateY(-50%); /* Ajusta el alineamiento vertical */
    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: left; /* Alinea el texto a la izquierda */
    max-width: 50%; /* Limita el ancho para evitar que se salga del área del video */
}

.hero-content h1 {
    font-size: 95px;
    font-weight: bold;
    line-height: 1.1;
    margin: 0;
    opacity: 0; /* Empezamos con opacidad 0 */
    transform: translateX(-50px); /* Comienza desplazado a la izquierda */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Transición para la opacidad y el desplazamiento */
}



.hero-content .hero-text {
    width: 450px;
    font-size: 20px; /* Tamaño de texto */
    color: #fff; /* Color blanco */
    opacity: 0; /* Comienza invisible */
    transform: translateY(30px); /* Comienza desplazado hacia abajo */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Animación de desvanecimiento y deslizamiento */
}


/* Buttons */
.buttons1 {
    display: flex;
    flex-direction: row;
    margin-top: 30px;
}

.call-now,
.contact-us {
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 10px;
    border-radius: 5px;
    opacity: 0; /* Los botones empiezan ocultos */
    transform: translateY(20px) scale(0.8); /* Inicia desplazado y pequeño */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Transiciones para el movimiento y la opacidad */
}

.call-now {
    background-color: white;
    color: #1d2b2d;
}

.contact-us {
    background-color: #f04e4e;
    color: white;
}

/* Efectos hover */
.call-now:hover {
    background-color: #f04e4e;
    color: white;
    transform: translateY(-5px) scale(1.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-us:hover {
    background-color: white;
    color: #f04e4e;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.hero-content .buttons button {
    opacity: 0; /* Comienza invisible */
    transform: translateY(20px) scale(0.8); /* Comienza desplazado y más pequeño */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Animación de desvanecimiento y movimiento */
    margin: 10px; /* Espacio entre los botones */
    padding: 15px 30px; /* Tamaño del botón */
    font-size: 16px; /* Tamaño de la letra */
    cursor: pointer;
    border: none;
    border-radius: 5px; /* Bordes redondeados */
    transition: transform 0.3s ease; /* Escalado suave al hacer hover */
}

.hero-content .buttons button:hover {
    transform: translateY(0) scale(1); /* Aumenta tamaño al hacer hover */
}





#section2{
    height: 800px;
    background-color: black;
}



a {
    text-decoration: none;
}





#phone-container {
    text-align: center;
    opacity: 0;
    transition: opacity 2s ease-in, transform 2s ease-in; /* Añadido para animar el movimiento */
    transform: translateX(0px) translateY(0px); /* Traslación en X y Y */
    padding: 15px;
    cursor: pointer;
  }
  #phone-number {
    font-size: 40px;
    font-weight: bold;
    display: flex; /* Asegura que el contenido se alinee correctamente */
    justify-content: center;
    align-items: center;
    
}

.digit {
    display: inline-block;
    color: rgba(255, 255, 255, 0.541);
    position: relative;
    transition: ease-in-out filter .5s;
   
    opacity: 0; /* Inicia invisible hasta que la animación la muestre */
}
 

 
.digit:hover {
    color: rgb(255, 255, 255);
    filter: brightness(1.8);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(300px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.digit {
    animation: fadeInUp 0.5s ease-in-out forwards;
}


  .blur-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: solid rgba(255, 255, 255, 0.116) 1px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.342); /* Sombra sutil */
    background: linear-gradient(45deg, rgba(248, 1, 1, 0.301), rgba(233, 44, 44, 0.281), rgba(209, 31, 31, 0.301));
    backdrop-filter: blur(6px); /* Aplica el blur para el efecto de vidrio */
    z-index: -1;
    opacity: 0; /* Inicialmente invisible */
    pointer-events: none; /* Evitar interacción con el fondo */
    transition: opacity 1s ease-in-out; /* Suaviza la transición al hacer visible */
  }
  
  
  
  .flashlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10002;
    background: radial-gradient(circle 70px at var(--x, 50%) var(--y, 50%), 
                rgba(255, 255, 255, 0.253) 0%, 
                rgba(255, 255, 255, 0) 100%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }
  
  /* Efecto de parpadeo */
  @keyframes flicker {
    0% { opacity: 0; }
    20% { opacity: 1; }
    40% { opacity: 0.5; }
    60% { opacity: 1; }
    80% { opacity: 0.3; }
    100% { opacity: 1; }
  }
  
  .flashlight.flicker {
    animation: flicker 0.4s ease-in-out;
  }
  

  #chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #edeef0;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
#chat-button img {
    width: 40px;
}
#chat-box {
    visibility: hidden;
    height: 0;
    opacity: 0;
    transform: translateY(20px);
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    padding: 15px;
    max-height: 400px;
    z-index: 1001;
    overflow-y: auto;
    transition: visibility 0s 0.3s, height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
#chat-box.show {
    visibility: visible;
    height: auto;
    opacity: 1;
    z-index: 1000;
    transform: translateY(0);
    transition: visibility 0s 0s, height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

#chat-header {
    font-weight: bold;
    background: #007bff;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
#chat-content {
    margin: 15px 0;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    z-index: 1002;
    color: #1d2b2d;
}
.chat-response {
    z-index: 1002;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-btn {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    z-index: 1003;
}
.chat-btn.call {
    background: #28a745;
    color: white;
}
.chat-btn.book {
    background: #ffc107;
    color: black;
}

@keyframes shake {
    0% { transform: translateX(-5px); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

#chat-button.shake {
    animation: shake 0.5s ease-in-out; /* Ajustamos la duración a 0.5s */
}



/* menu toggle en pantallas menores a 900px */
@media (max-width: 1300px) {
    #menu-toggle {
        display: flex;
    }
    .nav-mobile {
        display: flex;
        position: absolute;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        height: 80vh; /* 100% de la altura del viewport */
        width: 70vw;  /* 70% del ancho del viewport */
        padding: 1%;
        top: 60px;
        right: -90vw;
        
        background-color: #1d2b2d;
        border-top-right-radius: 15px;
        border-bottom-left-radius: 15px;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25), 0px 10px 30px rgba(0, 0, 0, 0.1);
        transition: right 0.5s ease, transform 0.5s ease, border-top-left-radius 0.5s ease-in-out, border-bottom-right-radius 0.5s ease-in-out;
    }
    .nav-mobile.active {
        display: flex;
        position: ;
        right: 0;
        background-color: #1d2b2d;
        border-top-left-radius: 100px;
        border-bottom-right-radius: 100px;
    }
                #menu-toggle i {
                    transition: color 1s ease-in-out, transform 1s ease-in-out, opacity 1s ease-in-out; /* Transición más suave */
                }
                #menu-toggle i.fa-bars {
                    transform: rotate(180deg); /* Rota las barras para hacer la X */
                    opacity: 1;
                }
                #menu-toggle i.fa-times {
                    color: red;
                    opacity: 1; 
                    transform: rotate(0deg);
                }
                .nav-links {
                    font-size: 12px;
                    flex-direction: column;
                    align-items: flex-end;
                    opacity: 0; /* Inicialmente oculto */
                    transform: translateX(100%); /* Los enlaces están fuera de la pantalla (a la derecha) */
                    transition: opacity 0.5s ease, transform 0.5s ease; /* Transición suave */
                }
                .nav-mobile.active .nav-links {
                    opacity: 1; /* Los enlaces se muestran cuando el menú está activo */
                    transform: translateX(0); /* Vuelven a su posición normal */
                }
                .nav-links li {
                    opacity: 0;
                    transform: translateX(100%);
                    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s; /* Deslizar los enlaces con un pequeño retraso */
                }
                .nav-mobile.active .nav-links li {
                    opacity: 1; /* Los enlaces individuales se hacen visibles */
                    transform: translateX(0); /* Los enlaces vuelven a su posición normal */
                }
                .nav-links li a:not(.active):hover {
                    background-color: #1d2b2d00;
                    color: white;
                }
                /* Para contact-btn */
                .contact-btn {
                    opacity: 0; /* Inicialmente oculto */
                    transform: translateX(100%); /* Fuera de la pantalla */
                    transition: opacity 1s ease, transform 1s ease; /* Transición suave */
                }
                .nav-mobile.active .contact-btn {
                    opacity: 1; /* El botón se vuelve visible cuando el menú está activo */
                    transform: translateX(0); /* El botón vuelve a su posición normal */
                }
                /* Para language-selector */
                .language-selector {
                    opacity: 0; /* Inicialmente oculto */
                    transform: translateX(100%); /* Fuera de la pantalla */
                    transition: opacity 0.5s ease, transform 0.5s ease; /* Transición suave */
                }
                .nav-mobile.active .language-selector {
                    opacity: 1; /* El selector de idioma se vuelve visible cuando el menú está activo */
                    transform: translateX(0); /* El selector vuelve a su posición normal */
                }
    /* Elimina el borde de selección al hacer clic en los enlaces */
a:focus {
    outline: none; /* Quita el contorno del enlace cuando está enfocado */
    border: none;  /* Quita cualquier borde adicional */
}
/* Evita que se resalte el texto cuando se selecciona el enlace */
.nav-links li a {
    -webkit-user-select: none;  /* Para Safari y Chrome */
    -moz-user-select: none;     /* Para Firefox */
    -ms-user-select: none;      /* Para Internet Explorer/Edge */
    user-select: none;          /* Para navegadores modernos */
}

.hero-content {
    position: flex;
    left: 5%; /* Alinea a la izquierda */
    top: 50%; /* Centrado verticalmente */
    transform: translateY(-50%); /* Ajusta el alineamiento vertical */
    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    width: 90%; /* Ajuste al 90% del ancho de la pantalla */
    max-width: 90%; /* Evita que se salga de la pantalla */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    border: solid white 0px;
    transition:  all 1s ease-in-out;
    
}
#hero-title{
    color: white;
    font-size: 50px;
    text-align: left;
    margin: 8px;
    padding: 8px;
    transition: all 0.5s ease-in-out;
}
#textin{
    text-align: left;
    margin: 8px;
    padding: 8px;
    font-size: 18px;
    transition: all 1s ease-in-out;
}

}





@media (max-width: 1300px) {
    #phone-container {
      text-align: center;
      opacity: 0;
      transition: opacity 2s ease-in, transform 2s ease-in;
      transform: translateX(0px) translateY(0px);
      padding: 15px;
      cursor: pointer;
    }
  
    #phone-number {
      font-size: 24px;
      font-weight: bold;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  
    .digit {
      display: inline-block;
      color: rgba(255, 255, 255, 0.541);
      position: relative;
      transition: ease-in-out filter .5s;
      opacity: 0;
    }
  
    .digit:hover {
      color: rgb(255, 255, 255);
      filter: brightness(1.8);
    }
  
    @keyframes fadeInUp {
      0% {
        opacity: 0;
        transform: translateY(300px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
    .digit {
      animation: fadeInUp 0.5s ease-in-out forwards;
    }
  
    .blur-background {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border: solid rgba(255, 255, 255, 0.116) 1px;
      border-radius: 8px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.342);
      background: linear-gradient(45deg, rgba(248, 1, 1, 0.301), rgba(233, 44, 44, 0.281), rgba(209, 31, 31, 0.301));
      backdrop-filter: blur(6px);
      z-index: -1;
      opacity: 0;
      pointer-events: none;
      transition: opacity 2s ease-in-out;
    }
  
    /* Estilos para mover al centro y al fondo del viewport */
    #phone-container.centered {
      transform: translate(-50%, 50%) !important; /* Centrado */
      position: absolute;
      top: 50%;
      left: 50%;
      bottom: 0;
    }
  
    .blur-background.centered {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      opacity: 1;
    }
  }
  