#main-wrapper,
.page-wrapper {
    background-color: transparent;
}

#video-background {
    position: absolute;
    bottom: 0;
    width: max-content;
    opacity: 0.3;
}

.btn-oficinas {
    border-radius: 50px;
    border: 1px solid var(--orange-F45635);
    background-color: var(--blue-002646);
    color: #ffffff;
    font-size: .7rem;
    padding: 5px 10px;
}

.btn-oficinas:hover {
    background-color: var(--orange-F45635);
    color: #ffffff;
}

/* 1. ESTILOS PARA EL CONTENEDOR DEL POPUP (#popup)
  Esto soluciona el problema de centrado.
*/
#popup {
  /* Ocupa toda la pantalla */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* 100vh es más robusto que 100% */
  
  /* Fondo oscuro semitransparente */
  background-color: rgba(0, 0, 0, 0.6);
  
  /* ¡LA CLAVE DEL CENTRADO! 
    Esto funciona con el 'display: flex' que pusimos en JavaScript.
  */
  align-items: center;     /* Centrado vertical */
  justify-content: center; /* Centrado horizontal */
  
  /* Asegura que esté por encima de todo */
  z-index: 1000;
  
  /* Por defecto, está oculto (aunque el JS lo controla) */
  display: none; /* El JS se encarga de esto */
}

/* 2. ESTILOS PARA LA TARJETA (.cardMap)
  Esto es crucial para que el botón de cierre se posicione correctamente.
*/
.cardMap {
  position: relative;
  width: 320px;
  background: var(--bluesteel-gradient);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden; /* Para que las esquinas redondeadas se vean bien */
}

/* Estilos para el contenido interno de la tarjeta */
.cardMap-content {
  padding: 25px;
  color: #ffffff;
  padding-top: 60px; /* Deja espacio para el botón de cierre */
  text-align: left;
}

/* Estilos para el título (Ej: "Argentina - Buenos Aires") */
.cardMap-content h3 {
  margin: 0;
  color: #F45635; /* Usa el color de tu marca */
  text-transform: uppercase;
  font-weight: bold;
  font-size: 21px;
  text-align: center;
}
.cardMap-content hr {
  border-top: 3px solid #F45635;
  opacity: 1;
}
/* Estilos para la lista de info */
.cardMap-content ul {
  list-style: none;
  padding: 0;
  text-align: center;
}
.cardMap-content li {
  margin-bottom: 8px;
  font-size: 13px;
}
.cardName {
  font-size: 18px;
  color: #ffffff;
}
.cardPosition {
  font-style: italic;
  color: #ffffff;
}
a.cardEmail {
  color: #F45635;
  text-decoration: none;
}
.cardDireccion {
  font-weight: normal;
  color: #ffffff;
}
.qr-code {
  width: 100px;
  height: 100px;
  margin-top: 10px;
  display: none;
}


/* 3. ESTILOS PARA EL BOTÓN DE CIERRE (.close-button)
  Esto soluciona el botón invisible.
*/
.close-button {
  /* ¡LA CLAVE DE LA POSICIÓN! */
  position: absolute; /* Se posiciona relativo al .cardMap */
  top: 15px;
  right: 15px;
  z-index: 10; /* Se asegura de que esté por encima del contenido */

  /* Estilos para que se vea bien */
  background-color: #f1f1f1;
  color: #555;
  border: none;
  border-radius: 50%; /* Lo hace redondo */
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: bold;
  line-height: 30px; /* Centra la 'X' o el texto */
  text-align: center;
  cursor: pointer;
  
  /* Reemplaza el texto "Cerrar" por una 'X' (más elegante) */
  text-indent: 100px; /* Oculta el texto "Cerrar" */
  white-space: nowrap;
  overflow: hidden;
}

/* Añade una 'X' usando CSS */
.close-button::after {
  content: '×';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-indent: 0; /* Muestra la 'X' */
  line-height: 30px; /* Centra la 'X' */
}

.close-button:hover {
  background-color: #e0e0e0;
  color: #000;
}

@media screen and (min-width: 767px) {}

@media screen and (max-width: 768px) {
    #video-background {
        bottom: inherit;
        left: -20px;
    }
}