/*
Theme Name: Sin filtros
Theme URI: https://fjcamacho.online/
Author: Francisco José Camacho
Author URI: https://fjcamacho.online/
Description: Tema minimalista, sobrio y profesional para el blog personal Sin filtros. Cabecera ancha con logo, navegación limpia y enlaces a X, libro y Amazon fácilmente editables desde el Personalizador.
Version: 1.1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sin-filtros
Tags: blog, minimal, personal, clean, black-and-white
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.7;
	color: #111111;
	background-color: #ffffff;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #111111;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a:hover {
	color: #555555;
}

ul, ol {
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.3;
	color: #111111;
	margin-bottom: 0.75em;
}

p {
	margin-bottom: 1.25em;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ============================================================
   HEADER – Cabecera ancha
   ============================================================ */
.site-header {
	background: #ffffff;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Branding / Logo zone – wide header */
.header-branding {
	padding: 1.5rem 0 1rem;
	border-bottom: 1px solid #eee;
	text-align: center;
	background: #ffffff;
}

.branding-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
}

.site-logo-link {
	display: inline-block;
	line-height: 0;
}

.site-logo {
	height: 96px;
	width: auto;
	max-width: 440px;
	display: block;
}

.site-tagline {
	font-size: 0.9rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #666666;
	font-weight: 500;
	margin: 0;
	padding-top: 0.15rem;
}

/* Navigation bar */
.header-nav-bar {
	background: #ffffff;
	border-bottom: 1px solid #e5e5e5;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.85rem 1.5rem;
	min-height: 52px;
}

.main-navigation ul {
	display: flex;
	gap: 1.75rem;
	align-items: center;
}

.main-navigation a {
	font-size: 0.95rem;
	font-weight: 500;
	color: #333333;
	letter-spacing: 0.01em;
	position: relative;
	padding: 0.35rem 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
	color: #111111;
}

.main-navigation a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1.5px;
	background: #111111;
	transition: width 0.25s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
	width: 100%;
}

/* Header links (X, libro, Amazon, Suscríbete) */
.header-links {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-shrink: 0;
}

.header-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: #333333;
	padding: 0.35rem 0.55rem;
	border-radius: 4px;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

.header-link:hover {
	color: #111111;
	background: #f4f4f4;
	border-color: #e0e0e0;
}

.header-link .book-thumb {
	width: 22px;
	height: auto;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.header-link .link-label {
	display: inline;
}

/* Suscríbete – destacado */
.header-link-subscribe {
	background: #111111;
	color: #ffffff !important;
	border-color: #111111;
	padding: 0.4rem 0.85rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-size: 0.8rem;
}

.header-link-subscribe:hover {
	background: #333333;
	border-color: #333333;
	color: #ffffff !important;
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid #dddddd;
	padding: 0.4rem 0.75rem;
	font-size: 0.9rem;
	cursor: pointer;
	color: #333333;
	border-radius: 3px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.92rem;
	font-weight: 500;
	padding: 0.65rem 1.15rem;
	border-radius: 4px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1.3;
}

.btn-primary {
	background: #111111;
	color: #ffffff;
	border-color: #111111;
}

.btn-primary:hover {
	background: #333333;
	border-color: #333333;
	color: #ffffff;
}

.btn-outline {
	background: transparent;
	color: #222222;
	border-color: #cccccc;
}

.btn-outline:hover {
	background: #f5f5f5;
	border-color: #999999;
	color: #111111;
}

.btn-book-cover {
	width: 20px;
	height: auto;
	border-radius: 1px;
}

/* ============================================================
   FRONT PAGE - INICIO
   ============================================================ */
.hero {
	padding: 3.5rem 0 3rem;
	border-bottom: 1px solid #e5e5e5;
	background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.hero-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 3rem;
	align-items: center;
	max-width: 900px;
	margin: 0 auto;
}

.hero-image {
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.hero-image img {
	width: 100%;
	filter: grayscale(100%);
	transition: filter 0.3s ease;
}

.hero-image:hover img {
	filter: grayscale(40%);
}

.hero-title {
	font-size: clamp(2rem, 4.5vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	margin-bottom: 0.35rem;
	text-transform: uppercase;
}

.hero-subtitle {
	font-size: 1.05rem;
	color: #666666;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.hero-lead {
	font-size: 1.15rem;
	color: #333333;
	margin-bottom: 1.75rem;
	line-height: 1.5;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Manifesto */
.manifesto {
	padding: 3.5rem 0 4.5rem;
	max-width: 720px;
	margin: 0 auto;
}

.manifesto p {
	font-size: 1.05rem;
	color: #222222;
}

.manifesto p:last-child {
	margin-bottom: 0;
}

.manifesto strong {
	font-weight: 600;
}

/* ============================================================
   BIOGRAPHY PAGE
   ============================================================ */
.bio-page {
	padding: 0 0 4rem;
}

.bio-inner {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 3rem;
	align-items: start;
	max-width: 920px;
	margin: 0 auto;
}

.bio-photo {
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.bio-photo img {
	width: 100%;
	filter: grayscale(100%);
}

.bio-content h2 {
	font-size: 1.5rem;
	margin-bottom: 1.25rem;
	letter-spacing: -0.02em;
}

.bio-content p {
	font-size: 0.98rem;
	color: #333333;
}

.bio-content a {
	color: #111111;
	border-bottom: 1px solid #999999;
	padding-bottom: 1px;
}

.bio-content a:hover {
	border-bottom-color: #111111;
	color: #000000;
}

.bio-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #eeeeee;
}

/* ============================================================
   BLOG / INDEX
   ============================================================ */
.page-header {
	padding: 2.75rem 0 1.75rem;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 2.5rem;
}

.page-header h1 {
	font-size: 1.85rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 0.35rem;
}

.page-intro {
	color: #666666;
	font-size: 1.05rem;
	margin: 0;
}

.posts-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.post-item {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 1.75rem;
	padding: 2rem 0;
	border-bottom: 1px solid #eeeeee;
	align-items: start;
}

.post-item:last-child {
	border-bottom: none;
}

.post-item:not(:has(.post-thumb)) {
	grid-template-columns: 1fr;
}

.post-thumb {
	display: block;
	border-radius: 5px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f0f0f0;
}

.post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(30%);
	transition: filter 0.25s ease, transform 0.3s ease;
}

.post-thumb:hover img {
	filter: grayscale(0%);
	transform: scale(1.03);
}

.post-body h2 {
	font-size: 1.3rem;
	margin-bottom: 0.4rem;
	line-height: 1.35;
}

.post-body h2 a {
	color: #111111;
}

.post-body h2 a:hover {
	color: #555555;
}

.post-meta {
	font-size: 0.85rem;
	color: #777777;
	margin-bottom: 0.5rem;
}

.post-cat {
	color: #555555;
	font-weight: 500;
}

.post-excerpt {
	color: #444444;
	font-size: 0.97rem;
	margin-bottom: 0.7rem;
}

.post-excerpt p {
	margin-bottom: 0;
}

.read-more {
	font-size: 0.9rem;
	font-weight: 500;
	color: #333333;
	border-bottom: 1px solid #cccccc;
	padding-bottom: 1px;
}

.read-more:hover {
	border-bottom-color: #111111;
	color: #111111;
}

.no-posts {
	text-align: center;
	padding: 3rem 1rem;
	color: #666666;
}

/* Pagination */
.navigation.pagination {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #eeeeee;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.6rem;
	font-size: 0.9rem;
	border: 1px solid #dddddd;
	border-radius: 3px;
	color: #333333;
}

.page-numbers.current,
.page-numbers:hover {
	background: #111111;
	border-color: #111111;
	color: #ffffff;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post {
	max-width: 720px;
	margin: 0 auto;
	padding: 3rem 0 4rem;
}

.single-post .post-header {
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5e5e5;
}

.single-post h1 {
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	margin-bottom: 0.75rem;
}

.single-post .post-meta {
	margin-bottom: 0;
}

.single-post .post-content {
	font-size: 1.05rem;
}

.single-post .post-content p {
	margin-bottom: 1.4em;
}

.single-post .post-content h2,
.single-post .post-content h3 {
	margin-top: 2em;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
	max-width: 640px;
	margin: 0 auto;
	padding: 3rem 0 4rem;
}

.contact-section h1 {
	font-size: 1.8rem;
	margin-bottom: 0.5rem;
}

.contact-intro {
	color: #555555;
	margin-bottom: 2.5rem;
}

.contact-form label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 0.35rem;
	color: #333333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #dddddd;
	border-radius: 3px;
	font-size: 1rem;
	font-family: inherit;
	color: #111111;
	background: #ffffff;
	margin-bottom: 1.25rem;
	transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: #888888;
}

.contact-form textarea {
	min-height: 160px;
	resize: vertical;
}

.contact-form button {
	display: inline-block;
	background: #111111;
	color: #ffffff;
	border: none;
	padding: 0.85rem 2rem;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	border-radius: 3px;
	transition: background 0.2s ease;
}

.contact-form button:hover {
	background: #333333;
}

.form-message {
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border-radius: 3px;
	font-size: 0.95rem;
}

.form-message.success {
	background: #f0f0f0;
	border: 1px solid #cccccc;
	color: #222222;
}

.form-message.error {
	background: #fafafa;
	border: 1px solid #cc0000;
	color: #990000;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	border-top: 1px solid #e5e5e5;
	padding: 2.5rem 0;
	margin-top: 3rem;
	text-align: center;
	font-size: 0.85rem;
	color: #777777;
	background: #fafafa;
}

.site-footer a {
	color: #555555;
}

.site-footer a:hover {
	color: #111111;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.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;
	width: 1px;
	word-wrap: normal !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
	.hero-grid {
		grid-template-columns: 220px 1fr;
		gap: 2rem;
	}

	.site-logo {
		height: 80px;
		max-width: 360px;
	}
}

@media (max-width: 768px) {
	.header-branding {
		padding: 1.15rem 0 0.85rem;
	}

	.site-logo {
		height: 68px;
		max-width: 300px;
	}

	.site-tagline {
		font-size: 0.78rem;
		letter-spacing: 0.12em;
	}

	.nav-inner {
		flex-wrap: wrap;
		padding: 0.75rem 1.25rem;
	}

	.menu-toggle {
		display: block;
		order: 1;
	}

	.header-links {
		order: 2;
		margin-left: auto;
	}

	.header-links .link-label {
		display: none;
	}

	.header-links .header-link-subscribe .link-label {
		display: inline;
	}

	.main-navigation {
		display: none;
		width: 100%;
		order: 3;
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0.5rem;
		padding: 0.75rem 0 0.25rem;
		align-items: flex-start;
	}

	.hero-grid {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 1.75rem;
	}

	.hero-image {
		max-width: 240px;
		margin: 0 auto;
	}

	.hero-actions {
		justify-content: center;
	}

	.bio-inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.bio-photo {
		max-width: 240px;
		margin: 0 auto;
	}

	.bio-links {
		justify-content: center;
	}

	.post-item {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.post-thumb {
		max-width: 100%;
	}

	.manifesto,
	.bio-page {
		padding-top: 2rem;
		padding-bottom: 3rem;
	}
}

@media (max-width: 480px) {
	.site-logo {
		height: 56px;
		max-width: 240px;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.btn {
		justify-content: center;
	}

	.header-links {
		gap: 0.4rem;
	}

	.header-link {
		padding: 0.3rem 0.4rem;
	}
}
