/* 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: var(--bg-color);
  color: var(--text-color);
  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);
}
/* * * * * * * */

/* MENU NAVEGACIÓN */
/* Estilos de la barra de navegación */
.navbar {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 6rem;
  top: 0;
  right: 0;
  z-index: 100;
}

/* Links del menú */
.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem 1rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--nav-hover);
}

/* Logo */
.logo img {
  height: 3rem;
  width: auto;
  cursor: pointer;
}

/* Íconos */
.icon {
  height: 3rem;
  width: auto;
  cursor: pointer;
  transition: opacity 0.3s;
}

.icon-item {
  display: flex;
  align-items: center;
}

.menuToggle {
  position: fixed;
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  right: 2rem;
  top: 2rem;
  color: var(--text-color);
  z-index: 200;
}
/* * * * * * */

/* SECCION */
.section {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  text-align: center;
  top: 0;
}
/* * * * * */

/* BOTON PERSONALIZADO */
.button-container {
  position: relative;
  display: flex;
}

.button-custom {
  display: inline-block;
  width: 100%;
  height: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  border-radius: 2rem;
  border-style: solid;
  border-width: 0.1rem;
  color: black;
}

.button-rect {
  display: inline-block;
  width: 100%;
  height: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  border-style: none;
  color: black;
  font-family: Poppins;
  font-size: 1.2rem;
}

.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-blue-light {
  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;
}
/* * * * * * * * * * * * * /

/* FOOTER */
footer {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0;
  width: 100%;
  height: 4rem;
  z-index: 10;
  background: #121212;
  color: white;
}
/* * * * * * */

/* 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 var(--text-color);
  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: var(--text-color);
  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 black;
  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: black;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* * * * * * * * * * * */

/* LEGAL */
.div-text-legal {
  position: absolute;
  width: 90%;
  height: 70vh;
  overflow-x: hidden;
  overflow-y: auto;
  backdrop-filter: blur(5px);
  color: white;
  padding: 1rem;
  text-align: left;
}
/* * * * * * */

/* 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;
}
/* * * * * * * */

/* LISTADO DE EVENTOS */
.div-events {
  position: absolute;
  top: 7rem;
  left: 4%;
  width: 92%;
  height: 77%;
  display: flex;
  justify-content: center;
}

.h1-events {
  position: absolute;
  left: 0;
  top: 0;
}

.h3-events {
  position: absolute;
  left: 0;
  top: 2.7rem;
}

.div-events-list {
  position: absolute;
  top: 11%;
  left: 0;
  width: 48%;
  height: 87%;
}

.div-events-list ul {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.div-events-list ul li {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ede7e7;
  height: 12rem;
  width: 91%;
  float: right;
  margin-bottom: 2rem;
}

.div-events-list ul li img {
  position: absolute;
  height: 8rem;
  left: -4rem;
}

.div-events-list ul li p {
  position: absolute;
  left: 5.5rem;
  width: 41%;
  font-size: 1.35rem;
  color: black;
}

.div-events-list ul li b {
  position: absolute;
  left: 5.5rem;
  width: 83%;
  color: black;
  bottom: 0.5rem;
}

.div-button-view {
  position: absolute;
  top: 2.5rem;
  width: 39%;
  right: 3%;
  height: 3rem;
}

.div-button-buy {
  position: absolute;
  bottom: 2.5rem;
  width: 39%;
  right: 3%;
  height: 3rem;
}

.div-line-vertical {
  position: absolute;
  width: 0.15rem;
  height: 100%;
  background-color: var(--line-color);
}

.div-line-horizontal {
  position: absolute;
  display: none;
  height: 0.15rem;
  width: 100%;
  top: 54rem;
  background-color: var(--line-color);
}
/* * * * * * * * * * */

/* VERSION MOVIL - VERTICAL */
/* TABLET */
@media (max-width: 1024px) and (orientation: portrait) {
  html {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    transform: translateX(100vw);
    transition: transform 0.4s ease-in-out;
    flex-direction: column;
    justify-content: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
    box-shadow: -4px 0 10px var(--shadow-color);
  }

  .nav-links li {
    margin-bottom: 2rem;
  }

  .menuToggle {
    display: block;
  }

  .icon {
    height: 2rem;
  }

  .menu-visible {
    transform: translateX(0);
  }

  .div-events {
    height: 100rem;
  }

  .div-events-list {
    top: 8%;
    width: 100%;
    height: 43rem;
  }

  .div-events-list ul li {
    width: 94%;
  }

  .div-line-vertical {
    display: none;
  }

  .div-line-horizontal {
    display: block;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .navbar {
    width: 80%;
  }
}

/* Bloquear diseño horizontal en moviles */
@media (max-width: 768px) and (orientation: landscape) {
  body {
    visibility: hidden;
  }

  body::before {
    content: "📱 Por favor, usa tu dispositivo en modo vertical";
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-size: 1.5rem;
    text-align: center;
    color: white;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    visibility: visible;
  }
}

/* MOVIL */
@media (max-width: 768px) and (orientation: portrait) {
  .div-events-list ul li {
    width: 88%;
  }

  .div-events-list ul li img {
    left: -3.5rem;
  }

  .div-events-list ul li p {
    left: 20%;
    width: 77%;
    font-size: 1.1rem;
    top: 0.5rem;
  }

  .div-events-list ul li b {
    left: 20%;
    width: 77%;
    top: 4rem;
  }

  .div-button-view {
    top: 6rem;
    width: 77%;
    height: 2.5rem;
  }

  .div-button-buy {
    bottom: 0.5rem;
    width: 77%;
    height: 2.5rem;
  }
}
/* * * * * * * * */
