/* ===============================
   ESTILOS GENERALES
================================ */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #222;
  line-height: 1.6;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* ===============================
   CABECERA / NAVBAR
================================ */
.navbar-brand {
  font-style: italic;
  font-size: 1.25rem;
  color: #f8f9fa !important;
}

/* Efecto animado para los enlaces del menú */
.navbar-nav .nav-link {
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Subrayado animado */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  transform: translateY(-2px); /* sube ligeramente el texto */
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Dropdown oscuro dentro de navbar-dark */
.navbar-dark .dropdown-menu {
  background-color: #212529;
  border: 1px solid #343a40;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.navbar-dark .dropdown-item {
  color: #f8f9fa;
  transition: background-color 0.3s ease;
}

.navbar-dark .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dropdown-divider {
  border-top-color: #444;
}

/* Evita conflicto con tu subrayado animado */
.navbar-nav .dropdown-toggle::after {
  display: none; /* oculta la flechita de Bootstrap si molesta */
}

/* ===============================
   TITULOS Y TEXTOS
================================ */
h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', 'Georgia', serif;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #343a40;
  text-align: center;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
}

.card-text {
  font-size: 0.95rem;
  color: #555;
  text-align: justify;
}

/* ===============================
   IMÁGENES DE ARTÍCULOS
================================ */
.card-img-top {
  height: 50%;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

@media (min-width: 768px) {
  .card-img-top {
    height: 220px;
  }
}

/* === LÍNEA VERTICAL ENTRE CONTENIDO Y SIDEBAR === */
@media (min-width: 992px) { /* Solo en pantallas grandes (desktop) */
  .sidebar {
    border-left: 2px solid #dee2e6; /* gris claro Bootstrap */
    padding-left: 1.5rem;
    margin-left: 1.5rem;
  }
}

/* ===============================
   LOGO CABECERA
================================ */
.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 1.5rem; /* más natural que 3rem */
  transition: transform 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  object-fit: cover;
  position: static; /* o elimina la línea position:absolute */
}

.logo-img:hover {
  transform: scale(1.5);
}

/* ===============================
   FOOTER
================================ */
footer {
  font-size: 0.85rem;
  background-color: #212529;
  color: #ccc;
  padding: 1rem 0;
}

footer small {
  font-family: 'Georgia', serif;
  font-size: 0.85rem;
}

/* ===============================
   BOTONES Y DETALLES
================================ */
.btn-primary {
  background-color: #0d6efd;
  border: none;
}

.btn-primary:hover {
  background-color: #0b5ed7;
}

button,
.btn,
.btn-primary:hover,
.btn-secondary:hover {
  transition: transform 0.2s;
}

button:hover,
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: scale(1.1);
}

/* ===============================
   SIDEBAR ARCHIVO
================================ */
/* Sidebar más alineada a la derecha */
.sidebar {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-right: 0; /* elimina espacios extra */
}

/* Alineación del contenido dentro */
@media (min-width: 992px) {
  .sidebar {
    position: sticky;
    top: 100px; /* se mantiene visible al hacer scroll */
  }
}

.sidebar h5 {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  text-align: left;
  margin-bottom: 1rem;
}

.sidebar a {
    display: block;
    color: #212529;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar a:hover {
  color: #0d6efd;
  transform: translateX(4px);
  text-decoration: underline;
}

.sidebar small {
  color: #6c757d;
  font-size: 0.8rem;
}

.article-content {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #222;
    text-align: justify;
}

.article-img {
  max-width: 25%;
  width: 25%;
  height: auto;
  display: block;
  margin-left: 0;
  margin-right: 1.5rem; /* Separación del texto */
  float: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.comment-box {
    background-color: #b2d6f8; /* azul muy claro */
    border: 1px solid #cce0ff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

/* ===============================
   SEPARADOR DECORATIVO (FORZAR VISIBILIDAD)
================================ */
hr.decorative-divider,
.decorative-divider {
  -webkit-appearance: none;
  appearance: none;
  border: 0 !important;
  display: block !important;
  width: 460px !important;        /* ancho fijo */
  max-width: 100% !important;     /* no desborde en móviles */
  height: 7px !important;        /* altura visible */
  margin: 3rem auto !important;   /* separar y centrar */
  border-radius: 6px !important;
  background: linear-gradient(90deg, #524c4c 0%, #444 50%, #161616 100%) !important;
  background-color: #4b4242 !important;
  box-shadow: 0 6px 14px rgba(61, 59, 59, 0.28) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ajustes por tamaño de pantalla */
@media (min-width: 992px) {
  .decorative-divider {
    width: 300px;
    height: 12px;
    margin: 3rem auto;
  }
}

@media (max-width: 576px) {
  hr.decorative-divider,
  .decorative-divider {
    width: 80px !important;
    height: 6px !important;
    margin: 1.25rem auto !important;
  }
}

.footer-translate select {
  background-color: #212529; /* mismo color que el footer */
  color: #f8f9fa; /* texto claro */
  border: 1px solid #495057;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 0.9rem;
}

.footer-translate select option {
  color: #000; /* opciones legibles al desplegar */
}

/* Estilos para botón PayPal y logo en footer */
.footer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Botón "Colabora" estilo amarillo */
.btn-paypal {
  background-color: #ffc107; /* amarillo Bootstrap warning */
  color: #212529;            /* texto oscuro */
  border: none;
  padding: 0.35rem 0.6rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.btn-paypal:hover,
.btn-paypal:focus {
  background-color: #e0a800;
  color: #111;
  transform: translateY(-5px);
}

/* Logo de PayPal dentro del botón, más pequeño y centrado verticalmente */
.paypal-logo {
  width: 30px;
  height: auto;
  display: inline-block;
  object-fit: cover;
  border-radius: 3px;
}

/* Ajustes responsive: en pantallas pequeñas apila y centra todo en el footer */
@media (max-width: 767.98px) {
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

.btn-paypal {
  padding: 0.45rem 0.85rem;
}

.img-rss {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 8px;
  background-color: #f1f3f5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.img-rss img {
  display: block;
  transition: transform 0.3s ease;
  width: 35px;
  height: auto;
  align-items: center;
}

.img-rss:hover img {
  transform: translateY(-5px) scale(1.05);
}

/* ===============================
   FOOTER FIJO ABAJO Y ANCHO COMPLETO
================================ */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* empuja el footer al fondo */
}

footer {
  width: 100%;
  background-color: #212529 !important; /* asegura color */
  color: #f8f9fa;
  margin-top: auto; /* lo mantiene abajo */
  text-align: center;
}

/* Asegura que el fondo oscuro del footer ocupe todo el ancho */
footer .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Distribución y centrado del contenido interno */
footer .container.d-flex {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Ajuste responsive: centra en móviles */
@media (max-width: 768px) {
  footer .container.d-flex {
    flex-direction: column;
    text-align: center;
  }
}

/* Alerta de mensaje */
.alerta {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    transition: opacity 0.5s ease;
}
.alerta.fade {
    opacity: 0;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-red {
    background: #c0392b;
}

.btn-red:hover {
    background: #e74c3c;
}

.btn-gray {
    background: #7f8c8d;
}
.btn-gray:hover {
    background: #95a5a6;
}

.btn-group {
    display: flex;           /* mantiene los botones en línea */
    gap: 2rem;             /* espacio entre ellos */
    flex-wrap: wrap;         /* permite que se adapten en pantallas muy pequeñas */
}

/* ===============================
   PANEL DE VALIDACIONES (DOS COLUMNAS)
================================ */
.panel-validaciones {
  display: flex;
  flex-direction: row;         /* ← clave: disposición horizontal */
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}

/* Columna izquierda: información de sesión */
.panel-sesion {
  flex: 0 0 260px;             /* ancho fijo */
  background: #f1f3f5;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: #555;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  height: fit-content;         /* evita que se estire */
}

.panel-sesion .titulo-sesion {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
}

.tabla-sesion {
  width: 100%;
  border-collapse: collapse;
}

.tabla-sesion td {
  padding: 6px 4px;
  border: none;
  font-size: 0.85rem;
}

/* Columna derecha: contenido principal */
.panel-contenido {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  min-width: 0; /* evita overflow horizontal */
}

/* Estilos para encabezados de tablas */
.panel-contenido h2 {
  margin-top: 1rem;
  color: #343a40;
  border-bottom: 2px solid #0d6efd;
  padding-bottom: 0.4rem;
}

/* Tablas */
.tabla-validacion {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
  background-color: #fafafa;
}

.tabla-validacion th {
  background-color: #0d6efd;
  color: #fff;
  text-align: left;
  padding: 10px;
  font-weight: 600;
}

.tabla-validacion td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.tabla-validacion tr:hover {
  background-color: #eef3ff;
  transition: background 0.2s ease;
}

.tabla-validacion a {
  color: #0d6efd;
  text-decoration: none;
}
.tabla-validacion a:hover {
  text-decoration: underline;
}

/* Responsive: apilar columnas en móvil */
@media (max-width: 992px) {
  .panel-validaciones {
    flex-direction: column;
  }
  .panel-sesion {
    width: 100%;
    order: 2;
  }
  .panel-contenido {
    order: 1;
  }
}

/* ===============================
   ENLACES EN TABLAS DE VALIDACIÓN
================================ */
.tabla-validacion a {
  background: #e9f0ff;
  color: #0d6efd;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
}
.tabla-validacion a:hover {
  background: #0d6efd;
  color: white;
}

/* Para coherencia en otros enlaces dentro de la página */
a.logout,
.logout {
  text-decoration: none;
  transition: all 0.2s ease;
}

.logout:hover {
  transform: translateY(-2px);
}

.article-link {
    color: #2980b9;          /* azul intenso */
    text-decoration: none;    /* quitar subrayado por defecto */
    font-weight: 400;         /* un poco más grueso */
    transition: color 0.3s;  /* efecto suave al hover */
}

.article-link:hover {
    color: #1c5980;           /* azul más oscuro al pasar el mouse */
    text-decoration: underline;
}

/* Tarjetas de podcasts */
.podcast-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
}

.podcast-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.podcast-card img {
  object-fit: cover;
  height: 200px;
}

.podcast-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
}

.podcast-card .btn {
  background-color: #0d6efd;
  border: none;
  transition: background-color 0.3s ease;
}

.podcast-card .btn:hover {
  background-color: #0b5ed7;
}

.btn-outline-primary {
  color: #0d6efd !important;         /* texto azul */
  border-color: #0d6efd !important;  /* borde azul */
  background-color: rgba(52, 54, 58, 0.05); /* un ligero gris de fondo */
}

.btn-outline-primary:hover {
  color: #fff !important;
  background-color: #0d6efd !important;
  border-color: #0b5ed7 !important;
}