/*
====================================
ESTILOS GENERALES - gestion.css
Instituto Superior Tecnológico Tena
Depurado y optimizado para coordinación total
====================================
*/

/* Tipografía general */
body {
  font-family: 'Lora', 'Times New Roman', serif;
  line-height: 1.6;
  color: #333;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  margin: 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
}

p {
  line-height: 1.75;
}

/* Barra de navegación */
#mainNav {
  background-color: rgb(11, 89, 135);
  font-family: 'Raleway';
}

#mainNav .navbar-brand,
#mainNav .nav-item .nav-link {
  color: #fff;
  font-weight: 800;
}

#mainNav .navbar-nav .nav-item.active .nav-link,
#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: #fff;
  text-decoration: none; /* ← sin subrayado */
}

/* Carrusel / Imágenes */
.carousel-item img, .intro-img {
  width: 100%;
  height: auto;
  max-height: 485px;
  object-fit: cover;
}

/* Sección de introducción */
.intro-text {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 20px;
  color: #240969;
}

.intro-text img {
  max-width: 300px;
  width: 40%;
  float: left;
  margin-right: 15px;
  border-radius: 15px;
}

/* Secciones y encabezados */
.section-heading {
  text-transform: uppercase;
  animation: fadeInDown 1s ease-out;
}

.section-heading .section-heading-upper {
  font-size: 2rem;
  font-weight: 800;
}

.section-heading .section-heading-lower {
  font-weight: 800;
  font-size: 34px;
  color: #240969;
}

/* Estilos para CTA / Llamadas a la acción */
.cta {
  padding: 5rem 0;
  background-color: #f2f5f0;
}

.cta-inner {
  background-color: rgb(11, 89, 135);
  color: cornsilk;
  padding: 3rem;
  position: relative;
  border-radius: 0.5rem;
  border: 4px solid rgba(255, 255, 255, 0.85);
}

/* Estilos de tablas */
.table-striped {
  background-color: #f8f9fa;
}

.table-striped thead th {
  background-color: #343a40;
  color: #30ae4b;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8f9fa;
}

.table-striped tbody tr {
  background-color: #96c44d7c;
}

/* Redes sociales - Barra fija */
.social-bar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(197, 218, 136, 0.75);
  padding: 10px;
  border-radius: 10px 0 0 10px;
}

.social-bar a {
  margin: 10px 0;
  color: #333;
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-bar a:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones suaves */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Otros ajustes generales */
.footer {
  background-color: rgb(11, 89, 135);
}

.text-label {
  color: white;
  font-weight: bold;
}

.section-margin {
  margin: 10mm;
}

.large-text {
  font-size: 18px;
}


.navbar .dropdown-menu {
  background-color: #fff;
  color: #000;
}

.dropdown-submenu .dropdown-menu {
  background-color: #C7D40E;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #ffc107; /* amarillo Bootstrap */
  color: #000;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
}

.dropdown-submenu:hover .dropdown-menu {
  display: block;
}

/* --- Pirámide/Triángulo solo para ocs.html --- */
.pyramid-triangle .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.pyramid-triangle .row .col-md-4 {
  display: flex;
  justify-content: center;
}

.pyramid-triangle .row:nth-child(1) .col-md-4 {
  width: 100%;
  justify-content: center;
}

.pyramid-triangle .row:nth-child(2) .col-md-4 {
  width: 50%;
  justify-content: center;
}

.pyramid-triangle .row:nth-child(3) .col-md-4 {
  width: 33.3333%;
  justify-content: center;
}

.pyramid-triangle .row:nth-child(4) .col-md-4 {
  width: 25%;
  justify-content: center;
}

/* Ajuste responsive opcional */
@media (max-width: 768px) {
  .pyramid-triangle .row .col-md-4 {
    width: 100% !important;
  }
}

.pyramid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pyramid-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pyramid-row .card {
  margin: 10px;
  width: 250px;
}

@media (max-width: 768px) {
  .pyramid-row {
    flex-wrap: wrap;
  }
}

.info-item {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

a {
    color: #165A88;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.texto_grande {
    font-size: 1.1rem;
}

.section-heading-lower {
    font-weight: bold;
}

.intro-text {
    background-color: rgba(255, 255, 255, 0.9);
}

.info-item .col-sm-4 {
    font-weight: bold;
    font-size: 1.5rem;  /* Tamaño más grande */
    text-transform: uppercase; /* Solo mayúsculas */
    color: #083757; /* Puedes ajustar el color si deseas */
}

/* =======================
Notas:
- Este CSS es compatible con todos los templates del proyecto.
- Todos los colores y elementos están coordinados para garantizar coherencia visual.
- Puedes copiar directamente este CSS a static/css/gestion.css
*/
