
/*
 * Estilos especificos para la pagina de Excursiones (guides.html)
 */

:root {
    --tours-accent: #c98a2e;
    --tours-accent-dark: #b27824;
    --tours-card: #ffffff;
    --tours-card-soft: #f7f2e7;
    --guides-cream-bg: #ddd8cb;
}

body.guides-page {
    background: var(--guides-cream-bg);
    color: var(--ink);
}

body.guides-page section {
    background: var(--guides-cream-bg);
}

body.guides-page main {
    padding-top: 0;
    margin-top: 0;
}

/* Footer dark style for guides page */
body.guides-page footer {
    background: #1a1a1a;
    color: #f2f2f2;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.guides-page footer::before {
    display: none;
}

body.guides-page .footer-content {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
}

body.guides-page footer h4,
body.guides-page footer .hotel-phone,
body.guides-page footer .hotel-address,
body.guides-page footer .footer-contact p,
body.guides-page footer .footer-social h4,
body.guides-page footer p {
    color: #f2f2f2;
}

body.guides-page footer .footer-contact p,
body.guides-page footer .hotel-address {
    color: rgba(242, 242, 242, 0.7);
}

body.guides-page footer a,
body.guides-page footer .social-link {
    color: rgba(242, 242, 242, 0.75);
}

body.guides-page footer a:hover,
body.guides-page footer .social-link:hover {
    color: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.8;
    margin: 0;
    text-align: center;
    color: #2c2c2c;
}

.tours-section {
    position: relative;
    padding: 0 0 6rem;
    background: var(--guides-cream-bg);
}

.tours-hero {
    position: relative;
    min-height: 70vh;
    display: grid;
    place-items: center;
    margin-top: 0;
    margin-bottom: 5rem;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.tours-hero__media {
    position: absolute;
    inset: 0;
    background: url('images/actividades/la-escondida.jpeg') center/cover no-repeat;
    transform: scale(1.03);
}

.tours-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3));
}

.tours-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 4rem 2rem;
    max-width: 760px;
}

.tours-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
}

.tours-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.tours-hero p {
    margin: 0 0 2rem 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
}

.tours-hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tours-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.tours-intro h2 {
    margin: 0 0 0.75rem 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--ink);
}

.tours-list {
    display: grid;
    gap: 6rem;
    background: var(--guides-cream-bg);
    padding: 0;
    border-radius: 0;
}

.tour-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 2.5rem;
    align-items: stretch;
    background: transparent;
}

.tour-card--right {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
}

.tour-card--right .tour-media {
    order: 2;
}

.tour-card--right .tour-content {
    order: 1;
}

.tour-media {
    width: 100%;
    align-self: stretch;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
    aspect-ratio: 16 / 9;
    background: #ddd;
}

.tour-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-media img {
    transform: scale(1.04);
}

.tour-content {
    display: grid;
    gap: 1.15rem;
    color: var(--ink);
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 560px;
}

.tour-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tour-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.65rem;
    min-height: 1.8rem;
    line-height: 1;
    border-radius: 999px;
    background: rgba(201, 138, 46, 0.12);
    color: var(--tours-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.tour-content h3 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--ink);
}

.tour-desc {
    margin: 0;
    color: #6a6a6a;
    line-height: 1.7;
    font-size: 1.1rem;
}

.tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-weight: 600;
    color: #7a7a7a;
    font-size: 0.92rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: none;
}

.btn-primary {
    background: var(--tours-accent);
    border-color: var(--tours-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(201, 138, 46, 0.35);
}

.btn-primary:hover {
    background: var(--tours-accent-dark);
    border-color: var(--tours-accent-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-more {
    justify-self: start;
}

.cta-wrap {
    text-align: center;
    margin: 4rem 0 2rem;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.open {
    display: flex;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.modal-panel {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: min(90dvh, calc(100dvh - 2rem));
    background: #f2e9d8;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.modal-close:hover {
    background: transparent;
    transform: scale(1.05);
}

.modal-close svg {
    stroke: #111111;
    stroke-width: 2.5;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
    max-height: min(90dvh, calc(100dvh - 2rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-body img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-info h3 {
    color: #111111;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.modal-info p {
    color: #2c2c2c;
    line-height: 1.7;
    margin: 0;
}

.modal-price {
    color: #111111;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.modal-actions .btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    background: transparent !important;
    color: #556B2F !important;
    border: 0 !important;
    box-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .tour-card {
        grid-template-columns: 1fr;
    }

    .tour-card--right .tour-media {
        order: 0;
    }

    .tour-card--right .tour-content {
        order: 0;
    }

    .tour-content {
        max-width: none;
    }
}

@media (max-width: 768px) {
    body.guides-page main {
        padding-top: 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .tours-section {
        padding: 0 0 4rem;
    }

    .tours-hero {
        min-height: 68svh;
        margin-top: 0;
        border-radius: 0;
        place-items: start center;
        padding-top: calc(var(--nav-height) + env(safe-area-inset-top) + 0.75rem);
    }

    .tours-hero__media {
        transform: scale(1);
        background-position: center center;
    }

    .tours-hero__content {
        padding: 2rem 1.5rem 2.25rem;
    }

    .tour-card {
        gap: 1.5rem;
    }

    .tour-content {
        padding: 1.5rem;
    }

    .modal {
        align-items: flex-start;
        padding: calc(env(safe-area-inset-top) + 0.75rem) 0.75rem calc(env(safe-area-inset-bottom) + 0.75rem);
    }

    .modal-panel {
        width: min(720px, 100%);
        max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 1.5rem);
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
        max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 6.5rem);
    }

    .modal-body img {
        max-height: 240px;
    }

    .modal-actions {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .tours-hero {
        min-height: 55vh;
    }

    .tour-meta {
        flex-direction: column;
        gap: 0.35rem;
    }

    .modal-body {
        padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
        gap: 1.1rem;
    }

    .modal-body img {
        max-height: 200px;
    }

    .modal-info {
        gap: 1rem;
    }

    .modal-info p {
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: #556B2F;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.68rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.tours-section .btn.btn-link {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #556B2F !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.btn-link:hover {
    color: #6b813f;
    transform: translateY(-1px);
}

.btn-link span {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn-link:hover span {
    transform: translateX(6px);
}

.btn-link::after {
    content: '';
    display: block;
    height: 1px;
    width: 0;
    background: #556B2F;
    transition: width 0.3s ease;
    margin-top: 0.4rem;
}

.btn-link:hover::after {
    width: 100%;
}

.tour-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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