/* 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;
}

img {
    pointer-events: none;
    user-select: none;
}

.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: 120px; 
  height: auto;
}

/* Estilos para el formulario */
#uploadForm {
  width: 25%; 
  padding: 20px;
  background: #fff;
  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;*/
  height: 563px;
  overflow-y: auto; 
}

#uploadForm label {
  display: block;
  /*margin-bottom: 8px;*/
  font-weight: bold;
  font-size: 14px; 
}

#uploadForm input[type="email"],
#uploadForm input[type="text"],
#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;
}

#sendEmailButton.sent {
    background-color: green; 
    color: white; 
    cursor: not-allowed; 
    border: none; 
}

  #sendAnother {
      margin-top: 20px;
  }
  
  textarea {
    resize: none;
    overflow: auto;
    height: 150px;
    width: 100%;
    max-width: 100%;
    max-height: 100px;
    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: 14px;
}

/* 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;
}


/* Media Queries para Responsividad */
@media (max-width: 1024px) {
  #uploadForm {
    width: 40%;
    top: 80px;
    left: 10%;
  }
}

@media (max-width: 768px) {
  #uploadForm {
    width: 90%;
    position: absolute;
    margin: 0 auto;
    top: 20%;
    left: 0;
    right: 0;
    padding: 20px;
  }

  /* #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; 
  }
}

@media (max-width: 320px) {
  #uploadForm {
    padding: 8px;
  }

  #uploadStatus {
    font-size: 10px;
    padding: 5px;
  }
}

 
.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);
  }
}