/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVA COMPLETA - PC & MÓVIL AUTOMÁTICO (Cassiopeia)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. REGLAS GLOBALES Y RENDIMIENTO (Evitar desbordamientos en móviles)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden; /* Evita cualquier desplazamiento horizontal no deseado */
  -webkit-font-smoothing: antialiased;
}

/* Imágenes y vídeos fluidos y adaptables */
img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tablas con scroll horizontal suave en celulares para no romper el ancho */
.com_content table, table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  border-collapse: collapse;
}

/* --------------------------------------------------------------------------
   2. ENCABEZADO Y CABECERA INSTITUCIONAL (Fondo Suave y Banderas)
   -------------------------------------------------------------------------- */
.header {
  padding: 0 0 10px 0;
  border-bottom: 2px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, #fffdf0 100%);
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

/* Estructura en Grid del Encabezado */
.container-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
}

/* Fila del Logo (Izquierda) */
.header > .grid-child:not(.container-below-top):not(.container-nav) {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  padding: 4px 16px;
}

/* Fila de Búsqueda (Derecha a la altura del Logo) */
.container-below-top {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  padding: 4px 20px;
}

/* Menú Principal (Abajo en toda la anchura) */
.container-nav {
  grid-column: 1 / -1;
  grid-row: 3;
}

/* Cinta de Hermandad Argentina - España en el borde superior */
.header::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    #75AADB 0%, #75AADB 22%, #ffffff 22%, #ffffff 28%, #75AADB 28%, #75AADB 50%, /* Bandera Argentina */
    #AA151B 50%, #AA151B 68%, #F1BF00 68%, #F1BF00 82%, #AA151B 82%, #AA151B 100% /* Bandera de España */
  );
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Barra Superior Institucional (Top Bar Banderas) */
.container-topbar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 5px 0;
  margin-bottom: 10px;
}

.institutional-topbar {
  width: 100%;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  font-weight: 500;
}

.topbar-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-online 2s infinite;
  flex-shrink: 0;
}

/* Cápsula de Banderas */
.dual-flags-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.flag-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-flag-svg {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  display: block;
}

.flag-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flags-divider {
  font-size: 14px;
  line-height: 1;
  color: #cbd5e1;
  user-select: none;
}

/* Adaptación responsiva de cabecera, búsqueda y barra superior */
@media (max-width: 767.98px) {
  .header {
    grid-template-columns: 1fr;
  }
  .header > .grid-child:not(.container-below-top):not(.container-nav) {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
    padding: 6px 16px;
  }
  .header .navbar-brand {
    justify-content: center;
  }
  .container-below-top {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    width: 100%;
    padding: 4px 16px 10px 16px;
  }
  .header-search-box {
    width: 100%;
    justify-content: center;
  }
  .header-search-box form {
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }
  .container-nav {
    grid-column: 1;
    grid-row: 4;
  }
  .topbar-inner {
    justify-content: center;
  }
  .topbar-left {
    display: none;
  }
  .dual-flags-badge {
    padding: 3px 10px;
    gap: 8px;
  }
  .flag-name {
    font-size: 11px;
  }
}

/* Logotipo */
.header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 0 16px;
}

.header .navbar-brand img,
.header .brand-logo img,
.header .navbar-brand .logo {
  max-height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* --------------------------------------------------------------------------
   2.1 CAJA DE BÚSQUEDA DEL SITIO (A la derecha a la altura del logo)
   -------------------------------------------------------------------------- */
.header-search-box {
  display: flex;
  align-items: center;
}

.header-search-box form {
  display: flex;
  align-items: center;
  position: relative;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 30px;
  padding: 4px 5px 4px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease-in-out;
  min-width: 270px;
  max-width: 360px;
}

.header-search-box form::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.75;
}

.header-search-box form:focus-within {
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.header-search-box input.search-query {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 13.5px;
  color: #1e293b;
  font-weight: 500;
  width: 100%;
  padding: 5px 6px 5px 0;
  margin: 0;
}

.header-search-box input.search-query::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.header-search-box button.btn {
  border: none;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  white-space: nowrap;
}

.header-search-box button.btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   3. MENÚ PRINCIPAL (Escritorio PC vs Móvil Celulares)
   -------------------------------------------------------------------------- */
.container-nav {
  margin: 10px 0 16px 0;
  background-color: #1e293b; /* Gris oscuro corporativo pizarra / carbón */
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid #f59e0b; /* Ribete dorado institucional sutil */
}

/* --- VISTA ESCRITORIO PC (Pantallas >= 992px) --- */
@media (min-width: 992px) {
  .container-nav ul.mod-menu_dropdown-metismenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* Botones del menú en PC - Resaltan con fondo nítido y alto contraste */
  .container-nav li.level-1 > a {
    display: inline-block;
    padding: 10px 18px;
    background-color: #ffffff; /* Blanco nítido que resalta perfectamente sobre el gris oscuro */
    color: #1e293b; /* Texto oscuro corporativo */
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.14);
    border-bottom: 2px solid transparent;
    transition: all 0.22s ease-in-out;
  }

  /* Hover PC: Azul intenso con ribete dorado */
  .container-nav li.level-1:hover > a,
  .container-nav li.level-1 > a:hover {
    background-color: #1d4ed8;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
    border-bottom: 2px solid #f59e0b;
    transform: translateY(-2px);
  }

  /* Menú activo en PC (Inicio) */
  .container-nav li.level-1.active > a,
  .container-nav li.level-1.current > a {
    background-color: #2563eb;
    color: #ffffff !important;
    border-bottom: 2px solid #f59e0b;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.45);
    font-weight: 700;
  }

  /* Indicador flecha sutil en elementos con submenú (Eventos) */
  .container-nav li.deeper.parent > a::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.25s ease;
  }

  .container-nav li.deeper.parent:hover > a::after {
    transform: rotate(180deg);
  }

  /* Desplegable animado en "Eventos" */
  .container-nav li.deeper.parent {
    position: relative;
  }

  .container-nav li.deeper.parent button.mm-toggler {
    display: none !important;
  }

  .container-nav li.deeper.parent ul.mm-collapse {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    padding: 8px;
    margin-top: 4px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    pointer-events: none;
  }

  /* Puente invisible para que el hover nunca se corte entre el botón y el submenú */
  .container-nav li.deeper.parent ul.mm-collapse::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
  }

  .container-nav li.deeper.parent:hover ul.mm-collapse {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .container-nav ul.mm-collapse li.level-2 {
    list-style: none;
    margin-bottom: 4px;
  }

  .container-nav ul.mm-collapse li.level-2:last-child {
    margin-bottom: 0;
  }

  .container-nav ul.mm-collapse li.level-2 a {
    display: block;
    padding: 10px 14px;
    background-color: #f8fafc;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
  }

  .container-nav ul.mm-collapse li.level-2 a:hover {
    background-color: #1d4ed8;
    color: #ffffff !important;
    padding-left: 18px;
    border-left-color: #f59e0b;
  }
}

/* --- VISTA MÓVIL AUTOMÁTICA (Celulares y Tablets < 992px) --- */
@media (max-width: 991.98px) {
  .header .navbar-brand img,
  .header .brand-logo img,
  .header .navbar-brand .logo {
    max-height: 52px;
    width: auto;
  }

  .container-nav {
    margin: 8px 0 16px 0;
    padding: 10px;
  }

  .container-nav ul.mod-menu_dropdown-metismenu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .container-nav li.level-1 > a {
    display: block;
    width: 100%;
    min-height: 44px; /* Área táctil recomendada por Google para dedos */
    line-height: 26px;
    padding: 10px 14px;
    background-color: #ffffff;
    color: #1e293b;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none;
    border-left: 4px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  }

  .container-nav li.level-1.active > a,
  .container-nav li.level-1.current > a {
    background-color: #2563eb;
    color: #ffffff !important;
    border-left: 4px solid #f59e0b;
  }

  .container-nav li.level-1:active > a,
  .container-nav li.level-1 > a:active {
    background-color: #1d4ed8;
    color: #ffffff !important;
    border-left-color: #f59e0b;
  }

  /* Submenús en celular: visibles y con indentación */
  .container-nav li.deeper.parent ul.mm-collapse {
    list-style: none;
    padding: 6px 0 6px 14px;
    margin: 4px 0 0 0;
    border-left: 2px dashed #93c5fd;
  }

  .container-nav ul.mm-collapse li.level-2 a {
    display: block;
    padding: 8px 12px;
    margin-bottom: 4px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   4. BARRAS LATERALES (Sidebar Izquierdo y Derecho)
   -------------------------------------------------------------------------- */
.container-sidebar-left .card,
.container-sidebar-right .card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.container-sidebar-left .card-title,
.container-sidebar-left .card-header,
.container-sidebar-left h3,
.container-sidebar-right .card-title,
.container-sidebar-right .card-header,
.container-sidebar-right h3 {
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 7px 7px 0 0 !important;
  border-bottom: 2px solid #f59e0b !important; /* Detalle dorado elegante */
}

.container-sidebar-left .card-body,
.container-sidebar-right .card-body {
  padding: 14px;
}

/* Enlaces del Menú Secundario */
.container-sidebar-left ul.mod-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.container-sidebar-left ul.mod-menu li.nav-item a {
  display: block;
  padding: 9px 12px;
  background-color: #f1f5f9;
  color: #334155;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 5px;
  border-left: 3px solid #cbd5e1;
  transition: all 0.2s ease-in-out;
}

.container-sidebar-left ul.mod-menu li.nav-item a:hover,
.container-sidebar-left ul.mod-menu li.nav-item a:focus {
  background-color: #1d4ed8;
  color: #ffffff !important;
  font-weight: 600;
  border-left: 3px solid #f59e0b;
  padding-left: 16px;
  box-shadow: 0 3px 8px rgba(29, 78, 216, 0.25);
}

/* Módulo Banderas (Columna Lateral) */
.container-sidebar-left .mod-randomimage,
.container-sidebar-left .random-image,
.container-sidebar-right .mod-randomimage,
.container-sidebar-right .random-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease-in-out;
  text-align: center;
}

.container-sidebar-left .mod-randomimage:hover,
.container-sidebar-left .random-image:hover,
.container-sidebar-right .mod-randomimage:hover,
.container-sidebar-right .random-image:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.container-sidebar-left .mod-randomimage img,
.container-sidebar-left .random-image img,
.container-sidebar-right .mod-randomimage img,
.container-sidebar-right .random-image img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.container-sidebar-left .mod-randomimage:hover img,
.container-sidebar-left .random-image:hover img,
.container-sidebar-right .mod-randomimage:hover img,
.container-sidebar-right .random-image:hover img {
  transform: scale(1.04);
}

/* Módulo de Inicio de Sesión y Registro (Acceso de Usuarios) */
.container-sidebar-left .mod-login,
.container-sidebar-right .mod-login {
  display: flex;
  flex-direction: column;
}

.mod-login .form-group {
  margin-bottom: 12px;
}

.mod-login .input-group {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mod-login .input-group input.form-control {
  font-size: 13.5px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  background-color: #f8fafc;
  transition: all 0.2s ease-in-out;
}

.mod-login .input-group input.form-control:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.mod-login .input-group-text,
.mod-login .input-password-toggle {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 13px;
  padding: 0 12px;
}

.mod-login .input-password-toggle:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

.mod-login .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 12px;
}

.mod-login .form-check-input {
  cursor: pointer;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2563eb;
}

.mod-login .mod-login__submit button {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.mod-login .mod-login__submit button:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
}

/* Enlaces de recuperación y Registro */
.mod-login__options {
  border-top: 1px solid #e2e8f0;
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding-left: 0;
}

.mod-login__options li a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mod-login__options li a:hover {
  color: #2563eb;
  text-decoration: underline;
  padding-left: 2px;
}

/* Destacar enlace de registro "Crear una cuenta" */
.mod-login__options li a[href*="registration"] {
  color: #1d4ed8;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 12px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.mod-login__options li a[href*="registration"]:hover {
  background-color: #2563eb;
  color: #ffffff !important;
  border-color: #2563eb;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

/* Módulo Quién está en línea */
.container-sidebar-right .mod-whosonline,
.container-sidebar-right [class*="whosonline"] {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

.container-sidebar-right .mod-whosonline p,
.container-sidebar-right [class*="whosonline"] p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 6px;
  border-left: 4px solid #10b981; /* Verde indicador de estado online */
  font-weight: 500;
}

.container-sidebar-right .mod-whosonline p::before,
.container-sidebar-right [class*="whosonline"] p::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-online 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-online {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Lista de Categorías en barra derecha */
.container-sidebar-right ul.mod-articles-category,
.container-sidebar-right ul.category-module {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.container-sidebar-right ul.mod-articles-category li a,
.container-sidebar-right ul.category-module li a {
  display: block;
  padding: 8px 12px;
  background-color: #f1f5f9;
  color: #334155;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 5px;
  border-left: 3px solid #cbd5e1;
  transition: all 0.2s ease;
}

.container-sidebar-right ul.mod-articles-category li a:hover,
.container-sidebar-right ul.category-module li a:hover {
  background-color: #1d4ed8;
  color: #ffffff !important;
  font-weight: 600;
  border-left-color: #f59e0b;
  padding-left: 16px;
}

/* Carrusel de Imágenes Federadas */
.federadas-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #0f172a;
}

.federadas-viewport {
  position: relative;
  width: 100%;
  height: 195px;
  overflow: hidden;
}

.federadas-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease-in-out, visibility 0.45s ease-in-out;
}

.federadas-slide.active {
  opacity: 1;
  visibility: visible;
}

.federadas-slide a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.federadas-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.federadas-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 70%, transparent 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 22px 10px 8px 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.federadas-nav {
  position: absolute;
  top: calc(50% - 16px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
}

.federadas-nav:hover {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.federadas-nav.prev { left: 8px; }
.federadas-nav.next { right: 8px; }

.federadas-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 8px 0 4px 0;
  background: #ffffff;
}

.federadas-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.federadas-dots button.active,
.federadas-dots button:hover {
  background: #1d4ed8;
  transform: scale(1.3);
}

/* --------------------------------------------------------------------------
   5. CONTENIDO DE NOTICIAS Y ARTÍCULOS (Diseño Editorial)
   -------------------------------------------------------------------------- */
.com_content .item-title,
.page-header h1, h1, h2 {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* En celulares, ajustar títulos grandes para que no corten palabras */
@media (max-width: 768px) {
  .page-header h1, h1 {
    font-size: 22px !important;
  }
  h2 {
    font-size: 19px !important;
  }
}

/* Párrafos de lectura cómodos */
.com_content p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 14px;
}

/* Tarjetas de noticias en blog */
.blog .items-leading .item,
.blog .items-row .item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog .items-row .item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

/* --------------------------------------------------------------------------
   6. CARRUSEL DE CABECERA (Header Banner Carousel - Bootstrap 5)
   -------------------------------------------------------------------------- */
.container-banner {
  margin: 10px 0 26px 0;
}

.header-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
  background: #0f172a;
}

.header-carousel .carousel-inner {
  border-radius: 12px;
}

.header-carousel .carousel-item {
  height: 380px;
  position: relative;
  background: #0f172a;
  overflow: hidden;
}

.header-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.header-carousel .carousel-item.active img {
  transform: scale(1.05);
}

/* Capa de contraste degradado para legibilidad del texto */
.header-carousel .carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.25) 100%);
  pointer-events: none;
}

.header-carousel .carousel-caption {
  position: absolute;
  top: 50%;
  left: 6%;
  right: 6%;
  bottom: auto;
  transform: translateY(-50%);
  text-align: left;
  padding: 0;
  max-width: 650px;
  z-index: 5;
}

.carousel-badge {
  display: inline-block;
  background-color: #f59e0b; /* Dorado institucional */
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 4px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.header-carousel .carousel-caption h3 {
  font-size: 29px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.22;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.01em;
}

.header-carousel .carousel-caption p {
  font-size: 15.5px;
  color: #e2e8f0;
  line-height: 1.55;
  margin-bottom: 20px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

.carousel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary-custom {
  background-color: #1d4ed8;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #1d4ed8;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
  transition: all 0.2s ease-in-out;
}

.btn-primary-custom:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.45);
}

.btn-outline-custom {
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: all 0.2s ease-in-out;
}

.btn-outline-custom:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #0f172a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Flechas de navegación */
.header-carousel .carousel-control-prev,
.header-carousel .carousel-control-next {
  width: 46px;
  height: 46px;
  top: calc(50% - 23px);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50%;
  margin: 0 16px;
  opacity: 0.85;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
  z-index: 10;
}

.header-carousel .carousel-control-prev:hover,
.header-carousel .carousel-control-next:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  opacity: 1;
  transform: scale(1.08);
}

/* Paginadores / Indicadores */
.header-carousel .carousel-indicators {
  margin-bottom: 16px;
  z-index: 10;
}

.header-carousel .carousel-indicators [data-bs-target] {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.header-carousel .carousel-indicators .active {
  background-color: #f59e0b; /* Dorado activo */
  width: 46px;
}

/* --- ADAPTACIÓN RESPONSIVA AUTOMÁTICA (Celulares y Tablets) --- */
@media (max-width: 991.98px) {
  .header-carousel .carousel-item {
    height: 300px;
  }
  .header-carousel .carousel-caption h3 {
    font-size: 22px;
  }
  .header-carousel .carousel-caption p {
    font-size: 14px;
  }
}

@media (max-width: 767.98px) {
  .container-banner {
    margin: 6px 0 16px 0;
  }
  .header-carousel .carousel-item {
    height: 250px;
  }
  .header-carousel .carousel-caption {
    left: 4%;
    right: 4%;
    max-width: 100%;
  }
  .header-carousel .carousel-caption h3 {
    font-size: 17px;
    margin-bottom: 6px;
  }
  .header-carousel .carousel-caption p {
    font-size: 12.5px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .carousel-badge {
    font-size: 10px;
    padding: 2px 7px;
    margin-bottom: 6px;
  }
  .btn-primary-custom,
  .btn-outline-custom {
    font-size: 12px;
    padding: 7px 14px;
  }
  .header-carousel .carousel-control-prev,
  .header-carousel .carousel-control-next {
    width: 34px;
    height: 34px;
    top: calc(50% - 17px);
    margin: 0 6px;
  }
}

/* --------------------------------------------------------------------------
   7. PIE DE PÁGINA CORPORATIVO (Corporate Footer)
   -------------------------------------------------------------------------- */
.container-footer.footer {
  background-color: #090e1a !important; /* Azul marino corporativo profundo */
  border-top: 3px solid #f59e0b !important; /* Ribete institucional dorado */
  color: #cbd5e1;
  padding: 48px 0 0 0;
  margin-top: 50px;
}

.corporate-footer {
  width: 100%;
}

.footer-content-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-col {
  margin-bottom: 24px;
}

/* Columna Marca / Identidad */
.footer-logo-container {
  background: #ffffff;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-logo {
  max-height: 52px;
  width: auto;
  display: block;
}

.footer-about {
  font-size: 13.5px;
  line-height: 1.65;
  color: #ffffff !important; /* Blanco puro como solicitado */
  margin-bottom: 18px;
}

.footer-cert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 12px;
  border-radius: 6px;
  width: fit-content;
}

.ssl-badge {
  height: 28px;
  width: auto;
}

.cert-text {
  font-size: 12px;
  color: #e2e8f0; /* Dos tonos más claro */
  font-weight: 500;
}

/* Encabezados de Columna */
.footer-heading {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px !important;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: #f59e0b; /* Línea de acento dorada */
  border-radius: 2px;
}

/* Enlaces Institucionales */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a {
  color: #e2e8f0; /* Dos tonos más claro */
  text-decoration: none;
  font-size: 13.5px;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links li a:hover {
  color: #60a5fa !important;
  transform: translateX(4px);
}

/* Lista de Contacto */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #e2e8f0; /* Dos tonos más claro */
  line-height: 1.5;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-contact-list a {
  color: #ffffff; /* Blanco nítido para los correos y teléfono */
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: #60a5fa !important;
  text-decoration: underline;
}

/* Redes Sociales y Comunidad */
.footer-social-intro {
  font-size: 13.5px;
  color: #e2e8f0; /* Dos tonos más claro */
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 6px;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  width: fit-content;
  min-width: 140px;
}

.social-btn.facebook { background-color: #1877f2; }
.social-btn.youtube { background-color: #ff0000; }
.social-btn.whatsapp { background-color: #25d366; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
  color: #ffffff !important;
}

/* Barra Inferior (Sub-footer) */
.footer-bottom-bar {
  border-top: 1px solid rgba(245, 158, 11, 0.22); /* Sutil línea dorada */
  background: rgba(0, 0, 0, 0.28);
  margin-top: 36px;
  padding: 22px 20px;
  font-size: 13.5px;
  color: #cbd5e1;
}

.copyright-text {
  color: #f1f5f9;
  font-size: 13.5px;
  line-height: 1.6;
}

.copyright-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* Resaltado sutil: Todos los derechos reservados */
.copyright-text .rights-reserved {
  color: #cbd5e1; /* Dos tonos más claro */
  font-weight: 500;
  display: inline-block;
  margin-left: 4px;
  letter-spacing: 0.02em;
}

/* Resaltado sutil: Puesta en marcha y Alojamiento */
.hosting-credit {
  font-size: 13.5px;
  line-height: 1.6;
}

.hosting-credit .hosting-label {
  color: #e2e8f0; /* Dos tonos más claro, suave y legible */
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Distintivo corporativo Compumonte Hosting */
.compumonte-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 12px;
  background-color: rgba(245, 158, 11, 0.12); /* Fondo dorado traslúcido */
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 5px;
  color: #f59e0b !important; /* Dorado institucional */
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.compumonte-badge:hover {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: #0f172a !important; /* Contraste oscuro al posar el ratón */
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  text-decoration: none;
}

/* Adaptación Móvil */
@media (max-width: 767.98px) {
  .container-footer.footer {
    padding: 36px 0 0 0;
    margin-top: 32px;
  }
  .footer-heading {
    margin-top: 10px;
    margin-bottom: 12px;
  }
  .footer-social-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .social-btn {
    min-width: auto;
  }
}


/* ==========================================================================
   GALERÍA DE IMÁGENES DE SOCIEDADES FEDERADAS (Itemid 129)
   ========================================================================== */
.federadas-gallery-wrapper {
  margin: 1rem 0 3rem 0;
  font-family: inherit;
}

.gallery-hero-banner {
  background: linear-gradient(135deg, #090e1a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 2.2rem 2rem;
  border-radius: 14px;
  margin-bottom: 2rem;
  border-left: 5px solid #f59e0b;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.gallery-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.gallery-hero-subtitle {
  font-size: 0.98rem;
  color: #cbd5e1;
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.gallery-stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

/* Barra de Búsqueda y Filtro */
.gallery-filter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  padding: 1rem 1.4rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.gallery-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.gallery-search-input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.gallery-search-input:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.gallery-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.gallery-counter-text {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

/* Grilla de Imágenes */
.federadas-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.gallery-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.gallery-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}

.gallery-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-thumb img {
  transform: scale(1.06);
}

.gallery-card-zoom-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: scale(0.85);
}

.gallery-card:hover .gallery-card-zoom-indicator {
  opacity: 1;
  transform: scale(1);
}

.gallery-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  justify-content: space-between;
}

.gallery-card-city {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #d97706;
}

.gallery-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin: 0;
}

/* Lightbox Modal */
.gallery-lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(8px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-box {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.lightbox-img-wrapper {
  max-width: 100%;
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption-bar {
  width: 100%;
  padding: 12px 20px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #334155;
}

.lightbox-caption-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.lightbox-caption-city {
  font-size: 0.82rem;
  color: #f59e0b;
  font-weight: 600;
}

.lightbox-counter {
  font-size: 0.85rem;
  color: #94a3b8;
  white-space: nowrap;
}

.lightbox-btn {
  position: absolute;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-btn:hover {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
}

.lightbox-close {
  top: 14px;
  right: 14px;
}

.lightbox-prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

@media (max-width: 767.98px) {
  .gallery-hero-title {
    font-size: 1.4rem;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-btn {
    width: 38px;
    height: 38px;
  }
}
