/*
Theme Name: Enlace
Theme URI: https://example.com/enlace
Author: Enlace Medios
Author URI: https://example.com
Description: Tema de WordPress para periódico digital. Diseño editorial moderno, limpio y responsive, con portada de noticias, secciones por categoría, barra de última hora y newsletter. Tipografía Inter.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enlace
Tags: news, blog, magazine, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, translation-ready, sticky-post, full-width-template
*/

/*
  Las reglas de estilo del tema viven en styles.css (se carga mediante wp_enqueue_style
  en functions.php). Este archivo solo contiene la cabecera obligatoria del tema y
  algunos ajustes específicos de WordPress.
*/

/* ---------- Ajustes específicos de WordPress ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100000;
  width: auto; height: auto;
  padding: 10px 16px;
  clip: auto;
  background: #fff;
  color: var(--accent);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  font-weight: 700;
}

/* Imágenes alineadas y captions del editor de bloques / clásico */
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-block-image figcaption {
  font-size: .82rem;
  color: var(--ink-3);
  margin-top: 6px;
  text-align: center;
}
.sticky .card__title::after { content: " ★"; color: var(--accent); }

/* Paginación */
.pagination {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 32px;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: .9rem;
  color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; }

/* Widgets del área lateral (usan el mismo estilo que .panel) */
.widget + .widget { margin-top: 0; }
.widget .widget-title {
  font-size: 1.05rem; font-weight: 900; letter-spacing: -0.01em;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.widget ul { display: flex; flex-direction: column; }
.widget ul li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: .92rem; font-weight: 600;
}
.widget ul li:first-child { border-top: 0; }
.widget ul li a:hover { color: var(--accent); }
.widget select { width: 100%; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
