/* =============================================
   index.css — Estilos exclusivos de index.php
   ============================================= */

/* ===== LAYOUT PRINCIPAL ===== */
.pagina-inicio {
  display: flex;
  gap: 24px;
  padding: 24px 0 40px 0;
  align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.sidebar { width: 240px; flex-shrink: 0; }

.sidebar-bloque {
  background: #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 20px 16px;
  margin-bottom: 18px;
}

.sidebar-titulo {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--azul);
  border-bottom: 2px solid var(--azul);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.autoridades { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.autoridad-card { text-align: center; }

.autoridad-card img {
  width: 100%;
  max-width: 160px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: block;
  margin: 0 auto 6px;
}

.autoridad-card span {
  font-size: 11px;
  color: #555;
  font-family: 'Montserrat', sans-serif;
  display: block;
  line-height: 1.4;
}

/* ===== BOTONES SIDEBAR ===== */
.btn-sidebar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 7px;
  background-color: var(--azul);
  color: white !important;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 12.5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-sidebar:hover { background-color: var(--azul-hover); transform: translateX(3px); }
.btn-sidebar i { width: 16px; text-align: center; font-size: 13px; opacity: 0.85; }

/* ===== REDES SOCIALES ===== */
.redes-sociales { display: flex; justify-content: center; gap: 18px; }

.redes-sociales a {
  color: var(--azul);
  font-size: 36px;
  transition: color 0.2s, transform 0.2s;
}

.redes-sociales a:hover { color: var(--azul-hover); transform: scale(1.15); }

/* ===== ENLACES DE INTERÉS ===== */
.enlace-img {
  display: block;
  margin: 0 auto 14px;
  width: 100%;
  max-width: 180px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enlace-img:hover { transform: scale(1.05); box-shadow: 0 5px 18px rgba(1,36,99,0.18); }

/* ===== CONTENIDO PRINCIPAL ===== */
.contenido-principal { flex: 1; min-width: 0; }

.card-anuncio {
  background: #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-left: 4px solid var(--azul);
}

.card-anuncio:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); }
.card-anuncio img { width: 100%; display: block; }

/* ===== BARRA MÓVIL ===== */
.barra-accesos-mobile { display: none; }

@media (max-width: 991px) {

  .sidebar { display: none; }

  .pagina-inicio {
    flex-direction: column;
    padding: 16px 0 30px;
  }

  .contenido-principal { width: 100%; }

  .barra-accesos-mobile {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--azul);
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(1, 36, 99, 0.30);
    padding: 10px 4px;
    margin-bottom: 16px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .barra-accesos-mobile .acceso-item + .acceso-item {
    border-left: 1px solid rgba(255,255,255,0.2);
  }

  .acceso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    color: rgba(255,255,255,0.85) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    padding: 6px 4px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.15s, color 0.2s;
    letter-spacing: 0.3px;
  }

  .acceso-item i {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    transition: transform 0.2s, color 0.2s;
  }

  .acceso-item:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.12);
  }

  .acceso-item:hover i {
    color: #fff;
    transform: translateY(-2px);
  }

  .acceso-item:active {
    background: rgba(255,255,255,0.22);
    transform: scale(0.93);
  }

  .acceso-item.activo {
    color: #fff !important;
    background: rgba(255,255,255,0.18);
    border-radius: 8px;
  }

  
  .acceso-item.activo i { color: #fff; }
  .acceso-item span { line-height: 1.2; }
}
