/* ==========================================
   ESTILOS EXCLUSIVOS PARA SECCIÓN COMISIÓN
   ========================================== */
.main-comision, .main-content {
  background-image: url('../../Rotar.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
  padding: 40px 20px;
  min-height: 100vh;
}

.comision-titulo {
  color: rgb(12, 60, 145);
  text-align: center;
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.comision-seccion {
  max-width: 1100px;
  margin: 0 auto 50px auto;
}

.comision-divisor {
  border: 1px solid rgb(12, 60, 145);
  max-width: 1100px;
  margin: 40px auto;
}

/* --- VISTA ESCRITORIO: ORGANIGRAMA --- */
.organigrama-fila {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.tarjeta-miembro {
  text-align: center;
  width: 160px;
}

.tarjeta-miembro img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}

.tarjeta-miembro .nombre {
  font-size: 0.9rem;
  font-weight: bold;
  color: #111;
  line-height: 1.2;
}

.tarjeta-miembro .cargo {
  font-size: 0.85rem;
  font-weight: bold;
  color: #0c3c91;
  margin-top: 3px;
}

/* Encabezado de tabla solo móvil */
.tabla-header-movil {
  display: none;
}

/* --- VISTA MÓVIL: FILAS / LISTADO --- */
@media screen and (max-width: 768px) {
  .comision-titulo {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .tabla-header-movil {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    padding: 8px 10px;
    font-weight: bold;
    color: #0c3c91;
    border-bottom: 2px solid #0c3c91;
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  .organigrama-fila {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
  }

  .tarjeta-miembro {
    width: 100%;
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    align-items: center;
    text-align: left;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px;
    border-radius: 6px;
    backdrop-filter: blur(2px);
  }

  .tarjeta-miembro img {
    width: 70px;
    height: 70px;
    margin-bottom: 0;
  }

  .tarjeta-miembro .nombre {
    font-size: 0.85rem;
    padding-right: 5px;
  }

  .tarjeta-miembro .cargo {
    font-size: 0.85rem;
    text-transform: uppercase;
  }
}

/* --- FILAS DE PAST PRESIDENTS --- */
.pastpresident-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
}

/* Imagen en Escritorio */
.pastpresident-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Adaptación exclusiva para Celular (Ajuste Fino Final) */
@media screen and (max-width: 768px) {
  .pastpresident-fila {
    padding: 6px 8px; /* Menos padding lateral para dar mas espacio al texto */
  }
  .pastpresident-img {
    width: 60px; /* Reducido levemente para ganar ancho horizontal */
    height: 60px;
  }
  /* Tipografía del nombre y acompañante */
  .pastpresident-fila .fs-5 {
    font-size: 0.80rem !important; /* Un pelín mas chica para que "Daniel Ricardo" entre en 1 linea */
    line-height: 1.2;
  }
  .pastpresident-fila .small {
    font-size: 0.68rem !important;
  }
  /* Columna del Período / Estado */
  .pastpresident-fila > div:last-child {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-align: center;
    padding-right: 0 !important;
    min-width: 65px;
    line-height: 1.1;
  }
}

/* Transparencia general para la tabla en escritorio */
/* --- TABLA PAUL HARRIS (Escritorio) --- */
.tabla-paul-harris {
  width: 100%;
  border-collapse: collapse;
  background-color: transparent;
}

/* Línea divisoria suave debajo de cada celda */
.tabla-paul-harris th,
.tabla-paul-harris td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(12, 60, 145, 0.15); /* Línea divisoria tenue */
}

/* Filas intercaladas con suave fondo transparente */
.tabla-paul-harris tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.45);
}

.tabla-paul-harris tbody tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.15);
}

/* --- TABLA PAUL HARRIS (Móviles) --- */
@media screen and (max-width: 768px) {
  .tabla-paul-harris, 
  .tabla-paul-harris tbody, 
  .tabla-paul-harris tr, 
  .tabla-paul-harris td {
    display: block;
    width: 100% !important;
  }

  .tabla-paul-harris thead {
    display: none;
  }

  .tabla-paul-harris tbody tr {
    margin-bottom: 12px;
    border: 1px solid rgba(12, 60, 145, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.65) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  }

  .tabla-paul-harris td {
    text-align: left !important;
    padding: 6px 0 !important;
    border: none !important;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
  }

  .tabla-paul-harris td:last-child {
    border-bottom: none !important;
  }

  .tabla-paul-harris td:nth-of-type(1) {
    font-weight: bold;
    color: rgb(12, 60, 145);
    font-size: 1.05rem;
  }

  .tabla-paul-harris td:nth-of-type(2)::before { content: "Socio/a activo/a:"; font-weight: 600; color: #555; }
  .tabla-paul-harris td:nth-of-type(3)::before { content: "Nivel:"; font-weight: 600; color: #555; }
  .tabla-paul-harris td:nth-of-type(4)::before { content: "Fecha:"; font-weight: 600; color: #555; }
}

/* --- SOCIOS HONORARIOS (Independiente) --- */
.socio-honorario-fila {
  background-color: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(12, 60, 145, 0.15);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  padding: 15px;
  margin-bottom: 20px;
}

.socio-honorario-fila p {
  font-size: 1.1rem !important;
  line-height: 1.6;
  text-align: justify !important;
  hyphens: auto;
}

/* Imagen de Socios Honorarios (Escritorio y base) */
.socio-honorario-img {
  width: 120px !important;
  height: 120px !important;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Adaptación para celulares */
@media screen and (max-width: 576px) {
  .socio-honorario-fila {
    padding: 16px !important;
    margin-bottom: 15px;
  }

  /* Adaptación exclusiva para celulares */
    @media screen and (max-width: 576px) {
      .socio-honorario-img {
        width: 110px !important;
        height: 110px !important;
        margin: 0 auto 12px auto !important;
        display: block;
      }
    }

  .socio-honorario-fila h5 {
    font-size: 1.15rem;
    text-align: center;
  }

  .socio-honorario-fila p {
    font-size: 0.95rem !important;
    text-align: justify !important;
  }
}