/* -----------------------------
   Layout general: Footer al fondo
------------------------------ */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  /* Ocupa todo el espacio disponible */
}

footer {
  flex-shrink: 0;
  /* No se encoge */
  padding-bottom: 20px;
  /* Margen inferior */
}

.hide {
  display: none;
}

/* -----------------------------
   Menú escritorio: pestañas
------------------------------ */
.nav-tabs .nav-item {
  flex: 1 1 auto;
  /* Repartir uniformemente */
}

.nav-tabs .nav-link {
  text-align: center;
  white-space: normal;
  /* Permite wrap en textos largos */
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
}

/* -----------------------------
   Menú móvil: acordeón
------------------------------ */
.nav.flex-column {
  margin: 0;
  padding: 0;
}

.nav.flex-column .nav-item .nav-link {
  text-align: left;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Icono hamburguesa */
#hamburgerIcon {
  transition: transform 0.2s;
}

button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
}

a.button,
a.btn {
  cursor: pointer;
}

table tr.asistio td {
  background-color: rgba(160, 210, 100, 0.35) !important;
}

table tr.falta td {
  background-color: rgba(236, 95, 89, 0.35) !important;
}

table tr.justificada td {
  background-color: rgba(148, 217, 221, 0.35) !important;
}

table tr.problema td {
  background-color: rgba(236, 214, 89, 0.35) !important;
}

/* -----------------------------
 RESERVAS CON CÓDIGO DESCUENTO
------------------------------ */

.table-descuentos {
  color: #333;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  border-collapse: collapse;
  width: 98%;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.table-descuentos th,
.table-descuentos td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.table-descuentos th {
  background: linear-gradient(135deg, #444, #222);
  color: #fff;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.pago_realizado {
  background-color: #eafbea;
}

.pago_pendiente {
  background-color: #fff3cd;
}

.pago_completado {
  background-color: #c3f0c3;
}

.pagado_todo {
  background-color: #d5e8fa;
}

.destacado-texto {
  font-weight: bold;
  color: #222;
  text-align: center;
}

.total-row {
  font-weight: bold;
  font-size: 1.1rem;
  background-color: #f9f9f9;
}

.total-row td {
  padding: 12px;
}

.total-estimado {
  background-color: #fff7b0;
}

.total-disponible {
  background-color: #9cd404;
  color: #fff;
}

.total-cobrado {
  background-color: #bfdcf5;
}

.codigo-promocional {
  font-size: 1rem;
  color: #444;
  margin-left: 15px;
  font-weight: bold;
}

.codigo-promocional span {
  color: #0078d4;
  font-size: 1.2rem;
}

/* -----------------------------
   DIPLOMAS
------------------------------ */

/* --- Contenedor general --- */
#diplomasDiv {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-top: 20px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- Cada diploma --- */
.container_diploma {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  border-bottom: 1px solid #ddd;
  padding: 25px 0;
}

.container_diploma:last-child {
  border-bottom: none;
}

/* --- Imagen del diploma --- */
.thumb_diploma img {
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 180px;
  transition: transform 0.2s ease;
}

.thumb_diploma img:hover {
  transform: scale(1.03);
}

/* --- Descripción del diploma --- */
.container_descripcion_diploma {
  flex: 1;
}

.titulo_diploma {
  font-size: 1.4rem;
  font-weight: 600;
  color: #336699;
  margin-bottom: 10px;
}

.titulo_diploma a {
  color: inherit;
  text-decoration: none;
}

.titulo_diploma a:hover {
  text-decoration: underline;
}

/* --- Botones --- */
.lista_botones {
  display: inline-block;
  margin: 8px 6px 0 0;
}

.lista_botones a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn_descargar_diploma a {
  background-color: #5cb85c;
}

.btn_descargar_diploma a:hover {
  background-color: #4cae4c;
}

.btn_ver_diploma a {
  background-color: #337ab7;
}

.btn_ver_diploma a:hover {
  background-color: #2e6da4;
}

.btn_fb_diploma a {
  background-color: #3b5998;
}

.btn_fb_diploma a:hover {
  background-color: #2d4373;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .container_diploma {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .container_descripcion_diploma {
    margin-top: 15px;
  }

  .lista_botones {
    display: block;
    margin: 6px auto;
  }
}

/* --- Contenedor general --- */
.linkedin-container {
  background: #fff;
  border-radius: 10px;
  padding: 30px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 40px auto;
  max-width: auto;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
}

/* --- Botón volver --- */
.volver-listado {
  margin-bottom: 20px;
}

.volver-listado a {
  display: inline-block;
  font-weight: 600;
  color: #fff;
  background-color: #444;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.volver-listado a:hover {
  background-color: #222;
}

/* --- Título principal --- */
.titulo-instrucciones {
  font-size: 1.5rem;
  font-weight: 700;
  color: #336699;
  border-bottom: 2px solid #336699;
  padding-bottom: 8px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

/* --- Cada paso --- */
.paso {
  margin-bottom: 35px;
}

.numero-paso {
  font-size: 1.6rem;
  font-weight: bold;
  color: #336699;
  margin-right: 8px;
}

.paso p {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.6;
  margin: 10px 0;
  font-size: 1rem;
}

/* --- Imágenes --- */
.paso img {
  display: block;
  width: 70%;
  max-width: 600px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin: 15px 0;
  transition: transform 0.2s ease;
}

.paso img:hover {
  transform: scale(1.02);
}

/* --- Campo del link del diploma --- */
.campo-link {
  display: block;
  width: 90%;
  max-width: 500px;
  margin: 10px 0;
  padding: 8px 10px;
  font-weight: bold;
  font-size: 0.95rem;
  border: 2px solid #91daa4;
  border-radius: 6px;
  color: #333;
  background-color: #f9fff9;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .linkedin-container {
    padding: 20px;
  }

  .paso img {
    width: 100%;
  }

  .campo-link {
    width: 100%;
  }
}

.btn_pago,
.btn_pago::before,
.btn_pago::after {
  transition: all 0.15s ease-in-out 0s;
  background: #666 none repeat scroll 0 0;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 2.1rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  padding: 3px 5px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 3px;
}

.btn_pago:hover {
  background: #000;
  color: #fff;
}

/* -----------------------------
   Responsive
------------------------------ */
@media (max-width: 768px) {

  /* Cada pestaña horizontal ocupa toda la fila en móvil */
  .nav-tabs .nav-item {
    flex: 100%;
  }

  /* Menú móvil: margen entre opciones */
  .nav.flex-column .nav-item {
    border-bottom: 1px solid #dee2e6;
  }
}