/*
Theme Name: Talutil Theme
Theme URI: https://talutil.com
Author: Diego
Author URI: https://talutil.com
Description: Tema hijo de Twenty Twenty-Five. Diseño editorial full-width estilo claude.com/blog. Kit de marca Talutil: naranja #F4772D, ámbar #FFB30F, crema #FFF3EB. Compatible con el Editor de Sitios (FSE) — edita colores, tipografía y layouts desde Apariencia → Editor.
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: talutil
Tags: blog, full-site-editing, block-patterns, custom-colors, custom-logo, wide-blocks, style-variations
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
*/

/* =============================================
   VARIABLES DEL KIT TALUTIL
   Aplicadas sobre las variables de Twenty Twenty-Five
============================================= */
:root {
	/* Paleta de marca */
	--wp--preset--color--accent-1: #F4772D; /* naranja principal */
	--wp--preset--color--accent-2: #FFB30F; /* ámbar acento */
	--wp--preset--color--accent-3: #FFF3EB; /* crema fondo */
	--wp--preset--color--accent-4: #6b6b6b; /* gris texto secundario */
	--wp--preset--color--accent-5: #fafafa; /* fondo alt */
	--wp--preset--color--base:     #ffffff;
	--wp--preset--color--contrast: #0f0f0f;

	/* Tipografía cargada desde Google Fonts (via functions.php) */
	--wp--preset--font-family--body-font:    'Mona Sans', 'Sora', system-ui, sans-serif;
	--wp--preset--font-family--heading-font: 'Instrument Serif', Georgia, serif;
	--wp--preset--font-family--mono-font:    'JetBrains Mono', monospace;
}

/* =============================================
   ESTILOS GLOBALES DE MARCA
   Todo lo que el theme.json no cubre directamente
============================================= */

/* Barra de progreso de lectura */
.talutil-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px; width: 0%;
	background: linear-gradient(90deg, #F4772D, #FFB30F);
	z-index: 9999;
	transition: width 80ms linear;
	border-radius: 0 2px 2px 0;
}

/* ── Header: dark sticky ── */
.wp-block-template-part .wp-block-group.talutil-header,
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 200;
	background-color: #111111 !important;
	border-bottom: 1px solid rgba(255,255,255,0.07);
	backdrop-filter: blur(12px);
}

/* Nav links en el header oscuro */
.wp-block-navigation a {
	color: rgba(255,255,255,0.7) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}
.wp-block-navigation a:hover {
	color: #ffffff !important;
}
.wp-block-site-title a {
	color: #ffffff !important;
	text-decoration: none !important;
	font-weight: 600;
	letter-spacing: -0.02em;
}

/* ── Lista de posts (blog): fila horizontal fecha + título + flecha ── */
.wp-block-post-template.talutil-post-list {
	display: flex;
	flex-direction: column;
	list-style: none;
	padding: 0;
	margin: 0;
}

.wp-block-post-template.talutil-post-list li {
	display: grid;
	grid-template-columns: 160px 1fr auto;
	align-items: baseline;
	gap: 1.5rem 2rem;
	padding: 1.25rem 0.75rem;
	border-bottom: 1px solid #ebebeb;
	transition: background 0.2s ease;
	border-radius: 6px;
	margin-inline: -0.75rem;
	text-decoration: none;
}
.wp-block-post-template.talutil-post-list li:first-child {
	border-top: 1px solid #ebebeb;
}
.wp-block-post-template.talutil-post-list li:hover {
	background: #FFF9F5;
}

.wp-block-post-template.talutil-post-list .wp-block-post-date {
	color: #888888;
	font-size: 0.875rem;
}

.wp-block-post-template.talutil-post-list .wp-block-post-title a {
	color: #0f0f0f;
	text-decoration: none;
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	transition: color 0.2s ease;
}
.wp-block-post-template.talutil-post-list li:hover .wp-block-post-title a {
	color: #F4772D;
}

/* ── Post Title (artículo individual): grande, serif ── */
.wp-block-post-title {
	font-family: var(--wp--preset--font-family--heading-font);
	font-size: clamp(2.25rem, 5vw, 3.5rem) !important;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

/* ── Post Date: color naranja ── */
.wp-block-post-date {
	color: #888888;
}

/* ── Post Terms / Categorías: badge naranja ── */
.wp-block-post-terms a {
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #F4772D !important;
	text-decoration: none !important;
}

/* ── Tags: pills redondeadas ── */
.is-style-post-terms-1 a {
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	font-weight: 500;
	color: #555555 !important;
	background: #fafafa;
	border: 1px solid #d4d4d4;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	text-decoration: none !important;
	transition: all 0.2s ease;
	margin: 0.2rem 0.2rem;
}
.is-style-post-terms-1 a:hover {
	background: #F4772D;
	border-color: #F4772D;
	color: #fff !important;
}

/* ── Blockquote: acento naranja ── */
.wp-block-quote {
	border-left: 3px solid #F4772D !important;
	background: #FFF3EB;
	padding: 1.25rem 1.75rem !important;
	border-radius: 0 12px 12px 0;
}
.wp-block-quote p {
	font-style: italic;
}

/* ── Botones: naranja ── */
.wp-block-button__link,
.wp-element-button {
	background-color: #F4772D !important;
	color: #ffffff !important;
	border-radius: 999px !important;
	font-weight: 600;
	transition: background 0.2s ease, transform 0.2s ease;
}
.wp-block-button__link:hover {
	background-color: #d4621e !important;
	transform: translateY(-1px);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: #F4772D !important;
	border-color: #F4772D !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #F4772D !important;
	color: #fff !important;
}

/* ── Separador ── */
.wp-block-separator {
	border-color: #ebebeb !important;
}

/* ── Code: fondo oscuro ── */
.wp-block-code {
	background: #111111 !important;
	color: #e4e4e7 !important;
	border-radius: 12px !important;
}

/* ── Tabla: cabecera naranja ── */
.wp-block-table thead {
	background: #111111;
	color: rgba(255,255,255,0.55);
}
.wp-block-table th {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ── Imagen featured: aspect ratio 21/9 en single ── */
.single .wp-block-post-featured-image img {
	aspect-ratio: 21/9;
	object-fit: cover;
	width: 100%;
	border-radius: 16px;
}

/* ── Cover / Hero blocks ── */
.wp-block-cover {
	border-radius: 20px;
	overflow: hidden;
}

/* ── Paginación ── */
.wp-block-query-pagination a {
	color: #F4772D !important;
	font-weight: 600;
	text-decoration: none !important;
}
.wp-block-query-pagination-numbers .page-numbers.current {
	background: #F4772D;
	color: #fff;
	padding: 0.25rem 0.75rem;
	border-radius: 6px;
}

/* ── Post navigation (anterior / siguiente) ── */
.wp-block-post-navigation-link a {
	color: #F4772D !important;
	text-decoration: none !important;
	font-weight: 600;
}
.wp-block-post-navigation-link a:hover {
	text-decoration: underline !important;
}

/* ── Footer oscuro ── */
.wp-block-template-part.talutil-footer,
footer.wp-block-template-part {
	background-color: #111111 !important;
	color: rgba(255,255,255,0.55);
}
footer.wp-block-template-part a {
	color: rgba(255,255,255,0.55) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}
footer.wp-block-template-part a:hover {
	color: #ffffff !important;
}
footer.wp-block-template-part .wp-block-site-title a,
footer.wp-block-template-part .wp-block-heading {
	color: #ffffff !important;
}

/* ── Search ── */
.wp-block-search__input {
	border-color: #d4d4d4 !important;
	border-radius: 999px !important;
	padding-inline: 1.25rem !important;
}
.wp-block-search__button {
	background: #F4772D !important;
	border-radius: 999px !important;
	border: none !important;
}

/* ── Comments ── */
.wp-block-post-comments-form input[type="submit"] {
	background: #F4772D !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 0.75rem 2rem !important;
	font-weight: 600;
	cursor: pointer;
}

/* ── Scroll suave ── */
html {
	scroll-behavior: smooth;
}

/* ── Back to top btn ── */
.talutil-back-top {
	position: fixed;
	bottom: 2rem; right: 2rem;
	width: 44px; height: 44px;
	background: #F4772D;
	color: #fff;
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1.125rem;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease;
	z-index: 99;
}
.talutil-back-top.visible {
	opacity: 1;
	pointer-events: auto;
}
.talutil-back-top:hover {
	transform: translateY(-3px);
	background: #d4621e;
}

/* ── Responsive ── */
@media (max-width: 640px) {
	.wp-block-post-template.talutil-post-list li {
		grid-template-columns: 1fr auto;
		grid-template-rows: auto auto;
		gap: 0.25rem 1rem;
	}
}
