/* ======================================== VARIABLES DE COLOR ======================================== */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6610f2;
  --success-color: #20c997;
  --dark-bg: #181d38;
  --light-bg: #ffffff;
  --text-color: #6c757d;
}

/* ======================================== CARRUSEL ======================================== */
.carousel-img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  transition: transform 5s ease-in-out;
}

.owl-carousel-item {
  position: relative;
  min-height: 100vh;
}

.owl-carousel-item:hover .carousel-img {
  transform: scale(1.05);
}

.owl-carousel .owl-nav,
.owl-carousel .owl-dots {
  display: none;
}

/* ======================================== HEADER / PAGE HEADER NARROW ======================================== */
.page-header-narrow {
  margin: 0 auto;
  min-height: 20vh;
  max-height: 35vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  padding: 1.5rem;
}

.page-header-narrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 29, 56, 0.6);
  z-index: 1;
}

.page-header-narrow .header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.page-header-narrow .header-content h1 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.page-header-narrow .header-content p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
}

.page-header-narrow .header-content .btn {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

/* ======================================== TÍTULOS DE SECCIÓN ======================================== */
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-left: 30px;
  margin-bottom: 1.2rem;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s ease;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 60%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.6);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 30px;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.section-title:hover {
  color: #084298;
}

.section-title:hover::after {
  width: 100%;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  display: block;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}

/* ======================================== CARDS / SERVICIOS / CURSOS / TEAM ======================================== */
.service-card,
.course-item,
.team-item,
.card {
  background-color: var(--light-bg);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(6px);
}

.card-header {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

.service-card:hover,
.course-item:hover,
.team-item:hover,
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1.5rem 2rem rgba(0, 0, 0, 0.15);
}

.service-card .icon i,
.fa-3x,
.transition-hover:hover .fa-3x {
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .icon i {
  transform: scale(1.2);
  color: var(--primary-color);
}

/* Team / Autoridades */
.team-img,
.parallax-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-item:hover .parallax-img {
  transform: scale(1.1) translateY(-10px);
}

.team-item h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-item small {
  font-size: 0.9rem;
  color: var(--text-color);
}

.team-item small.text-primary {
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ======================================== BOTONES / DROPDOWN ======================================== */
.btn-primary {
  background: linear-gradient(135deg, #1c1c1c, var(--primary-color));
  border: none;
  border-radius: 0.6rem;
  padding: 0.6rem 1.8rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-color), #0a58ca);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(13, 110, 253, 0.35);
}

.dropdown-menu {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
  display: block;
  visibility: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* ======================================== FOOTER ======================================== */
.footer {
  background: linear-gradient(135deg, #1c1c1c, var(--primary-color));
  color: #e9ecef;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  z-index: -1;
}

.footer h4 {
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer a {
  color: #dee2e6;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 6px rgba(13, 110, 253, 0.4);
}

.footer img {
  max-width: 150px;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.95);
}

.footer img:hover {
  transform: scale(1.05);
  filter: brightness(1);
}

.footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #adb5bd;
  text-align: center;
  letter-spacing: 0.4px;
}

.footer .copyright span {
  color: var(--primary-color);
  font-weight: 600;
}

/* ======================================== BACK TO TOP ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
  color: #fff;
  font-size: 1.25rem;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.35);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, #0b5ed7, #0a58ca);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.45);
}

.back-to-top:active {
  transform: translateY(-1px);
}

.back-to-top i {
  pointer-events: none;
}

/* ======================================== FORMULARIOS / VALIDACIONES ======================================== */
.valid { color: green; }
.invalid { color: red; }
.step { display: none; }
.step.active { display: block; }
.error { color: red; font-size: 16px; padding: 0; }
.progress { background-color: #e9ecef; border-radius: 0.5rem; }
.progress-bar {
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ======================================== REDES SOCIALES FLOTANTES ======================================== */
/* Redes sociales flotantes a la derecha */
.social-float {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 15px;
    background: transparent;
    padding: 0;
}

/* Botones */
.btn-social {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: 0.25s ease;
}

.btn-social i {
    font-size: 28px;
    color: #fff;
}

.btn-social:hover {
    transform: scale(1.18);
}

/* Colores */
.btn-social:nth-child(1) { background: #000000; }
.btn-social:nth-child(2) { background: #1877F2; }
.btn-social:nth-child(3) { background: radial-gradient(circle at 30% 30%, #f58529, #dd2a7b, #8134af, #515bd4); }
.btn-social:nth-child(4) { background: #FF0000; }
.btn-social:nth-child(5) { background: #25D366; }

/* Ocultar en móvil si deseas (opcional) */
/*
@media (max-width: 768px) {
    .social-float {
        right: 10px;
        top: auto;
        bottom: 100px;
        transform: none;
    }
}
*/



/* ======================================== RESPONSIVE ======================================== */

/* ----- 1024px ----- */
@media (max-width: 1024px) {
  .container, .section, .content { padding: 10px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  
  /* Altura combinada: header azul + navbar = ~110px */
 body { padding-top: 0 !important; }

}

/* ----- 991px ----- */
@media (max-width: 991px) {
  .navbar-collapse { background-color: #fff; padding: 10px 0; width: 100%; }
  .navbar-collapse.collapse:not(.show) { display: none !important; }
  .navbar .btn { width: 100%; margin: 0.5rem 0; }
  header nav ul { flex-direction: column; gap: 10px; }

  /* Mantener altura correcta */
  body { overflow-x: hidden; padding-top: 0px !important; }
}

/* ----- 768px ----- */
@media (max-width: 768px) {
  body, html { overflow-x: hidden; }
  header nav ul { flex-direction: column; gap: 10px; }
  
  .container, .section, .content, .card { 
    width: 100% !important; 
    max-width: 100% !important; 
  }

  img, video { max-width: 100%; height: auto; }
  .grid, .row { display: block !important; }

  /* Sidebar móvil */
  #leftSidebar {
    display: block !important;
    width: 100%;
    position: relative;
    padding: 15px 10px;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #ddd;
    text-align: center;
    z-index: 9999;
  }

  #leftSidebar .inicial,
  #leftSidebar #perfilTexto { 
    display: block; 
    font-size: 1.2rem; 
  }

  /* Altura real combinada (header + navbar) en móviles */
  body { padding-top: 0px !important; }

  /* Botones responsive */
  .btn-primary { width: 100%; font-size: 0.95rem; padding: 0.5rem 1rem; }
  .btn-social { width: 36px; height: 36px; font-size: 30px; }
}


.capitular img.img-capitular {
    float: left;        /* Hace que el texto fluya a su lado */
    height: 80px;       /* Ajusta al tamaño que quieras */
    width: auto;        /* Mantiene proporción */
    margin-right: 15px; /* Espacio entre imagen y texto */
    margin-bottom: 5px; /* Ajusta alineación vertical con el texto */
}




