body{
margin:0;
font-family:'Segoe UI', sans-serif;
background:#f4f6f9;
color:#1e293b;
overflow-x:hidden;
}


/* NAVBAR */
.navbar{
background:#7a0019;
}

/* HEADER */
.header-top{
margin-top:90px;
}

.logo-gob{
width:100px;
border-radius:50%;
}

.eslogan{
color:#7a0019;
font-weight:bold;
}

/* TITULOS */
h2{
color:#7a0019;
font-weight:bold;
}

/* IMAGEN */
.img-institucion{
border-radius:15px;
width:600px;
}

/* CARRUSEL */
.carousel-inner img{
height:420px;
object-fit:cover;
border-radius:15px;
}

/* CARDS */
/* Espaciado general para separar secciones */
.carousel,
.cards-container {
    margin-bottom: 50px;
}

/* Ajustar altura de las imágenes del carrusel */
.carousel-img {
    height: 450px;
    object-fit: cover;
}

/* Cards con altura uniforme y sombra */
.card-pro img {
    height: 200px;
    object-fit: cover;
}

.card-pro {
    transition: transform 0.2s;
}

.card-pro:hover {
    transform: translateY(-5px);
}

/* Footer corregido para no cortarse */
.footer-gobierno {
    background-color: #c1121f; /* rojo de fondo */
    color: #fff;
    padding: 30px 0;
}
/* FORM */
.form-pro{
background:white;
padding:25px;
border-radius:15px;
display:flex;
flex-direction:column;
gap:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.form-pro input{
padding:10px;
border-radius:8px;
border:1px solid #ccc;
}

.form-pro button{
background:#7a0019;
color:white;
padding:10px;
border:none;
border-radius:10px;
}

.mensaje-exito{
color:green;
}

/* FOOTER */

.footer-gobierno{
background:#7a0019;
color:white;
padding:40px 20px;
width:100%;
margin:0;
}

.footer-gobierno h5{
color:#facc15;
}

.footer-gobierno h5 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-gobierno p,
.footer-gobierno li {
  font-size: 13px;
}

body{
overflow-x:hidden;
}

.tree {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tree-node {
  text-align: center;
  position: relative;
}

.img-doc {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #4b0e7f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.tree-children {
  display: flex;
  justify-content: center;
  gap: 50px;
  position: relative;
  flex-wrap: wrap;
  margin-top: 20px;
}

.dept-docentes .tree-node {
  margin-top: 10px;
}

/* Opcional: líneas de jerarquía */
.tree-node::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 20px;
  background-color: #4b0e7f;
}

.tree-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #4b0e7f;
}

/* Fondo del menú lateral */
.offcanvas {
    background: linear-gradient(to bottom, #7a0019, #4a0010);
    color: white;
}

/* Título */
.offcanvas-title {
    color: #ffd700; /* dorado elegante */
    font-weight: bold;
}

/* Botón cerrar */
.btn-close {
    filter: invert(1);
}

/* Selects */
.offcanvas .form-select {
    background-color: #fff;
    border-radius: 8px;
}

/* Lista de documentos */
.offcanvas .list-group-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    margin-bottom: 6px;
    border-radius: 8px;
    transition: 0.3s;
}

.noticia img {
    height: 200px;
    object-fit: cover;
}

.noticia .card-body {
    text-align: center;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.list-group-item {
  font-size: 14px;
  border-radius: 8px;
  margin-bottom: 5px;
}

.offcanvas-body h6 {
  font-weight: bold;
  margin-top: 10px;
}

.btn-success {
  border-radius: 10px;
  font-size: 14px;
}

hr {
  opacity: 0.2;
}

/* 📄 FORMATOS BONITOS */
.formato-link {
  display: block;
  background: #ffffff;
  color: #333;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
  border-left: 5px solid #ffc107; /* amarillo tipo botón */
}

.formato-link:hover {
  background: #ffc107;
  color: #000;
  transform: translateX(5px);
}

/* 🔹 Opcional: que combine con el menú oscuro */
.offcanvas .formato-link {
  background: #f8f9fa;
}

.formato-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* 🔥 BOTÓN IMSS FLOTANTE */
.imss-float {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    z-index: 99999 !important;
}

.imss-btn {
    background: #7a0019;
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: 0.3s;
    text-align: center;
}

.imss-btn:hover {
    background: #a0002a;
    transform: scale(1.05);
}

