@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  --montserrat: "Montserrat", sans-serif;
  --azul: #050e44;
  --verde: #00a329;
}

::-webkit-scrollbar {
  display: none;
}

body {
  padding: 0;
  margin: 0;
  font-family: var(--montserrat);
}
body .ticket-main {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main img {
  width: 100%;
}
.formulario {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* ======================== Apartado de botones ======================== */

.botones-principales {
  /* background-color: #050e44; */
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -50%);
  top: 70%;
  left: 75%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}



.congreso-header {
  position: absolute;
  z-index: 99;
  top: 31%;
  left: 50%;
  transform: translate(0%, 0%) scale(0.8);
  transform-origin: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.congreso-logo {
  position: absolute;
  width: 25%;
  transform: translate(25%, -50%);
  top: 50%;
  z-index: 99;
}

.hCongreso{
  margin-left: 15px;
  font-size: 80px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2em;  
}
.hCentroamericano{
  font-size: 40px;
  font-weight: 600;
  color: #8ebe28;
  background-color: #fff;
  padding: 5px 15px;
  letter-spacing: 0.2em;
  text-align: center;  
}
.hPanama{
  font-size: 60px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.25em;
}

.boton-index {
  padding: 12px 30px;
  min-width: 220px;
  text-align: center;
  border-radius: 8px;
  border: none;
  background-color: white;
  font-family: var(--montserrat);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #000;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.boton-index:hover {
  background-color: var(--verde);
  color: white;
  transform: scale(1.05);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .formulario {
    top: 80%;
  }

  .boton-index {
    font-size: 0.95rem;
    padding: 10px 20px;
    min-width: 180px;
  }
}

/* ======================================================================== */
/*             Este apartado es del registro de usuarios                    */
/* ======================================================================== */

.formulario-registro-main {
  margin: 0;
  padding: 0;
}

.formulario-registro {
  color: #fff;
  margin: 0;
  padding: 10px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Solo en pantallas grandes (desktop) se muestra en verde */
@media (min-width: 1660px) {
  .formulario-registro {
    color: #2d5b3b;
    text-shadow: none;
  }
}

.circle {
  --size: 1450px;
  --bg: #eb4242;
  --gradient: linear-gradient(indigo, hotpink);
  --half-size: calc(var(--size) / 1.5);

  width: var(--size);
  height: var(--half-size);
  background: var(--bg);
  border-radius: 50% 50% / 0 var(--half-size) var(--half-size) 0;
}

.form-inCircle {
  padding: 40px;
  position: absolute;
  top: 45%;
  left: 45%;
  transform: translate(-80%, -50%);
  z-index: 10;
}

@media (max-width: 1660px) {
  .contenedor-form {
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center; /* ← centra también verticalmente */
    padding: 2rem;
    top: 20%;
  }

  .form-inCircle {
    position: static; /* ← importantísimo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: none; /* ← quita el desplazamiento */
    padding: 20px; /* ajustable */
    z-index: 10;
    background-color: #8ebf28;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.445);
  }
}

.form-check-label {
  color: #fff;
}

/* ======================================================================== */
/*             Todo lo referente al index                                   */
/* ======================================================================== */


.contenedor-main-index {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}


.main-bg.mobile2,
.main-bg.desktop,
.main-bg.mobile {
  display: none;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.main-bg.desktop {
  display: block;
  z-index: 1;
}

.logo-congreso-index{
  display: none;
}

@media (max-width: 1660px) {
  .main-bg.desktop {
    display: none;
  }
  .main-bg.mobile {
    display: block;
    z-index: 1;
  }
  .logo-congreso-index {
    display: block;
    margin: 0;
    padding: 0;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 75%;
    left: 50%;
    top: 40%;
    z-index: 10;
  }
}

@media (max-width: 768px) {
  .main-bg.mobile {
    display: none;
  }
  .main-bg.mobile2 {
    display: block;
    z-index: 1;
  }
}

@media (max-width: 576px) {
  .congreso-header {
    transform: translate(-50%, -50%) scale(0.5);
  }

  .hCongreso {
    font-size: 40px;
  }

  .hCentroamericano {
    font-size: 20px;
    padding: 4px 10px;
  }

  .hPanama {
    font-size: 30px;
  }
}

.restante {
  position: absolute;
  top: 8%;
  left: 25%;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.bloque-restante {
  text-align: center;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  max-width: 1000px;
}

.tiempo-restante {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

/* @media (max-width: 780px) {
  .bloque-restante {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 10px;
    transform: scale(0.65);
    transform-origin: top center;
  }

  .boton-index {
    width: 90%;
    font-size: 1rem;
  }
} */

.bloque-tiempo-restante{
  width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5px;
  margin-bottom: 60px;
  background: #046063;
  border-radius: 10px;
  color: #fff;
}

.h2-tiempo-restante{
  margin: 0;
  font-weight: 800;
  font-size: 150%;
}

.tiempo-box {
  font-size: 1.8rem;
  font-weight: bold;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.tiempo-box span {
  display: block;
}

.tiempo-box.dias {
  background-color: #046063;
  color: #36b07d;
}
.tiempo-box.horas {
  background-color: #36b07d;
  color: #046063;
}
.tiempo-box.minutos {
  background-color: #eb9711;
  color: #794c03;
}
.tiempo-box.segundos {
  background-color: #ffffff;
  color: #8ebe28;
}

/* @media (max-width: 1660px) {
  .tiempo-box {
    background-color: transparent !important;
    border-radius: 0;
    box-shadow: none;
    color: white;
  }

  .bloque-restante {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
  }

  .tiempo-box label {
    font-size: 1rem;
    font-weight: 400;
  }
} */

.curva {
  width: 50vw;
  height: 100vh;
  background-color: white;
  /* position: relative; */
  overflow: hidden;
}

.curva::after {
  content: "";
  position: absolute;
  right: -50%;
  top: -100%;
  width: 100%;
  height: 200%;
  background-color: #2c7a3d; /* verde similar */
  border-radius: 100% 0 0 100%;
}

.curva img {
  width: 20%;
  position: absolute;
  left: 70%;
  top: 15%;
  z-index: 9;
  border-radius: 1.5%;
  box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.226);
}

@media (max-width: 1254px) {
  .congreso-header {
    transform: scale(1.3);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    
  }

  .hCongreso {
    font-size: 40px;
  }

  .hCentroamericano {
    font-size: 20px;
    padding: 5px 10px;
  }

  .hPanama {
    font-size: 30px;
  }

  .botones-principales {
    top: 75%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    align-items: center;
  }

  .boton-index {
    width: 80%;
    min-width: 0;
  }

  .restante {
    top: 5%;
    left: 0;
  }

  .tiempo-restante {
    gap: 10px;
  }

  .tiempo-box {
    font-size: 1rem;
    padding: 10px;
  }

  .formulario-login {
    position: static;
    margin-top: 20px;
  }
}

/* ======================================================================== */
/*             Todo lo referente al login                                   */
/* ======================================================================== */

.main-login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.main-inicio-sesion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.formulario-login {
  position: absolute;
  top: 25%;
  z-index: 1;
}

.formulario-login {
  position: absolute;
  top: 25%;
  z-index: 1;
}

/* ======================================================================== */
/*             Todo lo referente a los tickets                              */
/* ======================================================================== */

/* Detalles del ticket */

.ticket-acceso {
  max-width: 800px !important;
  position: absolute;
  left: 10%;
}

.ticket {
  box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.226);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.ticket {
  display: flex;
  justify-content: center;
  border: solid 1px #000;
}

/* Encabezado */

.header-ticket {
  padding: 5px;
  background-color: #2c7a3d;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: center;
}

.header-ticket h1 {
  font-size: larger;
  font-weight: 700;
  display: flex;
  align-items: center;
}

/* Cuerpo */

.body-ticket {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ticket-bloque-1 {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ticket-bloque-1 h2 {
  font-weight: 600;
  font-size: medium;
}

.ticket-bloque-1 h3 {
  font-weight: 800;
  font-size: medium;
}

/* QR */
.datos-qr {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.datos-qr h2 {
  font-weight: 600;
  font-size: larger;
}

.datos-qr h3 {
  font-weight: 800;
  font-size: larger;
}

.datos-qr img {
  max-width: 150px;
  border: solid 1px #5050504f;
}

.QR {
  margin-top: 10px;
}

.pedido {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pedido h2 {
  font-weight: 600;
  font-size: medium;
}

.pedido h3 {
  font-weight: 600;
  font-size: x-large;
}

.comprador {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comprador h2 {
  font-weight: 600;
  font-size: medium;
}

.comprador h3 {
  font-weight: 600;
  font-size: x-large;
}

.lugar {
  margin-top: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lugar h2 {
  font-weight: 600;
  font-size: medium;
}

.lugar h3 {
  font-weight: 800;
  font-size: x-large;
}

hr {
  border-top: solid 2px #000;
  width: 100%;
  align-self: stretch;
}

/* ========= Bloque de Dashboards ========= */

.header-dashboard {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #060133;
}

.header-dashboard h1 {
  font-weight: 900;
}

.usuario {
  display: flex;
  flex-direction: column;
}

.usuario-upper {
  font-weight: 800;
  font-size: 1.6rem;
}

.encabezado {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.encabezado span {
  color: #fff;
}

.bloques-data {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.container-data {
  display: flex;
  flex-direction: row;
}

.bloque-data {
  padding: 25px;
  margin: 10px;
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.336);
}

.upper {
  font-size: xx-large;
  font-weight: 800;
}

.aside {
  display: flex;
  flex-direction: column;
  max-width: fit-content;
}

.navbar {
  display: flex;
}

.navbar a {
  display: block;
  width: 100%;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  border-radius: 5px;
}

.navbar a:hover {
  background-color: #00a329;
}

.navbar .cerrar-sesion:hover {
  background-color: #a10000;
}

.opciones-btn {
  margin-top: 5px;
}

.grafico {
  background-color: #f3f3f3;
  border-radius: 15px;
  padding: 15px;
  /* box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.336); */
}

/* ========= Usuarios Registrados ========= */

.header-registros {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #060133;
}

.container-registros {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tarjeta-tabla {
  display: flex;
  width: 90%;
  height: 90%;
}

.tarjeta-filtros {
  display: flex;
  width: 60%;
}

/* aceite */

/* ======================================================================== */
/*             Formulario 2                                                 */
/* ======================================================================== */

body .body-formulario {
  margin: 0;
  padding: 0;
  overflow: hidden; /* Esto desactiva el scroll completamente */
  height: 100%;
  width: 100%;
}

.viewport {
  position: relative;
  width: 100%;
  height: 100vh; /* ajustable */
  overflow: hidden; /* CLAVE para recortar lo que sale */
  z-index: 1;
}

@media (max-width: 1660px) {
  .viewport {
    height: 250vh;
  }
}

/* Fondo detrás del círculo */
.bg-congreso.desktop,
.bg-congreso.mobile {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* detrás de todo */
}

.bg-congreso.mobile {
  display: block;
}
@media (min-width: 1660px) {
  .bg-congreso.mobile {
    display: none;
  }

  .bg-congreso.bg-congreso.desktop {
    display: block;
    position: absolute;
    left: 40%;
  }
}

.imagen-con-overlay img {
  display: block;
  width: 100%;
  height: auto;
}

.imagen-con-overlay .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(89, 119, 25, 0.5); /* negro con 50% opacidad */
  pointer-events: none; /* para que no bloquee clics si lo necesitas */
}

/* El círculo encima del fondo */
.circulo {
  position: absolute;
  overflow: hidden;
  top: -50%;
  left: -30%;
  width: 200vh;
  height: 200vh;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: 1; /* delante del fondo, detrás del contenido */
  clip-path: circle(50% at center);
}

.circulo::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200vh;
  height: 200vh;
  background-color: #ffffff; /* verde similar */
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}

@media (max-width: 1660px) {
  .circulo {
    display: none;
  }
}

.logo-congreso {
  position: absolute;
  top: 45%;
  left: 73%;
  z-index: 2;
}

.logo-congreso img {
  width: 450px;
}

@media (max-width: 1660px) {
  .contenedor-logo-congreso {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinea arriba */
    padding-top: 20px; /* Opcional para un poco de espacio */
  }

  .logo-congreso {
    position: static; /* Quita el absolute */
    text-align: center;
    z-index: 2;
  }

  .logo-congreso img {
    max-width: 100%;
    width: 300px; /* Ajusta tamaño si lo deseas más pequeño */
  }
}

.tiempo-estadia {
  color: #fff;
}

.header-familia {
  color: #000000;
}

.motivo-form {
  margin: 0%;
  position: absolute;
  z-index: 2;
  width: 100%;
  left: 5%;
  top: 61%;
}

/* ======================================================================== */
/*             Modal personalizada del congreso                             */
/* ======================================================================== */

.modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: linear-gradient(135deg, #00a329 0%, #2c7a3d 100%);
  color: white;
  border-radius: 15px 15px 0 0;
  border-bottom: none;
  padding: 20px 25px;
}

.modal-title {
  font-weight: 800;
  font-size: 1.4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-body {
  padding: 25px;
  font-family: var(--montserrat);
  line-height: 1.6;
  color: #333;
  max-height: 60vh;
}

.modal-body h6 {
  color: #050e44;
  font-weight: 700;
  border-bottom: 2px solid #8ebe28;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.modal-body ol li {
  margin-bottom: 12px;
  padding-left: 5px;
}

.modal-body ul li {
  margin-bottom: 8px;
}

.modal-body strong {
  color: #050e44;
  font-weight: 700;
}

.modal-footer {
  background-color: #00a329;
  border-top: 3px solid #00a329;
  border-radius: 0 0 15px 15px;
  padding: 20px 25px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 15px;
  align-items: center;
  justify-items: stretch;
}

@media (max-width: 576px) {
  .modal-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.form-check-label {
  color: #050e44;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-check-input {
  border: 2px solid white;
  background-color: transparent;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: white;
  border-color: white;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300a329' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M2 8l4 4 8-8'/%3e%3c/svg%3e");
}

.form-check-input:focus {
  border-color: white;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
}

.modal-footer .form-check-input {
  border: 2px solid white;
  background-color: transparent;
}

.modal-footer .form-check-input:checked {
  background-color: white;
  border-color: white;
}

.modal .btn-secondary {
  background-color: #dc3545;
  border-color: #dc3545;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: white;
}

.modal .btn-secondary:hover {
  background-color: #c82333;
  border-color: #bd2130;
  transform: translateY(-1px);
}

.modal .btn-success {
  background-color: #90bf27;
  border: none;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(144, 191, 39, 0.3);
  color: white;
}

.modal .btn-success:hover:not(:disabled) {
  background-color: #7aa520;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(144, 191, 39, 0.4);
}

.modal .btn-success:disabled {
  background-color: #ccc;
  border-color: #ccc;
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.modal-body hr {
  border-top: 2px solid #8ebe28;
  margin: 25px 0;
  opacity: 1;
}