/* Definir variables */
:root {
  --primary-color: #6e8efb;
  --secondary-color: #a777e3;
  --border-radius: 25px;
}

/* Estilos generales */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "proxima-nova-soft", sans-serif;
  overflow: hidden;
  margin: 0;
}

.container{
  background: url("") no-repeat #3e3e3e;
  background-size: cover;
  width: 100%;
  height: 100vh;
  position: relative;
}

.logo-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.logo-pagina {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 135px; 
  height: auto;
}

.logo-empresa {
  position: fixed; 
  bottom: 20px; 
  right: 20px; 
  width: 180px; 
  height: auto;
}

.language-container {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

#languageSelect {
  font-size: 18px;
  padding: 5px;
  position: fixed;
  right: 20px;
  /*border: 1px solid #ccc;*/
  border-radius: 3px;
  background-color: transparent;
  color: #ffff;
  outline: none;
  cursor: pointer;
  appearance: none; /* Elimina las flechas de estilo por defecto en algunos navegadores */
  
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

#languageSelect:hover {
    background-color: #333;
  border-color: #999;
}

#languageSelect:focus {
    background-color: #333;
  border-color: #666;
}

#presentationText {
    width: 40%; /* Ancho del contenedor del texto */
    padding: 20px;
    background-color: transparent; /* Fondo transparente */
    position: absolute;
    top: 100px;
    right: 155px; /* Posición a la derecha de la página */
    border-radius: 8px; /* Bordes redondeados */
    overflow: hidden; /* Evita el desbordamiento */
    text-align: center; /* Centra el texto dentro del contenedor */
    
}

.presentationSlide {
    display: none; /* Oculta todos los slides por defecto */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Transición suave para la opacidad */
}

.presentationSlide.active {
    display: block; /* Muestra el slide activo */
    opacity: 1; /* Hace visible el texto */
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 5px 15px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 10px 25px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 5px 15px rgba(255, 255, 255, 0.1);
    }
}

#presentationText h2 {
    font-size: 32px; /* Tamaño de fuente para el título más grande */
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif; /* Tipografía cambiada */
    color: #1a1a1a; /* Color del texto más oscuro para contraste */
    font-weight: 700; /* Negrita */
    line-height: 1.3; /* Espaciado entre líneas */
    text-transform: uppercase; /* Convierte el texto a mayúsculas */
    letter-spacing: 2px; /* Espaciado entre letras */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 5px 15px rgba(255, 255, 255, 0.1); /* Sombra inicial del texto */
    animation: glow 3.5s infinite; /* Efecto de luz que se desvanece */
}

#presentationText p {
    font-size: 20px; /* Tamaño de fuente para el párrafo */
    line-height: 2.8; /* Espaciado entre líneas */
    font-family: 'Roboto', sans-serif; /* Tipografía cambiada */
    color: #eeeeee; /* Color del texto para contraste */
    margin-bottom: 20px; /* Espacio inferior para separarlo de otros párrafos o elementos */
    text-align: justify; /* Justifica el texto */
}

@media (max-width: 768px) {
    #presentationText {
        display: none;
    }
}

/* Estilos para el formulario */
#uploadForm {
  width: 25%; 
  padding: 20px;
  background-image: url('../assets/img/formBack.jpg');
  background-size: cover;
  background-position: left;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: fixed; 
  top: 100px; 
  left: 30px; 
  transition: all 0.3s;
  /*max-height: 80vh;*/
  max-height: 100vh;
  overflow-y: auto;
  font-family: 'Roboto', sans-serif;
  color: rgb(148 163 184 / 1);
}

.form-group {
    margin-bottom: 20px; /* Más espacio entre los campos */
}

#uploadForm label {
  display: block;
  /*margin-bottom: 8px;*/
  font-weight: bold;
  font-size: 14px; 
}

/* Estilo minimalista para los inputs */
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 16px;
    border: none; /* Sin bordes */
    border-bottom: 2px solid #ccc; /* Solo un borde inferior */
    background: none; /* Fondo transparente */
    outline: none; /* Elimina el borde de enfoque predeterminado */
    color: #333; /* Color del texto */
    transition: border-color 0.3s ease, background-color 0.3s ease; /* Transiciones suaves */
}

/* Cambia el estilo al enfocar el input */
input[type="email"]:focus {
    border-bottom: 2px solid #4A90E2; /* Cambia el borde inferior al hacer foco */
    background-color: #f9f9f9; /* Fondo ligeramente gris cuando está en foco */
}

/* Placeholder estilizado */
input[type="email"]::placeholder {
    color: #999; /* Color más claro para el placeholder */
    font-size: 14px; /* Tamaño más pequeño para el placeholder */
}
#uploadForm input[type="file"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 14px;
}

/* Oculta el input de archivo real */
.custom-file-input {
    position: fixed;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Estilo del label personalizado */
.custom-file-label {
    display: inline-block;
    cursor: pointer;
    padding: 10px 20px;
    color: white;
    background-color: #007bff;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

/* Hover para el botón */
.custom-file-label:hover {
    background-color: #0056b3;
}

/* Muestra el nombre del archivo debajo del botón */
#folderName, #fileName {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}


/* Estilo minimalista para el campo de comentario */
#comment {
    width: 100%; /* Para que ocupe todo el ancho disponible */
    height: 150px;
    padding: 10px; /* Espacio interno para que el texto no toque los bordes */
    border: 1px solid #ccc; /* Borde suave */
    border-radius: 5px; /* Bordes redondeados */
    background-color: #f9f9f9; /* Color de fondo suave */
    font-size: 16px; /* Tamaño de fuente adecuado */
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif; /* Fuente minimalista */
    transition: border-color 0.3s ease; /* Efecto de transición suave para el hover */
    box-shadow: none; /* Eliminar sombras predeterminadas */
    outline: none; /* Eliminar borde azul en el foco */
}

/* Efecto al enfocar el campo de comentarios */
#comment:focus {
    border-color: #007BFF; /* Cambiar color de borde al hacer foco */
    background-color: #fff; /* Fondo blanco al escribir */
}

#sendEmailButton {
      background: linear-gradient(135deg, #6e8efb, #a777e3);
      color: #fff;
      border: 1px solid #a777e3;
      padding: 10px 20px;
      border-radius: 25px;
      cursor: pointer;
      font-size: 16px;
      transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
      display: block;
      margin: 0 auto;
      text-align: center;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  #sendEmailButton:disabled {
      background: #cccccc;
      color: #666666;
      border: 1px solid #cccccc;
      cursor: not-allowed;
      box-shadow: none;
  }
  
  #sendEmailButton.sent {
    background-color: green; /* Color de fondo verde */
    color: white; /* Color del texto blanco */
    cursor: not-allowed; /* Cambiar el cursor para indicar que el botón está deshabilitado */
    border: none; /* Opcional: eliminar el borde para un estilo más limpio */
}

  #sendAnother {
      margin-top: 20px;
  }
  
  textarea {
    resize: none;
    overflow: auto;
    height: 150px;
    width: 100%;
    max-width: 100%;
    
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 10px;
    box-sizing: border-box;
}
  #sendAnotherLink {
      color: #007bff;
      text-decoration: none;
  }
  
  #sendAnotherLink:hover {
      text-decoration: underline;
  }
  #uploadProgressContainer {
      display: flex;
      align-items: center;
      width: 100%;
      background-color: #f3f3f3;
      border: 1px solid #ccc;
      border-radius: 5px;
      overflow: hidden;
      margin-top: 5px;
  }
  
  #uploadProgressBar {
      height: 20px;
      width: 0;
      background-color: #4caf50;
      text-align: center;
      color: white;
      line-height: 1;
      margin-top: -2px;
      flex: 1;
  }
  
  #uploadProgressText {
      display: block;
      text-align: right;
      margin-top: 5px;
      color: #000;
  }
  
  #progressWarning {
      margin: 0;
      color: black;
      font-weight: bold;
      line-height: 1;
      display: inline-block;
      margin-top: -12px;
      font-size: 0.8em;
      display: inline-block;
  }

#uploadStatus {
  margin-top: 20px;
  padding: 10px;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  display: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  width: 14px;
  height: 25px;
}

/* Preview TecnoPage */
.circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  z-index: 9999;
}

.line-drawing-demo {
  text-align: center;
}

/* Contenedor principal */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Estilo del toast */
.toast {
    background-color: #333;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Muestra el toast */
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Toast de error */
.toast.error {
    background-color: #ff4c4c;
}

/* Toast de éxito */
.toast.success {
    background-color: #4caf50;
}



@media (max-width: 1440px) and (min-width: 1024px) {
  #uploadForm {
    width: 35%; /* Hacerlo un poco más ancho para notebooks */
    top: 60px;  /* Reducir la separación superior */
    /*padding: 20px;*/
    max-height: 80vh;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #uploadForm {
    width: 60%;       /* El formulario ocupará un 60% del ancho de la pantalla */
    left: 20%;        /* Centrar el formulario */
    top: 50px;        /* Ajustar separación superior */
    max-height: 80vh; /* Limitar la altura a 80% del viewport */
    padding: 15px;
  }
  #presentationText {
        display: none;
    }
}

/* Media Queries para Responsividad */
@media (max-width: 1024px) {
  #uploadForm {
    width: 80%;
    top: 80px;
    left: 10%;
    max-height: 75vh;
  }
}

@media (max-width: 768px) {
  #uploadForm {
    width: 90%;
    position: absolute;
    margin: 0 auto;
    top: 20%;
    left: 0;
    right: 0;
    padding: 20px;
    max-height: 70vh;
  }
  
  .logo-empresa {
    bottom: 10px;
    top: 50px;
    right: 20px; 
    width: 80px; 
  }
  #presentationText {
        display: none;
    }

  /* #sendEmailButton {
    font-size: 12px;
    padding: 7px 15px;
  } */
}

@media (max-width: 480px) {
  .logo-pagina {
    position: fixed;
    top: 10px; 
    left: 10px; 
    width: 90px; 
  }

  .logo-empresa {
    bottom: 10px; 
    right: 10px; 
    width: 80px; 
  }
  #uploadForm {
    width: 85%;
    position: absolute;
    margin: 0 auto;
    top: 10%;
    left: 0;
    right: 0;
    padding: 10px;
    max-height: 65vh;
  }
  #presentationText {
        display: none;
    }
}

@media (max-width: 320px) {
  #uploadForm {
    padding: 8px;
    max-height: 65vh;
  }

  #uploadStatus {
    font-size: 10px;
    padding: 5px;
  }
  #presentationText {
        display: none;
    }
}

 
.error-message {
  color: red;
  font-size: 12px;
  display: block;
  margin-top: 5px; 
} 

.input-error {
  border: 5px solid red;
  animation: shake 0.5s; 
}

.error-message.active + #uploadForm {
  height: 585px;
  transition: all 0.3s ease-in-out;
}



#sendAnother {
  margin-top: 20px;
}
#sendAnotherLink {
  color: #007bff;
  text-decoration: none;
}

#sendAnotherLink:hover {
  text-decoration: underline;
}






.btn-5 {
  --primary: #8f44fd;
  --neutral-1: #f7f8f7;
  --neutral-2: #e7e7e7;
  --radius: 32px;
  scale: 0.77;
  cursor: pointer;
  border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  transition: all 0.3s ease;
  min-width: 160px;
  padding: 0 20px;
  height: 64px;
  font-family: "Galano Grotesque", Poppins, Montserrat, sans-serif;
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
  margin: 0 auto;
  left: 50%;
  width: 200px; 
  margin-left: -100px;
}


/* Estado deshabilitado del bot贸n */
.btn-5[data-disabled="true"] {
    background: #cccccc;
    color: #666666;
    border: 1px solid #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}


.btn-5:hover {
  transform: scale(1.02);
}
.btn-5:active {
  transform: scale(1);
}
.btn-5:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: #fff;
  border: 2.5px solid transparent;
  z-index: 0;
  transition: all 0.4s ease;
}
.btn-5:hover::after {
  transform: scale(1.05, 1.1);
}
.btn-5::before {
  content: "";
  inset: 7px 6px 6px 6px;
  position: absolute;
  border-radius: 30px;
  filter: blur(0.5px);
  z-index: 2;
}
.btn-5 .state p {
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-5 .state .icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: scale(1.25);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-5 .state .icon svg {
  overflow: visible;
}

/* Outline */
.btn-5 .outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  inset: -2px -3.5px;
}
.btn-5 .outline::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 180deg,
    transparent 60%,
    white 80%,
    transparent 100%
  );
  animation: spin 2s linear infinite;
  animation-play-state: paused;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.btn-5:hover .outline {
  opacity: 1;
}
.btn-5:hover .outline::before {
  animation-play-state: running;
}

/* Letters */
.btn-5 .state p span {
  display: block;
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}
.btn-5:hover p span {
  opacity: 1;
  animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}
.btn-5:focus p span {
  opacity: 1;
  animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}
@keyframes wave {
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
    color: var(--primary);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) translateX(5px) rotate(-90deg);
    color: var(--primary);
    filter: blur(5px);
  }
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
    filter: blur(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}
@keyframes disapear {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(5px) translateY(20px);
    color: var(--primary);
    filter: blur(5px);
  }
}

/* Plane */
.btn-5 .state--default .icon svg {
  animation: land 0.6s ease forwards;
}
.btn-5:hover .state--default .icon {
  transform: rotate(45deg) scale(1.25);
}
.btn-5:focus .state--default svg {
  animation: takeOff 0.8s linear forwards;
}
.btn-5:focus .state--default .icon {
  transform: rotate(0) scale(1.25);
}
@keyframes takeOff {
  0% {
    opacity: 1;
  }
  60% {
    opacity: 1;
    transform: translateX(70px) rotate(45deg) scale(2);
  }
  100% {
    opacity: 0;
    transform: translateX(160px) rotate(45deg) scale(0);
  }
}
@keyframes land {
  0% {
    transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
    opacity: 0;
    filter: blur(3px);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* Contrail */
.btn-5 .state--default .icon:before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 0;
  left: -5px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}
.btn-5:focus .state--default .icon:before {
  animation: contrail 0.8s linear forwards;
}
@keyframes contrail {
  0% {
    width: 0;
    opacity: 1;
  }
  8% {
    width: 15px;
  }
  60% {
    opacity: 0.7;
    width: 80px;
  }
  100% {
    opacity: 0;
    width: 160px;
  }
}

/* States */
.btn-5 .state {
  padding-left: 29px;
  z-index: 2;
  display: flex;
  position: relative;
}
/* .btn-5 .state--default span:nth-child(4) {
  margin-right: 5px;
} */
.btn-5 .state--sent {
  display: none;
}
.btn-5 .state--sent svg {
  transform: scale(1.25);
  margin-right: 8px;
}
.btn-5:focus .state--default {
  position: absolute;
}
.btn-5:focus .state--sent {
  display: flex;
}
.btn-5:focus .state--sent span {
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}
.btn-5:focus .state--sent .icon svg {
  opacity: 0;
  animation: appear 1.2s ease forwards 0.8s;
}
@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(4) rotate(-40deg);
    color: var(--primary);
    filter: blur(4px);
  }
  30% {
    opacity: 1;
    transform: scale(0.6);
    filter: blur(1px);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}