/* ==============================
   ESTRUCTURA GENERAL
============================== */
.permanencia-page {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
}

/* ==============================
   CONTENIDO PRINCIPAL
============================== */
.permanencia-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* ==============================
   BANNER
============================== */
.permanencia-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  
}

/* ==============================
   TEXTO Y SECCIONES
============================== */
.permanencia-text p {
  text-align: justify;
  color: #333;
  line-height: 1.6;
}

.permanencia-text h5 {
  color: #cfad00; /* nuevo dorado principal */
  font-weight: 700;
}

/* ==============================
   TABLA DE LÍNEAS DE ACCIÓN
============================== */
.permanencia-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
}

.permanencia-table th,
.permanencia-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
  vertical-align: middle;
}

.permanencia-table thead {
  background-color: #fff5b0; /* fondo dorado claro */
}

.permanencia-table th {
  color: #222;
  font-weight: 700;
}

/* ==============================
   IMAGEN DE ACTIVIDADES
============================== */
.permanencia-actividades-img {
  max-width: 80%;
  border-radius: 10px;
}

/* ==============================
   LISTAS
============================== */
.permanencia-lista {
  list-style: none;
  padding-left: 0;
  color: #333;
  line-height: 1.8;
}

.permanencia-lista li::before {
  content: "• ";
  color: #cfad00; /* nuevo dorado */
  font-weight: bold;
}

/* ==============================
   COLOR TEMÁTICO
============================== */
.text-permanencia {
  color: #cfad00;
}

/* ==============================
   QR - MISMO FORMATO QUE SALUD
============================== */
.permanencia-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.permanencia-qr-card {
  background-color: #fffdf5; /* fondo muy claro dorado */
  border: 1px solid #f5e4b5; /* borde suave dorado */
  padding: 15px 25px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.permanencia-qr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(207, 173, 0, 0.25);
}

.permanencia-qr-img {
  width: 180px;
  height: auto;
  border-radius: 8px;
}


/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
  .permanencia-row {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }

  .sidebar-link {
    flex: 1;
    margin: 5px;
  }

  .permanencia-banner img {
    max-height: 300px;
  }

  .permanencia-table th,
  .permanencia-table td {
    font-size: 14px;
    padding: 8px;
  }
}
