/* =========================================================================
   Café Fuerte — estilos del tema
   Colores y tipografías tomados del "Kit por defecto" de Elementor del sitio.
   ========================================================================= */

:root {
	--cf-dark: #46200C;      /* primario: títulos */
	--cf-brown: #98612A;     /* secundario: botones, líneas */
	--cf-accent: #865032;    /* enlaces, títulos de tarjetas */
	--cf-text: #3c3c3c;      /* texto de artículos */
	--cf-muted: #7A7A7A;     /* metadatos */
	--cf-light: #F8F8F8;
	--cf-beige: #F1EBE4;     /* barra lateral */
	--cf-line: #CCC6BF;
	--cf-white: #fff;
	--cf-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--cf-font-slab: "Roboto Slab", Georgia, serif;
	--cf-max: 1140px;
	--cf-gap: 20px;
	--cf-radius: 3px;
	--cf-header-h: 96px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--cf-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--cf-text);
	background: var(--cf-white);
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--cf-accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--cf-dark); }
:focus-visible { outline: 2px solid var(--cf-brown); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--cf-font); color: var(--cf-dark); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cf-skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 8px 12px; }

.cf-container { width: 100%; max-width: var(--cf-max); margin: 0 auto; padding: 0 var(--cf-gap); }
.cf-divider { border: 0; border-top: 1px solid var(--cf-brown); margin: 14px 0; opacity: .8; }
.cf-show-sm { display: none; }

.cf-btn {
	display: inline-block; background: var(--cf-brown); color: #fff; padding: 10px 22px;
	border-radius: var(--cf-radius); font-weight: 500; font-size: 15px; border: 0; cursor: pointer;
	transition: background .2s;
}
.cf-btn:hover, .cf-btn:focus-visible { background: var(--cf-dark); color: #fff; }
.cf-btn--light { background: #fff; color: var(--cf-dark); margin-top: 16px; }
.cf-btn--light:hover { background: var(--cf-beige); color: var(--cf-dark); }

.cf-icon { display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }

/* ---------- Banner móvil ---------- */
.cf-mobile-banner { display: none; }
.cf-mobile-banner img { width: 100%; height: auto; }

/* ---------- Barra superior ---------- */
.cf-topbar { background: var(--cf-white); font-size: 13px; }
.cf-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.cf-topbar__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.cf-topbar__menu a { color: var(--cf-accent); display: inline-flex; align-items: center; gap: 6px; }
.cf-topbar__menu a:hover { color: var(--cf-dark); }

.cf-search { position: relative; display: flex; }
.cf-search input {
	width: 210px; height: 30px; padding: 4px 32px 4px 8px; border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius); font: inherit; font-size: 13px; color: var(--cf-text); background: #fff;
}
.cf-search__btn {
	position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
	border: 0; background: none; color: var(--cf-accent); cursor: pointer; padding: 6px; display: flex;
}
.cf-search--big input { width: 100%; height: 44px; font-size: 16px; }
.cf-search--big { margin: 12px 0; max-width: 520px; }

/* ---------- Cabecera ---------- */
.cf-header {
	position: sticky; top: 0; z-index: 50; background: #fff;
	box-shadow: 0 6px 14px -6px rgba(0,0,0,.12);
}
.admin-bar .cf-header { top: 32px; }
.cf-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--cf-header-h); padding-top: 8px; padding-bottom: 8px; }
.cf-logo img { width: 250px; height: auto; transition: width .2s; }
.cf-header.is-scrolled .cf-logo img { width: 190px; }
.cf-header__banner { flex: 0 1 470px; }
.cf-header__banner img { width: 100%; height: auto; }
.cf-header__actions { display: flex; align-items: center; gap: 14px; }
.cf-menu-toggle {
	background: none; border: 0; color: var(--cf-accent); font-size: 30px; cursor: pointer; padding: 4px; display: flex;
}
.cf-menu-toggle:hover { color: var(--cf-dark); }
.cf-live {
	display: inline-flex; align-items: center; gap: 6px; background: #c4161c; color: #fff !important;
	padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.cf-live .cf-icon { animation: cf-pulse 1.4s infinite; }
@keyframes cf-pulse { 50% { opacity: .3; } }

/* ---------- Menú a pantalla completa ---------- */
.cf-menu { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.8); overflow-y: auto; }
.cf-menu[hidden] { display: none; }
.cf-menu__panel { background: var(--cf-dark); color: #f3ebe3; min-height: 100%; padding: 24px 0 48px; animation: cf-slide .25s ease-out; }
@keyframes cf-slide { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.cf-menu__top, .cf-menu .cf-search--menu, .cf-menu__grid { max-width: var(--cf-max); margin: 0 auto; padding: 0 var(--cf-gap); }
.cf-menu__top { display: flex; justify-content: space-between; align-items: center; }
.cf-menu__top .cf-logo img { width: 170px; }
.cf-menu-close { background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; display: flex; padding: 4px; }
.cf-menu .cf-search--menu { margin-top: 20px; margin-bottom: 28px; }
.cf-menu .cf-search--menu input { width: 100%; height: 44px; font-size: 16px; background: rgba(255,255,255,.95); }
.cf-menu__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.cf-menu__head { font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--cf-brown); padding-bottom: 8px; margin-bottom: 12px; color: #fff; }
.cf-menu__head a { color: #fff; }
.cf-menu ul { list-style: none; margin: 0; padding: 0; }
.cf-menu__posts li { margin-bottom: 10px; font-size: 14px; line-height: 1.35; }
.cf-menu__posts a { color: #e9dccf; }
.cf-menu__links { margin-top: 12px !important; }
.cf-menu__links li { margin-bottom: 8px; }
.cf-menu__links a { color: #fff; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.cf-menu a:hover { color: #f0b37a; }
.cf-menu .cf-social { margin-bottom: 4px; }
body.cf-menu-open { overflow: hidden; }

/* ---------- Redes ---------- */
.cf-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.cf-social__link { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; color: #fff !important; font-size: 18px; }
.cf-social__link--facebook { background: #3b5998; }
.cf-social__link--instagram { background: #262626; }
.cf-social__link--x { background: #000; }
.cf-social__link--youtube { background: #cd201f; }
.cf-social__link:hover { filter: brightness(1.15); }

/* ---------- Secciones ---------- */
.cf-site { min-height: 50vh; }
.cf-section { margin: 26px auto 34px; }
.cf-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--cf-brown); padding-bottom: 8px; margin-bottom: 14px; }
.cf-section-title { font-size: 26px; font-weight: 500; margin: 0; color: var(--cf-dark); }
.cf-more { font-size: 13px; font-weight: 600; color: var(--cf-accent); white-space: nowrap; }

.cf-band--paper { background: #f3f1ee url("../img/textura-periodico.jpg") repeat; }
.cf-band { padding: 34px 0; }

/* ---------- Rejillas ---------- */
.cf-grid { display: grid; gap: 18px 8px; }
.cf-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.cf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }

/* ---------- Tarjetas ---------- */
.cf-card__img { display: block; overflow: hidden; background: var(--cf-beige); }
.cf-card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s; }
.cf-card:hover .cf-card__img img { transform: scale(1.04); }
.cf-card__title { font-size: 13.5px; font-weight: 500; line-height: 1.35; margin: 8px 0 4px; color: var(--cf-accent); }
.cf-card__title a { color: inherit; }
.cf-card__title a:hover { color: var(--cf-dark); }
.cf-card__meta { font-size: 12px; color: var(--cf-muted); }

.cf-card--featured .cf-card__img img { aspect-ratio: 1.45 / 1; }
.cf-card--featured .cf-card__title { font-size: 15px; font-weight: 600; margin-top: 14px; }

.cf-card--archive .cf-card__img img { aspect-ratio: 1.55 / 1; }
.cf-card--archive .cf-card__title { font-size: 17px; font-weight: 500; margin-top: 14px; line-height: 1.4; }
.cf-card--archive .cf-card__meta { font-family: var(--cf-font-slab); font-size: 11px; color: #9a9a9a; margin-bottom: 8px; }
.cf-card--archive .cf-card__excerpt { font-size: 13px; color: #555; margin: 0; }

.cf-card--text { border-bottom: 1px solid var(--cf-brown); padding: 10px 0; }
.cf-card--text:first-child { border-top: 1px solid var(--cf-brown); }
.cf-card--text .cf-card__title { font-size: 14px; font-weight: 500; margin: 0 0 2px; color: var(--cf-dark); }
.cf-card--text .cf-card__meta { font-family: var(--cf-font-slab); font-size: 11px; color: var(--cf-accent); }

/* ---------- Portada: principal + destacadas ---------- */
.cf-hero { display: grid; grid-template-columns: 48% 1fr; gap: 28px; margin-top: 40px; margin-bottom: 34px; align-items: start; }
.cf-hero__main { background: var(--cf-accent); color: #f6eee6; }
.cf-hero__img img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; }
.cf-hero__body { padding: 30px 14px 24px; }
.cf-hero__title { font-size: 26px; font-weight: 600; line-height: 1.25; margin: 0 0 12px; }
.cf-hero__title a { color: #fff; }
.cf-hero__title a:hover { color: #f3dcc6; }
.cf-hero__meta { font-size: 11px; font-weight: 600; margin-bottom: 18px; color: #f1e2d3; }
.cf-hero__excerpt { font-size: 14px; line-height: 1.55; margin: 0; }
.cf-hero__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; padding-top: 6px; }

/* ---------- Banner grande ---------- */
.cf-banner { margin: 0 auto; max-width: 1440px; }
.cf-banner img { width: 100%; height: auto; }
.cf-home-ad { margin: 18px auto; }

/* ---------- Tasas de cambio ---------- */
.cf-rates__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cf-rates__title { font-size: 24px; font-weight: 500; margin: 0; }
.cf-rates__text p { font-size: 13px; color: #555; }

/* ---------- Bloques de marca y editor ---------- */
.cf-promo__inner { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.cf-promo__img { width: 100%; height: auto; border-radius: 2px; }
.cf-promo__img--icon { width: 150px; justify-self: center; }
.cf-promo__title { font-size: 26px; font-weight: 500; margin: 0; }
.cf-promo__body p { font-size: 14px; color: #444; }

/* ---------- Videos (miniatura ligera) ---------- */
.cf-yt {
	position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
	background: #000; aspect-ratio: 16 / 9; overflow: hidden;
}
.cf-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.cf-yt:hover img { opacity: 1; }
.cf-yt--short { aspect-ratio: 9 / 16; }
.cf-yt__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 52px; height: 36px; border-radius: 10px; background: rgba(205, 32, 31, .92); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.cf-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cf-video__title { font-size: 13px; font-weight: 600; line-height: 1.25; margin: 8px 0 0; color: var(--cf-text); }
.cf-video__title a { color: inherit; }
.cf-video__title a:hover { color: var(--cf-accent); }
.cf-videos-band .cf-section { margin: 0 0 34px; }
.cf-videos-band .cf-section:last-child { margin-bottom: 0; }
.cf-grid--videos, .cf-grid--shorts { gap: 22px 18px; }

.cf-player { position: relative; aspect-ratio: 16 / 9; background: #000; margin-bottom: 20px; }
.cf-player--short { aspect-ratio: 9 / 16; max-width: 380px; margin-left: auto; margin-right: auto; }
.cf-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Diseño con barra lateral ---------- */
.cf-has-pattern .cf-layout,
.cf-has-pattern .cf-archive-ad { background-image: url("../img/iconos-fondo.png"); background-size: 1024px auto; background-repeat: repeat; background-position: center top; }
.cf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 33%; gap: 26px; padding-top: 28px; padding-bottom: 40px; align-items: start; }
.cf-main { min-width: 0; }
.cf-main--narrow { max-width: 780px; margin: 0 auto; padding: 28px 0 48px; }
.cf-sidebar { background: var(--cf-beige); padding: 20px 14px; align-self: stretch; }
.cf-sidebar__head { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; color: var(--cf-dark); margin: 0 0 22px; }
.cf-sidebar__head .cf-icon { font-size: 36px; color: var(--cf-dark); }
.cf-sidebar__ads { position: sticky; top: calc(var(--cf-header-h) + 10px); margin-top: 22px; display: grid; gap: 16px; }
.admin-bar .cf-sidebar__ads { top: calc(var(--cf-header-h) + 42px); }
.cf-widget { margin-top: 22px; }

/* ---------- Artículo ---------- */
.cf-article__title { font-size: 32px; font-weight: 500; line-height: 1.2; margin: 0; }
.cf-article__lead { font-style: italic; font-size: 14px; color: #555; margin: 0 0 12px; }
.cf-post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.cf-post-meta__item { display: inline-flex; align-items: center; gap: 5px; color: var(--cf-accent); }
.cf-post-meta__item .cf-icon { color: var(--cf-dark); }
.cf-article__image { margin: 0 0 18px; }
.cf-article__image img { width: 100%; height: auto; }
.cf-article__image figcaption, .cf-article__content figcaption { font-size: 13px; font-style: italic; color: #555; margin-top: 6px; }

.cf-article__content { font-size: 15px; line-height: 1.7; color: var(--cf-text); }
.cf-article__content a { font-weight: 600; color: var(--cf-accent); }
.cf-article__content a:hover { text-decoration: underline; }
.cf-article__content h2 { font-size: 24px; margin-top: 1.4em; }
.cf-article__content h3 { font-size: 20px; margin-top: 1.3em; }
.cf-article__content figure { margin: 1.4em 0; }
.cf-article__content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.cf-article__content .aligncenter img { margin: 0 auto; }
.cf-article__content blockquote { border-left: 3px solid var(--cf-brown); margin: 1.4em 0; padding: 4px 0 4px 18px; font-style: italic; color: #555; }
.cf-article__content .wp-block-image figcaption { text-align: center; }
.cf-article__content .wp-block-embed iframe { width: 100%; }
.cf-article__content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cf-article__content td, .cf-article__content th { border: 1px solid var(--cf-line); padding: 6px 8px; }

.cf-article__footer { margin-top: 24px; }
.cf-terms { display: flex; gap: 8px; align-items: baseline; font-size: 13px; margin: 0 0 8px; color: var(--cf-dark); }

.cf-share__label { color: var(--cf-accent); font-size: 17px; margin: 0 0 8px; }
.cf-share__list { display: flex; gap: 10px; }
.cf-share__btn { width: 32px; height: 32px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; color: #fff !important; font-size: 16px; }
.cf-share__btn--telegram { background: #2ca5e0; }
.cf-share__btn--x { background: #000; }
.cf-share__btn--whatsapp { background: #25d366; }
.cf-share__btn--facebook { background: #3b5998; }
.cf-share__btn:hover { filter: brightness(1.12); }

.cf-author-box { display: flex; gap: 16px; align-items: flex-start; margin: 10px 0 20px; }
.cf-author-box__avatar img { border-radius: 50%; width: 80px; height: 80px; }
.cf-author-box__name { font-weight: 600; color: var(--cf-dark); font-size: 17px; }
.cf-author-box__bio { font-size: 14px; color: #555; margin: 6px 0 0; }

/* ---------- Archivos ---------- */
.cf-archive-ad { padding-top: 16px; padding-bottom: 8px; }
.cf-archive-title { font-size: 30px; font-weight: 600; color: var(--cf-brown); margin: 0 0 6px; }
.cf-archive-desc { font-size: 14px; color: var(--cf-brown); }
.cf-archive-desc p:last-child { margin-bottom: 0; }
.cf-child-terms { list-style: none; margin: 0 0 14px; padding: 6px 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; border-bottom: 1px solid var(--cf-brown); }
.cf-child-terms a { font-size: 14px; font-weight: 500; color: var(--cf-accent); }
.cf-videos-page .cf-child-terms { grid-template-columns: repeat(4, 1fr); }

.cf-pagination { margin-top: 30px; text-align: center; }
.cf-loadmore__btn.is-loading { opacity: .6; pointer-events: none; }
.cf-pagination__numbers { margin-top: 14px; font-size: 14px; }
.cf-pagination__numbers .page-numbers { display: inline-block; padding: 4px 9px; color: var(--cf-accent); }
.cf-pagination__numbers .current { background: var(--cf-brown); color: #fff; border-radius: var(--cf-radius); }
.cf-js .cf-loadmore + .cf-pagination__numbers { display: none; }

/* ---------- Pie ---------- */
.cf-footer { background: var(--cf-dark); color: #e9dccf; text-align: center; padding: 36px 0 30px; }
.cf-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cf-footer .cf-logo img { width: 200px; }
.cf-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.cf-footer__menu a { color: #fff; font-size: 14px; }
.cf-footer__menu a:hover { color: #f0b37a; }
.cf-footer__copy { font-size: 13px; margin: 0; opacity: .85; }

/* ---------- Comentarios ---------- */
.cf-comments { margin-top: 30px; }
.cf-comments textarea, .cf-comments input[type="text"], .cf-comments input[type="email"], .cf-comments input[type="url"] { width: 100%; border: 1px solid var(--cf-line); padding: 8px; font: inherit; }
.cf-comments input[type="submit"] { background: var(--cf-brown); color: #fff; border: 0; padding: 10px 22px; cursor: pointer; border-radius: var(--cf-radius); }

/* ---------- Anuncios ---------- */
.cf-ad { margin: 18px 0; min-height: 90px; text-align: center; }
.cf-ad ins { margin: 0 auto; }

/* =========================================================================
   Tablet (≤1024px)
   ========================================================================= */
@media (max-width: 1024px) {
	.cf-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cf-grid--shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cf-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cf-menu__grid { grid-template-columns: repeat(3, 1fr); }
	.cf-header__banner { flex-basis: 380px; }
	.cf-promo__inner { grid-template-columns: 240px 1fr; gap: 28px; }
}

/* =========================================================================
   Móvil (≤767px)
   ========================================================================= */
@media (max-width: 767px) {
	:root { --cf-gap: 16px; --cf-header-h: 72px; }
	.cf-hide-sm { display: none; }
	.cf-show-sm { display: inline; }

	.cf-mobile-banner { display: block; }
	.cf-header__banner { display: none; }
	.cf-topbar__inner { min-height: 40px; }
	.cf-topbar__menu { gap: 18px; }
	.cf-topbar .cf-search { display: none; }
	.cf-logo img { width: 190px; }
	.cf-header.is-scrolled .cf-logo img { width: 160px; }
	.admin-bar .cf-header { top: 0; }

	.cf-hero { grid-template-columns: 1fr; margin-top: 20px; gap: 24px; }
	.cf-hero__title { font-size: 24px; }
	.cf-hero__side { gap: 20px 12px; }
	.cf-card--featured .cf-card__title { font-size: 14px; }

	.cf-grid--6, .cf-grid--4, .cf-grid--shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	.cf-grid--videos { grid-template-columns: 1fr; }
	.cf-grid--3 { grid-template-columns: 1fr; }
	.cf-section-title { font-size: 22px; }

	.cf-rates__inner, .cf-promo__inner { grid-template-columns: 1fr; gap: 20px; }
	.cf-promo__img { max-width: 320px; }

	.cf-layout { grid-template-columns: 1fr; padding-top: 18px; }
	.cf-sidebar__ads { position: static; }
	.cf-article__title { font-size: 26px; }
	.cf-child-terms, .cf-videos-page .cf-child-terms { grid-template-columns: repeat(2, 1fr); }

	.cf-menu__grid { grid-template-columns: 1fr; gap: 26px; }
}
