.senderos-page {
    min-height: 100vh;
    background: #f3f4f1;
    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: #111;
}

.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: #fff;
}

.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: #fff;
    backdrop-filter: blur(8px);
}

.section-eyebrow {
    background: rgba(225, 6, 0, .10);
    color: #b90000;
}

.senderos-title {
    max-width: 820px;
    margin: 14px 0 12px;
    color: #fff;
    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: #fff;
    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;
    height: clamp(280px, 28vw, 360px);
    background: #111;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.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: #e10600;
    color: #fff;
    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: #111;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
}

.featured-desc {
    margin: 0;
    color: #4c4c4c;
    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: #2d2d2d;
    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: #111;
    color: #fff;
}

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

.days-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(225, 6, 0, .10);
    color: #b90000;
    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: #111;
    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: #555;
    font-size: .98rem;
    line-height: 1.65;
}

.section-link {
    flex: 0 0 auto;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, .08);
}

.section-link:hover {
    background: #111;
    color: #fff;
}

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

.sendero-card {
    background: #fff;
    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: rgba(185, 0, 0, .22);
    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: #111;
    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: #efefef;
    color: #777;
    border: 1px dashed rgba(0, 0, 0, .18);
    text-align: center;
    font-weight: 900;
}

.sendero-no-image svg {
    width: 30px;
    height: 30px;
    color: #aaa;
}

.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: #fff;
    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: #b90000;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.3;
}

.sendero-days {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 5px 8px;
    background: #f1f1f1;
    color: #333;
    font-size: .72rem;
    font-weight: 900;
}

.sendero-nombre {
    margin: 0 0 7px;
    color: #111;
    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: #555;
    font-size: .8rem;
    line-height: 1.35;
    font-weight: 700;
}

.sendero-card-desc {
    margin: 0 0 10px;
    color: #555;
    font-size: .8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.sendero-info-row span {
    border-radius: 999px;
    padding: 5px 7px;
    background: #f3f4f1;
    color: #333;
    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: #555;
    font-size: .68rem;
    font-weight: 800;
}

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

.empty-senderos svg {
    width: 36px;
    height: 36px;
    color: #b90000;
}

.empty-senderos h3 {
    margin: 12px 0 4px;
    font-size: 1.2rem;
    color: #111;
}

.empty-senderos p {
    max-width: 520px;
    margin: 0;
    color: #555;
}

.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: #fff;
    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: #fff;
    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: #555;
    font-size: .76rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 88px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calendar-day span {
    color: #111;
    font-size: .82rem;
    font-weight: 900;
}

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

.calendar-day.has-event {
    border-color: rgba(225, 6, 0, .25);
    background: rgba(225, 6, 0, .05);
}

.calendar-event-name {
    display: inline-block;
    border-radius: 6px;
    padding: 6px 7px;
    background: #111;
    color: #fff;
    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));
    }

    .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;
    }

    .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,
    .calendar-card {
        padding: 16px;
    }

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

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