/*
Theme Name: RSF Child (Realidad Santa Fe)
Theme URI: https://realidadsantafe.com/
Description: Child theme de Blocksy con la portada rediseñada de Realidad Santa Fe. Incluye header, footer, grilla de portada, sección Deportes, tarjeta "Santafesinos por el mundo" y widget del clima (Open-Meteo, sin API key).
Author: Realidad Santa Fe
Template: blocksy
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: rsf-child
*/

:root {
	--rsf-pink: #e1296c;
	--rsf-pink-dark: #b81f55;
	--rsf-dark: #222222;
	--rsf-wine: #4a0f2a;
	--rsf-navy: #0e1120;
	--rsf-text: #ffffff;
	--rsf-muted: #c9c9c9;
	--rsf-max: 1140px;
	--rsf-gap: 24px;
	--rsf-font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base (solo portada) ---------- */
body.rsf-home {
	margin: 0;
	background: var(--rsf-pink);
	color: var(--rsf-text);
	font-family: var(--rsf-font);
	-webkit-font-smoothing: antialiased;
}
.rsf-home *,
.rsf-home *::before,
.rsf-home *::after { box-sizing: border-box; }
.rsf-home a { color: inherit; text-decoration: none; }
.rsf-home img { display: block; max-width: 100%; height: auto; }
.rsf-wrap { width: 100%; max-width: var(--rsf-max); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.rsf-header { background: var(--rsf-pink); padding: 38px 0 32px; }
.rsf-header .rsf-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rsf-logo { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; font-style: italic; font-weight: 900; }
.rsf-logo__mark { font-size: 64px; letter-spacing: -2px; }
.rsf-logo__name { font-size: 15px; font-weight: 500; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
/* Altura fija + max-width:none: evita que un SVG sin tamaño propio colapse a 0px */
.rsf-logo img { height: 92px; width: auto; max-width: none; }
.rsf-footer .rsf-logo img { height: 84px; }

.rsf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.rsf-nav a { font-weight: 600; font-size: 16px; opacity: .95; }
.rsf-nav a:hover,
.rsf-nav .current-menu-item > a,
.rsf-nav .current-cat > a { color: var(--rsf-dark); opacity: 1; }
.rsf-burger { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.rsf-burger span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- Zona principal ---------- */
/* flow-root: evita que el margen de la primera sección "escape" y deje ver una franja rosa */
.rsf-main { background: var(--rsf-dark); padding-bottom: 56px; display: flow-root; margin: 0 12px; }

/* Blocksy pinta los títulos con su propio color; acá forzamos blanco solo en la portada */
body.rsf-home .rsf-hero__title,
body.rsf-home .rsf-card__title,
body.rsf-home .rsf-aside__title,
body.rsf-home .rsf-sports__heading,
body.rsf-home .rsf-sports__card h3,
body.rsf-home .rsf-results__title {
	color: #fff;
	font-family: var(--rsf-font);
}

.rsf-top {
	margin: 0 12px;
	background: linear-gradient(to bottom, var(--rsf-pink) 0, var(--rsf-pink) 100px, var(--rsf-dark) 100px);
}
.rsf-top__grid { display: grid; grid-template-columns: 1fr 240px; gap: var(--rsf-gap); align-items: start; }

/* ---------- Tarjetas ---------- */
.rsf-card { display: block; }
.rsf-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #3a3a3a; margin-bottom: 12px; }
.rsf-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rsf-card:hover .rsf-card__img img { transform: scale(1.04); }
.rsf-card__title { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 700; }
.rsf-card--lg .rsf-card__title { font-size: 19px; }
.rsf-card--sm .rsf-card__title { font-size: 15px; }

/* Hero */
.rsf-hero { position: relative; display: block; min-height: 500px; background: #333; overflow: hidden; }
.rsf-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rsf-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0, rgba(0,0,0,0) 65%); }
.rsf-hero__title {
	position: absolute; left: 48px; right: 48px; bottom: 32px; z-index: 2; margin: 0;
	font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; font-weight: 800;
}

/* Clima */
.rsf-weather {
	background: var(--rsf-dark); border: 6px solid #6b1b3f; border-radius: 28px;
	padding: 18px 22px; color: #fff;
}
.rsf-weather__row { display: grid; grid-template-columns: 48px 1fr 40px; align-items: center; padding: 8px 0; font-size: 14px; }
.rsf-weather__day { color: var(--rsf-muted); }
.rsf-weather__icon { font-size: 26px; text-align: center; }
.rsf-weather__temp { text-align: right; font-weight: 600; }
.rsf-weather__loading { color: var(--rsf-muted); font-size: 13px; text-align: center; padding: 20px 0; }

/* Grillas */
.rsf-section { margin-top: 36px; }
.rsf-grid { display: grid; gap: var(--rsf-gap); }
.rsf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rsf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rsf-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rsf-grid--2-wide { grid-template-columns: 1fr 1fr; }
.rsf-grid--feature { grid-template-columns: 1fr 1fr 300px; grid-template-rows: auto auto; }
.rsf-grid--feature .rsf-aside { grid-column: 3; grid-row: 1 / span 2; }
.rsf-grid--4 .rsf-card__title { font-size: 14px; }

/* Santafesinos por el mundo */
.rsf-aside {
	background: var(--rsf-pink); border-radius: 28px; padding: 22px 22px 26px; text-align: left;
}
.rsf-aside__badge { display: flex; align-items: center; gap: 10px; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 16px; line-height: 1.05; margin-bottom: 16px; }
.rsf-aside__badge i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; display: inline-block; flex: none; }
.rsf-aside__photo { width: 190px; height: 190px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; background: #c01d58; }
.rsf-aside__photo img { width: 100%; height: 100%; object-fit: cover; }
.rsf-aside__title { margin: 0 0 10px; font-size: 21px; line-height: 1.2; font-weight: 800; }
.rsf-aside__excerpt { margin: 0; font-size: 13px; line-height: 1.4; opacity: .9; }

/* Deportes */
.rsf-sports { background: linear-gradient(180deg, var(--rsf-wine), #3a0c22); padding: 28px 0 32px; margin-top: 48px; }
.rsf-sports__heading { font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 28px; margin: 0 0 16px; letter-spacing: -.5px; }
.rsf-sports__card { position: relative; display: block; min-height: 300px; overflow: hidden; background: #333; }
.rsf-sports__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rsf-sports__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0) 60%); }
.rsf-sports__card h3 { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; margin: 0; font-size: 20px; line-height: 1.2; font-weight: 800; }
.rsf-results { background: var(--rsf-navy); margin-top: 20px; padding: 18px 20px 20px; border-radius: 6px; }
.rsf-results__note { margin: 0; color: var(--rsf-muted); font-size: 13px; }
.rsf-results__viewport { position: relative; }
.rsf-results__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rsf-results__track::-webkit-scrollbar { display: none; }
.rsf-match { flex: 0 0 210px; scroll-snap-align: start; background: #151b33; border-radius: 6px; padding: 10px 12px 12px; }
.rsf-match__head { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; color: #9aa3c7; margin-bottom: 8px; }
.rsf-match__league { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsf-match__status { white-space: nowrap; }
.rsf-match__status--final { color: #35d6c4; }
.rsf-match__status--live { color: #ff5c8a; }
.rsf-match__status--soon { color: #f5c542; }
.rsf-match__status--off { color: #9aa3c7; }
.rsf-match__team { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; font-weight: 600; }
.rsf-match__team img { width: 22px; height: 22px; object-fit: contain; }
.rsf-match__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsf-match__score { font-weight: 800; }
.rsf-results__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--rsf-pink), #8b2be2); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; z-index: 2; }
.rsf-results__nav--prev { left: -16px; }
.rsf-results__nav--next { right: -16px; }
.rsf-results__title { margin: 0 0 12px; font-size: 14px; font-weight: 800; text-transform: uppercase; border-left: 4px solid var(--rsf-pink); padding-left: 10px; }

/* ---------- Footer ---------- */
.rsf-footer { background: var(--rsf-pink); padding: 56px 0 40px; }
.rsf-footer__grid { display: grid; grid-template-columns: 1fr auto auto; gap: 56px; align-items: start; }
.rsf-footer h4 { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--rsf-dark); }
.rsf-footer ul { list-style: none; margin: 0; padding: 0; }
.rsf-footer li { margin: 4px 0; font-size: 13px; color: #5a1030; }
.rsf-footer li a:hover { color: #fff; }
.rsf-social { display: flex; gap: 16px; }
.rsf-social a { width: 30px; height: 30px; color: var(--rsf-dark); }
.rsf-social svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rsf-copy { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rsf-dark); text-align: center; color: #7a1c46; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.rsf-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.rsf-grid--feature { grid-template-columns: 1fr 1fr; }
	.rsf-grid--feature .rsf-aside { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 800px) {
	.rsf-top { background: linear-gradient(to bottom, var(--rsf-pink) 0, var(--rsf-pink) 40px, var(--rsf-dark) 40px); }
	.rsf-top__grid { grid-template-columns: 1fr; }
	.rsf-weather { display: none; }
	.rsf-hero { min-height: 340px; }
	.rsf-hero__title { left: 20px; right: 20px; }
	.rsf-grid--3, .rsf-grid--2, .rsf-grid--2-wide { grid-template-columns: 1fr; }
	.rsf-header { padding: 20px 0; }
	.rsf-burger { display: block; }
	.rsf-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--rsf-pink); padding: 8px 16px 20px; z-index: 20; }
	.rsf-nav.is-open { display: block; }
	.rsf-nav ul { flex-direction: column; gap: 12px; }
	.rsf-header { position: relative; }
	.rsf-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
	.rsf-grid--4 { grid-template-columns: 1fr; }
}
