.senderos-page {
    min-height: 100vh;
    background: var(--app-bg);
    padding-bottom: 56px;
}

.container-senderos {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

.senderos-hero {
    position: relative;
    min-height: 410px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 128px 0 84px;
    background: var(--app-ink);
}

.senderos-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.senderos-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .44) 45%, rgba(0, 0, 0, .14) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .72) 100%);
}

.senderos-hero-content {
    position: relative;
    z-index: 2;
    color: var(--app-inverse);
}

.senderos-badge,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.senderos-badge {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    color: var(--app-inverse);
    backdrop-filter: blur(8px);
}

.section-eyebrow {
    background: color-mix(in srgb, var(--app-accent) 14%, var(--app-surface));
    color: var(--app-accent-dark);
    border: 1px solid color-mix(in srgb, var(--app-accent) 18%, transparent);
}

.senderos-title {
    max-width: 820px;
    margin: 14px 0 12px;
    color: var(--app-inverse);
    font-size: clamp(2.1rem, 4.5vw, 4.05rem);
    line-height: .98;
    font-weight: 900;
    text-transform: uppercase;
}

.senderos-subtitle {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
    line-height: 1.7;
}

.senderos-main {
    margin-top: -58px;
    position: relative;
    z-index: 3;
}

.featured-sendero {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(320px, 1fr);
    gap: 0;
    width: min(100%, 900px);
    margin: 0 auto;
    background: var(--app-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .18);
}

.featured-media {
    position: relative;
    display: block;
    height: clamp(280px, 28vw, 360px);
    background: var(--app-ink);
    overflow: hidden;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s ease, opacity .3s ease;
}

.featured-media-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.featured-media-link:hover img {
    transform: scale(1.02);
    opacity: .94;
}

.featured-media-link:focus-visible {
    outline: 3px solid var(--app-accent);
    outline-offset: -3px;
}

.featured-date {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 58px;
    border-radius: 8px;
    background: var(--app-accent);
    color: var(--app-inverse);
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.featured-date small {
    margin-top: 5px;
    font-size: .72rem;
    letter-spacing: .08em;
}

.featured-content {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.featured-content h2 {
    margin: 12px 0 10px;
    color: var(--app-text);
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
}

.featured-desc {
    margin: 0;
    color: var(--app-neutral-700);
    font-size: .9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: grid;
    gap: 7px;
    margin: 14px 0;
}

.featured-meta span,
.sendero-lugar,
.sendero-info-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.featured-meta svg,
.sendero-lugar svg,
.sendero-info-row svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.featured-meta span {
    color: var(--app-neutral-800);
    font-weight: 800;
    line-height: 1.35;
}

.featured-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary-sendero,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary-sendero {
    background: var(--app-ink);
    color: var(--app-inverse) !important;
}

.btn-primary-sendero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
    color: var(--app-inverse) !important;
}

.days-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 8px 12px;
    background: color-mix(in srgb, var(--app-accent) 10%, transparent);
    color: var(--app-accent-dark);
    font-size: .82rem;
    font-weight: 900;
}

.senderos-section,
.calendar-section {
    margin-top: 36px;
}

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

.section-title {
    margin: 8px 0 6px;
    color: var(--app-text);
    font-size: clamp(1.55rem, 2.4vw, 2.45rem);
    line-height: 1.08;
    font-weight: 900;
    text-transform: uppercase;
}

.section-description {
    max-width: 760px;
    margin: 0;
    color: var(--app-neutral-700);
    font-size: .98rem;
    line-height: 1.65;
}

.section-link {
    flex: 0 0 auto;
    background: var(--app-surface);
    color: var(--app-text);
    border: 1px solid rgba(0, 0, 0, .08);
}

.section-link:hover {
    background: var(--app-ink);
    color: var(--app-inverse);
}

.senderos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 430px));
    justify-content: start;
    gap: 16px;
}

.senderos-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.senderos-explorer-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.senderos-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(360px, 100%);
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(0, 0, 0, .13);
    border-radius: 7px;
    background: var(--app-surface);
    color: var(--app-muted);
}

.senderos-search:focus-within {
    outline: 3px solid color-mix(in srgb, var(--app-info) 24%, transparent);
    border-color: var(--app-info);
}

.senderos-search svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.senderos-search input {
    width: 100%;
    min-width: 0;
    padding: 11px 0;
    border: 0;
    background: transparent;
    color: var(--app-text);
    font: inherit;
    font-size: .86rem;
}

.senderos-search input:focus {
    outline: 0;
    box-shadow: none !important;
}

.senderos-select-wrap select {
    min-height: 44px;
    max-width: 100%;
    padding: 0 34px 0 12px;
    border: 1px solid rgba(0, 0, 0, .13);
    border-radius: 7px;
    background: var(--app-surface);
    color: var(--app-neutral-800);
    font: inherit;
    font-size: .84rem;
}

.senderos-result-count {
    margin-left: auto;
    color: var(--app-muted);
    font-size: .78rem;
    font-weight: 800;
}

.senderos-no-results {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 620px;
    margin: 18px auto 0;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    background: var(--app-surface);
}

.senderos-no-results > svg {
    width: 28px;
    height: 28px;
    color: var(--app-muted);
    flex: 0 0 auto;
}

.senderos-no-results h3 {
    margin: 0 0 7px;
    font-size: .96rem;
    font-weight: 900;
    text-transform: none;
}

.senderos-no-results button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-primary);
    font: inherit;
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
}

.senderos-no-results button:hover {
    text-decoration: underline;
}

.visited-section .senderos-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    gap: 14px;
}

.sendero-card {
    background: var(--app-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.sendero-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--app-accent-dark) 22%, transparent);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .18);
}

.sendero-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.sendero-image-wrap {
    position: relative;
    height: clamp(190px, 22vw, 245px);
    overflow: hidden;
    background: var(--app-ink);
    border-bottom: 1px solid rgba(0, 0, 0, .10);
}

.sendero-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .35s ease;
}

.sendero-card:hover .sendero-card-image {
    transform: scale(1.02);
}

.sendero-no-image {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    background: var(--app-neutral-100);
    color: var(--app-neutral-600);
    border: 1px dashed rgba(0, 0, 0, .18);
    text-align: center;
    font-weight: 900;
}

.sendero-no-image svg {
    width: 30px;
    height: 30px;
    color: var(--app-neutral-400);
}

.featured-no-image {
    min-height: 310px;
}

.sendero-level {
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(0, 0, 0, .74);
    color: var(--app-inverse);
    font-size: .75rem;
    font-weight: 900;
}

.sendero-card-body {
    padding: 12px 13px 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sendero-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sendero-fecha {
    margin: 0;
    color: var(--app-accent-dark);
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.3;
}

.sendero-days {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 5px 8px;
    background: var(--app-neutral-100);
    color: var(--app-neutral-800);
    font-size: .72rem;
    font-weight: 900;
}

.sendero-nombre {
    margin: 0 0 7px;
    color: var(--app-text);
    font-size: 1.04rem;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sendero-lugar {
    margin: 0 0 8px;
    color: var(--app-neutral-700);
    font-size: .8rem;
    line-height: 1.35;
    font-weight: 700;
}

.sendero-card-desc {
    margin: 0 0 10px;
    color: var(--app-neutral-700);
    font-size: .8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.visited-card .sendero-image-wrap {
    height: clamp(145px, 13vw, 185px);
}

.visited-card .sendero-card-body {
    padding: 11px 12px 12px;
}

.visited-card .sendero-nombre {
    font-size: .93rem;
    line-height: 1.18;
}

.visited-card .sendero-card-desc {
    font-size: .76rem;
}

.visited-card .sendero-info-row span {
    padding: 4px 6px;
    font-size: .66rem;
}

.sendero-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.sendero-info-row span {
    border-radius: 999px;
    padding: 5px 7px;
    background: var(--app-bg);
    color: var(--app-neutral-800);
    font-size: .7rem;
    font-weight: 800;
}

.sendero-info-row svg {
    width: 13px;
    height: 13px;
}

.terrain-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.terrain-row span {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 999px;
    padding: 4px 7px;
    color: var(--app-neutral-700);
    font-size: .68rem;
    font-weight: 800;
}

.empty-senderos {
    display: grid;
    place-items: center;
    min-height: 260px;
    text-align: center;
    border-radius: 8px;
    background: var(--app-surface);
    border: 1px dashed rgba(0, 0, 0, .16);
    padding: 28px;
}

.empty-senderos svg {
    width: 36px;
    height: 36px;
    color: var(--app-accent-dark);
}

.empty-senderos h3 {
    margin: 12px 0 4px;
    font-size: 1.2rem;
    color: var(--app-text);
}

.empty-senderos p {
    max-width: 520px;
    margin: 0;
    color: var(--app-neutral-700);
}

.calendar-section {
    display: grid;
    grid-template-columns: minmax(250px, .38fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.calendar-copy {
    position: sticky;
    top: 96px;
    background: var(--app-surface);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
    padding: 18px;
}

.calendar-card {
    background: var(--app-surface);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-weekdays {
    margin-bottom: 8px;
}

.calendar-weekdays div {
    color: var(--app-neutral-700);
    font-size: .76rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 88px;
    border-radius: 8px;
    border: 1px solid var(--app-neutral-150);
    background: var(--app-neutral-25);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calendar-day span {
    color: var(--app-text);
    font-size: .82rem;
    font-weight: 900;
}

.calendar-day.muted {
    opacity: .35;
}

.calendar-day.has-event {
    border-color: color-mix(in srgb, var(--app-accent) 34%, var(--app-surface));
    background: color-mix(in srgb, var(--app-accent) 8%, var(--app-surface));
}

.calendar-event-name {
    display: inline-block;
    border-radius: 6px;
    padding: 6px 7px;
    background: var(--app-primary-dark);
    color: var(--app-inverse) !important;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.fade-up-init {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .senderos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .visited-section .senderos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .featured-sendero {
        grid-template-columns: 1fr;
        width: min(100%, 720px);
    }

    .featured-media {
        height: clamp(300px, 58vw, 430px);
    }

    .calendar-section {
        grid-template-columns: 1fr;
    }

    .calendar-copy {
        position: static;
    }
}

@media (max-width: 760px) {
    .container-senderos {
        width: min(100% - 24px, 1220px);
    }

    .senderos-hero {
        min-height: 420px;
        padding: 132px 0 58px;
    }

    .senderos-main {
        margin-top: -30px;
    }

    .featured-content {
        padding: 22px;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-link {
        width: 100%;
    }

    .senderos-grid {
        grid-template-columns: 1fr;
    }

    .visited-section .senderos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .visited-card .sendero-image-wrap {
        height: 120px;
    }

    .visited-card .sendero-card-body {
        padding: 9px;
    }

    .visited-card .sendero-card-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 7px;
    }

    .visited-card .sendero-fecha {
        font-size: .66rem;
    }

    .visited-card .sendero-days {
        padding: 4px 6px;
        font-size: .62rem;
    }

    .visited-card .sendero-nombre {
        font-size: .78rem;
        line-height: 1.12;
        -webkit-line-clamp: 3;
    }

    .visited-card .sendero-lugar,
    .visited-card .sendero-card-desc {
        font-size: .68rem;
        line-height: 1.28;
    }

    .visited-card .sendero-card-desc {
        -webkit-line-clamp: 2;
    }

    .visited-card .sendero-info-row {
        gap: 4px;
    }

    .visited-card .sendero-info-row span {
        font-size: .58rem;
        padding: 4px 5px;
    }

    .calendar-card {
        overflow-x: auto;
    }

    .calendar-weekdays,
    .calendar-grid {
        min-width: 680px;
    }
}

@media (max-width: 520px) {
    .senderos-title {
        font-size: 1.78rem;
        line-height: 1.04;
    }

    .senderos-subtitle,
    .section-description,
    .featured-desc {
        font-size: .92rem;
    }

    .featured-media {
        height: 320px;
    }

    .featured-actions,
    .btn-primary-sendero {
        width: 100%;
    }

    .featured-content,
    .calendar-copy {
        padding: 16px;
    }

    .calendar-card {
        padding: 10px;
        overflow-x: visible;
    }

    .sendero-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .visited-section .section-heading-row {
        margin-bottom: 14px;
    }

    .visited-section .section-title {
        font-size: 1.15rem;
        line-height: 1.05;
    }

    .visited-section .section-description {
        font-size: .82rem;
        line-height: 1.4;
    }

    .visited-card .sendero-image-wrap {
        height: 108px;
    }

    .visited-card .sendero-level {
        left: 8px;
        bottom: 8px;
        padding: 5px 7px;
        font-size: .6rem;
    }

    .visited-card .sendero-lugar svg,
    .visited-card .sendero-info-row svg {
        width: 11px;
        height: 11px;
    }

    .calendar-weekdays,
    .calendar-grid {
        min-width: 0;
        gap: 4px;
    }

    .calendar-weekdays {
        margin-bottom: 5px;
    }

    .calendar-weekdays div {
        font-size: .62rem;
    }

    .calendar-day {
        min-height: 46px;
        border-radius: 7px;
        padding: 5px;
        gap: 3px;
    }

    .calendar-day span {
        font-size: .74rem;
    }

    .calendar-event-name {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        font-size: 0;
        line-height: 0;
    }

    .calendar-day.has-event {
        background: color-mix(in srgb, var(--app-accent) 8%, transparent);
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-accent) 16%, transparent);
    }
}
