/*
Theme Name: HiperDiario News
Theme URI: https://hiperdiario.com.mx
Author: Reno
Author URI: https://hiperdiario.com.mx
Description: Tema WordPress personalizado para HiperDiario, el portal de noticias de Durango, México. Optimizado para SEO, velocidad y experiencia editorial crítica.
Version: 1.0
Requires at least: 6.7
Requires PHP: 7.4
Tested up to: 7.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Template: newsup
Text Domain: hiperdiario
Domain Path: /languages
Tags: blog, news, magazine, durango, mexico, responsive, seo-friendly, custom-header, custom-colors, custom-logo, one-column, two-columns, three-columns, flexible-header

HiperDiario WordPress Theme - Child theme of Newsup
Copyright 2026 Reno
HiperDiario is distributed under the terms of the GNU General Public License v3

Based on NewsGo by Themeansar
Based on Underscores https://underscores.me/
*/

/* ===== ROOT VARIABLES ===== */
:root {
	/* Fonts */
	--serif-font: 'Merriweather', serif;
	--headlines-font: 'Lora', serif;
	--body-font: 'Open Sans', sans-serif;
	
	/* Colors - HiperDiario Palette */
	--primary-color: #1a1a1a;        /* Negro profundo */
	--secondary-color: #c41e3a;      /* Rojo Durango */
	--accent-color: #f39c12;         /* Naranja cálido */
	--neutral-light: #f8f9fa;        /* Gris muy claro */
	--neutral-medium: #e9ecef;       /* Gris medio */
	--neutral-dark: #495057;         /* Gris oscuro */
	
	/* Text colors */
	--text-primary: #1a1a1a;
	--text-secondary: #495057;
	--text-light: #6c757d;
	
	/* Background */
	--bg-main: #ffffff;
	--bg-secondary: #f8f9fa;
	
	/* Borders */
	--border-color: #dee2e6;
	--border-light: #e9ecef;
}


/* ===== GLOBAL STYLES ===== */
body {
	color: var(--text-primary);
	background-color: var(--bg-main);
	font-family: var(--body-font);
	font-size: 16px;
	line-height: 1.6;
}

p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-primary);
	margin-bottom: 1.5rem;
}

a {
	color: var(--secondary-color);
	text-decoration: none;
	transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
	color: var(--accent-color);
	text-decoration: underline;
}

a:focus {
	outline: 2px solid var(--secondary-color);
	outline-offset: 2px;
}


/* ===== TYPOGRAPHY ===== */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
	font-family: var(--headlines-font);
	font-weight: 700;
	color: var(--primary-color);
	line-height: 1.2;
	margin-bottom: 1rem;
	margin-top: 1rem;
}

h1, .h1 {
	font-size: 32px;
}

h2, .h2 {
	font-size: 28px;
}

h3, .h3 {
	font-size: 24px;
}

h4, .h4 {
	font-size: 20px;
}

h5, .h5 {
	font-size: 18px;
}

h6, .h6 {
	font-size: 16px;
}

hr {
	border: none;
	border-top: 1px solid var(--border-light);
	margin: 2rem 0;
}

strong, .font-weight-bold {
	font-weight: 700;
}

em, .font-italic {
	font-style: italic;
}

blockquote {
	border-left: 4px solid var(--secondary-color);
	padding: 1rem 0 1rem 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	color: var(--text-secondary);
	background-color: var(--bg-secondary);
}


/* ===== HEADER / NAVIGATION ===== */
.mg-headwidget {
	background-color: var(--bg-main);
	border-bottom: 1px solid var(--border-light);
	padding: 1rem 0;
}

.mg-headwidget,
.mg-nav-widget-area-back {
	background-color: var(--bg-main);
}

.mg-nav-widget-area {
	background-color: transparent;
}

.mg-nav-widget-area-back .overlay {
	background-color: transparent;
}

.mg-nav-widget-area-back .overlay .inner {
	background-color: var(--bg-main) !important;
}

/* Logo */
.site-logo {
	max-width: 150px;
	height: auto;
}

.hiperdiario-logo {
	width: 100%;
	height: auto;
	display: block;
}

/* Site title and description */
.site-branding-text {
	margin-top: 0.5rem;
}

.site-title {
	font-family: var(--headlines-font);
	font-size: 24px;
	font-weight: 700;
	color: var(--primary-color);
	margin: 0;
	padding: 0;
}

.site-title a {
	color: var(--primary-color);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--secondary-color);
}

.site-description {
	font-size: 12px;
	color: var(--text-light);
	font-style: italic;
	margin: 0.5rem 0 0 0;
}

/* Navigation menu */
.mg-menu-full {
	background-color: var(--bg-main);
	border-top: 1px solid var(--border-light);
}

.navbar-wp {
	border: none;
}

.navbar-nav > li > a {
	color: var(--text-primary);
	font-family: var(--headlines-font);
	font-size: 16px;
	font-weight: 500;
	padding: 12px 16px;
	text-transform: capitalize;
	transition: color 0.3s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
	color: var(--secondary-color);
	background-color: transparent;
	outline: none;
}

.navbar-nav > li.active > a {
	color: var(--secondary-color);
	border-bottom: 3px solid var(--secondary-color);
}

/* Mobile menu */
.m-header {
	display: none;
}

@media (max-width: 991px) {
	.m-header {
		display: flex;
		background-color: var(--bg-main);
		border-bottom: 1px solid var(--border-light);
		padding: 0.5rem 1rem;
		align-items: center;
	}
	
	.mobilehomebtn {
		font-size: 20px;
		color: var(--primary-color);
	}
	
	.navbar-toggler {
		border: none;
		padding: 0;
	}
	
	.burger {
		display: block;
	}
	
	.burger-line {
		display: block;
		width: 24px;
		height: 2px;
		background-color: var(--primary-color);
		margin: 4px 0;
	}
}


/* ===== CONTENT AREA ===== */
.container, .container-fluid {
	max-width: 1200px;
}

.content-area {
	padding: 2rem 1rem;
}

.site-content {
	margin-bottom: 2rem;
}


/* ===== POSTS & ARTICLES ===== */
.mg-blog-post,
.post-wrapper,
.article-card {
	background-color: var(--bg-main);
	border: 1px solid var(--border-light);
	border-radius: 3px;
	margin-bottom: 2rem;
	padding: 1.5rem;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.mg-blog-post:hover,
.post-wrapper:hover,
.article-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-color: var(--secondary-color);
}

.post-thumbnail,
.featured-image {
	width: 100%;
	height: auto;
	max-height: 400px;
	object-fit: cover;
	display: block;
	margin-bottom: 1.5rem;
	border-radius: 3px;
}

.entry-title,
.post-title {
	font-family: var(--headlines-font);
	font-size: 24px;
	font-weight: 700;
	color: var(--primary-color);
	margin: 0 0 1rem 0;
	border-left: 4px solid var(--secondary-color);
	padding-left: 12px;
	line-height: 1.3;
}

.entry-title a,
.post-title a {
	color: var(--primary-color);
	text-decoration: none;
}

.entry-title a:hover,
.post-title a:hover {
	color: var(--secondary-color);
}

/* Post metadata */
.entry-meta,
.post-meta {
	font-size: 12px;
	color: var(--text-light);
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--border-light);
	padding-bottom: 0.5rem;
}

.post-author,
.post-date,
.post-category,
.post-comments-link {
	display: inline-block;
	margin-right: 12px;
}

.post-author a,
.post-date a,
.post-category a {
	color: var(--text-light);
	text-decoration: none;
}

.post-author a:hover,
.post-date a:hover,
.post-category a:hover {
	color: var(--secondary-color);
}

/* Categories and tags */
.cat-tag,
.category-badge,
.post-category,
.cat-links a {
	display: inline-block;
	background-color: var(--secondary-color);
	color: white;
	padding: 4px 12px;
	margin-right: 6px;
	margin-bottom: 6px;
	border-radius: 3px;
	font-size: 12px;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.cat-tag:hover,
.category-badge:hover,
.post-category:hover,
.cat-links a:hover {
	background-color: var(--primary-color);
}

/* Excerpt */
.entry-summary,
.post-excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-secondary);
	margin: 1rem 0;
}

/* Read more link */
.read-more-btn,
.more-link {
	display: inline-block;
	color: var(--secondary-color);
	font-weight: 600;
	padding: 8px 0;
	border-bottom: 2px solid var(--secondary-color);
	text-decoration: none;
	transition: border-color 0.3s ease, color 0.3s ease;
}

.read-more-btn:hover,
.more-link:hover {
	color: var(--accent-color);
	border-bottom-color: var(--accent-color);
}


/* ===== SIDEBAR ===== */
.mg-sidebar {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-light);
}

.mg-widget {
	background-color: var(--bg-main);
	border: 1px solid var(--border-light);
	border-radius: 3px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mg-wid-title,
.wtitle {
	font-family: var(--headlines-font);
	font-size: 16px;
	font-weight: 700;
	color: var(--primary-color);
	margin: 0 0 1rem 0;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--secondary-color);
}

.widget ul {
	list-style: none;
	padding: 0;
}

.widget ul li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border-light);
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: var(--text-secondary);
	text-decoration: none;
}

.widget ul li a:hover {
	color: var(--secondary-color);
}


/* ===== FOOTER ===== */
footer {
	background-color: var(--primary-color);
	color: white;
	padding: 3rem 1rem 1rem;
	margin-top: 3rem;
	border-top: 1px solid var(--border-light);
}

footer .site-title-footer {
	color: white;
	font-size: 18px;
	margin-bottom: 1rem;
}

footer a {
	color: var(--accent-color);
}

footer a:hover {
	color: white;
}

footer .mg-widget {
	background-color: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

footer .wtitle {
	color: white;
	border-bottom-color: var(--accent-color);
}

footer .widget ul li a {
	color: rgba(255, 255, 255, 0.8);
}

footer .widget ul li a:hover {
	color: var(--accent-color);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
}


/* ===== BUTTONS ===== */
.btn,
button,
input[type="button"],
input[type="submit"] {
	background-color: var(--secondary-color);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 3px;
	font-family: var(--body-font);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
	background-color: var(--primary-color);
}

.btn-primary,
.btn-main {
	background-color: var(--secondary-color);
}

.btn-primary:hover,
.btn-main:hover {
	background-color: var(--primary-color);
}

.btn-secondary,
.btn-outline {
	background-color: transparent;
	color: var(--secondary-color);
	border: 1px solid var(--secondary-color);
}

.btn-secondary:hover,
.btn-outline:hover {
	background-color: var(--secondary-color);
	color: white;
}


/* ===== FORMS ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border-color);
	border-radius: 3px;
	font-family: var(--body-font);
	font-size: 14px;
	color: var(--text-primary);
	transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--secondary-color);
	box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--text-primary);
}

.form-group {
	margin-bottom: 1.5rem;
}


/* ===== SEARCH ===== */
.search-form {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid var(--border-color);
	border-radius: 3px 0 0 3px;
}

.search-form button {
	padding: 10px 20px;
	background-color: var(--secondary-color);
	color: white;
	border: none;
	border-radius: 0 3px 3px 0;
	cursor: pointer;
	font-weight: 600;
}

.search-form button:hover {
	background-color: var(--primary-color);
}

/* Search results */
.no-results,
.not-found {
	text-align: center;
	padding: 3rem 1rem;
}

.no-results h2,
.not-found h2 {
	font-size: 24px;
	color: var(--text-primary);
}


/* ===== COMMENTS ===== */
.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-light);
}

.comments-title,
.comment-form-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 1.5rem;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.comment {
	margin-bottom: 1.5rem;
	padding: 1rem;
	background-color: var(--bg-secondary);
	border-radius: 3px;
}

.comment-author {
	font-weight: 700;
	color: var(--primary-color);
}

.comment-content {
	margin-top: 0.5rem;
	color: var(--text-secondary);
}

.comment-form {
	margin-top: 2rem;
}


/* ===== RESPONSIVE IMAGES ===== */
img {
	max-width: 100%;
	height: auto;
	display: block;
}

.wp-caption {
	text-align: center;
	margin: 1rem 0;
}

.wp-caption-text {
	font-size: 12px;
	color: var(--text-light);
	margin-top: 0.5rem;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin: 1rem 0;
}

.gallery-item img {
	width: 100%;
	height: auto;
}


/* ===== PAGINATION ===== */
.pagination,
.pager {
	margin: 2rem 0;
	text-align: center;
}

.pagination a,
.pagination span,
.pager a,
.pager span {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 2px;
	border: 1px solid var(--border-light);
	border-radius: 3px;
	color: var(--text-primary);
	text-decoration: none;
	transition: all 0.3s ease;
}

.pagination a:hover,
.pager a:hover {
	background-color: var(--secondary-color);
	color: white;
	border-color: var(--secondary-color);
}

.pagination .current,
.pager .current {
	background-color: var(--secondary-color);
	color: white;
	border-color: var(--secondary-color);
}


/* ===== BREADCRUMBS ===== */
.breadcrumb {
	background-color: transparent;
	padding: 0;
	margin-bottom: 1rem;
	border: none;
}

.breadcrumb a {
	color: var(--secondary-color);
}

.breadcrumb .separator {
	color: var(--text-light);
	margin: 0 0.5rem;
}


/* ===== ACCESSIBILITY ===== */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto !important;
	height: auto;
	width: auto;
	overflow: visible;
	z-index: 10000;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--secondary-color);
	outline-offset: 2px;
}


/* ===== UTILITY CLASSES ===== */
.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }


/* ===== MOBILE-FIRST RESPONSIVE ===== */
@media (max-width: 768px) {
	
	.container, .container-fluid {
		padding-left: 12px;
		padding-right: 12px;
	}
	
	.content-area {
		padding: 1rem 0;
	}
	
	h1, .h1 {
		font-size: 24px;
	}
	
	h2, .h2 {
		font-size: 20px;
	}
	
	h3, .h3 {
		font-size: 18px;
	}
	
	.site-title {
		font-size: 18px;
	}
	
	.entry-title,
	.post-title {
		font-size: 18px;
	}
	
	p {
		font-size: 15px;
	}
	
	.mg-headwidget {
		padding: 0.75rem 0;
	}
	
	.mg-sidebar {
		margin-top: 1.5rem;
		padding-top: 1.5rem;
	}
	
	footer {
		padding: 2rem 1rem 1rem;
	}
	
}

@media (max-width: 480px) {
	
	h1, .h1 {
		font-size: 20px;
	}
	
	h2, .h2 {
		font-size: 18px;
	}
	
	h3, .h3 {
		font-size: 16px;
	}
	
	.site-title {
		font-size: 16px;
	}
	
	.entry-title,
	.post-title {
		font-size: 16px;
		padding-left: 8px;
		border-left-width: 3px;
	}
	
	p {
		font-size: 14px;
	}
	
	.search-form {
		flex-direction: column;
	}
	
	.search-form input[type="search"] {
		border-radius: 3px;
	}
	
	.search-form button {
		border-radius: 3px;
	}
	
}
