﻿:root {
    --ink: #17202a;
    --muted: #536171;
    --line: #d8e0e7;
    --paper: #f7f8f6;
    --white: #fff;
    --forest: #244735;
    --moss: #6c8a3f;
    --sky: #2f6f9f;
    --rust: #b45b34;
    --shadow: 0 18px 45px rgba(23, 32, 42, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.site-header {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 72px;
    padding: 10px clamp(16px, 4vw, 56px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    align-items: center;
    display: inline-flex;
    font-weight: 800;
    gap: 10px;
    text-decoration: none;
}

.brand img {
    height: 48px;
    width: 48px;
}

.main-nav {
    align-items: center;
    display: flex;
    gap: 4px;
}

.main-nav a,
.nav-dropdown button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #243141;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    padding: 8px 12px;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.is-current,
.nav-dropdown.is-current > button,
.nav-dropdown button:hover {
    background: #edf3ef;
    color: var(--forest);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown button {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
}

.nav-dropdown button::after {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    content: "";
    height: 6px;
    margin-top: -3px;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
    width: 6px;
}

.nav-dropdown-menu {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 32, 42, 0.12);
    display: none;
    min-width: 210px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: grid;
    gap: 4px;
}

.nav-dropdown.open button::after {
    margin-top: 3px;
    transform: rotate(225deg);
}

.language-switch {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--forest);
    font-size: 0.78rem;
    font-weight: 900;
    padding: 8px 10px;
    text-decoration: none;
}

.language-switch:hover {
    border-color: var(--rust);
    color: var(--rust);
}

.menu-toggle {
    background: var(--forest);
    border: 0;
    border-radius: 6px;
    display: none;
    height: 40px;
    padding: 9px;
    width: 44px;
}

.menu-toggle span {
    background: var(--white);
    display: block;
    height: 2px;
    margin: 5px 0;
}

.hero {
    min-height: 690px;
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    padding: 120px clamp(18px, 5vw, 72px) 44px;
}

.hero-media {
    background:
        linear-gradient(90deg, rgba(14, 25, 22, 0.78), rgba(14, 25, 22, 0.18)),
        url("assets/img/Picos_Europa.jpg") center / cover;
    inset: 0;
    position: absolute;
    z-index: -1;
}

.hero-content {
    color: var(--white);
    max-width: 760px;
}

.eyebrow {
    color: var(--rust);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f1c27d;
}

h1,
h2 {
    font-family: "Libre Bodoni", Georgia, serif;
    line-height: 1.05;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    max-width: 860px;
}

.hero-copy {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin: 18px 0 28px;
    max-width: 650px;
}

.hero-actions,
.news-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button,
.news-grid a,
.quick-links a,
.section-heading a,
.activity-board a {
    text-decoration: none;
}

.button,
.news-actions a,
.feature-news a {
    border-radius: 6px;
    display: inline-flex;
    font-weight: 800;
    padding: 10px 16px;
}

.button.primary,
.news-actions a,
.feature-news a {
    background: var(--forest);
    color: var(--white);
}

.button.ghost {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
}

.next-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 360px;
    padding: 20px;
    position: absolute;
    right: clamp(18px, 5vw, 72px);
    top: 120px;
}

.next-card span,
.news-card span,
.feature-news span,
.news-list span {
    color: var(--rust);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.next-card strong {
    display: block;
    font-size: 1.35rem;
    margin: 6px 0;
}

.next-card-image {
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    height: auto;
    margin: 14px 0;
    max-height: 260px;
    object-fit: contain;
    width: 100%;
}

.next-card a {
    color: var(--sky);
    font-weight: 800;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto;
    max-width: 1180px;
    transform: translateY(-28px);
}

.quick-links a {
    background: var(--white);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    min-height: 132px;
    padding: 22px;
}

.quick-links a:first-child {
    border-radius: 8px 0 0 8px;
}

.quick-links a:last-child {
    border-radius: 0 8px 8px 0;
    border-right: 0;
}

.quick-links span {
    color: var(--moss);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.quick-links strong {
    display: block;
    margin-top: 8px;
}

.section-shell {
    margin: 64px auto;
    max-width: 1180px;
    padding: 0 clamp(18px, 4vw, 40px);
}

.page-hero {
    background:
        linear-gradient(90deg, rgba(14, 25, 22, 0.82), rgba(14, 25, 22, 0.22)),
        url("assets/img/Picos_Europa.jpg") center / cover;
    color: var(--white);
    padding: 96px clamp(18px, 5vw, 72px) 64px;
}

.compact-hero h1 {
    font-size: clamp(2.7rem, 6vw, 5.4rem);
}

.compact-hero p:not(.eyebrow) {
    max-width: 780px;
}

.section-shell.muted {
    background: #edf3ef;
    border-radius: 8px;
    padding-bottom: 34px;
    padding-top: 34px;
}

.section-shell.compact {
    margin-bottom: 48px;
}

.section-heading {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-heading a {
    color: var(--sky);
    font-weight: 800;
}

.news-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1.45fr 1fr;
}

.feature-news,
.news-list article,
.activity-board article,
.member-panel,
.detail-grid,
.photo-feature,
.sponsor-strip figure {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 32, 42, 0.08);
}

.feature-news {
    align-items: start;
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    overflow: hidden;
}

.home-news-image {
    align-self: start;
    height: auto;
    object-fit: contain;
    width: 100%;
}

.home-news-image-mobile {
    display: none;
}

.feature-news div,
.news-list article,
.activity-board article,
.member-panel {
    padding: 22px;
}

.feature-news h3,
.news-list h3,
.activity-board h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 8px 0;
}

.feature-news p,
.news-list p,
.activity-board p,
.member-panel p,
.detail-grid p,
.photo-feature p {
    color: var(--muted);
}

.news-list {
    display: grid;
    gap: 14px;
}

.activity-board {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}

.activity-months {
    display: grid;
    gap: 30px;
}

.activity-month {
    display: grid;
    gap: 14px;
}

.activity-month h2 {
    border-bottom: 2px solid var(--forest);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    padding-bottom: 8px;
}

.activity-page-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-page-card,
.news-page-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 32, 42, 0.08);
    padding: 22px;
}

.activity-page-card time,
.news-page-card span {
    color: var(--rust);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.activity-page-card h3,
.news-page-card h2 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 8px 0;
}

.activity-page-card p,
.news-page-card p {
    color: var(--muted);
}

.activity-tags,
.activity-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.activity-tags span {
    background: #edf3ef;
    border: 1px solid #cad8ce;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 9px;
}

.button.small {
    font-size: 0.86rem;
    padding: 7px 11px;
}

.muted-note {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.news-page-list {
    display: grid;
    gap: 16px;
}

.news-page-card {
    display: grid;
    gap: 20px;
    grid-template-columns: 260px 1fr;
    padding: 0;
    overflow: hidden;
}

.news-page-card.no-media {
    grid-template-columns: 1fr;
}

.news-page-card > div {
    padding: 22px;
}

.news-page-image {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.news-page-image-mobile {
    display: none;
}

.text-page {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 32, 42, 0.08);
    margin-bottom: 24px;
    padding: clamp(22px, 4vw, 38px);
}

.text-page p {
    color: var(--muted);
    font-size: 1.04rem;
    max-width: 880px;
}

.text-page p + p {
    margin-top: 16px;
}

.info-card-grid,
.link-group-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.link-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.link-group {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 32, 42, 0.08);
    padding: 22px;
}

.info-card > img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    margin-bottom: 16px;
    object-fit: cover;
    width: 100%;
}

.info-card span {
    color: var(--rust);
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.info-card h2,
.link-group h2,
.link-group h3 {
    font-family: "Libre Bodoni", Georgia, serif;
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    line-height: 1.08;
    margin: 8px 0 10px;
}

.info-card p {
    color: var(--muted);
}

.info-card .button {
    margin-top: 14px;
}

.link-group ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.link-group a {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 2px;
    padding-top: 10px;
    text-decoration: none;
}

.link-group a:hover strong {
    color: var(--sky);
}

.link-group span {
    color: var(--muted);
    font-size: 0.92rem;
}

.content-block,
.page-actions {
    margin-top: 34px;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.support-blocks,
.support-group + .support-group {
    margin-top: 26px;
}

.support-group h3 {
    color: var(--forest);
    font-size: 0.95rem;
    font-weight: 900;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.mini-sponsor-strip {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 36px;
    padding-top: 24px;
}

.mini-sponsor-strip figure {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    min-height: 108px;
    padding: 14px;
    text-align: center;
}

.mini-sponsor-strip img {
    max-height: 58px;
    object-fit: contain;
    width: 100%;
}

.mini-sponsor-strip .sponsor-mayador img {
    max-height: 82px;
    width: 112%;
}

.mini-sponsor-strip.collaborators-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
}

.mini-sponsor-strip.collaborators-strip img {
    max-height: 82px;
}

.mini-sponsor-strip figcaption {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 8px;
}

.mountain-week-detail > a {
    display: block;
    height: 100%;
}

.notice-card {
    background: #fff8ee;
    border: 1px solid #e6cfa9;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 32, 42, 0.06);
    margin-top: 24px;
    padding: 22px;
}

.notice-card span {
    color: var(--rust);
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.notice-card p {
    color: var(--ink);
}

.activity-board time {
    color: var(--sky);
    font-weight: 900;
}

.activity-board div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.activity-board span {
    background: #edf3ef;
    border: 1px solid #cad8ce;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 9px;
}

.card-link {
    color: var(--sky);
    display: inline-block;
    font-weight: 800;
    margin-top: 16px;
    text-decoration: none;
}

.detail-grid,
.photo-feature {
    align-items: center;
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.detail-grid.reverse img {
    order: 2;
}

.detail-grid img,
.photo-feature img {
    aspect-ratio: 4 / 3;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.detail-copy,
.photo-feature > div {
    padding: 30px;
}

.detail-copy h3,
.photo-feature h3 {
    font-family: "Libre Bodoni", Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
    margin-bottom: 14px;
}

.detail-copy ul {
    color: var(--muted);
    margin: 18px 0 0 1.1rem;
}

.detail-copy li + li {
    margin-top: 6px;
}

.detail-copy .button,
.photo-feature .button {
    margin-top: 20px;
}

.member-panel {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.edition-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 4px;
}

.edition-links a {
    background: #edf3ef;
    border: 1px solid #cad8ce;
    border-radius: 999px;
    color: var(--forest);
    font-weight: 800;
    padding: 4px 12px;
    text-decoration: none;
}

.edition-links span {
    background: #f3f4f2;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 800;
    padding: 4px 12px;
}

.photo-year-page {
    display: grid;
    gap: 38px;
}

.photo-year-section {
    display: grid;
    gap: 14px;
}

.photo-year-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-year-grid figure {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 32, 42, 0.08);
    overflow: hidden;
}

.photo-year-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.photo-year-grid figcaption {
    color: var(--ink);
    font-weight: 800;
    padding: 12px 14px 14px;
}

.sponsors-shell {
    margin-top: 32px;
}

.sponsor-strip {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}

.sponsor-strip figure {
    align-items: center;
    display: grid;
    min-height: 138px;
    padding: 18px;
    text-align: center;
}

.sponsor-strip img {
    max-height: 72px;
    object-fit: contain;
    width: 100%;
}

.sponsor-strip .sponsor-mayador img {
    max-height: 104px;
    width: 112%;
}

.sponsor-strip.collaborators-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sponsor-strip.collaborators-strip figure {
    min-height: 170px;
}

.sponsor-strip.collaborators-strip img {
    max-height: 118px;
}

.sponsor-strip figcaption {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 10px;
}

.site-footer {
    align-items: center;
    background: var(--forest);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    padding: 24px clamp(18px, 5vw, 72px);
}

.site-footer div {
    align-items: center;
    display: flex;
    gap: 12px;
}

.site-footer img {
    height: 54px;
    width: 54px;
}

.site-footer a {
    color: var(--white);
    font-weight: 800;
}

.site-footer .footer-links {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer .footer-links a {
    overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
    .main-nav {
        background: var(--white);
        border-bottom: 1px solid var(--line);
        display: none;
        flex-direction: column;
        left: 0;
        padding: 14px;
        position: absolute;
        right: 0;
        top: 72px;
    }

    .nav-dropdown,
    .nav-dropdown-menu {
        position: static;
        width: 100%;
    }

    .main-nav a,
    .nav-dropdown button {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .nav-dropdown-menu {
        box-shadow: none;
        margin-top: 4px;
    }

    .main-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 760px;
        padding-top: 100px;
    }

    .next-card {
        margin-top: 28px;
        max-width: none;
        position: static;
    }

    .quick-links,
    .news-grid,
    .activity-board,
    .activity-page-grid,
    .info-card-grid,
    .link-group-grid,
    .mini-sponsor-strip,
    .photo-year-grid,
    .news-page-card,
    .detail-grid,
    .photo-feature,
    .sponsor-strip {
        grid-template-columns: 1fr;
    }

    .quick-links {
        transform: none;
    }

    .quick-links a,
    .quick-links a:first-child,
    .quick-links a:last-child {
        border-radius: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature-news {
        grid-template-columns: 1fr;
    }

    .home-news-image-desktop {
        display: none;
    }

    .home-news-image-mobile {
        border: 1px solid var(--line);
        border-radius: 6px;
        display: block;
        height: auto;
        margin: 16px 0;
        max-height: 420px;
        object-fit: contain;
        width: 100%;
    }

    .news-page-image-desktop {
        display: none;
    }

    .news-page-image-mobile {
        display: block;
        height: auto;
        margin: 16px 0;
        max-height: 420px;
        object-fit: contain;
    }

    .detail-grid.reverse img {
        order: 0;
    }

    .section-heading,
    .member-panel,
    .site-footer,
    .site-footer div,
    .site-footer .footer-links {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand span {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 3rem;
    }

    .hero {
        min-height: 680px;
    }

    .section-shell {
        margin: 42px auto;
    }

    .detail-copy,
    .photo-feature > div {
        padding: 22px;
    }
}
