/*
Theme Name: Cajón Propiedades Editorial
Theme URI: https://cajonpropiedades.cl/
Description: Tema editorial ligero para Cajón Propiedades, construido sobre GeneratePress.
Author: Cajón Propiedades
Version: 0.2.3
Template: generatepress
Text Domain: cajonpropiedades-editorial
*/

:root {
    --g25-ink: #1a1410;
    --g25-text: #4a4038;
    --g25-muted: #71685f;
    --g25-paper: #fdfaf6;
    --g25-warm: #f7f2ea;
    --g25-white: #fff;
    --g25-blue: #b8924a;
    --g25-line: #e5ded2;
    --g25-dark: #181411;
    --g25-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --g25-sans: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --g25-mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

/* Dark editorial page heroes and original two-column page layouts. */
.g25-page__hero.g25-page__hero--dark { padding: 66px 0 58px; border-bottom: 0; background: var(--g25-dark); color: white; }
.g25-page__hero.g25-page__hero--dark .g25-page__hero-inner { max-width: 1110px; }
.g25-page__hero.g25-page__hero--dark .g25-kicker { display: flex; align-items: center; gap: 14px; }
.g25-page__hero.g25-page__hero--dark .g25-kicker::before { width: 30px; height: 1px; flex: 0 0 30px; background: var(--g25-blue); content: ""; }
.g25-page__hero.g25-page__hero--dark h1 { max-width: 880px; color: white; font-size: clamp(48px,6vw,72px); line-height: 1.02; }
.g25-page__hero.g25-page__hero--dark h1 span, .g25-page__hero.g25-page__hero--dark h1 em { display: block; }
.g25-page__hero.g25-page__hero--dark h1 em { color: var(--g25-blue); font-style: italic; }
.g25-page__hero.g25-page__hero--dark .g25-page__deck { max-width: 650px; color: rgba(255,255,255,.62); }

.cp-zone-grid--all article { min-height: 300px; }
.cp-zone-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0 !important; }
.cp-zone-card-tags b { padding: 4px 10px; border: 1px solid var(--g25-line); color: var(--g25-muted); font-family: var(--g25-mono); font-size: 11px; font-weight: 400; line-height: 1.2; }

.cp-story-list { padding: 92px 0; }
.cp-story { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 72px; margin-bottom: 92px; }
.cp-story:last-child { margin-bottom: 0; }
.cp-story--reverse .cp-story__copy { order: 2; }
.cp-story--reverse img { order: 1; }
.cp-story__copy { padding: 24px 0; }
.cp-story__copy h2 { max-width: 500px; margin: 0 0 22px; color: var(--g25-ink); font-size: clamp(34px,4vw,48px); line-height: 1.08; }
.cp-story__copy > p:last-child { margin: 0; font-size: 19px; line-height: 1.7; }
.cp-story img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.cp-about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.9fr); align-items: start; gap: 72px; }
.cp-about-copy { font-size: 19px; line-height: 1.72; }
.cp-about-copy > p { margin: 0 0 1.35em; }
.cp-about-grid > img { width: 100%; height: auto; }
.cp-about-contact { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--g25-line); }
.cp-about-contact p { margin: 0 0 12px; }

@media (max-width: 920px) {
    .cp-story, .cp-about-grid { grid-template-columns: 1fr; gap: 38px; }
    .cp-story--reverse .cp-story__copy, .cp-story--reverse img { order: initial; }
    .cp-story { margin-bottom: 64px; }
    .cp-story-list { padding: 64px 0; }
}

@media (max-width: 620px) {
    .g25-page__hero.g25-page__hero--dark { padding: 48px 0 42px; }
    .g25-page__hero.g25-page__hero--dark h1 { font-size: 43px; }
    .g25-page__hero.g25-page__hero--dark .g25-kicker { gap: 10px; }
    .g25-page__hero.g25-page__hero--dark .g25-kicker::before { width: 22px; flex-basis: 22px; }
    .cp-zone-grid--all article { min-height: 270px; }
    .cp-story-list { padding: 48px 0; }
    .cp-story { gap: 24px; margin-bottom: 52px; }
    .cp-story__copy h2 { font-size: 34px; }
    .cp-story__copy > p:last-child, .cp-about-copy { font-size: 17px; }
    .cp-about-grid { gap: 28px; }
}

/* Cajón Propiedades */
.cp-hero { display: grid; min-height: calc(100svh - 68px); align-items: end; background: linear-gradient(rgba(0,0,0,.47),rgba(0,0,0,.47)), url('https://cajonpropiedades.cl/wp-content/uploads/2026/06/hero-home-desktop.jpg') bottom center/cover; color: white; }
.cp-hero .cp-hero__inner { width: calc(100% - 320px); max-width: none; padding-block: 80px; }
.cp-hero h1 { max-width: 790px; margin: 0 0 20px; color: white; font-family: var(--g25-serif); font-size: clamp(58px,5.25vw,76px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.cp-hero h1 span, .cp-hero h1 em { display: block; }
.cp-hero h1 em { color: var(--g25-blue); font-style: italic; }
.cp-hero__inner > p:not(.g25-kicker) { max-width: 650px; margin: 0 0 32px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.6; }
.g25-site-header .g25-site-header__inner { width: calc(100% - 160px); max-width: none; }
.cp-hero .g25-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.cp-hero .g25-kicker::before { width: 30px; height: 1px; flex: 0 0 30px; background: var(--g25-blue); content: ""; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 34px; border: 1px solid var(--g25-blue); background: var(--g25-blue); color: var(--g25-ink); font-size: 15px; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; }
.cp-button:hover { border-color: white; background: white; color: var(--g25-ink); }
.cp-button--ghost { border-color: rgba(255,255,255,.42); background: transparent; color: white; }
.cp-button--dark { border-color: var(--g25-ink); background: var(--g25-ink); color: white; }
.cp-trust { padding: 82px 0; background: var(--g25-warm); }
.cp-trust__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 80px; align-items: start; }
.cp-trust h2 { margin: 0; color: var(--g25-ink); font-family: var(--g25-serif); font-size: clamp(36px,4.6vw,56px); line-height: 1.08; }
.cp-trust__grid > div:last-child > p { margin-top: 0; font-size: 19px; }
.cp-service-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--g25-line); border-left: 1px solid var(--g25-line); }
.cp-service-grid a { min-height: 280px; padding: 30px; border-right: 1px solid var(--g25-line); border-bottom: 1px solid var(--g25-line); color: inherit; text-decoration: none; }
.cp-service-grid a:hover { background: var(--g25-warm); }
.cp-service-grid span { color: var(--g25-blue); font-family: var(--g25-mono); font-size: 12px; }
.cp-service-grid h3 { margin: 48px 0 10px; color: var(--g25-ink); font-family: var(--g25-serif); font-size: 34px; }
.cp-listings { padding: 72px 0 80px; background: var(--g25-dark); color: white; }
.cp-listings .g25-section__head { border-color: rgba(255,255,255,.15); }
.cp-listings h2 { color: white; }
.cp-empty-state { max-width: 820px; padding: 40px; border: 1px solid var(--g25-line); background: var(--g25-warm); color: var(--g25-text); }
.cp-listings .cp-empty-state { border-color: rgba(255,255,255,.14); background: #211c18; color: rgba(255,255,255,.7); }
.cp-empty-state h2, .cp-empty-state h3 { margin-top: 0; color: inherit; font-family: var(--g25-serif); font-size: 32px; }
.cp-property-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.cp-property-card { background: white; }
.cp-property-card a { display: block; color: inherit; text-decoration: none; }
.cp-property-card__image { aspect-ratio: 3/2; overflow: hidden; background: var(--g25-warm); }
.cp-property-card__image img { width: 100%; height: 100%; object-fit: cover; }
.cp-property-card__body { padding: 24px; }
.cp-property-card h2 { margin: 0 0 14px; color: var(--g25-ink); font-family: var(--g25-serif); font-size: 28px; }
.cp-property-card__price { color: var(--g25-ink); font-family: var(--g25-serif); font-size: 27px; font-weight: 700; }
.cp-zone-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--g25-line); border-left: 1px solid var(--g25-line); }
.cp-zone-grid a, .cp-zone-grid article { min-height: 220px; display: flex; flex-direction: column; padding: 24px; border-right: 1px solid var(--g25-line); border-bottom: 1px solid var(--g25-line); color: inherit; text-decoration: none; }
.cp-zone-grid a:hover { background: var(--g25-warm); }
.cp-zone-grid strong { color: var(--g25-ink); font-family: var(--g25-serif); font-size: 26px; }
.cp-zone-grid span { margin: 14px 0; color: var(--g25-muted); font-size: 15px; }
.cp-zone-grid em { margin-top: auto; color: var(--g25-blue); font-size: 14px; font-style: normal; font-weight: 700; }
.cp-zone-grid small { margin-bottom: 12px; color: var(--g25-blue); font-family: var(--g25-mono); }
.cp-zone-grid--home article { min-height: 250px; }
.cp-home-zones .g25-section__head { padding-bottom: 0; border-bottom: 0; }
.cp-home-zones__action { margin-top: 30px; }
.cp-final-cta { padding: 88px 0; background: var(--g25-dark); color: white; }
.cp-final-cta h2 { max-width: 850px; margin: 0 0 16px; color: white; font-family: var(--g25-serif); font-size: clamp(38px,5vw,58px); line-height: 1.08; }
.cp-property__hero { padding: 50px 0; background: var(--g25-dark); color: white; }
.cp-property__hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 46px; align-items: center; }
.cp-property__hero img { width: 100%; height: auto; }
.cp-property__hero h1 { margin: 0 0 12px; color: white; font-family: var(--g25-serif); font-size: clamp(40px,5vw,64px); line-height: 1.05; }
.cp-property__zone { color: rgba(255,255,255,.62); }
.cp-property__price { color: var(--g25-blue); font-family: var(--g25-serif); font-size: 38px; font-weight: 700; }
.cp-property__facts { display: grid; grid-template-columns: repeat(5,1fr); margin-top: -1px; border-top: 1px solid var(--g25-line); border-left: 1px solid var(--g25-line); }
.cp-property__facts div { padding: 22px; border-right: 1px solid var(--g25-line); border-bottom: 1px solid var(--g25-line); }
.cp-property__facts span { display: block; color: var(--g25-muted); font-size: 12px; text-transform: uppercase; }
.cp-property__updated { margin-bottom: 64px; padding-top: 20px; border-top: 1px solid var(--g25-line); color: var(--g25-muted); font-size: 14px; }
.cp-contact-simple { padding-block: 22px 42px; text-align: center; }
.cp-contact-simple h1, .cp-contact-simple h2 { margin: 0; color: var(--g25-ink); font-size: clamp(42px,5vw,58px); line-height: 1.08; }
.cp-contact-simple__intro { max-width: 680px; margin: 20px auto 30px; font-size: 20px; }
.cp-contact-simple__place { margin: 14px 0 30px; color: var(--g25-muted); font-size: 19px; }
.cp-contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cp-contact-simple__details { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 26px 0 0; font-size: 17px; }

@media (max-width: 920px) {
    .cp-hero .cp-hero__inner { width: calc(100% - 40px); }
    .cp-trust__grid { grid-template-columns: 1fr; gap: 38px; }
    .cp-service-grid, .cp-property-grid, .cp-zone-grid { grid-template-columns: repeat(2,1fr); }
    .cp-property__hero-grid { grid-template-columns: 1fr; }
    .cp-property__facts { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 620px) {
    .cp-hero { min-height: 600px; }
    .cp-hero .cp-hero__inner { width: calc(100% - 32px); padding-block: 62px; }
    .cp-hero h1 { font-size: 47px; line-height: 1.02; }
    .cp-hero h1 span, .cp-hero h1 em { display: inline; }
    .cp-hero h1 span::after, .cp-hero h1 em::after { content: " "; }
    .cp-hero .g25-kicker { gap: 10px; margin-bottom: 20px; }
    .cp-hero .g25-kicker::before { width: 22px; flex-basis: 22px; }
    .cp-hero__inner > p:not(.g25-kicker) { font-size: 16px; }
    .cp-trust { padding: 58px 0; }
    .cp-service-grid, .cp-property-grid, .cp-zone-grid { grid-template-columns: 1fr; }
    .cp-service-grid a { min-height: 220px; }
    .cp-property__facts { grid-template-columns: 1fr 1fr; }
    .cp-empty-state { padding: 26px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--g25-paper);
    color: var(--g25-text);
    font-family: var(--g25-sans);
    font-size: 18px;
    line-height: 1.65;
    overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--g25-serif); font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--g25-blue); text-underline-offset: .16em; }
a:hover { color: var(--g25-ink); }
button, input, select, textarea { font: inherit; }

.g25-shell { width: calc(100% - 48px); max-width: 1180px; margin-inline: auto; }
.g25-reading-width { width: calc(100% - 48px); max-width: 720px; margin-inline: auto; }
.g25-wide-width { width: calc(100% - 48px); max-width: 1080px; margin-inline: auto; }
.g25-main { min-height: 60vh; }
.g25-skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; background: var(--g25-ink); color: white; transform: translateY(-150%); }
.g25-skip-link:focus { transform: translateY(0); }

.g25-site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--g25-line); background: rgba(253,250,246,.96); backdrop-filter: blur(10px); }
.g25-site-header__inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.g25-brand { color: var(--g25-ink); font-family: var(--g25-serif); font-size: 21px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.g25-brand span { color: var(--g25-blue); }
.g25-brand em { font-weight: 700; }
.g25-menu > li:last-child > a { min-height: 38px; padding: 0 16px; background: var(--g25-blue); color: white; font-family: var(--g25-sans); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.g25-menu > li:last-child > a:hover, .g25-menu > li:last-child.current-menu-item > a { background: var(--g25-ink); color: white; }
.g25-primary-nav { margin-left: auto; }
.g25-menu, .g25-menu ul { list-style: none; margin: 0; padding: 0; }
.g25-menu { display: flex; align-items: center; gap: 24px; }
.g25-menu li { position: relative; }
.g25-menu a { min-height: 44px; display: flex; align-items: center; color: var(--g25-ink); font-family: var(--g25-mono); font-size: 13px; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.g25-menu a:hover, .g25-menu .current-menu-item > a, .g25-menu .current-menu-ancestor > a { color: var(--g25-blue); }
.g25-menu .sub-menu { position: absolute; top: 100%; right: 0; min-width: 230px; display: none; padding: 8px 18px 14px; border: 1px solid var(--g25-line); background: var(--g25-paper); }
.g25-menu li:hover > .sub-menu, .g25-menu li:focus-within > .sub-menu { display: block; }
.g25-menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 44px; border: 0; background: transparent; color: var(--g25-ink); font-family: var(--g25-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.g25-home-intro { padding: clamp(34px, 4.5vw, 54px) 0 24px; }
.g25-home-intro__inner { padding-left: 18px; border-left: 10px solid var(--g25-blue); }
.g25-home-intro h1 { max-width: 1050px; margin: 0 0 10px; color: var(--g25-ink); font-family: var(--g25-serif); font-size: clamp(42px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.035em; }
.g25-home-intro__deck { max-width: 900px; margin: 0; color: var(--g25-text); font-size: clamp(19px, 1.7vw, 21px); line-height: 1.5; }
.g25-kicker { margin: 0 0 10px; color: var(--g25-blue); font-family: var(--g25-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; }

.g25-lead-story { margin-top: 15px; background: var(--g25-warm); }
.g25-lead-story__link { min-height: 440px; display: grid; grid-template-columns: minmax(0,1.65fr) minmax(320px,.85fr); color: inherit; text-decoration: none; }
.g25-lead-story__link:focus-visible { outline: 3px solid var(--g25-blue); outline-offset: 5px; }
.g25-lead-story__image { min-height: 100%; overflow: hidden; background: var(--g25-warm); }
.g25-lead-story__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.g25-lead-story__copy { display: flex; flex-direction: column; justify-content: center; padding: 38px 36px; }
.g25-lead-story__terms { margin: 0 0 14px; color: var(--g25-blue); font-size: 12px; letter-spacing: .12em; }
.g25-lead-story__copy h2 { margin: 0 0 14px; color: var(--g25-ink); font-family: var(--g25-serif); font-size: clamp(34px, 3.3vw, 46px); line-height: 1.08; letter-spacing: -.02em; }
.g25-lead-story__copy > p:not(.g25-kicker, .g25-lead-story__terms) { margin: 0 0 16px; font-size: 17px; line-height: 1.58; }
.g25-lead-story__link:hover .g25-lead-story__image img { transform: scale(1.015); }
.g25-lead-story__link:hover h2, .g25-lead-story__link:hover .g25-text-link { color: var(--g25-blue); }
.g25-text-link { font-size: 16px; font-weight: 650; text-decoration: none; }

.g25-section { padding: 70px 0; }
.g25-latest-section { padding-top: 50px; }
.g25-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--g25-line); }
.g25-section__head h2 { margin: 0; color: var(--g25-ink); font-family: var(--g25-serif); font-size: clamp(30px, 4vw, 42px); line-height: 1.1; }
.g25-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px 26px; }
.g25-card { min-width: 0; }
.g25-card__link { height: 100%; display: block; color: inherit; text-decoration: none; }
.g25-card__link:focus-visible { outline: 3px solid var(--g25-blue); outline-offset: 5px; }
.g25-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--g25-warm); }
.g25-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.g25-card__link:hover .g25-card__media img { transform: scale(1.018); }
.g25-card__body { padding-top: 17px; }
.g25-card h3 { margin: 0 0 9px; color: var(--g25-ink); font-family: var(--g25-serif); font-size: clamp(23px, 2.2vw, 29px); line-height: 1.14; letter-spacing: -.015em; }
.g25-card__excerpt { margin: 0; color: var(--g25-muted); font-size: 16px; line-height: 1.55; }
.g25-card__more { display: inline-block; margin-top: 10px; color: var(--g25-blue); font-size: 15px; font-weight: 650; text-decoration: none; }
.g25-card__link:hover h3, .g25-card__link:hover .g25-card__more { color: var(--g25-blue); }
.g25-card__link:hover .g25-card__more { text-decoration: underline; }

.g25-pillar-section { padding: 68px 0; background: var(--g25-warm); }
.g25-pillar-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--g25-line); border-left: 1px solid var(--g25-line); }
.g25-pillar-grid a { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border-right: 1px solid var(--g25-line); border-bottom: 1px solid var(--g25-line); color: var(--g25-ink); text-decoration: none; }
.g25-pillar-grid a:hover { background: var(--g25-white); color: var(--g25-blue); }
.g25-pillar-grid strong { font-family: var(--g25-serif); font-size: 26px; line-height: 1.1; }
.g25-pillar-grid span { color: var(--g25-muted); font-size: 14px; }

.g25-ecosystem-section { padding: 76px 0 80px; border-top: 1px solid var(--g25-line); border-bottom: 1px solid var(--g25-line); background: var(--g25-warm); }
.g25-ecosystem-section__head { max-width: 760px; margin-bottom: 34px; }
.g25-ecosystem-section__head h2 { margin: 0; color: var(--g25-ink); font-family: var(--g25-serif); font-size: clamp(34px, 4vw, 46px); line-height: 1.08; }
.g25-ecosystem-section__head h2 em { color: var(--g25-blue); font-style: italic; }
.g25-ecosystem-section__head > p:last-child { margin: 18px 0 0; color: var(--g25-text); font-size: 18px; line-height: 1.65; }
.g25-ecosystem-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-top: 1px solid var(--g25-line); border-left: 1px solid var(--g25-line); }
.g25-ecosystem-grid a { position: relative; min-height: 190px; display: flex; flex-direction: column; padding: 26px 50px 24px 24px; border-right: 1px solid var(--g25-line); border-bottom: 1px solid var(--g25-line); background: var(--g25-paper); color: var(--g25-ink); text-decoration: none; }
.g25-ecosystem-grid a:hover { background: var(--g25-white); }
.g25-ecosystem-grid strong { color: var(--g25-site-color); font-family: var(--g25-serif); font-size: 25px; line-height: 1.15; }
.g25-ecosystem-grid small { margin-bottom: 10px; color: var(--g25-muted); font-family: var(--g25-mono); font-size: 10px; letter-spacing: .08em; }
.g25-ecosystem-grid a > span:not(.g25-ecosystem-grid__arrow) { margin-top: 18px; color: var(--g25-muted); font-size: 15px; line-height: 1.5; }
.g25-ecosystem-grid__arrow { position: absolute; right: 22px; bottom: 22px; color: var(--g25-site-color); font-size: 21px; line-height: 1; }
.g25-ecosystem-link--ruta { --g25-site-color: #26458e; }
.g25-ecosystem-link--historico { --g25-site-color: #b8924a; }
.g25-ecosystem-link--silvestre { --g25-site-color: #3a7a4a; }
.g25-ecosystem-link--profundo { --g25-site-color: #7a7168; }
.g25-ecosystem-link--outdoor { --g25-site-color: #8a4a20; }

.g25-stats { padding: 32px 0; background: var(--g25-dark); color: white; }
.g25-stats__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.g25-stats__grid > div { padding: 12px 24px; border-right: 1px solid rgba(255,255,255,.12); text-align: center; }
.g25-stats__grid > div:last-child { border-right: 0; }
.g25-stats strong { display: block; margin-bottom: 3px; color: #b8924a; font-family: var(--g25-serif); font-size: 34px; line-height: 1; }
.g25-stats span { font-family: var(--g25-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.g25-article { padding: 66px 0 0; }
.g25-article__header { position: relative; z-index: 0; }
.g25-article__header::before { position: absolute; z-index: -1; top: -66px; right: 0; bottom: -36px; left: 0; background: var(--g25-warm); box-shadow: 0 0 0 100vmax var(--g25-warm); clip-path: inset(0 -100vmax); content: ""; }
.g25-article__header h1, .g25-page__header h1 { margin: 0 0 18px; color: var(--g25-ink); font-family: var(--g25-serif); font-size: clamp(40px, 6vw, 62px); line-height: 1.03; letter-spacing: -.035em; }
.g25-article__deck { margin: 0 0 18px; color: var(--g25-text); font-size: 22px; line-height: 1.55; }
.g25-article__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--g25-muted); font-size: 14px; }
.g25-article__image { position: relative; z-index: 0; width: fit-content; max-width: calc(100% - 48px); margin-top: 36px; }
.g25-article__image::before { position: absolute; z-index: -1; top: 0; right: 0; left: 0; height: 58%; background: var(--g25-warm); box-shadow: 0 0 0 100vmax var(--g25-warm); clip-path: inset(0 -100vmax); content: ""; }
.g25-article__image img { width: auto; max-width: 100%; height: auto; }
.g25-article__image figcaption { margin-top: 9px; color: var(--g25-muted); font-family: var(--g25-mono); font-size: 12px; font-style: italic; line-height: 1.5; text-align: right; }
.g25-article__content { padding-top: 42px; color: var(--g25-text); font-size: 20px; line-height: 1.75; }
.g25-article__content p { margin: 0 0 1.45em; }
.g25-article__content h2, .g25-article__content h3 { color: var(--g25-ink); font-family: var(--g25-serif); line-height: 1.18; }
.g25-article__content h2 { margin: 1.8em 0 .65em; font-size: 34px; }
.g25-article__content h3 { margin: 1.6em 0 .6em; font-size: 27px; }
.g25-article--legal .g25-legal-section-label { margin: 2.2em 0 .35em; font-weight: 700; }
.g25-article--legal .g25-legal-section-label:first-child { margin-top: 0; }
.g25-article--legal .g25-legal-section-label + h2 { margin-top: 0; }
.g25-article__content blockquote { margin: 2em 0; padding-left: 24px; border-left: 3px solid var(--g25-blue); color: var(--g25-ink); font-family: var(--g25-serif); font-size: 24px; line-height: 1.55; }
.g25-article__content ul, .g25-article__content ol { padding-left: 1.35em; }
.g25-breadcrumbs { margin-bottom: 28px; color: var(--g25-muted); font-size: 14px; }
.g25-related { margin-top: 70px; background: var(--g25-warm); }

.caudal-art-wrap { display: block; overflow: hidden; margin: 40px -40px; padding: 40px; background: var(--g25-blue); }
.caudal-art-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.caudal-art-inner > div:first-child { padding-right: 20px; }
.caudal-art-label { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: rgba(255,255,255,.4); font-family: var(--g25-mono); font-size: 10px; letter-spacing: 4px; text-transform: uppercase; }
.caudal-art-label::after { width: 24px; height: 1px; display: block; background: rgba(255,255,255,.2); content: ""; }
.caudal-art-titulo { margin-bottom: 8px; color: white; font-family: var(--g25-serif); font-size: 22px; font-weight: 700; line-height: 1.2; }
.caudal-art-sub { margin-bottom: 16px; color: rgba(255,255,255,.5); font-size: 14px; }
.caudal-art-fuente { color: rgba(255,255,255,.3); font-family: var(--g25-mono); font-size: 10px; letter-spacing: 1px; }
.caudal-art-fuente a { border-bottom: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); text-decoration: none; }
.caudal-art-der { padding-left: 40px; border-left: 1px solid rgba(255,255,255,.15); }
.caudal-art-numero { margin-bottom: 4px; color: white; font-family: var(--g25-serif); font-size: 72px; font-weight: 700; line-height: 1; }
.caudal-art-unidad { margin: 10px 0 24px; color: rgba(255,255,255,.5); font-family: var(--g25-mono); font-size: 11px; letter-spacing: 3px; }
.caudal-art-semaforo { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.caudal-art-sem-item { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.25); font-family: var(--g25-mono); font-size: 11px; letter-spacing: 1px; transition: color .3s; }
.caudal-art-sem-item.activo { color: white; }
.caudal-art-sem-dot { width: 10px; height: 10px; display: inline-block; flex-shrink: 0; border-radius: 50%; opacity: .25; transition: opacity .3s; }
.caudal-art-sem-item.activo .caudal-art-sem-dot { opacity: 1; }
.dot-v { background: #5db85a; }
.dot-a { background: #f0a500; }
.dot-r { background: #d94040; }
.caudal-art-sep { color: rgba(255,255,255,.15); font-family: var(--g25-mono); }
.caudal-art-barra-wrap { height: 2px; overflow: hidden; margin-bottom: 8px; background: rgba(255,255,255,.15); }
.caudal-art-barra { height: 2px; background: rgba(255,255,255,.8); transition: width .6s ease; }
.caudal-art-meta { display: flex; justify-content: space-between; margin-bottom: 16px; color: rgba(255,255,255,.3); font-family: var(--g25-mono); font-size: 10px; }
#caudal-art-hora { display: block; margin: 0; padding: 0; color: rgba(255,255,255,.5); font-family: var(--g25-mono); font-size: 11px; }
#art-sem-normal.activo { color: #5db85a; }
#art-sem-elevado.activo { color: #f0a500; }
#art-sem-crecida.activo { color: #d94040; }

.g25-page { padding-top: 0; }
.g25-page__header:not(.g25-page__hero) { padding-top: 64px; }
.g25-page__hero { padding: 46px 0 44px; border-bottom: 1px solid var(--g25-line); background: var(--g25-warm); }
.g25-page__hero-inner { max-width: 880px; }
.g25-page__hero h1 { margin-bottom: 0; font-size: clamp(42px, 4.8vw, 54px); }
.g25-page__deck { max-width: 760px; margin: 18px 0 0; color: var(--g25-text); font-size: 20px; line-height: 1.55; }
.cp-page--propiedades .g25-page__hero { padding: 66px 0 58px; border-bottom: 0; background: var(--g25-dark); color: white; }
.cp-page--propiedades .g25-page__hero-inner { max-width: 1110px; }
.cp-page--propiedades .g25-page__hero h1 { color: white; font-size: clamp(48px,6vw,72px); line-height: 1.02; }
.cp-page--propiedades .g25-page__hero h1 span, .cp-page--propiedades .g25-page__hero h1 em { display: block; }
.cp-page--propiedades .g25-page__hero h1 em { color: var(--g25-blue); font-style: italic; }
.cp-page--propiedades .g25-page__deck { color: rgba(255,255,255,.62); }
.g25-pillar-stories { padding-top: 54px; }
.g25-page__content { padding: 22px 0 64px; font-size: 19px; line-height: 1.72; }
.g25-page__content p { margin-top: 0; margin-bottom: 1.4em; }
.g25-page__editorial { margin-top: 8px; padding: 64px 0 72px; border-top: 1px solid var(--g25-line); border-bottom: 1px solid var(--g25-line); background: var(--g25-warm); }
.g25-page__editorial .g25-page__content { padding: 0; }
.g25-page__editorial h2 { margin: 0 0 22px; color: var(--g25-ink); font-family: var(--g25-serif); font-size: 32px; line-height: 1.2; }
.g25-page__editorial p:last-child { margin-bottom: 0; }
.g25-page--station .g25-page__content { max-width: 1080px; padding-top: 52px; }
.g25-station-details { margin-top: 34px; }
.g25-station-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 13px 20px; background: var(--g25-blue); color: white; font-size: 16px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.g25-station-cta:hover { background: var(--g25-ink); color: white; }
.g25-page--station .rg25-clima__margen { margin-top: 40px; }
.g25-page--station .rg25-clima__margen summary { font-size: .82em; }
.g25-page--station .rg25-clima__nota { margin-top: 24px; font-size: .76em; line-height: 1.6; }

.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--g25-line); text-decoration: none; }
.nav-links .current { background: var(--g25-ink); color: white; }

.g25-site-footer { padding: 58px 0 24px; background: var(--g25-dark); color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.6; }
.g25-site-footer a { color: rgba(255,255,255,.84); }
.g25-site-footer__grid { display: grid; grid-template-columns: 1.35fr .8fr 1fr .8fr; gap: 40px; }
.g25-site-footer__brand { margin: 0 0 10px; color: white; font-family: var(--g25-serif); font-size: 26px; }
.g25-site-footer p { max-width: 410px; }
.g25-site-footer .g25-kicker { margin-bottom: 16px; color: rgba(255,255,255,.94); font-family: var(--g25-serif); font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.25; text-transform: none; }
.g25-site-footer__author { margin: 24px 0 6px; color: rgba(255,255,255,.82); }
.g25-site-footer__contact { margin: 0; }
.g25-social-links { display: flex; gap: 12px; margin-top: 22px; }
.g25-social-links a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); color: white; text-decoration: none; }
.g25-social-links a:hover { border-color: #b8924a; color: #b8924a; }
.g25-social-links svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.g25-social-links__dot, .g25-social-links__play { fill: currentColor; stroke: none; }
.g25-site-footer ul { list-style: none; margin: 0; padding: 0; }
.g25-site-footer li { margin-bottom: 8px; }
.g25-site-footer nav a { color: rgba(255,255,255,.74); text-decoration: none; }
.g25-site-footer nav .g25-ecosystem-link { color: var(--g25-site-color); font-weight: 650; }
.g25-site-footer nav a:hover { color: white; text-decoration: underline; }
.g25-site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 920px) {
    .g25-shell, .g25-reading-width, .g25-wide-width { width: calc(100% - 40px); }
    .g25-site-header .g25-site-header__inner { width: calc(100% - 40px); }
    .g25-menu-toggle { display: block; }
    .g25-primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; margin: 0; padding: 16px 20px 24px; border-bottom: 1px solid var(--g25-line); background: var(--g25-paper); }
    .g25-primary-nav.is-open { display: block; }
    .g25-menu { display: block; }
    .g25-menu a { min-height: 50px; border-bottom: 1px solid var(--g25-line); font-size: 14px; }
    .g25-menu > li:last-child > a { min-height: 50px; padding: 0; background: transparent; color: var(--g25-ink); font-family: var(--g25-mono); font-size: 14px; letter-spacing: .07em; text-transform: uppercase; }
    .g25-menu .sub-menu { position: static; display: block; padding: 0 0 0 18px; border: 0; background: transparent; }
    .g25-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .g25-lead-story__link { grid-template-columns: minmax(0,1.45fr) minmax(300px,1fr); }
    .g25-lead-story__copy { padding: 32px 28px; }
    .g25-pillar-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .g25-ecosystem-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .g25-stats__grid { grid-template-columns: repeat(2,1fr); gap: 20px 0; }
    .g25-site-footer__grid { grid-template-columns: 1.3fr 1fr; }
}

@media (max-width: 760px) {
    .g25-lead-story__link { min-height: 0; grid-template-columns: 1fr; }
    .g25-lead-story__image { min-height: 0; aspect-ratio: 16/9; }
    .g25-lead-story__copy { padding: 28px 24px 32px; }
}

@media (max-width: 620px) {
    body { font-size: 17px; }
    .g25-shell, .g25-reading-width, .g25-wide-width { width: calc(100% - 32px); }
    .g25-site-header .g25-site-header__inner { width: calc(100% - 32px); }
    .g25-site-header__inner { min-height: 60px; }
    .g25-brand { font-size: 19px; }
    .g25-brand em { display: none; }
    .g25-home-intro { padding: 32px 0 22px; }
    .g25-home-intro__inner { padding-left: 14px; border-left-width: 10px; }
    .g25-home-intro h1 { font-size: 38px; }
    .g25-home-intro__deck { font-size: 18px; }
    .g25-lead-story__image { aspect-ratio: 4/3; }
    .g25-lead-story__copy { padding: 24px 20px 28px; }
    .g25-lead-story__copy h2 { font-size: 32px; }
    .g25-lead-story__copy > p:not(.g25-kicker) { font-size: 17px; }
    .g25-section { padding: 54px 0; }
    .g25-latest-section { padding-top: 34px; }
    .g25-section__head { align-items: start; }
    .g25-section__head h2 { font-size: 31px; }
    .g25-grid, .g25-pillar-grid, .g25-ecosystem-grid { grid-template-columns: 1fr; }
    .g25-ecosystem-section { padding: 54px 0 58px; }
    .g25-ecosystem-section__head { margin-bottom: 26px; }
    .g25-ecosystem-section__head h2 { font-size: 34px; }
    .g25-ecosystem-section__head > p:last-child { font-size: 17px; }
    .g25-ecosystem-grid a { min-height: 142px; }
    .g25-card h3 { font-size: 27px; }
    .g25-stats__grid { grid-template-columns: 1fr 1fr; }
    .g25-stats__grid > div { padding: 10px 8px; }
    .g25-article { padding-top: 44px; }
    .g25-article__header::before { top: -44px; bottom: -26px; }
    .caudal-art-wrap { margin: 40px 0; padding: 32px 24px; }
    .caudal-art-inner { grid-template-columns: 1fr; gap: 28px; }
    .caudal-art-inner > div:first-child { padding-right: 0; }
    .caudal-art-der { padding-top: 24px; padding-left: 0; border-top: 1px solid rgba(255,255,255,.15); border-left: 0; }
    .g25-article__header h1, .g25-page__header h1 { font-size: 38px; }
    .g25-page__hero { padding: 38px 0 34px; }
    .g25-page__deck { margin-top: 14px; font-size: 18px; }
    .g25-pillar-stories { padding-top: 44px; }
    .g25-page__editorial { padding: 46px 0 54px; }
    .g25-page__editorial h2 { font-size: 28px; }
    .g25-page--station .g25-page__content { padding-top: 36px; }
    .g25-station-cta { width: 100%; justify-content: space-between; }
    .g25-article__deck { font-size: 19px; }
    .g25-article__image { width: fit-content; max-width: calc(100% - 32px); margin-top: 26px; }
    .g25-article__content { padding-top: 32px; font-size: 18px; line-height: 1.7; }
    .g25-article__content h2 { font-size: 29px; }
    .g25-article__content h3 { font-size: 24px; }
    .g25-site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
    .g25-site-footer__bottom { flex-direction: column; }
}

