/* ========================
   RESET GLOBAL
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================
   ESTILOS GENERALES
======================== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.6;
}

/* ========================
   ENCABEZADO / NAVBAR
======================== */
.site-header {
  background-color: #ffffff;
}

.navbar {
  background-color: #ffffff;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.navbar .container {
  align-items: center;
}

/* LOGO */
.custom-logo-link img {
  max-height: 40px;
  width: auto;
  height: auto;
}

/* TEXTO SI NO HAY LOGO */
.navbar-brand {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #007bff;
}

/* ========================
   MENÚ DE NAVEGACIÓN
======================== */
.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-item {
  margin-left: 20px;
}

.navbar-nav .nav-link {
  color: #222222;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .current-menu-item > .nav-link::after {
  width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .current-menu-item > .nav-link {
  color: #007bff;
}

/* Botón hamburguesa */
.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  filter: invert(0); /* Negro sobre blanco */
}

/* ========================
   CONTENIDO
======================== */
main {
  padding: 20px;
}
.text-justify {
  text-align: justify;
}
.content-justified {
  text-align: justify;
}

.sidebar-box {
  border: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.sidebar-box .widget-title {
  font-size: 18px;
  font-weight: 600;
  border-bottom: 2px solid #007bff;
  padding-bottom: 6px;
  margin-bottom: 15px;
}

/* ========================
   PIE DE PÁGINA
======================== */
footer {
  background-color: #002244;
  color: #ffffff;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}
footer h5.widget-title {
  font-size: 16px;
  margin-bottom: 15px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
}

footer .mb-3,
footer .mb-4 {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}
/* ========================
   TARJETAS (BLOG, CATEGORÍA, ETC.)
======================== */
.card {
  border: none;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-img-top {
  height: 180px;
  object-fit: cover;
}

/* ========================
   TITULOS GENERALES
======================== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: #212529;
}

/* ========================
   BOTONES
======================== */
.btn {
  border-radius: 4px;
  font-weight: 500;
  padding: 8px 16px;
}

.btn-outline-primary {
  border-color: #007bff;
  color: #007bff;
}

.btn-outline-primary:hover {
  background-color: #007bff;
  color: #fff;
}

/* ========================
   PAGINACIÓN
======================== */
.pagination .page-numbers {
  margin: 0 5px;
  padding: 8px 12px;
  background-color: #f1f1f1;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  display: inline-block;
}

.pagination .current {
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
}

.pagination .page-numbers:hover {
  background-color: #007bff;
  color: #fff;
}

/* ========================
   FORMULARIOS BÁSICOS
======================== */
input[type="text"],
input[type="email"],
textarea {
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 8px;
  width: 100%;
  font-size: 14px;
}

/* ========================
   RESPONSIVE TUNING
======================== */
@media (max-width: 768px) {
  .navbar-nav .nav-item {
    margin-left: 10px;
  }

  .card-img-top {
    height: auto;
  }
}
.btn-pill {
  display: inline-block !important;
  background-color: #343a40 !important; /* Gris oscuro tipo Bootstrap */
  color: #fff !important;
  padding: 8px 20px !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease !important;
}

.btn-pill:hover {
  background-color: #1d2124 !important; /* Más oscuro al pasar el mouse */
  color: #fff !important;
}
