/* =========================
   ESTILOS GENERALES
========================= */
body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  margin: 0;
}

/* =========================
             LOGO 
========================= */
    .logo {
      position: absolute;
      margin-left: 0px;
    }

    .logo img {
      margin-top: -20px;
      max-height: 110px;
    }
/* =========================
   ENCABEZADO
========================= */	
header {
  background: #0f172a;
  color: white;
  padding: 30px;
  text-align: center;
}

header h1 {
  margin: 0;
}

header p {
  margin-top: 0px;
  font-size: 14px;
  opacity: 0.9;
  margin-left: -20px
}

/* =========================
   MENÚ DE TARJETAS
========================= */
#menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px;
}

/* =========================
   TARJETAS
========================= */
.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,.1);
  transition: 0.2s;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

/* TÍTULO DE TARJETA */
.card h3 {
  margin: 0;
  font-weight: bold;
  font-size: 20px;
}

/* DESCRIPCIÓN DE TARJETA */
.card p {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
}

/* =========================
   VISOR DE DOCUMENTOS
========================= */
#visor {
  padding: 30px;
}

/* Contenedor relativo para botón flotante */
.visor-contenido {
  position: relative;
}

/* Contenido del Word */
#contenido {
  background: white;
  padding: 30px;
  border-radius: 12px;
}

/* =========================
   BOTÓN VOLVER
========================= */
button {
  margin-bottom: 15px;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  background: #0f172a;
  color: white;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

/* =========================
   BOTÓN FORMATO (FLOTANTE)
========================= */
.btn-formato {
  background: #0f172a;
  color: white;
  padding: 8px 12px;	
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap; /* evita salto de línea */
}
/* =========================
   UTILIDADES
========================= */
.hidden {
  display: none;
}



.visor-top {
  display: flex;
  justify-content: space-between; /* izquierda / derecha */
  align-items: center;
  width: 100%;                    
  margin-bottom: 15px;
}

.menu-superior {
  background: #0f172a;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.menu-superior a {
  margin: 0 15px;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 13px;
  transition: 0.2s;
}

.menu-superior a:hover {
  background: #2563eb;
}



/* =========================
   BOTÓN CERRAR
========================= */

.popup-cerrar {
  position: absolute;

  top: 20px;
  right: 25px;

  width: 42px;
  height: 42px;

  margin: 0;
  padding: 0;

  border-radius: 50%;

  background: white;
  color: #0f172a;

  font-size: 22px;
  font-weight: bold;

  cursor: pointer;

  z-index: 10001;
}

.popup-cerrar:hover {
  background: #e5e7eb;
}


/* =========================
   BOTONES ANTERIOR / SIGUIENTE
========================= */

.popup-anterior,
.popup-siguiente {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  width: 50px;
  height: 50px;

  margin: 0;
  padding: 0;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;

  font-size: 40px;
  line-height: 40px;

  cursor: pointer;

  z-index: 10001;
}

.popup-anterior {
  left: 25px;
}

.popup-siguiente {
  right: 25px;
}

.popup-anterior:hover,
.popup-siguiente:hover {
  background: white;
}


/* =========================
   INDICADORES
========================= */

.indicadores-flyers {
  position: absolute;

  bottom: 20px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;
  gap: 8px;
}

.indicador-flyer {
  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.5);

  cursor: pointer;
}

.indicador-flyer.activo {
  background: white;
  transform: scale(1.3);
}

.popup-flyers {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.75);

  /* Permitir desplazamiento */
  overflow-y: auto;

  /* Espacio alrededor del flyer */
  padding: 30px 0;

  z-index: 9999;
}


/* =========================
   CONTENEDOR DEL FLYER
========================= */

.popup-contenido {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: flex-start;
}


/* =========================
   FLYER GRANDE
========================= */

.popup-contenido img {
  width: 100%;
  max-width: 1000px;

  height: auto;

  object-fit: contain;

  border-radius: 12px;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}