/*
Theme Name: Las Rosas 2026
Theme URI: https://www.lasrosas.com.ar/
Author: Grupo Las Rosas
Description: Tema editorial de Grupo Las Rosas — revista, radio y portal. Montserrat, negro y dorado, cuadrado. Home por secciones, Twitch en vivo, tapas, avisos desde las categorías de banners.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lasrosas
*/

/* ---------- Tokens (sistema de diseño Grupo Las Rosas) ---------- */
:root {
	--black: #000000;
	--white: #ffffff;
	--ink-body: #333333;
	--muted: #808080;
	--graphite: #6d6e71;
	--cloud: #ecf0f1;
	--gold: #b29e45;
	--logo-gold: #806f3f;
	--logo-ink: #211915;
	--rule-olive: #999933;
	--highlight: rgba(255, 238, 6, 0.6);
	--white-10: rgba(255, 255, 255, 0.1);
	--space-xs: 0.25em;
	--space-sm: 0.5em;
	--space-md: 15px;
	--space-lg: 30px;
	--radius-none: 0;
	--hairline: 1px;
	--font-sans: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink-body); font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
img, iframe, video { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-decoration: none; }
a:hover { color: var(--graphite); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
::selection { background: var(--highlight); color: var(--black); }
h1, h2, h3, h4 { color: var(--black); font-family: var(--font-sans); margin: 0; }
hr { border: 0; border-top: var(--hairline) solid var(--rule-olive); margin: var(--space-lg) 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.lr-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--black); color: var(--white); padding: 10px 16px; font-weight: 700; }
.lr-skip:focus { left: 16px; top: 16px; color: var(--white); }

.lr-container { max-width: 1170px; margin: 0 auto; padding-left: var(--space-md); padding-right: var(--space-md); }

/* ---------- Átomos ---------- */
.lr-tag { display: inline-block; background: var(--gold); color: var(--white); padding: var(--space-xs) var(--space-sm); font-size: 13px; line-height: 1.2; font-weight: 700; text-transform: uppercase; }
a.lr-tag:hover { color: var(--white); background: var(--logo-gold); }
.lr-label { display: inline-block; background: var(--black); color: var(--white); padding: var(--space-xs) var(--space-sm); font-size: 11.2px; line-height: 1.2; text-transform: uppercase; }
.lr-epigrafe { display: inline-block; background: var(--black); color: var(--white); padding: 0 var(--space-sm); font-size: 12.6px; line-height: 1.6; font-weight: 900; text-transform: uppercase; }
.lr-meta { font-size: 12px; color: var(--ink-body); }
.lr-h1 { font-size: clamp(26px, 4vw, 35px); line-height: 1.1; font-weight: 900; }

.lr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border: var(--hairline) solid var(--black); border-radius: var(--radius-none); background: transparent; color: var(--black); font: 700 13px/1.2 var(--font-sans); text-transform: uppercase; cursor: pointer; }
.lr-btn:hover, .lr-btn--solid { background: var(--black); color: var(--white); }
.lr-btn--solid:hover { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.lr-btn--invert { background: var(--white); color: var(--black); border-color: var(--white); }
.lr-btn--invert:hover { background: var(--cloud); color: var(--black); }
.lr-btn--ghost { color: var(--white); border-color: var(--white); }
.lr-btn--ghost:hover { background: var(--white); color: var(--black); }

.lr-more { align-self: flex-end; font-weight: 700; font-size: 13px; text-transform: uppercase; border-bottom: var(--hairline) solid var(--black); padding: 2px 0; }

/* ---------- Cabecera ---------- */
.lr-header { padding-top: 0; }
.lr-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 20px; padding: 0 0 var(--space-md); }
.lr-topbar__right { justify-self: end; }
@media (max-width: 900px) { .lr-topbar { display: flex; flex-wrap: wrap; justify-content: space-between; } }
.lr-topbar__radio { display: flex; align-items: center; gap: 8px; }
.lr-topbar__radio-name { font-weight: 900; font-size: 14px; letter-spacing: -0.3px; color: var(--black); text-transform: uppercase; }
.lr-badge { display: flex; flex-direction: column; align-items: center; background: var(--logo-gold); color: var(--white); padding: 5px 16px; text-transform: uppercase; font-size: 12px; line-height: 16px; }
.lr-badge:hover { color: var(--white); background: var(--logo-ink); }
.lr-badge__top { font-weight: 600; letter-spacing: 3px; }
.lr-badge__bottom { font-weight: 700; letter-spacing: 1px; }
.lr-topbar__right { display: flex; align-items: center; gap: 14px; }
.lr-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.lr-social a { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; color: var(--black); }
.lr-brand { display: flex; align-items: flex-start; justify-content: center; gap: 26px; padding: 24px 0 14px; }
.lr-logo { margin: 0; flex: 0 1 560px; min-width: 0; line-height: 0; }
.lr-logo a { display: block; }
.lr-logo__img { width: 100%; height: auto; }
.lr-brand__rule { flex: 0 0 var(--hairline); height: 52px; margin-top: 2px; background: var(--cloud); }
.lr-studio { flex: 0 0 auto; line-height: 0; }
.lr-studio img { display: block; height: 84px; width: auto; margin-top: 1px; }
@media (max-width: 600px) {
	.lr-brand { gap: 14px; padding: 16px 0 12px; }
	.lr-studio img { height: 52px; }
	.lr-brand__rule { height: 32px; }
}

/* Navegación */
.lr-nav { background: var(--black); border-bottom: var(--hairline) solid var(--graphite); position: relative; z-index: 20; }
.lr-nav__toggle { display: none; align-items: center; gap: 10px; min-height: 50px; padding: 0 var(--space-md); background: none; border: 0; color: var(--cloud); font: 700 14px/1 var(--font-sans); text-transform: uppercase; cursor: pointer; }
.lr-nav__bars, .lr-nav__bars::before, .lr-nav__bars::after { display: block; width: 20px; height: 2px; background: var(--cloud); position: relative; }
.lr-nav__bars::before, .lr-nav__bars::after { content: ""; position: absolute; left: 0; }
.lr-nav__bars::before { top: -6px; } .lr-nav__bars::after { top: 6px; }
.lr-nav__panel { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 var(--space-md); }
.lr-menu, .lr-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.lr-menu { display: flex; flex-wrap: wrap; }
.lr-menu > li { position: relative; }
.lr-menu a { display: block; color: var(--cloud); font-weight: 700; font-size: 14px; line-height: 20px; text-transform: uppercase; padding: 15px 10px; }
.lr-menu a:hover, .lr-menu li:focus-within > a { color: var(--white); background: var(--graphite); }
.lr-menu .current-menu-item > a, .lr-menu .current-category-ancestor > a, .lr-menu .current-menu-parent > a { background: var(--white); color: var(--black); }
.lr-menu .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.lr-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--black); border-top: var(--hairline) solid var(--graphite); }
.lr-menu li:hover > .sub-menu, .lr-menu li:focus-within > .sub-menu, .lr-menu li.is-open > .sub-menu { display: block; }
.lr-menu .sub-menu a { padding: 12px 16px; }
.lr-nav__search { display: flex; align-items: center; }
.lr-nav__search input { width: 170px; height: 34px; border: var(--hairline) solid var(--graphite); background: var(--black); color: var(--white); padding: 0 10px; font: 400 13px var(--font-sans); border-radius: 0; }
.lr-nav__search input::placeholder { color: var(--cloud); }
.lr-nav__search button { width: 40px; height: 34px; border: 0; background: none; color: var(--cloud); cursor: pointer; display: flex; align-items: center; justify-content: center; }

@media (max-width: 900px) {
	.lr-nav__toggle { display: flex; }
	.lr-nav__panel { display: none; flex-direction: column; align-items: stretch; padding: 0 0 var(--space-md); }
	.lr-nav.is-open .lr-nav__panel { display: flex; }
	.lr-menu { flex-direction: column; }
	.lr-menu a { padding: 14px var(--space-md); border-top: var(--hairline) solid var(--white-10); }
	.lr-menu .sub-menu { position: static; border: 0; }
	.lr-menu li:hover > .sub-menu { display: none; }
	.lr-menu li.is-open > .sub-menu { display: block; }
	.lr-menu .sub-menu a { padding-left: 32px; }
	.lr-nav__search { padding: var(--space-md) var(--space-md) 0; }
	.lr-nav__search input { flex: 1; height: 44px; }
	.lr-badge { display: none; }
}

/* ---------- Layout ---------- */
.lr-layout { display: flex; flex-wrap: wrap; gap: var(--space-lg); padding-top: var(--space-lg); padding-bottom: 60px; }
.lr-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-lg); }
.lr-sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-lg); }
.lr-block { display: flex; flex-direction: column; gap: 24px; }

/* Barra de sección */
.lr-section { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 var(--space-md); background: var(--black); }
.lr-section__title { color: var(--white); font-size: 14px; line-height: 20px; font-weight: 700; text-transform: uppercase; }
.lr-section__title a, .lr-section__more { color: var(--white); }
.lr-section__more { font-size: 12px; text-transform: uppercase; color: var(--cloud); }
.lr-section a:hover { color: var(--cloud); }

/* Grillas y tarjetas */
.lr-grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .lr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lr-grid { grid-template-columns: minmax(0, 1fr); } }
.lr-card { display: flex; flex-direction: column; gap: 10px; }
.lr-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--black); overflow: hidden; }
.lr-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lr-card:hover .lr-card__media img { transform: scale(1.03); }
.lr-card__media .lr-tag { position: absolute; left: 0; bottom: 0; }
.lr-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20%; }
.lr-card__title { font-size: 14px; line-height: 17px; font-weight: 700; }
.lr-card__title a { color: var(--black); }
.lr-card__excerpt { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-body); }

/* Nota principal */
.lr-hero { position: relative; background: var(--black); }
.lr-hero__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.lr-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.lr-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 24px 24px; background: var(--black); }
.lr-hero__title { font-size: clamp(22px, 3vw, 30px); line-height: 1.12; font-weight: 900; }
.lr-hero__title a { color: var(--white); }
.lr-hero__title a:hover { color: var(--cloud); }
.lr-hero__excerpt { margin: 0; color: var(--cloud); }
@media (min-width: 901px) {
	.lr-hero__text { position: absolute; left: 0; bottom: 0; max-width: 78%; }
}

/* Twitch: sólo el reproductor */
.lr-twitch { position: relative; aspect-ratio: 16 / 9; background: var(--black); }
.lr-twitch iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Tapas */
.lr-covers { display: grid; gap: 20px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .lr-covers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lr-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lr-cover { display: flex; flex-direction: column; gap: 6px; }
.lr-cover__media { display: block; aspect-ratio: 3 / 4; background: var(--graphite); overflow: hidden; }
.lr-cover__media img { width: 100%; height: 100%; object-fit: cover; }
.lr-cover__title { font-size: 13px; line-height: 16px; font-weight: 700; }
.lr-cover__title a { color: var(--black); }

/* Radio */
.lr-radio { display: flex; flex-wrap: wrap; gap: var(--space-lg); padding: var(--space-lg); background: var(--black); color: var(--white); }
.lr-radio__head { flex: 1 1 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lr-radio__title { color: var(--white); font-size: 26px; line-height: 1.1; font-weight: 900; }
.lr-radio__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lr-radio__list { flex: 2 1 320px; list-style: none; margin: 0; padding: 0; }
.lr-radio__list li { display: flex; gap: 16px; padding: 12px 0; border-top: var(--hairline) solid var(--graphite); }
.lr-radio__list time { flex: 0 0 80px; font-size: 12px; color: var(--cloud); }
.lr-radio__list a { color: var(--white); font-weight: 700; }
.lr-radio__list a:hover { color: var(--cloud); }

/* Sidebar */
.lr-trend { border-top: 6px solid var(--black); padding-top: var(--space-md); }
.lr-trend__title { text-align: center; font-size: 28px; line-height: 30.8px; font-weight: 900; margin-bottom: 8px; }
.lr-trend__list { list-style: none; margin: 0; padding: 0; }
.lr-trend__list li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: var(--hairline) solid var(--cloud); }
.lr-trend__n { flex: 0 0 24px; font-size: 22px; font-weight: 900; color: var(--black); }
.lr-trend__list a { font-size: 13px; line-height: 18px; color: var(--ink-body); }
.lr-trend__list a:hover { color: var(--black); }
.lr-widget__title { font-size: 14px; font-weight: 700; text-transform: uppercase; background: var(--black); color: var(--white); padding: 15px; margin-bottom: 12px; }

/* Avisos */
.lr-ads { display: flex; flex-direction: column; gap: var(--space-lg); }
.lr-ads--top { padding-top: var(--space-lg); align-items: center; }
.lr-ad { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lr-ad__label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.lr-ad { max-width: 100%; }
.lr-ad a { display: block; max-width: 100%; }
.lr-ad img { width: auto; max-width: 100%; height: auto; }

/* Archivos */
.lr-archive-head { display: flex; flex-direction: column; gap: 10px; }
.lr-archive-desc { max-width: 680px; }
.lr-breadcrumbs, .aioseo-breadcrumbs { font-size: 12px; text-transform: uppercase; }
.navigation.pagination { margin-top: var(--space-md); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: var(--hairline) solid var(--black); font-weight: 700; color: var(--black); }
.page-numbers.current, a.page-numbers:hover { background: var(--black); color: var(--white); }
.page-numbers.dots { border: 0; }
.lr-searchform { display: flex; gap: 8px; max-width: 520px; }
.lr-searchform input { flex: 1; min-height: 44px; border: var(--hairline) solid var(--black); border-radius: 0; padding: 0 12px; font: 400 14px var(--font-sans); }

/* Nota */
.lr-article { display: flex; flex-direction: column; gap: 20px; }
.lr-article__head { display: flex; flex-direction: column; gap: 12px; }
.lr-article__meta { display: flex; align-items: center; gap: 10px; }
.lr-article__dek { margin: 0; font-size: 18.2px; line-height: 26px; font-weight: 500; color: var(--black); }
.lr-article__figure { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lr-article__figure img { width: 100%; }
.lr-article__body { max-width: 720px; font-size: 16px; line-height: 27px; color: var(--ink-body); }
.lr-article__body > * { margin: 0 0 18px; }
.lr-article__body h2 { font-size: 22.4px; line-height: 1.15; font-weight: 900; margin-top: 30px; }
.lr-article__body h3 { font-size: 18.2px; line-height: 1.2; font-weight: 700; margin-top: 24px; }
.lr-article__body a { text-decoration: underline; text-underline-offset: 2px; }
.lr-article__body img { height: auto; }
.lr-article__body figure { margin-left: 0; margin-right: 0; }
.lr-article__body figcaption, .wp-caption-text { font-size: 12px; color: var(--ink-body); margin-top: 6px; }
.lr-article__body blockquote { margin: 24px 0; padding: 18px 0; border-top: var(--hairline) solid var(--rule-olive); border-bottom: var(--hairline) solid var(--rule-olive); font-size: 22px; line-height: 1.3; font-weight: 900; color: var(--black); }
.lr-article__body .alignleft { float: left; margin: 0 20px 12px 0; }
.lr-article__body .alignright { float: right; margin: 0 0 12px 20px; }
.lr-article__body .aligncenter { margin-left: auto; margin-right: auto; }
.lr-article__body iframe { width: 100%; }
.lr-article__body::after { content: ""; display: table; clear: both; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-item { margin: 0; }
.lr-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: var(--space-md) 0; border-top: var(--hairline) solid var(--cloud); border-bottom: var(--hairline) solid var(--cloud); }
.lr-share__label { font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--black); margin-right: 4px; }

/* Pie */
.lr-footer { background: var(--black); color: var(--white); }
.lr-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.lr-footer__logo img { width: 240px; height: auto; }
.lr-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.lr-footer a { color: var(--white); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.lr-footer a:hover { color: var(--cloud); }
.lr-footer .lr-social a { color: var(--white); }
.lr-footer__legal { border-top: var(--hairline) solid var(--white-10); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; padding: 16px; font-size: 12px; color: var(--cloud); }
.lr-footer .lr-credit { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 11px; text-transform: none; color: var(--cloud); opacity: .8; transition: opacity .2s; }
.lr-footer .lr-credit:hover { opacity: 1; color: var(--cloud); }
.lr-credit img { height: 22px; width: auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Pantalla de carga con corazón */
.lr-loader { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: var(--white); transition: opacity .35s ease; }
.lr-loader img { width: 72px; height: auto; }
html.lr-loading .lr-loader { display: flex; }
html.lr-loaded .lr-loader { opacity: 0; pointer-events: none; }
