/* TEMA CLARO OSCURO */
/* Tema Claro (por defecto) */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --primary-color: #802fa0;
  --nav-hover: #802fa0;
  --line-color: black;
  --dot-color: black;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --black-button-background: black;
  --black-button-color: white;
}

/* Tema Oscuro */
[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #ffffff;
  --primary-color: #f5d033;
  --nav-hover: #f5d033;
  --line-color: white;
  --dot-color: white;
  --shadow-color: hsla(0, 0%, 100%, 0.2);
  --black-button-background: white;
  --black-button-color: black;
}
/* * * * * * */

/* GENERAL */
html {
  scroll-behavior: smooth;
  height: 100%;
  font-size: clamp(11px, 1vw, 16px);
  overflow-x: hidden;
}

body {
  margin: 0px;
  width: 100%;
  min-height: 100vh;
  font-family: Poppins;
  background-color: #121212;
  color: #ffffff;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

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

/* SECCION */
section {
	position: absolute;
	display: flex;
	width: 100%;
	height: 100%;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	box-sizing: border-box;
	padding-top: 6rem;
  gap: 1rem;
}
/* * * * * * * * */

/* BOTON PERSONALIZADO */
.button {
	display: inline-block;
	width: 100%;
	height: 5rem;
	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.5rem;
	box-sizing: border-box;
}

.button.gray {
  background: #bebdbc;
}

.button.dark-gray {
  color: white;
  background: #403f38;
}

.button.purple {
  color: white;
  background: #802fa0;
}

.button.gold {
  background: #f5d033;
}

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

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

.button.red {
  color: white;
  background: #920000;
}

.button.light-red {
  color: white;
  background: #e10f13;
}

.button.black {
  color: var(--black-button-color);
  background: var(--black-button-background);
}

.button.fixed-black {
  color: white;
  background: black;
}

.button.green {
  color: white;
  background: #32a757;
}
/* * * * * * * * * * * * * /

/* 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: 2rem;
  height: 2rem;
  border: 2px solid #ffffff;
  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: #ffffff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* * * * * * * * * * * * * /

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

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

/* Estilo del radio personalizado (cuadrado) */
.radio-mark {
  width: 2rem;
  height: 2rem;
  border: 2px solid #ffffff;
  display: inline-block;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s ease-in-out;
}

/* Estilo cuando está seleccionado */
.custom-radio input:checked + .radio-mark::after {
  content: "✔";
  font-size: 18px;
  color: #ffffff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* * * * * * * * * * * */

/* 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;
}
/* * * * * * * * */

/* BOTONO VER OCULTAR CONTRASEÑA */
.input-container {
  position: relative;
  display: flex;
}

.button-toggle-pass {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #555;
  z-index: 10;
}
/* * * * * * * * * */

/* ANIMACIÓN DE CARGA */
.loader-pulse {
  position: absolute;
  height: 2rem;
  width: 2rem;
  right: 7.5rem;
  background: linear-gradient(180deg, rgb(96, 96, 96) 25%, rgb(0, 0, 0) 100%);
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-in-out;
  padding: 0.5rem;
  margin-top: 0.2rem;
}

.loader-pulse-green {
  background: linear-gradient(
    180deg,
    rgb(120, 255, 163) 25%,
    rgb(50, 167, 87) 100%
  );
}

.loader-pulse-red {
  background: linear-gradient(
    180deg,
    rgb(230, 71, 71) 25%,
    rgb(146, 0, 0) 100%
  );
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* * * * * * * */

/* ESTILOS DE TEXTOS */
.text-line-through {
  text-decoration: line-through;
}
/* * * * * * * */

/* 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;
}
/* * * * * * * * * * */

.spacer {
  flex: 1;
}

.divider {
  display: flex;
  height: 0.1rem;
  width: 100%;
  background-color: black;
}