/*=== MEDIA QUERY ===*/
/*
Theme Name: Medic
Author: Themefisher
Author URI: https://themefisher.com/
Description: Medicle Template
Version: 1.0.0

*/
@import url("https://fonts.googleapis.com/css?family=Exo:500,600,700|Roboto&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --white-urgisg: #F8F9FA;
  --gold-urgsig: #D4AF37;
  --gold-urgsig-opaco: #d4af3728;
  --blue-urgsig: #001F3F;
  --red-urgsig: #8B0000;
  --red-urgsig-btn: #a70000;
  --gold-urgsig-btn: #fdd34a46;
}

html {
  overflow-x: hidden;
}

.navigation {
  background: #fff;
  /* padding: 8px 0; Reducido drásticamente de 24px/15px a solo 8px */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
}

/* Forzamos a que el contenedor del logo no sume espacios raros */
.navbar-brand {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-right: 20px;
}

/* CLAVE: Evita que la imagen del logo estire la barra hacia arriba y abajo */
.navbar-brand img {
  max-height: 40px;
  /* Reducido a 40px para que sea una barra delgada y estética */
  width: auto;
  display: block;
}

/* Ajustamos los links del menú para que queden perfectamente centrados con el logo */
.nav-link {
  padding: 6px 14px !important;
  /* Más compacto verticalmente */
  font-weight: 600;
  font-size: 0.9rem;
  /* Un tamaño de fuente más sutil */
  font-family: "Inter" !important;
  color: var(--blue-urgsig) !important;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--red-urgsig) !important;
}

/* Botón Join Group adaptado a la nueva barra delgada */
.btn-header-join {
  background-color: var(--red-urgsig);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.8rem;
  /* Fuente más estilizada */
  font-family: "Inter" !important;
  padding: 6px 14px;
  /* Altura reducida para que se alinee perfectamente */
  border-radius: 4px;
  border: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* 1. Contenedor principal con imagen de fondo y capa oscura (Overlay) */
.banner-moderno {
  position: relative;
  background-image:
    linear-gradient(to top, rgba(10, 25, 47, 0.842) 60%, rgba(10, 25, 47, 0.192) 100%),
    url('../images/bg/hero-bag.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 100px 0;
  /* Padding equilibrado que genera aire sin romper nada */
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Reducimos el interlineado del título principal */
.titulo-hero {
  font-size: 2.8rem;
  /* Tamaño proporcional para 100% de escala */
  font-family: "Montserrat";
  color: var(--white-urgisg);
  font-weight: 600;
  line-height: 1;
}

/* Reducimos el espacio interno del párrafo */
.descripcion-hero {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  font-family: "Inter";
  font-weight: 200;
  line-height: 1.5;
  max-width: 580px;
}

/* 2. Estilo para la etiqueta superior (Borde dorado redondeado) */
.badge-universidad {
  display: inline-block;
  border: 1.5px solid var(--gold-urgsig);
  color: var(--gold-urgsig);
  background-color: var(--gold-urgsig-opaco);
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-family: "Montserrat";
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* 4. Botón Rojo Sólido (Unirse al Grupo) */
.btn-unirse {
  background-color: var(--red-urgsig);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: "Inter";
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 10px;
  border: 2px solid var(--red-urgsig);
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-unirse:hover {
  background-color: var(--red-urgsig-btn);
  border-color: var(--red-urgsig-btn);
  transform: translateY(-1px);
}

/* 5. Botón Transparente (Conocer Más) */
.btn-conocer {
  color: var(--gold-urgsig) !important;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: "Inter";
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 10px;
  border: 2px solid var(--gold-urgsig);
  background-color: var(--gold-urgsig-opaco);
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-conocer:hover {
  background-color: var(--gold-urgsig-btn);
  transform: translateY(-1px);
}

/* Ajustes para celulares */
@media (max-width: 768px) {
  .title-hero {
    font-size: 2.3rem;
  }

  .banner-moderno {
    min-height: auto;
  }
}

/* 1. El contenedor lleva el color de fondo base */
.card-evento {
  background-color: var(--blue-urgsig);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 31, 63, 0.08);
}

.card-evento .about-content {
  padding: 3.5rem 3rem !important;
  /* Estilizado y sin excesos */
}

.img-evento-col {
  background-image:
    linear-gradient(to right,
      rgba(0, 31, 63, 1) 0%,
      rgba(0, 31, 63, 0.8) 25%,
      rgba(0, 31, 63, 0.4) 60%,
      rgba(0, 31, 63, 0.15) 100%),
    url('../images/gallery/s-1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 380px;
}

.titulo-evento {
  font-family: "Montserrat";
  color: var(--white-urgisg);
}

.titulo2-evento {
  font-family: "Montserrat";
}

.descripcion-evento {
  font-family: "Inter";
  line-height: 1.5rem;
  color: var(--white-urgisg);
}

.btn-evento {
  display: inline-block;
  font-size: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: .75rem 2rem;
  font-family: "Inter";
  text-transform: uppercase;
  color: var(--blue-urgsig) !important;
  background-color: var(--gold-urgsig);
  border-radius: 5px;
  border: 2px solid transparent;
  transition: all .35s ease;
}

/* Asegura que en pantallas grandes las alturas de ambas columnas coincidan perfectamente */
@media (min-width: 992px) {
  .match-height {
    display: flex;
    align-items: stretch;
  }

  .side-cards-container {
    max-height: 100%;
  }

  .side-cards-container .card:first-child {
    margin-bottom: 24px !important;
  }
}

.custom-card {
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
}

.title-articles-section {
  font-family: "Montserrat";
  color: var(--blue-urgsig);
  font-weight: 600;
}

.secondary-article-section {
  font-family: "Inter";
  color: var(--red-urgsig);
}

.description-articles-section {
  font-family: "Inter";
  color: gray;
}

.title-articles {
  font-family: "Montserrat";
  color: var(--blue-urgsig);
  font-weight: 600;
}

.description-articles {
  font-family: "Inter";
  color: gray;
}

.category-articles {
  font-family: "Inter";
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red-urgsig);
}

.extra-articles {
  font-family: "Inter";
  color: gray;
}

.extra-articles-2 {
  font-family: "Inter";
  color: var(--red-urgsig);
}

.insights {
  /* padding: 80px 0 !important; */
}

.insight-main-img {
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Espaciados tipográficos uniformes */
.small-tracking {
  letter-spacing: 1px;
  font-size: 0.75rem;
}

/* Limita los títulos largos a un máximo de 2 líneas (agrega los tres puntos ...) */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   GALERÍA CLÍNICA (Bento Grid con Efecto Hover Desplazable)
   ========================================================================== */
.gallery-section {
  padding: 50px 0 !important;
}

.gallery-item {
  position: relative;
  /* Esencial para posicionar el texto encima */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  background-color: var(--blue-urgsig);
}

.custom-gallery-img {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Capa oscura que guarda el texto (invisible por defecto) */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 31, 63, 0.95) 0%, rgba(0, 31, 63, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  /* Alinea el texto en la base de la tarjeta */
  padding: 20px;
  opacity: 0;
  /* Oculto inicialmente */
  transition: opacity 0.3s ease;
}

/* Contenedor del texto animado */
.overlay-text {
  transform: translateY(20px);
  /* Empuja el texto un poco hacia abajo */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.overlay-text h4 {
  color: var(--gold-urgsig) !important;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Montserrat";
  margin-bottom: 6px;
}

.overlay-text p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.82rem;
  font-family: "Inter";
  line-height: 1.3;
  margin-bottom: 0;
}

/* --- EFECTOS HOVER (Al pasar el mouse) --- */
.gallery-item:hover .custom-gallery-img {
  transform: scale(1.05);
  /* Zoom sutil a la foto */
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  /* Muestra el fondo oscuro */
}

.gallery-item:hover .overlay-text {
  transform: translateY(0);
  /* Sube el texto suavemente a su posición final */
}

/* Alturas controladas para pantallas de escritorio */
@media (min-width: 768px) {
  .large-item .custom-gallery-img {
    height: 420px;
  }

  .small-item .custom-gallery-img {
    height: 198px;
  }
}

@media (max-width: 991px) {
  .navbar-btn-container {
    margin-top: 15px;
    margin-bottom: 10px;
    width: 100%;
  }

  .btn-header-join {
    display: block;
    text-align: center;
  }

  .title-hero {
    font-size: 2.2rem;
    white-space: normal;
  }

  .banner-moderno {
    padding: 60px 0;
  }
}

body {
  font-family: 'Inter', sans-serif;
  color: #6F8BA4;
  line-height: 1.6;
  background-color: var(--white-urgisg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-urgsig);
}

p {
  line-height: 30px;
}

.navbar-toggle .icon-bar {
  background: #223a66;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"] {
  box-shadow: none;
  height: 45px;
  outline: none;
  font-size: 14px;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
  box-shadow: none;
  border: 1px solid #223a66;
}

.form-control {
  box-shadow: none;
  border-radius: 0;
}

.form-control:focus {
  box-shadow: none;
  border: 1px solid #223a66;
}

.py-7 {
  padding: 7rem 0px;
}

.btn {
  display: inline-block;
  font-size: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: .75rem 2rem;
  font-family: "Exo", sans-serif;
  text-transform: uppercase;
  border-radius: 5px;
  border: 2px solid transparent;
  transition: all .35s ease;
}

.btn.btn-icon i {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  padding-left: 15px;
}

.btn:focus {
  outline: 0px;
  box-shadow: none;
}

.btn-main {
  background: #223a66;
  color: #fff;
  border-color: #223a66;
}

.btn-main:hover {
  background: #e12454;
  border-color: #e12454;
  color: #fff;
}

.btn-main-2 {
  background: #e12454;
  color: #fff;
  border-color: #e12454;
}

.btn-main-2:hover {
  background: #223a66;
  color: #fff;
  border-color: #223a66;
}

.btn-solid-border {
  border: 2px solid #223a66;
  background: transparent;
  color: #223a66;
}

.btn-solid-border:hover {
  border: 2px solid #223a66;
  color: #fff;
  background: #223a66;
}

.btn-solid-border:hover.btn-icon i {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.btn-solid-border.btn-icon i {
  border-left: 1px solid rgba(0, 0, 0, 0.09);
}

.btn-transparent {
  background: transparent;
  color: #222;
  border-color: #6F8BA4;
}

.btn-transparent:hover {
  background: #6F8BA4;
  color: #fff;
}

.btn-white {
  background: #fff;
  border-color: #fff;
  color: #222;
}

.btn-white:hover {
  background: #223a66;
  color: #fff;
  border-color: #223a66;
}

.btn-solid-white {
  border-color: #fff;
  color: #fff;
}

.btn-solid-white:hover {
  background: #fff;
  color: #222;
}

.btn-round {
  border-radius: 4px;
}

.btn-round-full {
  border-radius: 50px;
}

.btn.active:focus,
.btn:active:focus,
.btn:focus {
  outline: 0;
}

.bg-gray {
  background: #eff0f3;
}

.bg-primary {
  background: #223a66;
}

.bg-primary-dark {
  background: #152440;
}

.bg-primary-darker {
  background: #090f1a;
}

.bg-dark {
  background: #222;
}

.bg-gradient {
  background-image: linear-gradient(145deg, rgba(19, 177, 205, 0.95) 0%, rgba(152, 119, 234, 0.95) 100%);
  background-repeat: repeat-x;
}

.section-sim {
  padding: 50px 0;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 70px 0;
}

.section-bottom {
  padding-bottom: 100px;
}

.subtitle {
  color: #223a66;
  font-size: 14px;
  letter-spacing: 1px;
}

.overly-2 {
  position: relative;
}

.overly-2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.text-sm {
  font-size: 14px;
}

.text-md {
  font-size: 2.25rem;
}

.text-lg {
  font-size: 3.75rem;
}

.no-spacing {
  letter-spacing: 0px;
}

/* Links */
.content-title {
  font-size: 40px;
  line-height: 50px;
}

.page-title {
  padding: 120px 0px 70px 0px;
  position: relative;
}

.page-title .block h1 {
  color: #fff;
}

.page-title .block p {
  color: #fff;
}

.page-title .breadcumb-nav {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.slick-slide:focus,
.slick-slide a {
  outline: none;
}

@media (max-width: 480px) {

  h2,
  .h2 {
    font-size: 1.3rem;
    line-height: 36px;
  }
}

.title-color {
  color: #223a66;
}

.secondary-bg {
  background: #223a66;
}

.section-title {
  margin-bottom: 70px;
}

.section-title h2 {
  color: #223a66;
}

.text-lg {
  font-size: 50px;
}

.gray-bg {
  background: #F8F9FA;
}

@media (max-width: 480px) {
  .text-lg {
    font-size: 28px;
  }
}

@media (max-width: 400px) {
  .text-lg {
    font-size: 28px;
  }
}

#navbar {
  background-color: #F8F9FA;
}

#navbarmain {
  padding: 20px 0px;
}

#navbarmain .nav-link {
  font-weight: 600;
  padding: 10px 15px;
  color: #222;
  font-family: "Exo", sans-serif;
  text-transform: capitalize;
  font-size: 16px;
  transition: all .25s ease;
}

.dropdown-toggle::after {
  display: none;
}

.navbar-brand {
  margin-top: 10px;
}

.dropdown .dropdown-menu {
  position: absolute;
  display: block;
  background: #fff;
  min-width: 240px;
  top: 130%;
  left: 0;
  right: 0px;
  opacity: 0;
  padding: 0px;
  visibility: hidden;
  transition: all 0.3s ease-out 0s;
  border: 0px;
  border-top: 5px solid #e12454;
  border-radius: 0px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: 115%;
}

.dropdown .dropdown-item {
  padding: 13px 20px;
  border-bottom: 1px solid #eee;
  background: transparent;
  font-weight: 400;
  color: #555;
}

.dropdown .dropdown-item:hover {
  color: #e12454;
}

.header-top-bar {
  background: #223a66;
  font-size: 14px;
  padding: 10px 0px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #fff;
}

.top-bar-info li a {
  color: #fff;
  margin-right: 20px;
}

.top-right-bar a span {
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
}

.top-right-bar a i {
  color: #fff;
  margin-right: 10px;
}

.bg-1 {
  position: relative;
  background-image:
    linear-gradient(to top, rgba(10, 25, 47, 0.842) 60%, rgba(10, 25, 47, 0.192) 100%),
    url('../images/bg/hero-bag.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 70px 0;
  /* Padding equilibrado que genera aire sin romper nada */
  display: flex;
  align-items: center;
}

.articles-section-subtitle {
  display: inline-block;
  border: 1.5px solid var(--gold-urgsig);
  color: var(--gold-urgsig);
  background-color: var(--gold-urgsig-opaco);
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-family: "Montserrat";
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.articles-section-title {
  font-family: "Montserrat";
  font-weight: 600;
}

.banner {
  position: relative;
  overflow: hidden;
  background: #fff;
  background: url("../images/bg/slider-bg-1.jpg") no-repeat;
  background-size: cover;
  min-height: 550px;
}

.banner .block {
  padding: 80px 0px 160px;
}

.banner .block h1 {
  font-size: 60px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  text-transform: capitalize;
  color: #223a66;
}

.letter-spacing {
  letter-spacing: 2px;
}

.text-color {
  color: #223a66;
}

.text-color-2 {
  color: #e12454;
}

.divider {
  width: 40px;
  height: 5px;
  background: #e12454;
}

@media (max-width: 480px) {
  .banner .block h1 {
    font-size: 38px;
    line-height: 50px;
  }

  .banner {
    min-height: 450px;
    background: #fff !important;
  }
}

@media (max-width: 400px) {
  .banner .block h1 {
    font-size: 28px;
    line-height: 40px;
  }

  .banner {
    min-height: 450px;
    background: #fff !important;
  }
}

@media (max-width: 768px) {
  .banner .block h1 {
    font-size: 56px;
    line-height: 70px;
  }

  .banner {
    background: #fff !important;
  }
}

@media (max-width: 992px) {
  .banner {
    background: #fff !important;
  }
}

.about-img img {
  border-radius: 5px;
  box-shadow: 0px 0px 30px 0px rgba(0, 42, 106, 0.1);
}

.award-img {
  height: 120px;
  margin-bottom: 10px;
  align-items: center;
  display: flex;
  justify-content: center;
  background: #eff0f3;
}

.appoinment-content {
  position: relative;
}

.appoinment-content img {
  width: 85%;
}

.appoinment-content .emergency {
  position: absolute;
  content: "";
  right: 10px;
  bottom: 20px;
  background: #223a66;
  padding: 48px;
}

.appoinment-content .emergency h2 {
  color: #fff;
}

.appoinment-content .emergency i {
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.appoinment-form {
  margin-top: 40px;
}

.appoinment-form .form-control {
  background: #f4f9fc;
  height: 55px;
  border-color: rgba(0, 0, 0, 0.05);
}

.appoinment-form textarea.form-control {
  height: auto;
}

.client-thumb {
  text-align: center;
}

.features {
  margin-top: -70px;
}

.feature-item {
  flex-basis: 33.33%;
  margin: 0px 10px;
  padding: 40px 30px;
  background-color: #fff;
  border-radius: 15px 15px 15px 15px;
  box-shadow: 0px 0px 30px 0px rgba(0, 42, 106, 0.1);
}

.feature-item .feature-icon i {
  font-size: 50px;
  color: #223a66;
}

.feature-item h4 {
  color: #223a66;
}

.feature-item p {
  font-size: 14px;
}

.feature-section.border-top {
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.w-hours li {
  padding: 6px 0px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.counter-stat {
  text-align: center;
  padding: 55px 0px 40px 0px;
  position: relative;
}

.counter-stat i {
  display: block;
  color: rgba(255, 255, 255, 0.06);
  font-size: 70px;
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  -webkit-transform: translateY(25px);
  transform: translateY(25px);
}

.counter-stat span {
  font-size: 70px;
  color: #fff;
}

.counter-stat p {
  margin-bottom: 0px;
  color: rgba(255, 255, 255, 0.7);
}

.mb--80 {
  margin-bottom: -80px;
}

.service {
  padding-top: 180px;
}

.service .service-item {
  background: #fff;
  padding: 30px;
  border-radius: 5px;
}

.service .icon {
  float: left;
  margin-bottom: 10px;
}

.service i {
  color: #e12454;
}

.service h4 {
  padding-left: 20px;
}

.service .content {
  clear: both;
}

.service-block {
  padding: 20px;
  margin-top: 40px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 0 38px rgba(21, 40, 82, 0.07);
}

.service-block img {
  width: 100%;
  margin-top: -60px;
  border: 5px solid #fff;
}

.department-service {
  margin-bottom: 40px;
}

.department-service li {
  margin-bottom: 10px;
}

.department-service li i {
  color: #e12454;
}

.doctors .btn-group .btn {
  border-radius: 0px;
  margin: 0px 2px;
  text-transform: capitalize;
  font-size: 16px;
  padding: .6rem 1.5rem;
  cursor: pointer;
}

.doctors .btn-group .btn.active {
  box-shadow: none !important;
  border-color: transparent;
  background: #e12454;
  color: #fff;
}

.doctors .btn-group .btn.focus {
  box-shadow: none !important;
  border-color: transparent;
}

.doctors .btn-group .btn:focus {
  box-shadow: none !important;
  border-color: transparent;
  background: #e12454;
  color: #fff;
}

.doctors .btn-group .btn:hover {
  box-shadow: none !important;
  border-color: transparent;
  background: #e12454;
  color: #fff;
}

.doctors .btn-group>.btn-group:not(:last-child)>.btn,
.doctors .btn-group>.btn:not(:last-child):not(.dropdown-toggle),
.doctors .btn-group>.btn:not(:first-child) {
  border-radius: 3px;
}

.doctor-inner-box {
  overflow: hidden;
}

.doctor-inner-box .doctor-profile {
  overflow: hidden;
  position: relative;
  box-shadow: 0px 8px 16px 0px rgba(200, 183, 255, 0.2);
}

.doctor-inner-box .doctor-profile .doctor-img {
  transition: all .35s ease;
}

.doctor-inner-box .doctor-profile .doctor-img:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.lh-35 {
  line-height: 35px;
}

.doctor-info li {
  margin-bottom: 10px;
  color: #222;
}

.doctor-info li i {
  margin-right: 20px;
  color: #e12454;
}

.read-more {
  color: #223a66;
}

@media (max-width: 480px) {
  .doctors .btn-group {
    display: block;
  }

  .doctors .btn-group .btn {
    margin: 8px 3px;
  }
}

@media (max-width: 400px) {
  .doctors .btn-group {
    display: block;
  }

  .doctors .btn-group .btn {
    margin: 8px 3px;
  }
}

@media (max-width: 768px) {
  .doctors .btn-group {
    display: block;
  }

  .doctors .btn-group .btn {
    margin: 8px 3px;
  }
}

.cta {
  background: url("../images/bg/bg-4.jpg") no-repeat 50% 50%;
  background-size: cover;
  position: relative;
}

.cta:before {
  position: absolute;
  content: "";
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background: rgba(34, 58, 102, 0.95);
}

.mb-30 {
  margin-bottom: 30px;
}

.text-color-primary {
  color: #223a66;
}

.cta-section {
  margin-bottom: -80px;
}

.cta-2 {
  background: url("../images/bg/cta-bg.png") no-repeat;
  background-position: center center;
}

.cta-page {
  background: url("../images/bg/banner.jpg") no-repeat;
  background-size: cover;
  position: relative;
}

.testimonial {
  position: relative;
}

.testimonial:before {
  width: 48%;
  height: 100%;
  top: 0;
  left: 0px;
  position: absolute;
  content: "";
  background: url("../images/bg/bg-2.jpg") no-repeat 50% 50%;
}

.testimonial .slick-dots {
  text-align: left;
}

.testimonial-block {
  position: relative;
  margin-bottom: 20px;
}

.testimonial-block p {
  background: #fff;
  font-size: 18px;
}

.testimonial-block .client-info {
  margin-bottom: 20px;
}

.testimonial-block .client-info h4 {
  margin-bottom: 0px;
}

.testimonial-block i {
  font-size: 60px;
  position: absolute;
  right: 46px;
  bottom: 89px;
  opacity: .08;
}

.testimonial-block .slick-dots {
  text-align: left;
}

.testimonial-wrap-2 .slick-dots {
  margin-left: -10px;
}

.testimonial-block.style-2 {
  background: #fff;
  padding: 30px;
  margin: 0px 4px;
  margin-bottom: 30px;
}

.testimonial-block.style-2 .testimonial-thumb {
  float: left;
}

.testimonial-block.style-2 .testimonial-thumb img {
  width: 80px;
  height: 80px;
  border-radius: 100%;
  margin-right: 20px;
  margin-bottom: 30px;
  border: 5px solid #eff0f3;
  margin-top: -5px;
}

.testimonial-block.style-2 .client-info p {
  clear: both;
  background: transparent;
}

.testimonial-block.style-2 i {
  bottom: -20px;
  color: #e12454;
  opacity: .3;
}

@media (max-width: 480px) {
  .testimonial-wrap {
    margin-left: 0px;
  }

  .testimonial::before {
    display: none;
  }
}

@media (max-width: 400px) {
  .testimonial-wrap {
    margin-left: 0px;
  }

  .testimonial::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .testimonial-wrap {
    margin-left: 0px;
  }

  .testimonial::before {
    display: none;
  }
}

@media (max-width: 992px) {
  .testimonial-wrap {
    margin-left: 0px;
  }

  .testimonial::before {
    display: none;
  }
}

.contact-form-wrap .form-group {
  margin-bottom: 20px;
}

.contact-form-wrap .form-group .form-control {
  height: 60px;
  border: 1px solid #EEF2F6;
  box-shadow: none;
  width: 100%;
  background: #f4f9fc;
}

.contact-form-wrap .form-group-2 {
  margin-bottom: 13px;
}

.contact-form-wrap .form-group-2 textarea {
  height: auto;
  border: 1px solid #EEF2F6;
  box-shadow: none;
  background: #f4f9fc;
  width: 100%;
}

.social-icons li {
  margin: 0 6px;
}

.social-icons a {
  margin-right: 10px;
  font-size: 18px;
}

.google-map {
  position: relative;
}

.google-map #map {
  width: 100%;
  height: 500px;
}

.mt-90 {
  margin-top: 90px;
}

.contact-block {
  text-align: center;
  border: 5px solid #EEF2F6;
  padding: 50px 25px;
}

.contact-block i {
  font-size: 50px;
  margin-bottom: 15px;
  display: inline-block;
  color: #e12454;
}

.blog-item-content h2 {
  font-weight: 600;
  font-size: 38px;
}

/*=================================================================
  Single Blog Page
==================================================================*/
.nav-links .page-numbers {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  background: #eee;
  text-align: center;
  padding-top: 13px;
  font-weight: 600;
  margin-right: 10px;
}

.nav-links .page-numbers:hover {
  background: #223a66;
  color: #fff;
}

.nav-links .page-numbers.current {
  background: #223a66;
  color: #fff;
}

.comment-area .comment-thumb {
  margin-right: 20px;
  margin-bottom: 30px;
}

.comment-area h5 {
  font-size: 18px;
  font-weight: 500;
}

.comment-area span {
  font-size: 14px;
}

.posts-nav h6 {
  font-weight: 500;
}

.quote {
  font-size: 22px;
  color: #223a66;
  padding: 40px;
  font-style: italic;
  border-left: 5px solid #e12454;
  margin: 25px 0px;
}

.tag-option a {
  border: 1px solid #eff0f3;
  padding: 6px 12px;
  color: #6F8BA4;
  font-size: 14px;
}

.comment-form .form-control {
  background: #f7f8fb;
  border-radius: 5px;
  border-color: #f7f8fb;
  height: 50px;
}

.comment-form textarea.form-control {
  height: auto;
}

.post.post-single {
  border: none;
}

.post.post-single .post-thumb {
  margin-top: 30px;
}

.post-sub-heading {
  border-bottom: 1px solid #dedede;
  padding-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 20px;
}

.post-social-share {
  margin-bottom: 50px;
}

.post-comments {
  margin: 30px 0;
}

.post-comments .media {
  margin-top: 20px;
}

.post-comments .media>.pull-left {
  padding-right: 20px;
}

.post-comments .comment-author {
  margin-top: 0;
  margin-bottom: 0px;
  font-weight: 500;
}

.post-comments .comment-author a {
  color: #223a66;
  font-size: 14px;
  text-transform: uppercase;
}

.post-comments time {
  margin: 0 0 5px;
  display: inline-block;
  color: #808080;
  font-size: 12px;
}

.post-comments .comment-button {
  color: #223a66;
  display: inline-block;
  margin-left: 5px;
  font-size: 12px;
}

.post-comments .comment-button i {
  margin-right: 5px;
  display: inline-block;
}

.post-comments .comment-button:hover {
  color: #223a66;
}

.post-excerpt {
  margin-bottom: 60px;
}

.post-excerpt h3 a {
  color: #000;
}

.post-excerpt p {
  margin: 0 0 30px;
}

.post-excerpt blockquote.quote-post {
  margin: 20px 0;
}

.post-excerpt blockquote.quote-post p {
  line-height: 30px;
  font-size: 20px;
  color: #223a66;
}

.comments-section {
  margin-top: 35px;
}

.author-about {
  margin-top: 40px;
}

.post-author {
  margin-right: 20px;
}

.post-author>img {
  border: 1px solid #dedede;
  max-width: 120px;
  padding: 5px;
  width: 100%;
}

.comment-list ul {
  margin-top: 20px;
}

.comment-list ul li {
  margin-bottom: 20px;
}

.comment-wrap {
  border: 1px solid #dedede;
  border-radius: 1px;
  margin-left: 20px;
  padding: 10px;
  position: relative;
}

.comment-wrap .author-avatar {
  margin-right: 10px;
}

.comment-wrap .media .media-heading {
  font-size: 14px;
  margin-bottom: 8px;
}

.comment-wrap .media .media-heading a {
  color: #223a66;
  font-size: 13px;
}

.comment-wrap .media .comment-meta {
  font-size: 12px;
  color: #888;
}

.comment-wrap .media p {
  margin-top: 15px;
}

.comment-reply-form {
  margin-top: 80px;
}

.comment-reply-form input,
.comment-reply-form textarea {
  height: 35px;
  border-radius: 0;
  box-shadow: none;
}

.comment-reply-form input:focus,
.comment-reply-form textarea:focus {
  box-shadow: none;
  border: 1px solid #223a66;
}

.comment-reply-form textarea,
.comment-reply-form .btn-main {
  height: auto;
}

.sidebar-widget {
  margin-bottom: 30px;
  padding-bottom: 35px;
}

.sidebar-widget h5 {
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.sidebar-widget h5:before {
  position: absolute;
  content: "";
  left: 0px;
  bottom: 0px;
  width: 35px;
  height: 3px;
  background: #e12454;
}

.sidebar-widget.latest-post .media img {
  border-radius: 7px;
}

.sidebar-widget.latest-post .media h6 {
  font-weight: 500;
  line-height: 1.4;
}

.sidebar-widget.latest-post .media p {
  font-size: 12px;
}

.sidebar-widget.category ul li {
  margin-bottom: 10px;
}

.sidebar-widget.category ul li a {
  color: #222;
  transition: all 0.3s ease;
}

.sidebar-widget.category ul li a:hover {
  color: #223a66;
  padding-left: 5px;
}

.sidebar-widget.category ul li span {
  margin-left: 10px;
}

.sidebar-widget.tags a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .075em;
  line-height: 41px;
  height: 41px;
  font-weight: 500;
  border-radius: 20px;
  color: #666;
  display: inline-block;
  background-color: #eff0f3;
  margin: 0 7px 10px 0;
  padding: 0 25px;
  transition: all .2s ease;
}

.sidebar-widget.tags a:hover {
  color: #fff;
  background: #223a66;
}

.sidebar-widget.schedule-widget {
  background: #f4f9fc;
  padding: 25px;
}

.sidebar-widget.schedule-widget ul li {
  padding: 10px 0px;
  border-bottom: 1px solid #eee;
}

.search-form {
  position: relative;
}

.search-form i {
  position: absolute;
  right: 15px;
  top: 35%;
}

/* ==========================================================================
   TUNEO COMPLETO PARA BLOG SINGLE (BASADO EN RESTRICCIONES DE BRANDING)
   ========================================================================== */

.blog-wrap-single {
  background-color: #ffffff !important;
  padding: 60px 0 100px 0 !important;
}

/* Ancho máximo optimizado para lectura en pantallas grandes */
.content-single-container {
  max-width: 960px;
  margin: 0 auto;
}

/* Botón de regreso */
.back-to-articles a {
  font-family: "Inter", sans-serif;
  color: var(--blue-urgsig);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.back-to-articles a:hover {
  color: var(--red-urgsig);
}

/* Metas de categoría y tiempo */
.badge-category-single {
  background-color: var(--red-urgsig);
  color: white;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
}

.read-time-single {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #6c757d;
}

/* Título principal */
.single-article-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--blue-urgsig);
  font-size: 2.75rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Caja de autor */
.author-box-single {
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
  padding: 15px 0;
  font-family: "Inter", sans-serif;
}

.author-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--gold-urgsig);
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.82rem;
}

.article-date-single {
  font-size: 0.88rem;
}

/* Contenedor e imagen destacada */
.featured-image-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.featured-img-single {
  width: 100%;
  height: auto;
  border-radius: 12px;
  max-height: 460px;
  object-fit: cover;
}

.featured-img-single-min {
  width: 50%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  max-height: 460px;
  object-fit: cover;
}

.article-body-content ul {
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--red-urgsig-btn);
  font-weight: 400;
}

.article-body-content ul li {
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--blue-urgsig-btn);
  font-weight: 400;
}

.article-body-content {
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #2c3e50;
  margin-bottom: 24px;
  font-weight: 400;
}

/* Letra Capital (Dropcap) */
.paragraph-dropcap::first-letter {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 4.5rem;
  float: left;
  line-height: 0.8;
  margin-right: 12px;
  margin-top: 6px;
  color: var(--red-urgsig);
}

.body-heading-single {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--blue-urgsig);
  font-size: 1.6rem;
  letter-spacing: -0.3px;
}

.body-heading-subsingle {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--gold-urgsig);
  font-size: 1.3rem;
  letter-spacing: -0.3px;
}

.body-subheading-single {
  font-family: "Inter", sans-serif;
  color: var(--red-urgsig);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.3px;
}

/* Cita premium de la referencia */
.blockquote-premium-single {
  background-color: #f8fafc;
  border-left: 4px solid var(--gold-urgsig);
  padding: 24px 30px;
  border-radius: 0 10px 10px 0;
}

.blockquote-premium-single p {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.6;
}

.blockquote-premium-single cite {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue-urgsig);
}

/* Cajas Clínicas Recomeded/Deprecated */
.clinical-box {
  padding: 20px 24px;
  border-radius: 8px;
  height: 100%;
  font-family: "Inter", sans-serif;
}

.clinical-box h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.clinical-box p {
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0;
  color: #475569;
}

.box-recommended {
  background-color: rgba(40, 167, 69, 0.04);
  border-left: 4px solid #388e4c;
}

.box-recommended h6 {
  color: #388e4c;
}

.box-deprecated {
  background-color: rgba(220, 53, 69, 0.04);
  border-left: 4px solid #dc3545;
}

.box-deprecated h6 {
  color: #dc3545;
}

/* Footer del artículo */
.tag-badge-single {
  display: inline-block;
  background-color: #f1f5f9;
  color: #64748b;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  margin-right: 8px;
  font-family: "Inter", sans-serif;
}

.btn-share-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #f1f5f9;
  border: none;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-share-circle:hover {
  background-color: var(--blue-urgsig);
  color: #ffffff;
}

/* Responsivo para celulares */
@media (max-width: 767px) {
  .single-article-title {
    font-size: 1.95rem;
  }

  .paragraph-dropcap::first-letter {
    font-size: 3.5rem;
  }

  .article-footer-single {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .article-share-actions {
    margin-top: 20px;
  }
}

.btn-articulo {
  background-color: var(--red-urgsig);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: "Inter";
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 10px;
  border: 2px solid var(--red-urgsig);
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-articulo:hover {
  background-color: var(--red-urgsig-btn);
  border-color: var(--red-urgsig-btn);
  transform: translateY(-1px);
}

.badge-category-single.interes {
  background-color: var(--blue-urgsig);
  color: white;
}

.badge-category-single.trauma {
  background-color: var(--red-urgsig);
  color: white;
}

/* ==========================================================================
   TUNEO PREMIUM PARA LA REJILLA DE FACULTAD / DOCTORS (CON SHUFFLE MANTENIDO)
   ========================================================================== */

/* Encabezados y textos de sección */
.title-faculty-section {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--blue-urgsig);
  font-size: 2.25rem;
}

.description-faculty-section {
  font-family: "Inter", sans-serif;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

/* Botonera de Filtros Modernizada */
.faculty-filter-group .btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  text-transform: none;
  background-color: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0 !important;
  padding: 8px 18px;
  margin: 4px;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faculty-filter-group .btn:hover {
  background-color: #f1f5f9;
  color: var(--blue-urgsig);
}

.faculty-filter-group .btn.active,
.faculty-filter-group .btn:active,
.faculty-filter-group .btn:focus {
  background-color: var(--blue-urgsig) !important;
  color: #ffffff !important;
  border-color: var(--blue-urgsig) !important;
  box-shadow: 0 4px 12px rgba(0, 31, 63, 0.15) !important;
}

/* Estructura Base de la Tarjeta (Efecto Bento/Clean) */
.faculty-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eef2f6;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  height: 100%; /* CLAVE: Toma toda la altura de la columna */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 31, 63, 0.06);
}

/* Contenedor de la Imagen */
.faculty-img-container {
  width: 100%;
  height: 260px;
  /* Altura unificada para que se alineen solas */
  overflow: hidden;
  background-color: #f1f5f9;
}

.faculty-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Cuerpo de la tarjeta */
.faculty-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* CLAVE: Rellena el espacio sobrante vertical */
}

/* Tipografía de los miembros */
.faculty-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.faculty-name a {
  color: var(--blue-urgsig) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.faculty-name a:hover {
  color: var(--red-urgsig) !important;
}

.faculty-bio {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 15px;
  flex-grow: 1; /* CLAVE: Empuja automáticamente el footer hacia abajo */
}

/* Insignias de Roles Personalizados (Badges cromáticos de la referencia) */
.badge-role {
  display: inline-block;
  align-self: center;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
}

.role-directive {
  background-color: rgba(139, 0, 0, 0.1);
  color: var(--red-urgsig);
}

.role-academic {
  background-color: rgba(0, 31, 63, 0.08);
  color: var(--blue-urgsig);
}

.role-social {
  background-color: rgba(212, 55, 136, 0.15);
  color: #b31b58;
}

.role-research {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.role-media {
  background-color: rgba(111, 66, 193, 0.1);
  color: #6f42c1;
}

.role-treasurer {
  background-color: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

/* Footer de la tarjeta con acciones minimalistas */
.faculty-footer-actions {
  margin-top: auto !important; /* Asegura que el footer se ancle al final */
}

.btn-action-minimal {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background-color: #f8fafc;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-action-minimal:hover {
  background-color: var(--blue-urgsig);
  color: #ffffff !important;
  border-color: var(--blue-urgsig);
}

/* ===================================================
   SOLUCIÓN PARA shuffle-wrapper Y ALINEACIÓN DE TARJETAS
   =================================================== */

/* 1. Fuerza a todas las tarjetas dentro de Shuffle a tener la misma altura fija (o mínima) */
.shuffle-wrapper .faculty-card {
    height: 100% !important;
    min-height: 480px; /* Ajusta esta altura si tus fotos o textos son más largos */
    display: flex !important;
    flex-direction: column !important;
}

/* 2. Hace que el contenedor de texto ocupe todo el espacio sobrante */
.shuffle-wrapper .faculty-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

/* 3. La biografía tomará todo el espacio intermedio */
.shuffle-wrapper .faculty-bio {
    flex-grow: 1 !important;
}

/* 4. Empuja la barra de íconos/correo 100% hasta el fondo */
.shuffle-wrapper .faculty-footer-actions {
    margin-top: auto !important;
}

/* ==========================================================================
   ESTILOS PREMIUM PARA HOJA DE VIDA / DETALLE DE FACULTAD (DOCTOR SINGLE)
   ========================================================================== */

/* Fondo gris claro unificado */
.bg-light-gray {
  background-color: #f8fafc;
}

/* Divisores Limpios */
.divider-clean {
  width: 40px;
  height: 3px;
  background-color: var(--red-urgsig);
  border-radius: 2px;
}

/* Contenedor Lateral del Perfil */
.faculty-profile-sidebar {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 31, 63, 0.03);
}

.profile-img-holder {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f1f5f9;
}

.profile-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--blue-urgsig);
}

.profile-institution {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: #64748b;
}

/* Redes Sociales del Perfil */
.profile-social-links .list-inline-item a {
  width: 36px;
  height: 36px;
  background-color: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.profile-social-links .list-inline-item a:hover {
  background-color: var(--blue-urgsig);
  color: #ffffff !important;
}

/* Encabezados Principales */
.section-subtitle-clean,
.section-title-clean h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--blue-urgsig);
  font-size: 1.75rem;
  margin-bottom: 0;
}

.faculty-details-main p {
  font-family: "Inter", sans-serif;
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}

/* Bloques de la Línea de Tiempo (Educación) */
.timeline-edu-item {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease;
}

.timeline-edu-item:hover {
  border-color: rgba(0, 31, 63, 0.2);
}

.timeline-date {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-urgsig);
  background-color: rgba(139, 0, 0, 0.08);
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.timeline-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-urgsig);
  margin-bottom: 4px;
}

.timeline-institution {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 12px;
}

.timeline-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Sección de habilidades científicas */
.expertise-grid-container {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #eef2f6;
}

.expertise-grid-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-urgsig);
}

.scientific-list li {
  font-family: "Inter", sans-serif;
  font-size: 0.93rem;
  color: #475569;
  padding: 6px 0;
  display: flex;
  align-items: center;
}

.scientific-list li i {
  color: var(--red-urgsig);
  font-size: 1.1rem;
  margin-right: 10px;
}

/* ==========================================================================
   ADAPTACIÓN DE ENTRADAS EN REJILLA 2x2 (Manteniendo diseño del Landing)
   ========================================================================== */

/* Fuerza a que las tarjetas mantengan simetría vertical en filas de dos */
.blog-wrap .blog-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.blog-wrap .blog-item-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 10px 20px 25px 20px;
  /* Ajuste interno armónico */
}

/* Empuja el botón 'Read More' al fondo de la tarjeta si los títulos difieren en tamaño */
.blog-wrap .blog-item-content .btn-main {
  margin-top: auto !important;
  align-self: flex-start;
}

/* Ajuste del tamaño de fuentes para títulos en rejilla doble */
.blog-wrap .blog-item-content h2 {
  font-size: 1.35rem !important;
  line-height: 1.4 !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.blog-wrap .blog-item-content h2 a {
  color: var(--blue-urgsig) !important;
  transition: color 0.2s ease;
}

.blog-wrap .blog-item-content h2 a:hover {
  color: var(--red-urgsig) !important;
}

/* Control estricto de las imágenes para que no se deformen ni desborden */
.blog-wrap .blog-thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.blog-wrap .image-article-style {
  width: 100% !important;
  max-width: 100% !important;
  height: 200px;
  /* Reducido un poquito para mantener la proporción áurea 16:9 en cajas de 4 columnas */
  object-fit: cover;
}

.blog-wrap .pagination {
  text-align: center;
}

/* Sistema de Etiquetas Flotantes heredando colores del Landing */
.blog-wrap .badge-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  color: #fff;
  z-index: 5;
  font-family: "Inter", sans-serif;
}

.badge-category.cardiology {
  background-color: var(--blue-urgsig);
}

.badge-category.research {
  background-color: var(--gold-urgsig);
  color: var(--blue-urgsig);
}

.badge-category.trauma {
  background-color: var(--red-urgsig);
}

.badge-category.progreso {
  background-color: rgb(131, 0, 63);
}

/* ==========================================================================
   FOOTER MODERNO (Estilizado, oscuro y ordenado)
   ========================================================================== */
.footer-moderno {
  background-color: #051329;
  /* Un azul mucho más oscuro y elegante para el cierre */
  color: #a4b5c6;
  padding: 80px 0 30px 0 !important;
  font-size: 0.92rem;
}

.footer-top {
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  /* Línea divisoria muy sutil */
}

.footer-logo {
  max-height: 45px;
  width: auto;
}

.footer-description {
  line-height: 1.6;
  font-size: 0.9rem;
  font-family: "Inter";
  color: #8fa0b5 !important;
}

.footer-title {
  color: var(--gold-urgsig);
  font-size: 1.1rem;
  font-family: "Montserrat";
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* Enlaces del Footer estilo 75% aireados */
.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #8fa0b5;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold-urgsig);
  /* Un toque dorado elegante en el hover */
  transform: translateX(4px);
}

.footer-text {
  line-height: 1.6;
  font-family: "Inter";
  color: #8fa0b5 !important;
}

/* Botón compacto de acción en el Footer */
.btn-footer-action {
  background-color: transparent;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: "Montserrat";
  text-transform: uppercase;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-footer-action:hover {
  background-color: #ffffff;
  color: #051329 !important;
  border-color: #ffffff;
  text-decoration: none;
}

/* --- BARRA INFERIOR --- */
.footer-bottom {
  padding-top: 30px;
}

.copyright-text {
  color: #6a7c92 !important;
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Botón flotante corregido (Se alinea a la derecha sin romper renglones) */
.scroll-to-top-btn {
  background-color: var(--red-urgsig);
  color: #ffffff !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.scroll-to-top-btn:hover {
  background-color: var(--red-urgsig-btn);
  transform: translateY(-3px);
}

/* Ajustes Responsivos */
@media (max-width: 767px) {
  .footer-moderno {
    padding: 50px 0 20px 0 !important;
    text-align: center;
  }

  .footer-title {
    margin-top: 15px;
  }

  .footer-links a:hover {
    transform: none;
  }

  .btn-footer-action {
    margin-top: 20px;
  }
}

/* ==========================================================================
   MENÚ LATERAL MOBILE (OFF-CANVAS)
   ========================================================================== */

/* El botón hamburguesa ya no abre el dropdown de bootstrap, abre el sidebar */
.navbar-toggler {
  border: none;
  padding: 6px 8px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue-urgsig);
  background: transparent;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* El dropdown clásico de Bootstrap ya no se usa en mobile: el sidebar lo reemplaza */
@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none !important;
  }
}

.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 31, 63, 0.55);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 82vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.mobile-sidebar.is-open {
  transform: translateX(0);
}

body.sidebar-open {
  overflow: hidden;
}

.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 18px 24px;
  border-bottom: 1px solid #eef2f6;
  flex-shrink: 0;
}

.mobile-sidebar-brand img {
  max-height: 32px;
  width: auto;
  display: block;
}

.mobile-sidebar-close {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--blue-urgsig);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-sidebar-close:hover {
  background-color: var(--red-urgsig);
  color: #fff;
  border-color: var(--red-urgsig);
}

.mobile-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 16px 14px;
  flex-grow: 1;
}

.mobile-sidebar-nav li + li {
  margin-top: 4px;
}

.mobile-sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 15px 14px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--blue-urgsig);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-sidebar-nav a i {
  font-size: 1.1rem;
  width: 26px;
  color: var(--blue-urgsig);
}

.mobile-sidebar-nav li.active a,
.mobile-sidebar-nav a:hover {
  background-color: rgba(139, 0, 0, 0.06);
  color: var(--red-urgsig) !important;
}

.mobile-sidebar-nav li.active a i,
.mobile-sidebar-nav a:hover i {
  color: var(--red-urgsig);
}

.mobile-sidebar-footer {
  padding: 18px 20px 26px 20px;
  border-top: 1px solid #eef2f6;
  flex-shrink: 0;
}

.mobile-sidebar-footer .btn-header-join {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 13px 14px;
  font-size: 0.88rem;
}

@media (min-width: 992px) {

  .mobile-sidebar,
  .mobile-sidebar-overlay {
    display: none !important;
  }
}

/* ==========================================================================
   PULIDO GENERAL MOBILE — espaciados, line-height y tamaños de texto
   ========================================================================== */

/* Aire lateral para que el logo y el botón hamburguesa no queden pegados al borde */
@media (max-width: 991px) {
  .navigation .container {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* Line-height base más equilibrado (el valor fijo en px no escalaba bien en textos cortos) */
p {
  line-height: 1.7;
}

/* --- Hero principal (banner-moderno / titulo-hero) --- */
@media (max-width: 768px) {
  .banner-moderno {
    padding: 70px 0;
    min-height: auto;
  }

  .titulo-hero {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .descripcion-hero {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .badge-universidad {
    font-size: 0.72rem;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .titulo-hero {
    font-size: 1.75rem;
  }

  .btn-unirse,
  .btn-conocer {
    width: 100%;
    text-align: center;
  }

  .d-flex.flex-wrap.gap-3 {
    row-gap: 12px;
  }
}

/* --- Tarjeta de evento/simposio --- */
@media (max-width: 768px) {
  .card-evento .about-content {
    padding: 2.2rem 1.6rem !important;
  }

  .titulo-evento {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .descripcion-evento {
    font-size: 0.95rem;
  }
}

/* --- Encabezados de sección (Articulos / Galeria) más compactos en mobile --- */
@media (max-width: 768px) {
  .section-sim {
    padding: 40px 0;
  }

  .title-articles-section {
    font-size: 1.5rem;
  }
}

/* El header "Título + descripción" junto al link "Ver todas" usaba
   justify-content-between en una sola fila: en pantallas angostas el bloque
   de texto y el link terminaban tocándose sin espacio. Se apilan en mobile. */
@media (max-width: 576px) {

  .section-sim .d-flex.justify-content-between.align-items-end,
  .gallery-section .d-flex.justify-content-between.align-items-end {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .section-sim .d-flex.justify-content-between.align-items-end>div:nth-child(2),
  .gallery-section .d-flex.justify-content-between.align-items-end>div:nth-child(2) {
    margin-top: 10px;
  }

  .description-articles-section {
    display: block;
    margin-bottom: 0;
  }

  .secondary-article-section {
    display: inline-block;
  }
}

/* --- page-title (encabezado superior de Equipo / Articulos) --- */
@media (max-width: 768px) {
  .page-title {
    padding: 75px 0 40px 0;
  }

  .page-title .articles-section-subtitle {
    margin-bottom: 8px;
  }

  .page-title .articles-section-title {
    margin-top: 2px;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .text-lg {
    font-size: 34px;
  }
}

/* --- Sección de galería: la descripción de cada foto solo aparecía al hacer hover,
   invisible por definición en mobile (no hay hover). La mostramos siempre debajo. --- */
@media (max-width: 768px) {
  .gallery-item {
    background-color: #ffffff;
  }

  .gallery-overlay {
    position: static;
    opacity: 1;
    visibility: visible;
    background: none;
    padding: 14px 4px 4px 4px;
  }

  .overlay-text {
    transform: none;
  }

  .overlay-text h4 {
    color: var(--blue-urgsig) !important;
    font-size: 1rem;
  }

  .overlay-text p {
    color: #64748b !important;
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* --- Rejilla de facultad (doctor.html) --- */
/* .section trae 100px de padding arriba/abajo (pensado para desktop);
   en mobile dejaba un espacio enorme antes de "Dirección y Asesores Académicos". */
@media (max-width: 768px) {
  .doctors.section {
    padding: 40px 0 60px 0;
  }
}

@media (max-width: 480px) {
  .title-faculty-section {
    font-size: 1.6rem;
  }
}

/* El bloque de título+descripción y la fila de botones de filtro sumaban
   dos márgenes grandes (mb-5) uno detrás de otro: demasiado aire en mobile. */
@media (max-width: 768px) {
  .doctors .row.justify-content-center.mb-5 {
    margin-bottom: 1.75rem !important;
  }

  .description-faculty-section {
    margin-bottom: 0;
  }
}

/* --- Artículo individual (article_1.html / article_2.html) --- */
@media (max-width: 767px) {
  .blog-wrap-single {
    padding: 40px 0 60px 0 !important;
  }

  .article-body-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-body-content p {
    line-height: 1.7 !important;
  }

  .body-heading-single {
    font-size: 1.3rem;
  }

  .blockquote-premium-single {
    padding: 18px 20px;
  }

  .blockquote-premium-single p {
    font-size: 1.02rem;
  }

  .author-box-single {
    align-items: flex-start;
  }

  .author-avatar-img {
    flex-shrink: 0;
    margin-right: 16px !important;
    margin-top: 2px;
  }

  .author-info-text {
    min-width: 0;
  }

  .author-role {
    display: block;
    margin-top: 4px;
    line-height: 1.5;
  }
}

/* --- Tarjetas de artículos (blog-sidebar.html) --- */
@media (max-width: 767px) {
  .blog-wrap .blog-item-content h2 {
    font-size: 1.2rem !important;
    line-height: 1.35 !important;
  }

  .blog-wrap .blog-item-content p {
    line-height: 1.6;
  }

  .blog-wrap .image-article-style {
    height: 210px;
  }
}

/* --- Footer: un poco más de aire entre columnas apiladas --- */
@media (max-width: 767px) {
  .footer-top .widget,
  .footer-top>div {
    margin-bottom: 12px;
  }

  .footer-description {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/*# sourceMappingURL=maps/style.css.map */