.sendero-detalle-page {
    min-height: 100vh;
    background: #f3f4f1;
    color: #111;
}

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

.detalle-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #111;
}

.detalle-hero-img,
.detalle-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detalle-hero-img {
    object-fit: cover;
}

.detalle-no-image {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    background: #202020;
    color: rgba(255, 255, 255, .78);
    font-weight: 900;
    text-align: center;
}

.detalle-no-image svg {
    width: 42px;
    height: 42px;
    color: rgba(255, 255, 255, .42);
}

.detalle-hero-overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .76) 0%, rgba(0, 0, 0, .46) 48%, rgba(0, 0, 0, .12) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .78));
}

.detalle-hero-content {
    position: relative;
    z-index: 2;
    padding: 140px 0 88px;
    color: #fff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 34px;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.back-link svg,
.hero-meta svg {
    width: 16px;
    height: 16px;
}

.status-badge,
.section-kicker {
    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;
}

.status-badge {
    margin-top: 22px;
    background: rgba(225, 6, 0, .92);
    color: #fff;
}

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

.detalle-hero h1 {
    max-width: 940px;
    margin: 14px 0 12px;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: .98;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-desc {
    max-width: 740px;
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 1.05rem;
    line-height: 1.65;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: .86rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.detalle-main {
    position: relative;
    z-index: 3;
    margin-top: -54px;
    padding-bottom: 68px;
}

.summary-panel {
    display: grid;
    grid-template-columns: 110px repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.summary-card,
.detail-section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .10);
}

.summary-card {
    min-height: 104px;
    padding: 15px;
}

.summary-card svg {
    width: 18px;
    height: 18px;
    color: #b90000;
}

.difficulty-face {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 !important;
    border-radius: 999px;
    color: #fff !important;
    letter-spacing: 0;
}

.difficulty-face .face-eyes,
.difficulty-face .face-mouth {
    position: absolute;
    display: block;
}

.difficulty-face .face-eyes {
    top: 10px;
    left: 9px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 12px 0 0 currentColor;
}

.difficulty-face .face-mouth {
    left: 10px;
    bottom: 9px;
    width: 14px;
    height: 7px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 999px 999px;
}

.difficulty-face.medium .face-mouth {
    bottom: 10px;
    height: 0;
    border: 0;
    border-top: 2px solid currentColor;
    border-radius: 999px;
}

.difficulty-face.hard .face-mouth {
    left: 11px;
    bottom: 7px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.difficulty-face.easy,
.difficulty-tag.easy {
    background: #11945a !important;
    color: #fff !important;
}

.difficulty-face.medium,
.difficulty-tag.medium {
    background: #d89200 !important;
    color: #111 !important;
}

.difficulty-face.hard,
.difficulty-tag.hard {
    background: #c90000 !important;
    color: #fff !important;
}

.summary-card span {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.summary-card strong {
    display: block;
    margin-top: 4px;
    color: #111;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 900;
}

.summary-card small {
    display: block;
    margin-top: 3px;
    color: #777;
    font-size: .75rem;
    font-weight: 900;
}

.date-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #e10600;
    color: #fff;
}

.date-card span,
.date-card strong {
    margin: 0;
    color: #fff;
}

.date-card span {
    font-size: 2.2rem;
    line-height: 1;
}

.date-card strong {
    margin-top: 6px;
    font-size: .8rem;
}

.content-grid,
.detail-lists-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr);
    gap: 14px;
    margin-bottom: 28px;
}

.detail-section {
    padding: 20px;
}

.detail-section h2 {
    margin: 8px 0 10px;
    color: #111;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-section p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

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

.feature-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.feature-list span {
    display: block;
    border-radius: 8px;
    padding: 9px 10px;
    background: #f7f7f7;
    color: #555;
    font-size: .86rem;
    line-height: 1.35;
}

.feature-list strong {
    color: #111;
}

.terrain-tags span {
    border-radius: 999px;
    padding: 8px 11px;
    background: #f1f1f1;
    color: #222;
    font-size: .82rem;
    font-weight: 900;
}

.terrain-tags span:first-child {
    background: #111;
    color: #fff;
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.gallery-item {
    display: block;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #ddd;
    cursor: pointer;
    padding: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-empty {
    grid-column: 1 / -1;
    min-height: 170px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px dashed rgba(0, 0, 0, .18);
    background: #f2f2f2;
    color: #777;
    font-weight: 900;
    text-align: center;
}

.gallery-empty svg {
    width: 30px;
    height: 30px;
    color: #aaa;
}

.meeting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.meeting-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, .06);
}

.meeting-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #111;
    color: #fff;
}

.meeting-icon svg {
    width: 18px;
    height: 18px;
}

.meeting-card h3 {
    margin: 0 0 5px;
    color: #111;
    font-size: 1rem;
    font-weight: 900;
}

.meeting-point-label {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-bottom: 7px;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(225, 6, 0, .1);
    color: #d80000;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.time-grid span {
    border-radius: 8px;
    padding: 9px;
    background: #fff;
    color: #111;
    font-size: .86rem;
    font-weight: 900;
}

.time-grid strong {
    display: block;
    margin-bottom: 3px;
    color: #666;
    font-size: .72rem;
    text-transform: uppercase;
}

.map-link {
    display: inline-flex;
    margin-top: 12px;
    border-radius: 8px;
    padding: 9px 11px;
    background: #111;
    color: #fff;
    font-size: .84rem;
    font-weight: 900;
    text-decoration: none;
}

.detail-lists-grid {
    align-items: start;
}

.detail-list {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.detail-list-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px;
    border-radius: 8px;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, .05);
}

.detail-list-item svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: #b90000;
}

.detail-list-item strong {
    display: block;
    color: #111;
    font-size: .9rem;
}

.detail-list-item p {
    margin-top: 4px;
    font-size: .82rem;
    line-height: 1.45;
}

.detalle-alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: #fff;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
}

.detalle-alert.success {
    color: #087b4d;
    border: 1px solid rgba(0, 180, 120, .22);
}

.detalle-alert.error {
    color: #b90000;
    border: 1px solid rgba(225, 6, 0, .20);
}

.payment-section {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 28px;
}

.payment-section .detail-section h2 {
    font-size: clamp(1.2rem, 1.55vw, 1.55rem);
}

.investments-panel {
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.payment-lines {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.investment-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.investment-public-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    background: #f8f8f8;
    padding: 13px;
}

.investment-public-top {
    display: grid;
    gap: 6px;
}

.investment-public-top span {
    color: #b90000;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.investment-public-top strong {
    color: #111;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    line-height: 1.05;
    font-weight: 900;
}

.investment-public-card p {
    color: #555;
    font-size: .9rem;
    line-height: 1.45;
}

.investment-public-card .investment-alias {
    margin: 0;
    color: #111;
    font-weight: 900;
}

.investment-limit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 9px;
    background: rgba(225, 6, 0, .10);
    color: #b90000;
    font-size: .78rem;
    font-weight: 900;
}

.investment-limit svg {
    width: 15px;
    height: 15px;
}

.investment-included-list {
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.investment-included-list b {
    color: #111;
    font-size: .8rem;
    text-transform: uppercase;
}

.investment-included-list span {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    color: #333;
    font-size: .86rem;
    line-height: 1.35;
}

.investment-included-list svg {
    width: 15px;
    height: 15px;
    color: #11945a;
    margin-top: 1px;
    flex: 0 0 auto;
}

.payment-line {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #24313a;
    line-height: 1.5;
    font-size: .9rem;
}

.fuel-note {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: #f7f7f7;
}

.payment-line svg {
    width: 20px;
    height: 20px;
    color: #9d9d9d;
    margin-top: 1px;
}

.payment-line strong {
    color: #111;
}

.payment-amount {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    margin-bottom: 2px;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #111 0%, #2b2b2b 48%, #b90000 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(185, 0, 0, .20);
}

.payment-amount svg {
    width: 32px;
    height: 32px;
    color: #ffcf3d;
}

.payment-amount small {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.payment-amount strong {
    display: block;
    color: #fff;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.05;
}

.payment-card-section {
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
}

.bank-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .78fr);
    gap: 10px 14px;
    align-items: start;
    width: 100%;
    margin: 8px 0 0;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 70, 173, .05), rgba(225, 6, 0, .04)),
        #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .09);
}

.bank-card h3 {
    grid-column: 1 / -1;
    margin: 0 0 10px;
    color: #0046ad;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
}

.bank-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.bank-card dl div {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
}

.bank-card dt,
.bank-card dd {
    margin: 0;
    font-size: .82rem;
    line-height: 1.35;
}

.bank-card dt {
    margin-bottom: 3px;
    color: #24313a;
    font-weight: 800;
}

.bank-card dd {
    color: #0046ad;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.payment-note {
    margin-top: 0;
    padding: 10px 12px;
    border-left: 4px solid #ffbf00;
    border-radius: 8px;
    background: #fff6dc;
    color: #bc0000;
}

.payment-note strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bc0000;
    font-size: .86rem;
    text-transform: uppercase;
}

.payment-note strong svg {
    width: 17px;
    height: 17px;
}

.payment-note ul {
    display: grid;
    gap: 5px;
    margin: 8px 0 0;
    padding-left: 18px;
}

.payment-note li {
    color: #bc0000;
    font-size: .8rem;
    line-height: 1.35;
}

.detail-register-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}

.detail-register-cta h2 {
    margin: 8px 0 6px;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.1;
    font-weight: 900;
}

.detail-register-cta p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

.detail-register-cta .section-kicker {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.register-sendero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 8px;
    padding: 11px 15px;
    background: #e10600;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.register-sendero-btn svg {
    width: 18px;
    height: 18px;
}

.empty-block {
    border-radius: 8px;
    padding: 14px;
    background: #f7f7f7;
    color: #666;
    font-weight: 800;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .86);
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-modal img {
    max-width: min(1100px, 100%);
    max-height: calc(100vh - 80px);
    border-radius: 8px;
    object-fit: contain;
}

.gallery-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 72px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.gallery-modal-nav.prev {
    left: 22px;
}

.gallery-modal-nav.next {
    right: 22px;
}

.gallery-modal-nav svg {
    width: 28px;
    height: 28px;
}

.gallery-modal-counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    min-height: 34px;
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, .92);
    color: #111;
    font-size: .84rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

@media (max-width: 980px) {
    .summary-panel,
    .content-grid,
    .detail-lists-grid,
    .payment-section {
        grid-template-columns: 1fr;
    }

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

    .date-card {
        grid-column: span 2;
    }

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

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

    .detalle-hero {
        min-height: 500px;
    }

    .detalle-hero-content {
        padding: 120px 0 70px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-panel,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .date-card {
        grid-column: span 1;
    }

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

    .gallery-modal-nav {
        width: 42px;
        height: 58px;
    }

    .gallery-modal-nav.prev {
        left: 10px;
    }

    .gallery-modal-nav.next {
        right: 10px;
    }

    .detail-register-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .bank-card {
        margin-top: 18px;
    }

    .register-sendero-btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .detalle-hero {
        min-height: 460px;
    }

    .detalle-hero-content {
        padding: 112px 0 58px;
    }

    .detalle-hero h1 {
        font-size: 1.9rem;
        line-height: 1.04;
    }

    .hero-desc {
        font-size: .92rem;
    }

    .detail-section,
    .summary-card {
        padding: 15px;
    }

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

    .payment-line {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .bank-card {
        grid-template-columns: 1fr;
    }

    .bank-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .bank-card dd {
        text-align: left;
    }

    .payment-note ul {
        grid-template-columns: 1fr;
    }

    .gallery-modal {
        padding: 14px;
    }

    .gallery-modal img {
        max-height: calc(100vh - 118px);
    }

    .gallery-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .gallery-modal-counter {
        bottom: 10px;
    }
}
