/* fuentes del sitio */
@font-face {
    font-family: "din1451altG";
    src: url("./fonts/din1451altG.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "din1451alt";
    src: url("./fonts/din1451alt.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {

  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: linear-gradient(to bottom, rgba(56, 76, 61, 0.34), rgba(156, 211, 163, 0.247)), url("/images/fondo.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

body > *:not(footer) {
  flex: 1 0 auto;
}
body > * {
  flex-shrink: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: center; /* Centra horizontalmente */
  text-align: center;
  background-color: #0a8255;
  padding: 5px;
  box-shadow: 10px 4px 10px rgba(0, 0, 0, 0.2); /* Sombra sutil debajo */
  border-bottom: 2mm solid white; /* Línea blanca debajo */
}
.header {
  flex-shrink: 0;
}

header img {
    height: 85px;
    margin-right: 15px;
    border-right: 2.1px solid white; /* Línea vertical blanca */
}

header h1 {
    font-size: 22px;
    margin: 0;
    color: #f8f8f8;
}


.buscador {
    text-align: center;
    margin: 20px;
  }
  
.buscador input {
   width: 380px;
   padding: 10px;
   font-size: 16px;
   border: 2px solid #0a8255;
   border-radius: 15px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cards-section {
    background-size: cover;
    background-position: center;
    min-height: calc(80vh - 10px); /* Ajusta la altura menos el header */
    display: flex;
    flex-wrap: wrap;
    max-width: 1240px; /* Ajusta según el tamaño de tus cards */
    margin: 0 auto;
    gap: 20px 40px; /* vertical horizontal → más separación horizontal, menos vertical */
    align-items: flex-start;
    justify-content: center;
    padding: 30px 10px 10px; /* Ajusta el espacio interno */
}


.card {
    background: white;
    width: 130px;
    height: 140px;
    margin: 0px;
    padding: 5px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.3s ease-in-out;
    text-decoration: none;
    color: #0a8255;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* Sombra más fuerte al pasar el mouse */
}

.card-img {
  width: 66px;
  height: 66px;
  margin-bottom: 15px;
  padding: 5px;
  object-fit: contain; /* Ajusta la imagen sin recortarla */
}

.card-img2 {
  width: 77px;
  height: 77px;
  margin-bottom: 15px;
  padding: 5px;
  object-fit: contain; /* Ajusta la imagen sin recortarla */
}


.card-name {
  font-size: 14px;
  font-weight: bold;
}

.card-name2 {
  font-size: 13px;
  font-weight: bold;
}
.card-name3 {
  font-size: 12px;
  font-weight: bold;
}

.capacidad-card{
  font-size: 11px;
}
#doble .card-name {
    font-size: 14px; /* Tamaño de fuente */
    font-weight: bold;
}

#tickets .card-name {
    font-size: 14px; /* Tamaño de fuente */
    font-weight: bold;
}


/* Estilos del modal */
.titulo-editcarga {
    background-color: rgba(0, 0, 0, 0.6);
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
}
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeMaskIn 0.2s forwards;
    backdrop-filter: blur(6px);
}

/* Estilos comunes para los modales */
.modal-contenido {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 500px;
    position: center;
    border: 1px solid #5a8f42; /* Aquí agregamos el borde verde */
    animation: scaleUpIn 0.3s ease forwards;
    transform-origin: center center;
}

/* Contenedor para los botones del modal */
.botones-container-sala {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap; /* permite que pasen a la siguiente línea si no entra en pantallas chicas */
  gap: 30px; /* separación entre cards */
  margin: 20px 0;
}


.card-name-sala {
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

#SalaModal .card {
  width: 120px;
  height: auto;
  padding: 10px;
  border-radius: 10px;
  background-color: white;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  border: 1px solid #b9bcb9;
}
#ticketModal .card {
  width: 120px;
  height: auto;
  padding: 10px;
  border-radius: 10px;
  background-color: white;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  border: 1px solid #b9bcb9;
}

#SalaModal .card:hover {
  transform: translateY(-5px);

}
/* Estilos de los botones dentro del modal */
.modal-contenido button {
    flex: 1; /* Esto hace que ambos botones se ajusten al mismo tamaño */
    margin: 5px; /* Reducir el margen entre los botones */
    padding: 10px 10px;
    background-color: #0a8255;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    box-shadow: 5px 0px 10px rgba(233, 236, 236, 0.381); /* Sombra sutil debajo */
}
.modal-body-centered{
    max-height: 90vh;
    overflow-y: auto; 
}


.modal-contenido button:hover {
    background-color: #21a374;
}
/*e-mail Soporte*/

.email-soporte{
  color: #21a374;
  font-weight: bold;
  font-size: 16px; 
  text-decoration: none;
}
.copiar-icono {
  color: #21a374;
  transition: color 0.3s, transform 0.3s;
}

.copiar-icono:hover {
  color: #11680e;
  transform: scale(1.2);
}

/* Estilo del contenido del modal de consulta */
#consultaModal .modal-contenido h2 {
  font-size: 18px;
  font-weight: bold;
}
.modalSala-contenido h2{
  font-size: 18px;
}  

#consultaModal .modal-contenido p {
  font-size: 16px;
  color: #333;
}

#consultaModal .modal-contenido a {
  color: #0a8255;
  text-decoration: none;
}

#consultaModal .modal-contenido a:hover {
  text-decoration: underline;
}
/* Botón de cierre del modal */
.cerrar, .cerrarConsulta {
    position: absolute;
    top: 10px;
    right: 15px;
    color: rgb(3, 106, 22);
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s, padding 0.3s, border-radius 0.3s;
    padding: 2px 6px;
    border-radius: 50%;
}

.cerrar:hover, .cerrarConsulta:hover {
    background-color: rgba(3, 95, 20, 0.1);
    border-radius: 50%;
}

.modalSala-contenido {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 60%;
  margin: auto;
  text-align: center;
  position: relative;
  border: 1px solid #5a8f42; /* Aquí agregamos el borde verde */
    animation: scaleUpIn 0.3s ease forwards;
  transform-origin: center center;
}
.footer {
  flex-shrink: 0;
}

.footer {
  background-image: linear-gradient(to bottom, rgba(28, 50, 14, 0.7), rgba(90, 143, 66, 0.7));
  text-align: center;
  color:#f6f3f3;
  background:  #0a8255; /* Degradado de verde oscuro a verde claro */
}
/* Responsive en móviles */
@media (max-width: 450px) and (max-height: 915px) {
  .footer p{
    font-size: 11px;
  }

  #emailSoporte {
    font-size: 12px;
  }

  .copiar-icono {
    font-size: 12px;
  }
  .modalSala-contenido h2 {
    font-size: 14px;
  }
  header img {
    height: 60px;
  }

  header h1 {
    font-size: 16px;
  }
  .card {
    width: 110px;
    height: 115px;
  }
  .card-name2 {
    font-size:12px;
  }
  .card-name3{
    font-size:10.5px;
  }
  .card img {
  margin-bottom: 5px;
  }
}
/* Animación máscara (como el overlay de PrimeFaces) */
@keyframes fadeMaskIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Animación de escala de entrada */
@keyframes scaleUpIn {
  0% {
    transform: scale(0.75);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}