@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

/* de aca para adelante es todo el css para el princiopio de todas las paginas [osea el menu}*/

* {
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* añadido para EL STICKY FOOTER, que el footer siempre aparezca al final sin importar el contenido de la web*/
.main {
  flex: 1;
  padding: 1rem;
  margin-top: 85px;
}
.header {
  background-color: rgb(5, 165, 0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
  padding: 5px 10%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* ← aseguramos que quede encima */
}

.logo {
  cursor: pointer;
}

.logo img {
  height: 70px;
  width: auto;
  transition: transform 0.2s;
  padding-top: 7px;
}

.logo img:hover {
  transform: scale(1.1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  background-color: rgb(5, 165, 0);
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links li {
  display: inline-block;
  margin: 0 !important;
}

.nav-links li:hover {
  transform: scale(1.1);
}

.nav-links a {
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  padding: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  color: black;
}

#icono-nav {
  display: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  #icono-nav {
    display: block;
  }

  .nav-links {
    display: none; /*  Ocultamos el menú */
    flex-direction: column;
    background-color: rgb(5, 165, 0);
    position: absolute;
    top: 85px;
    right: 10%;
    width: 200px;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding-top: 15px;
    padding-bottom: 15px;
    z-index: 10;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid white;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.3);
  color: #000;
  border-radius: 0;
  font-weight: bold;
}
/* icono user y su contenedor */
#icon-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: none;
}

#icono {
  width: 40px;
  height: auto;
  margin-left: 10px;
  background-color: var(--color2);
}

/* CSS DE SECTION HERO PARA TODAS LAS PAGINAS*/

.hero {
  background-image: url(imagenes/bienvenidainicio.png);
  background-size: cover;
  background-position: center;
  height: 100vh;
  min-height: 400px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 250px;
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
    background-size: contain;
    background-repeat: no-repeat;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    background-size: contain;
    background-repeat: no-repeat;
  }
}

/* CSS DE LA PAGINA DE INICIO {INFO } */

/* Contenedor principal que centra la sección */
.info {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  overflow-x: auto;
}
/* boton para redirigirte y animarte a iniciar una cuenta o logearte*/
.botonBienvenido {
  width: 150px;
  padding: 0.75rem;
  background-color: white;
  color: rgb(5, 165, 0);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
  text-decoration: none;
}

.botonBienvenido:hover {
  background-color: rgb(4, 140, 0);
  color: white;
}

/* Estilo de la sección de la historia */
.historia {
  background-color: #fff;
  border: 7px solid rgb(5, 165, 0);
  border-radius: 0px;
  padding: 20px;
  max-width: 1300px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 128, 0, 0.2);
}

.historia h1 {
  margin-bottom: 10px;
  font-size: 2em;
  color: rgb(5, 165, 0);
}

.historia p {
  margin: 10px 0;
  font-size: 1.1em;
}

/* Contenedor de las fotos */
.contenedor-fotos {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap; /* CAMBIO: Nunca se bajan las fotos, siempre en fila */
  overflow-x: visible; /* CAMBIO: Quité el scroll horizontal */
  flex-shrink: 1;
  flex-grow: 1;
  width: 100%;
}

/* Contenedor de cada persona */
.persona {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 33%; /* CAMBIO: Cada foto ocupa un tercio del contenedor */
  max-width: 180px; /* CAMBIO: Limitamos tamaño máximo para pantallas grandes */
  box-sizing: border-box;
  flex-shrink: 1;
}

.persona img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border: 4px solid rgb(5, 165, 0); /* ← aquí lo agregás */
  border-radius: 0px;
}

/* Estilo del nombre, fuera del borde */
.persona h5 {
  margin-top: 5px;
  font-size: 1.1em;
  color: black;
  text-align: center;
}

/* Efecto hover en imágenes (crece pero dentro del marco) */
.persona:hover img {
  transform: scale(1.05);
}

/* Responsive */
        
@media (max-width: 768px) {
  .persona {
    width: 33%; /* CAMBIO: Sigue ocupando un tercio para que no bajen */
    max-width: none; /* CAMBIO: Quitamos límite para que se reduzcan */
  }
  .persona img {
    max-height: 120px; /* CAMBIO: Bajamos altura en móviles */
  }
}

/* CSS DEL SESION */

.sesion {
  display: flex;
  justify-content: center;
  min-height: 100vh; /* ocupa toda la altura de la pantalla */
  background-color: #f3f3f3;
  background-image: url(imagenes/sesion.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem 1rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.login-container {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  width: 90%;
  max-width: 350px;
  box-sizing: border-box;
  margin: auto;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: rgb(5, 165, 0);
}

.login-container input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.login-container button {
  width: 100%;
  padding: 0.75rem;
  background-color: rgb(5, 165, 0);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

.login-container button:hover {
  background-color: rgb(4, 140, 0);
}

.login-container .links {
  text-align: center;
  margin-top: 1rem;
}

.login-container .links a {
  display: block;
  color: black;
  text-decoration: none;
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.login-container .links a:hover {
  text-decoration: underline;
}

/* CSS DEL COLLAGE VIDEO */

.video {
  width: 100%;
  max-width: 1337px;
  height: auto;
  outline: none;
  pointer-events: none;
  margin-top: -15px;
}

/* CSS DEL FOOTER */

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  bottom: 0;
  width: 100%;
}

/* CSS DE RESERVAS */

.anuncio-importante {
  background-color: rgb(5, 165, 0); /* Fondo rojo */
  color: white;
  text-align: center;
  padding: 1rem ;
  margin: 100px auto 15px ;
  border-radius: 0;
  font-size: 1.2rem;
  border: 7px solid black;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 97%;
  overflow-wrap: break-word;
}

/* CSS reserva formulario */
.reserva {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  background-image: url(imagenes/sesion2.jpg);
  background-size: cover;
  background-position: center;
  padding: 2rem 1rem;
  gap: 10px;
  box-sizing: border-box;
  border-radius: 10px;
}

.reserva form {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.reserva h2 {
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 3.3rem;
}

.reserva form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

.reserva form input,
.reserva form select {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.reserva button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.75rem;
  background-color: rgb(5, 165, 0);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.reserva button:hover {
  background-color: rgb(4, 140, 0);
}

#mensaje-reserva {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

/* CSS comentarios */

.comentarios {
  background: #f4f4f4;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.comentarios h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #333;
}

#form-comentario {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#form-comentario input,
#form-comentario textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

#form-comentario button {
  background-color: #28a745;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#form-comentario button:hover {
  background-color: #218838;
}

#lista-comentarios {
  margin-top: 2rem;
}

.comentario {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 5px solid #28a745;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.comentario strong {
  display: block;
  color: #333;
  margin-bottom: 0.5rem;
}

.comentario p {
  margin: 0;
  color: #555;
}

/* CSS DE SERVICIO*/

.servicios-section {
  display: flex;
  justify-content: center;
  padding:  105px 20px 20px;
}

.servicio-cuadro {
  background-color: white;
  border: 7px solid green;
  border-radius: 0;
  padding: 20px;
  max-width: 1300px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.titulo-servicio {
  color: green;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.servicio-cuadro ul {
  list-style: none;
  padding: 0;
}

.servicio-cuadro li {
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .servicio-cuadro {
    padding: 15px;
  }

  .titulo-servicio {
    font-size: 1.5em;
  }
}

/* SERVICIOS EXTRA */

/* Estilo general */
.info-alternada {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-alternada::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/imagenes/logo.png");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
}

/* Cada bloque */
.info-bloque {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Invertir orden */
.invertido {
  flex-direction: row-reverse;
}

/* Imagen */
.info-img {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.info-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Texto */
.info-texto {
  flex: 1 1 300px;
  text-align: center;
}

.info-texto h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: green;
}

.info-texto p,
.info-texto ul {
  font-size: 1.1em;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 600px;
}

.info-texto ul {
  list-style: none;
  padding: 0;
}

.info-texto ul li {
  margin-bottom: 10px;
}

/* Responsive: para móviles */
@media (max-width: 768px) {
  .info-bloque {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .invertido {
    flex-direction: column;
  }

  .info-texto p,
  .info-texto ul {
    padding: 0 10px;
  }
}

/* CSS DE PENTAÑA REGLAMENTOS */

.reglamento-section {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}

.reglamento-section h2 {
  font-size: 2.2em;
  color: green;
  margin-bottom: 40px;
}

.reglas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.regla-tarjeta {
  background-color: white;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.regla-tarjeta:hover {
  transform: scale(1.02);
}

.regla-tarjeta h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333;
}

.regla-tarjeta p {
  font-size: 1em;
  color: #555;
  line-height: 1.4;
}

/* CSS DE PENTAÑA CONTACTO */

.contacto {
  padding: 100px 40px 20px;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contacto h2 {
  text-align: center;
  color: #2e7d32;
  font-size: 2.5rem;
}

.contacto-form h3,
.contacto-mapa h3 {
  text-align: center;
}

.formulario-mapa {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.contacto-form,
.contacto-mapa {
  flex: 1 1 350px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contacto-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contacto-form button {
  background-color: #2e7d32;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contacto-form button:hover {
  background-color: #1b5e20;
}

/*css de redes*/

.contacto-redes {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("imagenes/canchas.webp") center/cover no-repeat;
  color: white;
}

.botones-redes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.botones-redes a {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
  border: 1px solid white;
}

.botones-redes a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/*css de horarios y direcion*/

.horario-direccion {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  background-color: #f8f8f8;
  box-sizing: border-box;
}

.contacto-horarios,
.contacto-direccion {
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  flex: 1 1 300px;
  max-width: 400px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.contacto-horarios:hover,
.contacto-direccion:hover {
  transform: translateY(-5px);
}

.horario-direccion h3 {
  margin-bottom: 1rem;
  color: rgb(5, 165, 0);
  font-size: 1.5rem;
  text-align: center;
}

.horario-direccion p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #333;
}

.contacto-direccion a {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: 1.1rem;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.contacto-direccion a:hover {
  text-decoration: underline;
}

/* prueba formulario con pagina aparte */
.registro {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("/ingeniasypf/imagenes/fondoregistr1.jpg"), url("/ingeniasypf/imagenes/fondoregistr2.jpg");
  background-size: auto, 39% auto, 40% auto;
  background-position: center center, top left, bottom right, bottom;
  background-repeat: no-repeat, no-repeat, no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 2rem 1rem;
  margin-top: 85px;
  box-sizing: border-box;
  background-color: #e6ffe6;
}

.form-registro {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 10px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.form-registro h1 {
  color: rgb(5, 165, 0);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-registro label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: #222;
  text-align: left;
}

.form-check-label {
  display: inline;
  margin: 0;
  font-weight: normal;
}
#formCheckRegistro .form-check-label {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
}

.form-registro input,
.form-registro .form-control,
.form-registro .input-group-text {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: rgba(255, 255, 255, 0.7);
  color: #222;
}

.form-registro .form-control:focus {
  border: 2px solid #28a745;
  box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.25);
}

.btn-primary {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.75rem;
  background-color: rgb(5, 165, 0);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background-color: rgb(4, 140, 0);
}

#tituloRegistro {
  text-align: center;
  color: #1b5e20;
}
.subtitulo-registro {
  text-align: center;
  color: #1b5e20;
}

#formCheckRegistro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  margin-top: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

#formCheckRegistro .form-check-label {
  margin: 0;
  padding-top: 0.5rem;
  line-height: 1.2;
}

#formCheckRegistro .form-check-input {
  position: absolute;
  left: 1rem;
  top: 0.2rem;
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .registro {
    background-size: auto, 40% auto, 40% auto, cover;
    background-position: center center, top left, bottom right, center center;
  }
}

@media (max-width: 480px) {
  .registro {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url("/ingeniasypf/imagenes/cancha-futbol.jpg");
    background-size: auto, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    background-color: #f8f9fa;
  }
}

/* PERFIL */

/*SECCIÓN HEADER DEL CLUB*/
.club-header-section {
  margin-bottom: 30px;
  margin-top: 115px;
}

.club-banner {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: white;
  padding: 15px;
  border-radius: 15px;
  text-align: center;
}

.club-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

/* ===== SECCIÓN PERFIL USUARIO ===== */

.profile-section {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  padding: 0 15px;
}

.profile-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 1400px;
  width: 100%;
}

.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin: 0 auto;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.avatar-container {
  display: flex;
  flex-direction: column;
}


.avatar {
  display: flex;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: black;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
  transition: transform 0.3s ease;
  margin-top: 50px;
  margin: 50px auto 0;
}

.avatar:hover {
  transform: scale(1.05);
}

.avatar-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  gap: 20px;
}

.avatar-back,
.avatar-next {
  width: 0; 
  height: 0; 
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  
}

.avatar-back {
  border-right: 15px solid green;
}

.avatar-next {
  border-left: 15px solid green;
}

.birthday-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff6b35;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

#btnCerrarSesion {
  background-color: #d9534f; /* rojo Bootstrap btn-danger */
  border: none;
  color: white;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#btnCerrarSesion:hover {
  background-color: #c9302c;
}
#icon-container {
  display: flex;
  align-items: center; /* Centra verticalmente */
  gap: 10px; /* Espacio entre ícono y botón */
}

/* Estilo para el botón cerrar sesión */
#btnCerrarSesion {
  display: flex;
  gap: 5px;
  padding: 6px 12px;
  font-size: 14px;
}

/* Estilo para el ícono de perfil */
#icon-container img {
  object-fit: cover;
  cursor: pointer;
}


@media (min-width: 768px) {
  .profile-content {
    flex-direction: row; /* avatar a la izquierda, info a la derecha */
    justify-content: center; /* centrado del bloque total */
    align-items: center;
    max-width: 800px;
  }

  .user-info {
    text-align: left;
    align-items: flex-start;
  }
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.user-info h1 {
  color: #333;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.user-details {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.status-badge {
  background: #4caf50;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  margin-right: 10px;
}

.points-badge {
  background: #ff9800;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.edit-profile-btn {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.edit-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}

/* ===== SECCIÓN ESTADÍSTICAS ===== */

.statistics-section {
  margin-bottom: 30px;
  padding: 0 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  animation: slideUp 0.6s ease-out;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 5px;
}

.stat-label {
  color: #666;
  font-size: 1rem;
}

/* ===== SECCIÓN PROGRAMA DE PUNTOS ===== */
.points-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 20px;
  margin-bottom: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.points-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.section-title {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.points-balance {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 25px;
}

.points-balance h3 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .rewards-grid {
    grid-template-columns: repeat(
      3,
      minmax(200px, 1fr)
    ); /* mantiene 3 pero adaptables */
    overflow-x: auto; /* permite hacer scroll si no entran */
  }
}

.reward-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  text-align: center;
}

.reward-card:hover {
  border-color: #4caf50;
  transform: translateY(-2px);
}

.reward-card.available {
  border-color: #4caf50;
  background: #f0fff4;
}

.reward-card.unavailable {
  opacity: 0.6;
  background: #f5f5f5;
}

.reward-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.reward-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.reward-cost {
  background: #2e7d32;
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

.redeem-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 100%;
}

.redeem-btn:hover {
  background: #45a049;
  transform: translateY(-2px);
}

.redeem-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.reservations-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.8s ease-out;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
}

.tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
}

.tab.active {
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.1);
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2e7d32;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.reservation-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid #2e7d32;
  transition: all 0.3s ease;
}

.reservation-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reservation-card.cancelled {
  border-left-color: #dc3545;
  background: #fff5f5;
}

.reservation-card.completed {
  border-left-color: #28a745;
  background: #f0fff4;
}

.reservation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reservation-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}

.reservation-status {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.status-completed {
  background: #d1ecf1;
  color: #0c5460;
}

.reservation-details {
  color: #666;
  line-height: 1.5;
}

.reservation-details span {
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 5px;
}

.points-earned {
  background: #ff9800;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: bold;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rewards-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .reservation-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .points-header {
    flex-direction: column;
    gap: 15px;
  }
/* estilo-lista usuarios registrados  */
  #lista-usuarios h4 {
  border-left: 5px solid #05a500;
  padding-left: 10px;
}

}

/* Sección Testimonios */
.testimonios-section {
  background: linear-gradient(135deg, #05a500 0%, #4a7c59 100%);
  padding: 60px 0;
}

.testimonios-section h2 {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.testimonio-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.testimonio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2c5530, #4a7c59);
}

.stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonio-text {
  font-style: italic;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #05a500, #4a7c59);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.author-info h4 {
  color: #2c5530;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  color: #888;
  font-size: 0.9rem;
}

/* Sección Noticias */

.noticias-section {
  background: white;
  padding: 50px 0;
}

.noticias-section h2 {
  text-align: center;
  color: #05a500;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}

.noticias-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #2c5530, #4a7c59);
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.noticia-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #f0f0f0;
}

.noticia-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  border-color: #2c5530;
}

.noticia-header {
  background: linear-gradient(135deg, #05a500, #4a7c59);
  padding: 20px;
  color: white;
  text-align: center;
}

.noticia-fecha {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

.noticia-titulo {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.noticia-content {
  padding: 25px;
}

.noticia-descripcion {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.proximamente-badge {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

        /* Responsive */
@media (max-width: 768px) {
  .testimonios-section h2,
  .noticias-section h2 {
  font-size: 2rem;
}

.testimonios-grid,
 .noticias-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.testimonio-card,
  .noticia-card {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .testimonios-section h2,
  .noticias-section h2 {
  font-size: 1.8rem;
}
            
.testimonio-card,
  .noticia-card {
    padding: 20px;
  }
}

