/* GENERAL */
html {
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
}

body {
  position: absolute;
  margin: 0px;
  top: 0px !important;
  width: 100%;
  height: 100%;
  background: #f7f5ff;
  font-family: Poppins;
  font-size: 100%;
  overflow-x: hidden;
  display: flex;
  justify-content: flex-start;
  background-color: black;
  /*background-image: url("../images/background.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;*/
  color: #3a3a3a;
  flex-direction: column;
  gap: 1rem;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  position: absolute;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

::placeholder {
  color: rgb(160, 160, 160);
}
/* * * * * * * */

/* MENU SUPERIOR */
.div-top-menu {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  z-index: 10;
  justify-content: center;
  color: white;
  padding: 0.5rem;
  height: 3rem;
  box-sizing: border-box;
}

.icon-top-menu {
  position: absolute;
  height: 80%;
  cursor: pointer;
  left: 3rem;
}
/* * * * * * * * */

/* SECCION */
section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
  height: 100%;
  text-align: center;
  box-sizing: border-box;
}

.section-div {
  position: relative;
  display: flex;
  justify-content: space-between;
  background: white;
  width: auto;
  height: 100%;
  flex-direction: row;
  gap: 1rem;
  margin: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 65%;
}

.section-div.col {
  justify-content: flex-start;
  flex-direction: column;
  padding: 1rem;
  text-align: left;
}

.section-div h1,
h3 {
  font-family: Oswald;
}
/* * * * * */

/* BOTON PERSONALIZADO */
.button-container {
  position: relative;
  display: flex;
  height: 3rem;
}

.button {
  display: inline-block;
  width: 100%;
  height: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  border-style: none;
  color: black;
  font-family: Poppins;
  font-size: 1.2rem;
  box-sizing: border-box;
}

.button.gray {
  background: linear-gradient(
    180deg,
    rgba(219, 219, 219, 1) 25%,
    rgba(255, 255, 255, 1) 100%
  );
}

.button.gray:hover {
  color: white;
  background: linear-gradient(
    180deg,
    rgba(157, 157, 157, 1) 25%,
    rgba(206, 206, 206, 1) 100%
  );
  box-shadow: 1px 1px 4px gray;
}

.button.gold {
  background: linear-gradient(
    180deg,
    rgba(230, 196, 87, 1) 25%,
    rgba(228, 230, 87, 1) 100%
  );
}

.button.gold:hover {
  color: white;
  background: linear-gradient(
    180deg,
    rgba(192, 164, 73, 1) 25%,
    rgba(193, 195, 71, 1) 100%
  );
  box-shadow: 1px 1px 4px gold;
}

.button.purple {
  color: white;
  background: linear-gradient(
    180deg,
    rgba(159, 72, 213, 1) 25%,
    rgba(87, 118, 230, 1) 100%
  );
}

.button.purple:hover {
  color: white;
  background: linear-gradient(
    180deg,
    rgba(117, 54, 157, 1) 25%,
    rgba(67, 91, 177, 1) 100%
  );
  box-shadow: 1px 1px 4px #6d4aff;
}

.button.blue {
  color: white;
  background: #0090b7;
}

.button.blue:hover {
  color: white;
  background: #589cae;
  box-shadow: 1px 1px 4px #005871;
}

.button.light-blue {
  color: white;
  background: #c0f2ff;
}

.button.black {
  color: white;
  background: black;
}
/* * * * * * * * * * * * * /

/* FOOTER */
footer {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 10;
  color: white;
  padding: 0.5rem;
  flex-direction: row;
  gap: 1rem;
  height: 3rem;
  box-sizing: border-box;
  align-items: center;
}

footer p {
  cursor: pointer;
}

footer p:hover {
  color: #f5d033;
}

footer img {
  height: 1.5rem;
}
/* * * * * * */

/* CHECKBOX */
/* The container */
.container {
  display: flex;
  position: relative;
  padding-left: 2em;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 1.5em;
  padding-top: 0.1em;
  font-size: 0.8rem;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark-cross {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.5em;
  width: 1.5em;
}
.checkmark-tick {
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  height: 1.5em;
  width: 1.5em;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark-tick {
  display: block;
}
.container input:checked ~ .checkmark-cross {
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark-tick:after {
  display: block;
}
.container input:checked ~ .checkmark-cross:after {
  display: none;
}
/* * * * * * * * * * * * * /

/* IMAGEN EN GRANDE */
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 5%; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
  z-index: 50;
  justify-content: center;
  backdrop-filter: blur(0.3rem);
}

.modal-white {
  background-color: rgba(255, 255, 255, 0.3); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  height: 80%;
}

/* Add Animation - Zoom in the Modal */
.modal-content {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
/* * * * * * * * */

/* PANTALLA DE CARGA */
/* Overlay a pantalla completa */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;

  /* IMPORTANTE: bloquea clics/touch/scroll sobre lo que hay debajo */
  pointer-events: all;
  user-select: none;

  /* Para que se note que "no se puede tocar" */
  cursor: wait;
}

.loading-box {
  display: grid;
  gap: 12px;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px 26px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: spin 0.9s linear infinite;
}

.loading-screen-map {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-box-map {
  display: grid;
  gap: 12px;
  place-items: center;
  background: rgba(178, 178, 178, 0.1);
  border: 1px solid rgba(157, 157, 157, 0.18);
  padding: 20px 26px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #828282;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.spinner-map {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(172, 172, 172, 0.25);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mientras carga, bloquea el scroll del body */
body.is-loading {
  overflow: hidden;
}
/* * * * * * * * * * */

/* CHECKBOX */
/* Contenedor del checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.5rem;
  user-select: none;
}

/* Ocultar el checkbox original */
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Estilo del checkbox personalizado */
.checkmark {
  width: 1rem;
  height: 1rem;
  border: 1px solid #000000;
  display: inline-block;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s ease-in-out;
}

/* Icono de check cuando está seleccionado */
.custom-checkbox input:checked + .checkmark::after {
  content: "✔";
  font-size: 18px;
  color: #000000;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* * * * * * * * * * * * * /

/* VERSION MOVIL */
@media only screen and (max-width: 65em) {
  section {
    height: fit-content;
  }

  .section-div {
    flex-direction: column;
    margin: auto;
  }

  .div-top-menu {
    flex-direction: row;
    gap: 1rem;
  }

  .icon-top-menu {
    position: relative;
    height: 2rem;
    left: auto;
  }

  #h1-event {
    font-size: 1rem;
  }

  footer {
    font-size: 0.6rem;
  }
}
/* * * * * * * * */
