* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 1.5vh;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
}

header {
  height: 30vh;
  overflow: visible;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0px 5px 10px 10px #0003;
}

.logo {
  /* display: flex; */
  position: relative;
  padding: 0;

}

.menu-flotante {
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 10px;
  z-index: 200;
}

.logo-img {
  width: 100px;
  margin: 0 15px;
  margin-left: 30px;
}

nav {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0;
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  position: relative;
  margin: 0px 15px;
}

nav ul li a {
  position: relative;
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

nav ul li a:hover {
  background-color: rgba(240, 240, 240, 0.7);
  border-radius: 5px;
  color: black;
}

nav ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
  z-index: 999;
}

nav ul li:hover>ul {
  display: block;
}

nav ul li ul li {
  position: relative;
  margin: 10px 15px;
}

nav ul li ul li ul {
  position: absolute;
  top: 0;
  left: 100%;
  display: none;
  z-index: 999;
}

nav ul li ul li:hover>ul {
  display: block;
}

.login-access {
  min-width: 120px;
}

.menu {
  display: flex;
}

.slide {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
}

.slide picture {
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

main {
  overflow: hidden;
  box-sizing: border-box;
  flex-grow: 1;
  margin-top: 5rem;
  border: 0 solid #e5e7eb;
  display: block;
  font-size: 18px;

}
#verRegistros {
  display: none;
}

section {
  overflow: hidden;
  box-sizing: border-box;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
  gap: 5rem;
  display: flex;
  border: 0 solid #e5e7eb;
  /* max-width: 80rem; */
  box-sizing: border-box;
}

.cuadricula {
  box-sizing: border-box;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 5rem;
  border: 0 solid #e5e7eb;
  max-width: 80rem;
}

.eventos {
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 0 solid #e5e7eb;
  display: block;
  box-shadow: 0px 2px 10px 1px #0003;
}

.eventos a {
  overflow: hidden;
  flex-direction: column;
  -webkit-box-direction: normal;
  display: flex;
  color: inherit;
  text-decoration: inherit;
  box-sizing: border-box;
}

.eventos div {
  overflow: hidden;
  box-sizing: border-box;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
}

.eventos div div {
  overflow: hidden;
  box-sizing: border-box;
  display: block;
  font-size: .75rem;
  line-height: 1rem;
  padding: 0;
}

.eventos div div a {
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  text-transform: uppercase;
  background: #f3f3f3;
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 24px;
  margin-bottom: 8px;
  display: inline-block;
  margin-right: 6px;
  color: inherit;
  text-decoration: inherit;
  font-weight: inherit;
}

.eventos div h3 {
  overflow: hidden;
  box-sizing: border-box;
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 1rem;
}

.eventos a div {
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 1 rem;
}

.eventos a div img {
  overflow: hidden;
  box-sizing: border-box;
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-width: 100%;

}

.eventos a:hover {
  cursor: pointer;
}

p {
  padding: 0;
  margin: 0;
  font-size: 14px;
}

footer {
  flex-shrink: 0;
  background: #222;
  color: #fff;
  padding: 3vw 5vw;
  font-family: Arial, sans-serif;
  box-shadow: 0px -5px 10px 10px #0003;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2vw;
  max-width: 90vw;
  margin: auto;
}

.footer-section {
  flex: 1;
  min-width: 20vw;
  margin-bottom: 2vh;
  text-align: center;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1vh;
  border-bottom: 0.2rem solid #ffcc00;
  display: inline-block;
  padding-bottom: 0.5vh;
}

.footer-section p,
.footer-section a {
  color: #ddd;
  text-decoration: none;
  font-size: 1rem;
}

.footer-section a:hover {
  color: #ffcc00;
}

.social-links,
.quick-links {
  list-style: none;
  padding: 0;
}

.social-links li,
.quick-links li {
  margin-bottom: 0.8vh;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5vh;
  border-top: 0.1rem solid #444;
  margin-top: 2vh;
  font-size: 0.9rem;
  color: #bbb;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}
label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #444;
}


input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

input {
  width: 100%;
  box-sizing: border-box;
}


input:focus {
  border-color: #0073e6;
  outline: none;
  box-shadow: 0 0 3px #0073e6;
}

.checkbox-group {
  margin-top: 20px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.checkbox-group input {
  margin-right: 8px;
}

.btn {
  margin-top: 25px;
  width: 100%;
  padding: 12px;
  background: #0073e6;
  color: white;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #005bb5;
}

#modal-registrar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10000;
}
.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.modal-content h2 {
  font-size: 1.8rem;
  text-align: center;
  color: #333;
  margin-bottom: 1rem;
}

.modal-content label {
  font-weight: 600;
  font-size: 1rem;
  color: #444;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.modal-content input:focus {
  border-color: #0073e6;
  outline: none;
  box-shadow: 0 0 3px rgba(0, 115, 230, 0.4);
}

.btn {
  margin-top: 1rem;
  width: 100%;
  padding: 12px;
  background: #0073e6;
  color: white;
  border: none;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #005bb5;
}

.footer-link {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.footer-link a {
  color: #0073e6;
  text-decoration: underline;
}
/* Botón de inscribirse */
.btn-inscribirse {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.7em 1.4em;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: auto;
  min-width: 0;
  max-width: 100%;
  font-size: 1em;
}
.btn-inscribirse:hover {
  background-color: #218838;
}
/* Botón de cancelar inscripción SOLO en el modal */
.btn-cancelar-modal {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.7em 0.5em;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 110px;
  max-width: 110px;
  width: 110px;
  white-space: normal;
  text-align: center;
  font-size: 1em;
  line-height: 1.1;
  display: inline-block;
  word-break: break-word;
}
.btn-cancelar-modal:hover {
  background-color: #0056b3;
}
/* Botón ver mis eventos */
.btn-ver-eventos {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-ver-eventos:hover {
  background-color: #218838;
}
#boton-centro {
  text-align: center;
  margin: 2em 0;
}
.btn-ver-eventos {
  background-color: #28a745;
  color: white;
  padding: 0.7em 1.4em;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  display: none;
}
#modal-eventos.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

/* Fondo blanco y bordes para el contenido del modal */
#modal-eventos .contenido {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 2rem 1.5rem;
  max-width: 95vw;
  min-width: 0;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  margin: auto;
  display: block;
  box-sizing: border-box;
}
/* Tabla responsiva dentro del modal */
#modal-eventos table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 1rem;
  word-break: break-word;
}

#modal-eventos th, #modal-eventos td {
  padding: 8px;
  text-align: left;
  font-size: 0.95em;
}
/* Oculta el texto detrás del modal */
body #modal-eventos.modal[style*="display: flex"] ~ *:not(#modal-eventos) {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}
/* Responsive Styles */
@media (max-width: 1200px) {
  .logo-img {
    width: 80px;
    margin-left: 20px;
  }
  nav ul li a {
    padding: 0.8rem 1.2rem;
  }
  nav ul li ul {
    min-width: 150px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .footer-section {
    min-width: 100%;
    text-align: center;
  }
  .footer-section h3 {
    font-size: 1.2rem;
  }
  .footer-bottom {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .logo {
    display: none;
  }

  nav {
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    top: unset;
    padding: 10px 15px;
  }

  nav ul li ul {
    position: absolute;
    left: 100%;
    /* coloca el submenú al costado */
    top: 0;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 10px;
    min-width: 150px;
    display: none;
  }

  nav ul li:hover>ul {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
  }

  .menu.active {
    display: flex;
  }

  .menu-flotante {
    position: relative;
  }

  #menu-flotante {
    font-size: 3rem;
  }

  .login-access {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: rgba(0, 0, 0, 0.8);
    list-style: none;
    padding: 10px;
    display: none;
    z-index: 100;
    width: 150px;
  }

  .menu-flotante:hover>.login-access {
    display: block;
  }

  .login-access li a {
    display: block;
    color: white;
    padding: 8px 10px;
    text-decoration: none;
  }

  .login-access li a:hover {
    background-color: #ffffff22;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    min-width: 100%;
  }

  .footer-section h3 {
    font-size: 1.4rem;
  }

  .footer-bottom {
    font-size: 1rem;
  }

}
/* Scroll horizontal para tablas en pantallas pequeñas */
@media (max-width: 600px) {
  #modal-eventos .contenido {
    padding: 1rem 0.2rem;
    max-width: 100vw;
  }
  #modal-eventos table {
    font-size: 0.9em;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  #modal-eventos th, #modal-eventos td {
    padding: 6px 4px;
    font-size: 0.9em;
  }
}
@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
    border-radius: 10px;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 10px;
  }

}