/*
Theme Name: dds_utacch.com.ar
Author: Martín Gutiérrez
Description: Portal outdoor argentino para trail, ciclismo, trekking y aventura.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dds-utacch-com-ar
*/

:root {
    --night: #071b22;
    --deep: #0b2a32;
    --forest: #0d4b48;
    --aqua: #2fe0b5;
    --signal: #f4ee54;
    --orange: #ff7849;
    --mist: #edf4ef;
    --paper: #f8faf6;
    --white: #ffffff;
    --ink: #112327;
    --muted: #5b6d6d;
    --line: #cedbd5;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(7, 27, 34, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.ridge-card img, .ridge-hero img, .ridge-preparation img { display: block; }
.ridge-shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-160%); background: var(--signal); color: var(--night); padding: 10px 16px; font-weight: 800; }
.skip-link:focus { transform: none; }

.ridge-header { background: var(--night); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.12); }
.ridge-header__inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ridge-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.ridge-brand__mark, .ridge-brand__custom img { width: 54px; height: 54px; color: var(--aqua); object-fit: contain; display: block; }
.ridge-brand__copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.2; }
.ridge-brand__copy strong { font-size: 1.15rem; letter-spacing: .07em; text-transform: uppercase; }
.ridge-brand__copy small { color: #a9c2bf; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ridge-nav-toggle { width: 46px; height: 46px; display: grid; place-content: center; gap: 5px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; }
.ridge-nav-toggle > span:not(.screen-reader-text) { display: block; width: 20px; height: 2px; background: currentColor; }
.ridge-nav[hidden] { display: none !important; }
.ridge-nav { position: absolute; z-index: 30; top: 86px; left: 0; width: 100%; padding: 16px 18px 24px; background: var(--night); }
.ridge-menu { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ridge-menu a { display: block; padding: 9px 12px; color: var(--white); text-decoration: none; font-size: .83rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ridge-menu a:hover, .ridge-menu .current-menu-item > a { color: var(--signal); }

.ridge-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-size: .76rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.ridge-kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.ridge-hero { position: relative; overflow: hidden; color: var(--white); background: var(--night); }
.ridge-hero::after { content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: repeating-radial-gradient(ellipse at 85% 48%, transparent 0 34px, rgba(47,224,181,.8) 35px 36px, transparent 37px 54px); }
.ridge-hero__grid { position: relative; z-index: 1; display: grid; min-height: 720px; align-items: center; padding-block: 70px 50px; }
.ridge-hero__copy { position: relative; z-index: 2; }
.ridge-hero .ridge-kicker { color: var(--aqua); }
.ridge-hero h1 { max-width: 760px; margin: 18px 0 20px; font-size: clamp(3.2rem, 12vw, 7.4rem); line-height: .86; letter-spacing: -.065em; text-transform: uppercase; }
.ridge-hero__copy > p { max-width: 630px; margin: 0; color: #c4d6d3; font-size: 1.1rem; }
.ridge-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.ridge-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 0; border-radius: 4px; background: var(--signal); color: var(--night); text-decoration: none; font: inherit; font-size: .8rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; box-shadow: 5px 5px 0 var(--aqua); }
.ridge-button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--aqua); }
.ridge-text-link { color: inherit; text-decoration: none; font-weight: 800; }
.ridge-text-link span { color: var(--orange); }
.ridge-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 650px; margin: 56px 0 0; padding: 0; list-style: none; background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.17); }
.ridge-hero__stats li { display: flex; flex-direction: column; padding: 16px; background: rgba(7,27,34,.86); }
.ridge-hero__stats strong { color: var(--signal); font-size: .85rem; text-transform: uppercase; }
.ridge-hero__stats span { color: #9fb8b5; font-size: .75rem; }
.ridge-hero__visual { align-self: end; margin-top: 35px; }
.ridge-hero__visual img { width: min(100%, 660px); margin-left: auto; filter: drop-shadow(0 22px 40px rgba(0,0,0,.35)); }
.ridge-coordinate { display: block; margin-top: 10px; color: #8eaaa6; font-size: .72rem; letter-spacing: .16em; text-align: right; }

.ridge-disciplines, .ridge-latest, .ridge-preparation, .ridge-cta { padding-block: 78px; }
.ridge-section-heading { display: grid; gap: 18px; margin-bottom: 32px; }
.ridge-section-heading h2, .ridge-preparation h2, .ridge-cta h2, .ridge-page-head h1 { margin: 8px 0 0; font-size: clamp(2.2rem, 8vw, 4.6rem); line-height: .98; letter-spacing: -.045em; text-transform: uppercase; }
.ridge-section-heading > p { max-width: 530px; margin: 0; color: var(--muted); }
.ridge-section-heading--row { align-items: end; }
.ridge-discipline-grid { display: grid; border-top: 2px solid var(--night); border-left: 1px solid var(--line); }
.ridge-discipline-grid article { min-height: 210px; padding: 24px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s, color .2s; }
.ridge-discipline-grid article:hover { background: var(--forest); color: var(--white); }
.ridge-discipline-grid article > span { color: var(--orange); font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.ridge-discipline-grid h3 { margin: 45px 0 8px; font-size: 1.2rem; text-transform: uppercase; }
.ridge-discipline-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
.ridge-discipline-grid article:hover p { color: #c4dcda; }

.ridge-latest { background: var(--mist); }
.ridge-post-grid { display: grid; gap: 24px; }
.ridge-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 0 rgba(13,75,72,.07); }
.ridge-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep); }
.ridge-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ridge-card:hover .ridge-card__media img { transform: scale(1.035); }
.ridge-card__body { padding: 24px; }
.ridge-card__meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--forest); font-size: .72rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.ridge-card h2 { margin: 13px 0 10px; font-size: 1.42rem; line-height: 1.15; }
.ridge-card h2 a { text-decoration: none; }
.ridge-card__excerpt { color: var(--muted); font-size: .94rem; }
.ridge-card__excerpt p { margin: 0; }
.ridge-card__link { display: inline-block; margin-top: 18px; color: var(--forest); font-size: .8rem; font-weight: 900; text-decoration: none; text-transform: uppercase; }

.ridge-preparation { color: var(--white); background: var(--deep); }
.ridge-preparation__grid { display: grid; gap: 42px; align-items: center; }
.ridge-preparation__image { padding: 22px; border: 1px solid rgba(255,255,255,.16); background: #092329; }
.ridge-preparation__image img { width: 100%; }
.ridge-preparation .ridge-kicker { color: var(--aqua); }
.ridge-preparation h2 { margin-bottom: 34px; }
.ridge-preparation ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.ridge-preparation li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.ridge-preparation li > span { color: var(--signal); font-weight: 900; }
.ridge-preparation strong { display: block; font-size: 1.05rem; text-transform: uppercase; }
.ridge-preparation p { margin: 4px 0 0; color: #b5cdca; }

.ridge-cta { background: var(--orange); }
.ridge-cta__inner { display: grid; gap: 30px; align-items: end; }
.ridge-cta .ridge-kicker { color: var(--night); }
.ridge-cta h2 { max-width: 720px; }
.ridge-cta p { max-width: 430px; margin-top: 0; font-size: 1.08rem; }
.ridge-button--dark { background: var(--night); color: var(--white); box-shadow: 5px 5px 0 var(--signal); }

.ridge-main { min-height: 60vh; padding-block: 30px 80px; }
.ridge-trail { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 42px; color: var(--muted); font-size: .8rem; }
.ridge-trail a { color: var(--forest); font-weight: 800; text-decoration: none; }
.ridge-page-head { max-width: 860px; margin-bottom: 45px; padding: 30px 0; border-bottom: 2px solid var(--night); }
.ridge-page-head p { color: var(--muted); }
.ridge-content-layout { display: grid; gap: 38px; }
.ridge-content-layout--wide { max-width: 980px; margin-inline: auto; }
.ridge-post-grid--list { grid-template-columns: 1fr; }
.ridge-sidebar .widget { margin-bottom: 18px; padding: 24px; background: var(--deep); color: var(--white); }
.ridge-sidebar .widget-title { margin: 0 0 16px; color: var(--signal); font-size: .95rem; text-transform: uppercase; }
.ridge-sidebar a { color: var(--white); }
.ridge-sidebar ul { margin: 0; padding-left: 20px; }
.ridge-article { padding: clamp(24px, 5vw, 58px); background: var(--white); border-top: 5px solid var(--aqua); box-shadow: var(--shadow); }
.ridge-article__head h1 { margin: 12px 0 30px; font-size: clamp(2.3rem, 7vw, 4.8rem); line-height: 1; letter-spacing: -.045em; }
.ridge-article__cover { margin: 0 0 34px; }
.ridge-article__cover img { display: block; width: 100%; }
.ridge-prose { overflow-wrap: anywhere; }
.ridge-prose h2, .ridge-prose h3 { line-height: 1.2; }
.ridge-prose a { color: var(--forest); font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.ridge-comments { margin-top: 34px; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.ridge-comments label { display: block; font-weight: 700; }
.ridge-comments input, .ridge-comments textarea, .ridge-search input { width: 100%; padding: 12px; border: 1px solid #9db0ab; background: var(--white); font: inherit; }
.ridge-search { display: flex; gap: 8px; max-width: 600px; }
.ridge-search label { flex: 1; }
.ridge-search button { padding: 10px 18px; border: 0; background: var(--forest); color: var(--white); font-weight: 800; }
.ridge-not-found { position: relative; max-width: 760px; margin-inline: auto; padding: 70px 0; text-align: center; }
.ridge-not-found__number { display: block; color: var(--line); font-size: clamp(7rem, 30vw, 15rem); font-weight: 900; line-height: .7; }
.ridge-not-found h1 { font-size: clamp(2.2rem, 8vw, 4rem); text-transform: uppercase; }
.ridge-not-found .ridge-search { margin: 26px auto; }
.pagination { grid-column: 1 / -1; margin-top: 20px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 8px 13px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.page-numbers.current { background: var(--forest); color: var(--white); }
.ridge-empty { grid-column: 1 / -1; padding: 30px; background: var(--white); border: 1px dashed var(--forest); }

.ridge-footer { padding-top: 58px; background: var(--night); color: #bdd0cd; }
.ridge-footer__grid { display: grid; gap: 30px; }
.ridge-footer__column, .ridge-footer__column a { color: #bdd0cd; }
.ridge-footer .widget-title { margin: 0 0 15px; color: var(--white); font-size: .95rem; text-transform: uppercase; }
.ridge-footer ul { margin: 0; padding: 0; list-style: none; }
.ridge-footer li { margin-bottom: 7px; }
.ridge-footer a { text-decoration-color: rgba(47,224,181,.45); }
.ridge-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 42px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: .78rem; }
.ridge-to-top { color: var(--signal) !important; font-weight: 800; text-decoration: none !important; }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner { position: fixed; z-index: 100; right: 18px; bottom: 18px; left: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; max-width: 650px; margin-left: auto; padding: 18px; background: var(--white); color: var(--ink); border: 2px solid var(--night); box-shadow: var(--shadow); }
.cookie-banner p { margin: 0; }

@media (min-width: 600px) {
    .ridge-discipline-grid { grid-template-columns: repeat(2, 1fr); }
    .ridge-post-grid { grid-template-columns: repeat(2, 1fr); }
    .ridge-section-heading { grid-template-columns: 1.2fr .8fr; align-items: end; }
    .ridge-footer__grid { grid-template-columns: 1.2fr .8fr 1.2fr; }
}

@media (min-width: 960px) {
    .ridge-header__inner { min-height: 96px; }
    .ridge-nav-toggle { display: none; }
    .ridge-nav[hidden], .ridge-nav { display: block !important; position: static; width: auto; padding: 0; background: transparent; }
    .ridge-menu { flex-direction: row; gap: 3px; }
    .ridge-hero__grid { grid-template-columns: 1.05fr .95fr; min-height: 730px; padding-block: 72px; }
    .ridge-hero h1 { font-size: clamp(5.4rem, 7.5vw, 7.4rem); }
    .ridge-hero__visual { margin: 0 -60px -72px -100px; }
    .ridge-discipline-grid { grid-template-columns: repeat(4, 1fr); }
    .ridge-post-grid { grid-template-columns: repeat(3, 1fr); }
    .ridge-preparation__grid { grid-template-columns: .95fr 1.05fr; gap: 76px; }
    .ridge-cta__inner { grid-template-columns: 1.35fr .65fr; }
    .ridge-content-layout { grid-template-columns: minmax(0, 2fr) minmax(240px, .82fr); }
    .ridge-content-layout--wide { display: block; }
    .ridge-post-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
