/*
Theme Name: Nativo Digital
Theme URI: https://www.nativodigital.com.ar/
Author: Daniel Garay Fleck
Author URI: https://sdanielgf.ar/
Description: Tema de blog editorial para Nativo Digital, inspirado en la lectura limpia de Medium. Portada con selección del editor, tendencias y listado reciente; entradas con barra para compartir, autor, relacionadas y comentarios; categorías, archivos, autor, búsqueda, 404 y página de contacto. Incluye modo oscuro, color de acento y redes sociales configurables. Basado en la plantilla HTML Merinda (AliThemes).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nativo-digital
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, accessibility-ready, grid-layout

Nativo Digital, Copyright 2026 Daniel Garay Fleck.
Basado en Merinda (c) AliThemes, GPL v2 o posterior.
Bootstrap 5.3.5 (MIT), Fontello (iconos), Cabin / Lora / B612 Mono (SIL OFL), jQuery ScrollToFixed y Theia Sticky Sidebar (MIT).
*/

/* ---------------------------------------------------------------------------
   Ajustes específicos de WordPress sobre el diseño base (assets/css/*.css)
   --------------------------------------------------------------------------- */

/* Accesibilidad */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .3);
	clip: auto !important;
	clip-path: none;
	color: #1a1a1a;
	display: block;
	font-size: .9rem;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 12px 20px;
	text-decoration: none;
	top: 7px;
	width: auto;
	z-index: 100000;
}

/* Barra de administración de WordPress */
body.admin-bar .sticky-header { top: 32px; }
body.admin-bar .top-scroll-bar { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .sticky-header,
	body.admin-bar .top-scroll-bar { top: 46px; }
}
@media screen and (max-width: 600px) {
	#wpadminbar { position: absolute !important; }
	body.admin-bar .sticky-header,
	body.admin-bar .top-scroll-bar { top: 0; }
}

/* Logo personalizado */
.logo .custom-logo-link { display: inline-block; line-height: 1; }
.logo .custom-logo { display: block; max-height: 48px; width: auto; height: auto; }
.logo-small .custom-logo { max-height: 30px; }

/* Imágenes y alineaciones del editor */
img { max-width: 100%; height: auto; }
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption, .wp-block-image figure { max-width: 100%; }
.wp-caption-text, .wp-element-caption, figcaption {
	font-family: 'Cabin', sans-serif;
	font-size: .85rem;
	color: rgba(0, 0, 0, .54);
	text-align: center;
	margin-top: .5rem;
}
.entry-main-content img { height: auto; }
.entry-main-content .wp-block-image,
.entry-main-content figure { margin-bottom: 1.5rem; }
.sticky .capsSubtle { font-weight: 700; }
.gallery { display: grid; gap: 10px; margin-bottom: 1.5rem; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { margin: 0; }
.bypostauthor { }

/* Imágenes de miniatura */
figure img { width: 100%; height: auto; display: block; }
.nd-list-thumb { display: block; min-height: 140px; }
@media (min-width: 768px) { .nd-list-thumb { min-height: 0; } }
.nd-no-thumb { background: #f1f1f1; }

/* Paginación y enlaces de página */
.nd-pagination { margin-bottom: 2rem; }
.page-links { font-family: 'Cabin', sans-serif; }
.page-links a, .page-links > span { margin: 0 .25rem; }
.page-numbers .screen-reader-text { position: absolute; }

/* Comentarios */
.comment-list .comment p { margin-bottom: .75rem; }
.comment-list .date a { color: inherit; }
.comment-list .edit-link { margin-left: .5rem; font-size: .85rem; }
.comment-list .reply-btn .comment-reply-link { display: inline-block; }
.comment-respond .comment-reply-title small { margin-left: 1rem; font-size: .8rem; }
.comment-form-cookies-consent { font-size: .85rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea { width: 100%; }
.no-comments { font-style: italic; }

/* Contacto */
.nd-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.nd-notice { padding: .8rem 1rem; border-radius: 3px; margin-bottom: 1.2rem; font-family: 'Cabin', sans-serif; }
.nd-notice--ok { background: #e8f6f1; border: 1px solid var(--nd-accent, #03a87c); }
.nd-notice--error { background: #fdeceb; border: 1px solid #d9534f; }
.page-contact .form-contact input[type="text"],
.page-contact .form-contact input[type="email"],
.page-contact .form-contact textarea { width: 100%; }

/* Widgets de WordPress dentro de la barra lateral */
.sidebar-widget ul { padding-left: 1.2rem; }
.sidebar-widget ul li { margin-bottom: .4rem; }
.sidebar-widget.latest-tpl-4 ol { padding-left: 0; }
.sidebar-widget select { max-width: 100%; }

/* Compartir: el icono X hereda el color */
.social-sticky .nd-icon-x { width: 14px; height: 14px; margin-top: 0; }
.social-network .nd-icon-x { fill: currentColor; }

/* Modo oscuro: los elementos agregados por el tema */
body.dark-mode .nd-notice--ok { background: #12332a; }
body.dark-mode .nd-notice--error { background: #3a1a19; }
body.dark-mode .nd-no-thumb { background: #2a2a2a; }
body.dark-mode .wp-caption-text,
body.dark-mode .wp-element-caption,
body.dark-mode figcaption { color: rgba(255, 255, 255, .6); }

/* Casilla de cookies del formulario de comentarios */
.comment-form .comment-form-cookies-consent input[type="checkbox"] { width: auto; display: inline-block; vertical-align: middle; }
