/*
Theme Name: Chachos 2026
Theme URI: https://loschachoszaragoza.com
Author: Peña Los Chachos Zaragoza
Description: Tema de bloques (Full Site Editing) a medida para la Peña Los Chachos de Zaragoza, con varios modelos de presentación de entradas (completas, resumidas, grilla y lista) y barra lateral configurable. Moderno, divertido, predominantemente azul, con modo oscuro, sin plugins obligatorios, sin suscripciones ni versión de pago.
Version: 1.6.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chachos-2026
Tags: block-theme, full-site-editing, blog, one-column, custom-colors, dark-mode, accessibility-ready
*/

/* ==========================================================
   0. BASE AUTÓNOMA (funciona aunque WordPress no cargue los estilos globales)
   ========================================================== */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/fredoka-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/outfit-latin-wght-normal.woff2") format("woff2"); }
:root, body {
	--chachos-font-heading: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
	--chachos-font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wp--preset--color--base: #1e73be;
	--wp--preset--color--surface: #ffffff;
	--wp--preset--color--contrast: #111111;
	--wp--preset--color--primary: #0b4f9c;
	--wp--preset--color--primary-dark: #111111;
	--wp--preset--color--secondary: #38bdf8;
	--wp--preset--color--accent: #ffcc00;
	--wp--preset--color--nav: #dfdf20;
	--wp--preset--color--muted: #4b5563;
	--wp--preset--color--border: #000000;
	--wp--preset--color--on-primary: #ffffff;
	--wp--preset--color--ink: #0f1114;
}
body { margin: 0; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font-family: var(--chachos-font-body); font-size: 1.1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-post-title, .wp-block-site-title { font-family: var(--chachos-font-heading); font-weight: 600; line-height: 1.12; color: var(--wp--preset--color--primary-dark); }
a { color: var(--wp--preset--color--primary); }
img { max-width: 100%; height: auto; }
.wp-block-button__link { display: inline-block; background: #ffcc00; color: #000; border: 3px solid #000; border-radius: 14px; padding: .65rem 1.3rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.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; }
.is-layout-flex { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.is-layout-flex.is-nowrap { flex-wrap: nowrap; }
.is-layout-flex.is-vertical { flex-direction: column; align-items: flex-start; }
.is-content-justification-space-between { justify-content: space-between; }
.is-content-justification-center { justify-content: center; }
.is-content-justification-right { justify-content: flex-end; }
:where(.wp-block-post-template.is-layout-grid) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
/* Zonas de la página: centradas a 1200 px con margen lateral */
.chachos-topbar, .chachos-brand, .chachos-navbar, .chachos-related, .chachos-page-header, .chachos-footer__main, .chachos-main {
	padding-inline: max(1.25rem, calc((100% - 1200px) / 2)); box-sizing: border-box;
}
.chachos-topbar > .wp-block-group { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 1rem; }
.chachos-breaking { display: flex; flex-wrap: nowrap; align-items: center; gap: 1.1rem; }
.chachos-brand__row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.chachos-brand__id { display: flex; flex-wrap: nowrap; align-items: center; gap: 1.4rem; }
.chachos-navbar > .wp-block-group { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 1rem; }
.chachos-navbar > .wp-block-group > .wp-block-group { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; flex: 0 0 auto; }
.chachos-meta { display: flex; flex-wrap: wrap; align-items: center; }
.chachos-line { display: flex; flex-wrap: wrap; align-items: center; }
.chachos-footer__main > .wp-block-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.chachos-footer__main > .wp-block-group > .wp-block-group { display: flex; flex-wrap: nowrap; align-items: center; gap: 1rem; }
.wp-block-query-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
:where(.chachos-related .wp-block-post-template) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { :where(.chachos-related .wp-block-post-template) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { :where(.chachos-related .wp-block-post-template) { grid-template-columns: 1fr; } }

/* ==========================================================
   1. MODO OSCURO (sobrescribe las variables de la paleta)
   ========================================================== */
html[data-theme="dark"],
html[data-theme="dark"] body {
	color-scheme: dark;
	--wp--preset--color--base: #0a1a2f;
	--wp--preset--color--surface: #161b24;
	--wp--preset--color--contrast: #eef2f8;
	--wp--preset--color--primary: #7db3ff;
	--wp--preset--color--primary-dark: #ffffff;
	--wp--preset--color--secondary: #38bdf8;
	--wp--preset--color--muted: #aab4c5;
	--wp--preset--color--on-primary: #0a1a2f;
	--chachos-line: #2b3344;
}
:root, body {
	--chachos-shadow: 8px 8px 0 #000;
	/* Degradado azul de «¿Te vienes a la peña?» (extremo claro algo más profundo para que el texto blanco se lea bien) */
	--chachos-blue-grad: linear-gradient(135deg, #1d4ed8, #0a78bd);
	/* Noticias y tarjetas: fondo blanco, texto negro */
	--chachos-card-bg: #fff;
	--chachos-card-text: #000;
	--chachos-chip-bg: #ffcc00;
	--chachos-chip-text: #000;
	--chachos-title-bg: #ffcc00;
	--chachos-hl: #ffcc00;
	--chachos-line: #e4e4e4;
}
body.chachos-cards-yellow {
	--chachos-card-bg: #ffcc00;
	--chachos-chip-bg: #fff;
	--chachos-title-bg: #fff;
	--chachos-hl: #fff;
	--chachos-line: rgba(0, 0, 0, .28);
}
html[data-theme="dark"] body {
	--chachos-blue-grad: linear-gradient(135deg, #12296b, #0a5b8f);
	--chachos-card-bg: #161b24;
	--chachos-card-text: #eef2f8;
	--chachos-chip-bg: #ffcc00;
	--chachos-title-bg: #ffcc00;
	--chachos-hl: #ffcc00;
	--chachos-line: #2b3344;
}

/* ==========================================================
   2. BASE
   ========================================================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body { transition: background-color .25s ease, color .25s ease; }
:where(a, button, input, summary):focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #000; border-radius: 8px; }
.chachos-muted { color: var(--wp--preset--color--muted); }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-element-button, .wp-block-button__link { box-shadow: 4px 4px 0 #000; transition: transform .12s ease, box-shadow .12s ease; }
.wp-element-button:hover, .wp-block-button__link:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }

/* ==========================================================
   3. BARRA SUPERIOR (últimas noticias + redes)
   ========================================================== */
.chachos-topbar { background: #0f1114; color: #fff; padding-block: .5rem; border-bottom: 3px solid #000; }
.chachos-topbar p { margin: 0; color: inherit; }
.chachos-breaking { min-width: 0; flex: 1 1 auto; }
.chachos-breaking__label {
	white-space: nowrap; font-weight: 700; font-size: 1rem; padding: .35rem .9rem; border-radius: 12px;
	background: #0f1114; color: #fff; border: 2px solid #fff;
}
.chachos-breaking__list { min-width: 0; flex: 1 1 auto; }
.chachos-breaking__list .wp-block-post-template { overflow-x: auto; scrollbar-width: none; gap: 2.2rem; padding: 0; margin: 0; list-style: none; }
.chachos-breaking__list .wp-block-post-template::-webkit-scrollbar { display: none; }
.chachos-breaking__item { margin: 0; white-space: nowrap; font-size: 1rem; display: flex; align-items: center; gap: .55rem; }
.chachos-breaking__item::before {
	content: ""; width: 1.15rem; height: 1.15rem; flex: 0 0 auto; background: #ffcc00;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 5l5 5-5 5-1.4-1.4 2.6-2.6H7v-2h7.2l-2.6-2.6z'/></svg>") center/contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 5l5 5-5 5-1.4-1.4 2.6-2.6H7v-2h7.2l-2.6-2.6z'/></svg>") center/contain no-repeat;
}
.chachos-breaking__item a { color: #ffcc00; text-decoration: none; }
.chachos-breaking__item a:hover { text-decoration: underline; }
.chachos-topbar .wp-block-social-links { margin: 0; flex: 0 0 auto; gap: .5rem; }
.wp-block-social-links .wp-social-link-x { background-color: #2b2b2b !important; }
.wp-block-social-links .wp-social-link { border: 2px solid transparent; }
@media (max-width: 700px) { .chachos-topbar .wp-block-social-links { display: none; } }

/* ==========================================================
   4. CABECERA: LOGO A LA IZQUIERDA DEL TÍTULO
   ========================================================== */
.chachos-brand { padding-block: clamp(1.2rem, 3vw, 2.2rem); }
.chachos-brand__row { width: 100%; }
.chachos-brand__id { min-width: 0; flex: 1 1 auto; align-items: center; }
.chachos-brand__logo { flex: 0 0 auto; margin: 0; }
.chachos-brand__logo img { height: auto; width: clamp(72px, 14vw, 150px); max-width: none; display: block; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .35)); }
.chachos-brand__text { min-width: 0; }
.chachos-brand__title, .chachos-brand__title a {
	font-family: var(--chachos-font-heading); font-weight: 700; line-height: 1.02; margin: 0;
	font-size: clamp(1.7rem, 5.6vw, 3.8rem); color: #000; text-decoration: none; text-wrap: balance;
	text-shadow: 3px 3px 0 #ffcc00;
}
html[data-theme="dark"] .chachos-brand__title, html[data-theme="dark"] .chachos-brand__title a { color: #fff; text-shadow: 3px 3px 0 #ffcc00; }
html[data-theme="dark"] .chachos-brand__tagline { color: #dbe7ff; }
.chachos-brand__tagline { margin: .4rem 0 0; font-size: clamp(1rem, 2vw, 1.25rem); color: #fff; font-weight: 500; }
.chachos-banner {
	flex: 0 1 380px; padding: 1rem 1.3rem; border-radius: 20px; background: #ffcc00; color: #000;
	border: 3px solid #000; box-shadow: var(--chachos-shadow);
}
.chachos-banner__title { font-size: 1.6rem !important; margin: 0; color: #000 !important; }
.chachos-banner__text { margin: .25rem 0 0; font-size: .95rem; color: #000; }
.chachos-hide-banner .chachos-banner { display: none; }
@media (max-width: 900px) { .chachos-banner { display: none; } }

/* ==========================================================
   5. MENÚ AMARILLO (fijo al hacer scroll)
   ========================================================== */
.chachos-navbar-part { position: sticky; top: 0; z-index: 60; }
.admin-bar .chachos-navbar-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .chachos-navbar-part { top: 46px; } }
.chachos-navbar { background: var(--chachos-blue-grad); color: #fff; padding-block: .6rem; border-block: 3px solid #000; box-shadow: 0 6px 0 #000; }
.chachos-navbar .wp-block-navigation { color: #fff; font-weight: 600; font-size: .98rem; }
.chachos-navbar .wp-block-navigation-item__content { color: #fff; text-decoration: none; padding: .5rem .9rem; border-radius: 10px; transition: background-color .12s ease, color .12s ease; }
.chachos-navbar .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.chachos-navbar .current-menu-item > .wp-block-navigation-item__content { background: rgba(255, 255, 255, .26); }
.chachos-navbar .wp-block-navigation__responsive-container-open, .chachos-navbar .wp-block-navigation__responsive-container-close { color: #fff; }
.chachos-navbar .wp-block-navigation__submenu-container {
	background: #fff; color: #111; border: 3px solid #000; border-radius: 14px; padding: .4rem; box-shadow: 6px 6px 0 #000;
}
.chachos-navbar .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #111; }
.chachos-navbar .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #ffcc00; color: #000; }
.chachos-navbar .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); }
.chachos-navbar .is-menu-open .wp-block-navigation-item__content, .chachos-navbar .is-menu-open .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--contrast); }
.chachos-search .wp-block-search__button, .chachos-toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; padding: 0; border-radius: 50%; cursor: pointer;
	background: transparent; color: #fff; border: 2px solid #fff; box-shadow: none; transition: background-color .12s ease, color .12s ease;
}
.chachos-search .wp-block-search__button:hover, .chachos-toggle:hover { background: #fff; color: #1d4ed8; transform: none; box-shadow: none; }
.chachos-search .wp-block-search__button svg { fill: currentColor; width: 1.4rem; height: 1.4rem; }
.chachos-search .wp-block-search__input { border: 2px solid #111; border-radius: 999px; background: #fff; color: #111; }
.chachos-toggle svg { width: 1.25rem; height: 1.25rem; }
.chachos-toggle .i-sun { display: none; }
html[data-theme="dark"] .chachos-toggle .i-sun { display: block; }
html[data-theme="dark"] .chachos-toggle .i-moon { display: none; }

/* ==========================================================
   6. ESTRUCTURA: CONTENIDO + BARRA LATERAL
   ========================================================== */
.chachos-layout { gap: clamp(1.8rem, 3.5vw, 3.2rem); padding-block: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 0; }
.chachos-layout > .wp-block-column { min-width: 0; }
@media (min-width: 782px) {
	.chachos-sb-izquierda .chachos-layout { flex-direction: row-reverse; }
	.chachos-sb-ninguna .chachos-col-side { display: none; }
	.chachos-sb-ninguna .chachos-col-main { flex-basis: 100% !important; }
}

/* ==========================================================
   7. TARJETAS Y ENTRADAS (borde negro y sombra dura)
   ========================================================== */
.chachos-card {
	background: var(--chachos-card-bg); color: var(--chachos-card-text);
	border: 3px solid #000; border-radius: 26px; padding: 1.3rem 1.5rem; box-shadow: var(--chachos-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}
.chachos-article { padding: clamp(1.2rem, 3vw, 2.2rem); margin-bottom: 2rem; }
.chachos-article:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 #000; }
.chachos-article .wp-block-post-title { margin: .7rem 0 .3rem; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.15; }
.chachos-article .chachos-title-sm { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.chachos-article .wp-block-post-title a { text-decoration: none; color: var(--chachos-card-text); }
.chachos-article .wp-block-post-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: #000; }
.chachos-article .wp-block-post-content { margin-top: 1rem; padding: 0; }
.chachos-article .wp-block-post-content > * { max-width: 100%; }
.chachos-article .wp-block-post-content, .chachos-article .wp-block-post-excerpt, .chachos-article p { color: var(--chachos-card-text); }
.chachos-article .wp-block-post-content a, .chachos-article .wp-block-post-excerpt a { color: var(--chachos-card-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.chachos-article .wp-block-post-content a:hover { background: var(--chachos-hl); color: #000; }
.chachos-article img { border-radius: 14px; height: auto; max-width: 100%; }
.chachos-article .wp-block-post-featured-image img { border: 3px solid #000; }
.chachos-terms { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chachos-terms a {
	display: inline-block; font-size: .92rem; font-weight: 700; text-decoration: none; padding: .15rem .8rem; border-radius: 999px;
	background: var(--chachos-chip-bg); color: var(--chachos-chip-text); border: 2px solid #000; box-shadow: 2px 2px 0 #000;
}
.chachos-terms a:hover { background: #000; color: #fff; }
.chachos-terms .wp-block-post-terms__separator { display: none; }
.chachos-meta { gap: .4rem 1.2rem; align-items: center; color: var(--chachos-card-text); font-size: .95rem; font-weight: 600; margin-block: .4rem .8rem; }
.chachos-meta > * { margin: 0 !important; }
.chachos-meta .wp-block-post-author { display: flex; align-items: center; gap: .5rem; }
.chachos-meta .wp-block-post-author__avatar { margin: 0; }
.chachos-meta .wp-block-post-author__avatar img { border-radius: 50%; width: 30px; height: 30px; border: 2px solid #000; }
.chachos-meta a { color: inherit; text-decoration: none; }
.chachos-meta-date::before, .chachos-meta-comments::before {
	content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .35em; vertical-align: -.12em; background: currentColor;
}
.chachos-meta-date::before {
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 5v5.4l4 2.4-.8 1.3L11 13V7z'/></svg>") center/contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 5v5.4l4 2.4-.8 1.3L11 13V7z'/></svg>") center/contain no-repeat;
}
.chachos-meta-comments::before {
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16a2 2 0 012 2v9a2 2 0 01-2 2H9l-5 4v-4H4a2 2 0 01-2-2V6a2 2 0 012-2z'/></svg>") center/contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16a2 2 0 012 2v9a2 2 0 01-2 2H9l-5 4v-4H4a2 2 0 01-2-2V6a2 2 0 012-2z'/></svg>") center/contain no-repeat;
}
.chachos-hide-autor .chachos-meta-author, .chachos-hide-fecha .chachos-meta-date, .chachos-hide-comentarios .chachos-meta-comments { display: none; }
.wp-block-post-excerpt__more-link { font-weight: 700; }
.wp-block-post-excerpt p { margin-top: .4rem; }

/* ==========================================================
   8. MODELOS DE PRESENTACIÓN
   ========================================================== */
.chachos-list .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.chachos-row { gap: 1.3rem; margin: 0; align-items: flex-start; }
.chachos-row > .wp-block-column:first-child:not(:has(img)) { display: none; }
.chachos-row > .wp-block-column:nth-child(2) { flex-basis: 100% !important; }
.chachos-row > .wp-block-column:first-child:has(img) ~ .wp-block-column { flex-basis: 70% !important; }
.chachos-row .wp-block-post-featured-image { margin: 0; }
.chachos-row .wp-block-post-featured-image img { width: 100%; }
.chachos-list--grilla .wp-block-post-template { gap: 1.6rem; }
.chachos-list--grilla .chachos-article { margin-bottom: 0; height: 100%; display: flex; flex-direction: column; }
.chachos-list--grilla .wp-block-post-featured-image { margin: 0 0 .8rem; }
.chachos-list--grilla .wp-block-post-featured-image img { width: 100%; }
.chachos-list--lista .wp-block-post-template { background: var(--chachos-card-bg); color: var(--chachos-card-text); border: 3px solid #000; border-radius: 26px; box-shadow: var(--chachos-shadow); padding: .4rem 1.4rem; }
.chachos-list--lista .wp-block-post-template > li { border-bottom: 2px dashed var(--chachos-line); }
.chachos-list--lista .wp-block-post-template > li:last-child { border-bottom: 0; }
.chachos-line { padding: .85rem .2rem; gap: .4rem 1rem; }
.chachos-line > * { margin: 0 !important; }
.chachos-line__date { color: var(--chachos-card-text); opacity: .8; font-size: .9rem; min-width: 7.5rem; font-weight: 600; }
.chachos-line__title { font-size: 1.1rem; flex: 1 1 14rem; }
.chachos-line__title a { text-decoration: none; color: var(--chachos-card-text); font-weight: 600; }
.chachos-line__title a:hover { text-decoration: underline; text-decoration-color: #ffcc00; text-decoration-thickness: 3px; }
/* Paginación */
.wp-block-query-pagination { gap: .6rem; margin-top: .5rem; align-items: center; }
.wp-block-query-pagination-numbers { display: flex; gap: .55rem; align-items: center; }
.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 2.8rem; height: 2.8rem; padding: 0 .6rem; border-radius: 12px;
	font-weight: 700; text-decoration: none; background: #fff; color: #000; border: 3px solid #000; box-shadow: 3px 3px 0 #000;
}
.wp-block-query-pagination-numbers .page-numbers.current { background: #ffcc00; }
.wp-block-query-pagination-numbers a.page-numbers:hover { background: #ffcc00; }
.wp-block-query-pagination-previous, .wp-block-query-pagination-next { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.wp-block-query-pagination-previous:hover, .wp-block-query-pagination-next:hover { color: #ffcc00; }
.wp-block-query-no-results { color: #fff; }

/* ==========================================================
   9. BARRA LATERAL
   ========================================================== */
.chachos-sidebar { display: flex; flex-direction: column; gap: 2rem; }
.chachos-sidebar > * { margin: 0 !important; }
.chachos-sidebar .chachos-card {
	padding: 1.1rem 1.2rem 1.3rem;
	--chachos-card-bg: var(--chachos-blue-grad);
	--chachos-card-text: #fff;
	--chachos-title-bg: #ffcc00;
	--chachos-line: rgba(255, 255, 255, .35);
	background: var(--chachos-blue-grad); color: #fff;
}
.chachos-sidebar .chachos-card :is(p, li, span, strong, label) { color: #fff; }
.chachos-widget-title {
	font-size: 1.3rem !important; font-weight: 700; margin: 0 0 1rem; text-align: center; color: #000 !important;
	background: var(--chachos-title-bg); border: 3px solid #000; border-radius: 8px; padding: .55rem .8rem; box-shadow: 3px 3px 0 #000;
}
.chachos-sidebar ul { list-style: none; margin: 0; padding: 0; }
.chachos-sidebar li { padding: .5rem 0; border-bottom: 1px solid var(--chachos-line); }
.chachos-sidebar li:last-child { border-bottom: 0; }
.chachos-sidebar li a { font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: #ffcc00; text-decoration-thickness: 2px; text-underline-offset: 4px; background: none; }
.chachos-sidebar li a:hover { background: #ffcc00; color: #000; text-decoration: none; }
.chachos-sidebar .wp-block-latest-posts__post-date { display: block; font-size: .85rem; color: var(--chachos-card-text); opacity: .8; }
.chachos-card .chachos-muted { color: var(--chachos-card-text); opacity: .85; }
.chachos-hours-list li { display: flex; justify-content: space-between; gap: 1rem; }
.chachos-hours-list strong { color: var(--chachos-card-text); }
.chachos-cta { color: #fff; text-align: center; border-radius: 26px; background: var(--chachos-blue-grad); padding: 1.4rem 1.2rem; border: 3px solid #000; box-shadow: var(--chachos-shadow); }
.chachos-cta h3, .chachos-cta p { color: #fff; margin-top: 0; }
.chachos-cta .wp-block-button__link { background: #ffcc00; color: #000; }
.chachos-sidebar .wp-block-search__input { border: 3px solid #000; border-radius: 12px; background: #fff; color: #111; }
.chachos-sidebar .wp-block-search__button { background: #000; color: #fff; border: 3px solid #000; border-radius: 12px; font-weight: 700; }
@media (max-width: 781px) { .chachos-sidebar { margin-top: .5rem; } }

/* ==========================================================
   10. "TE HAS PERDIDO"
   ========================================================== */
.chachos-related { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.chachos-related__box { padding: 1.2rem 1.4rem 1.6rem; }
.chachos-related__title { margin-bottom: 1.2rem; }
.chachos-related .wp-block-post-template { gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.chachos-miss {
	position: relative; overflow: hidden; border-radius: 20px; min-height: 220px; display: flex; align-items: flex-end; height: 100%;
	background: linear-gradient(160deg, #3a3a3c, #1c1c1e); border: 3px solid #000; box-shadow: 6px 6px 0 #000; transition: transform .15s ease;
}
.chachos-miss:hover { transform: translate(-2px, -2px); }
.chachos-miss .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; }
.chachos-miss .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.chachos-miss::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .85)); pointer-events: none; }
.chachos-miss__body { position: relative; z-index: 2; padding: 1rem 1.1rem; width: 100%; }
.chachos-miss__body > * { margin: 0 0 .5rem !important; }
.chachos-miss .wp-block-post-title { font-size: 1.1rem; line-height: 1.25; }
.chachos-miss .chachos-terms a { background: #ffcc00; color: #000; }
.chachos-miss .wp-block-post-title a { color: #fff; text-decoration: none; }
.chachos-miss .wp-block-post-title a:hover { text-decoration: underline; }

/* ==========================================================
   11. CABECERA DE ARCHIVOS / PÁGINAS
   ========================================================== */
.chachos-page-header { background: #ffcc00; color: #000; padding-block: clamp(1.4rem, 4vw, 2.4rem); border-block: 3px solid #000; }
.chachos-page-header :is(h1, p, a) { color: #000; margin: 0; }
.chachos-page-header h1 { text-shadow: none; }
.chachos-main > .wp-block-post-content { padding-block: 2rem; }
.page .chachos-main .wp-block-post-content { background: var(--chachos-card-bg); color: var(--chachos-card-text); border: 3px solid #000; border-radius: 26px; box-shadow: var(--chachos-shadow); padding: clamp(1.2rem, 3vw, 2.2rem); margin-block: 2.5rem; }
.wp-block-search__input { border-radius: 12px; border: 3px solid #000; background: #fff; color: #111; padding: .6rem 1rem; }
.wp-block-search__button { border-radius: 12px; }

/* ==========================================================
   12. PIE
   ========================================================== */
.chachos-footer { background: #0f1114; color: #fff; border-top: 3px solid #000; }
.chachos-footer__main { padding-block: 2.2rem; }
.chachos-footer__logo img { height: auto; width: 72px; display: block; }
.chachos-footer__title, .chachos-footer__title a { font-family: var(--chachos-font-heading); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2rem); color: #fff; text-decoration: none; margin: 0; }
.chachos-footer .wp-block-social-links { gap: .5rem; }
.chachos-copybar { background: #08090b; text-align: center; padding: 1rem; border-top: 1px solid #23262b; }
.chachos-copy { margin: 0; color: #cfd3da; font-size: .95rem; }
.chachos-up {
	position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 70; width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: #ffcc00; color: #000; font-weight: 700; font-size: 1.3rem; text-decoration: none; border: 3px solid #000; box-shadow: 3px 3px 0 #000;
	opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.chachos-up.is-visible { opacity: 1; pointer-events: auto; }

/* ==========================================================
   13. VENTANA DE FECHA Y HORA (barra lateral)
   ========================================================== */
.chachos-clock-card { text-align: center; }
.chachos-sidebar .chachos-clock-card .chachos-clock-card__date {
	margin: 0 0 .9rem; font-family: var(--chachos-font-heading); font-weight: 700; font-size: 1.15rem; line-height: 1.25;
	color: #000; background: var(--chachos-title-bg); border: 3px solid #000; border-radius: 8px; padding: .6rem .8rem; box-shadow: 3px 3px 0 #000;
}
.chachos-sidebar .chachos-clock-card .chachos-clock-card__date span { color: #000; }
.chachos-sidebar .chachos-clock-card .chachos-clock-card__time {
	margin: 0; font-family: var(--chachos-font-heading); font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.1rem); line-height: 1;
	letter-spacing: .04em; font-variant-numeric: tabular-nums; color: #fff;
}
.chachos-sidebar .chachos-clock-card .chachos-clock-card__time span { color: #fff; }
.chachos-hide-reloj .chachos-clock-card { display: none; }
