/* 
   Parque Alto Muro Aventura - Official Styles
   Season 2026
*/

:root {
    --primary: #0A2E1F;
    /* Deep Forest Green */
    --accent: #FF8C00;
    /* Adventure Orange */
    --guiados: #004D40;
    /* Teal for Turismo */
    --park-primary: #2d5a27;
    /* Natural Green */
    --park-accent: #8b4513;
    /* Earth Brown */
    --park-bg: #fdf5e6;
    /* Cream background */
    --white: #FFFFFF;
    --light-bg: #F5F7F5;
    --text-main: #333333;
    --text-muted: #666666;
    --glass: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

img,
video {
    content-visibility: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    will-change: transform;
    transform: translateZ(0);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 135px;
    width: auto;
    transition: height var(--transition-speed);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

/* Park Theme Overrides */
.park-theme {
    background-color: var(--park-bg);
    color: #1a1a1a;
}

.park-theme .section.bg-light {
    background-color: #f7ede2;
}

.park-theme .badge {
    background: var(--park-primary);
    color: var(--white);
}

.park-theme .btn-primary {
    background-color: var(--park-primary);
}

.park-theme .btn-outline {
    border-color: var(--park-primary);
    color: var(--park-primary);
}

.park-theme h2,
.park-theme h3 {
    color: var(--park-primary);
}

/* Icons in Park Theme */
.park-theme .icon-green {
    color: var(--park-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Split Hero Section */
.split-hero {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.hero-half {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: flex 0.5s cubic-bezier(0.2, 0, 0.2, 1);
    padding: 2rem;
    cursor: pointer;
    overflow: hidden;
}

.hero-half:hover {
    flex: 1.5;
}

.hero-half .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform;
    transform: translateZ(0);
}

.hero-half:hover .hero-bg {
    transform: scale(1.05) translateZ(0);
}

.hero-half .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: -1;
    transition: background 0.5s ease;
}

.hero-half:hover .hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.hero-content {
    color: var(--white);
    max-width: 500px;
    margin: 0 auto;
    z-index: 1;
}

.hero-half h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-half p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-left {
    border-right: 2px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.badge {
    background: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    contain: layout style;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.activity-img {
    height: 250px;
    overflow: hidden;
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.activity-card:hover .activity-img img {
    transform: scale(1.1);
}

.activity-info {
    padding: 1.5rem;
}

.activity-info .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.activity-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.gallery-grid.expanded {
    max-height: 3000px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #f0f0f0;
    contain: layout style;
    content-visibility: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    will-change: transform;
    transform: translateZ(0);
}

.clickable-image {
    cursor: pointer;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoom 0.4s ease;
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 60px;
    cursor: pointer;
    padding: 20px;
    transition: color 0.25s ease;
}

.prev-btn:hover,
.next-btn:hover {
    color: var(--accent);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

.lightbox-caption {
    position: absolute;
    bottom: 40px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* Info Strip */
.info-strip {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 0;
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

/* About Section */
.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.icon-green {
    color: #2ecc71;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(10, 46, 31, 0.9), rgba(10, 46, 31, 0.9)), url('fotos/fondo.jpeg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.white-btn {
    background-color: var(--white);
    color: var(--primary);
}

.white-btn:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* Footer */
.main-footer {
    background: #051610;
    color: var(--white);
    padding: 80px 0 20px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 50px;
}

.footer-logos-bar {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 1rem auto 3rem;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    flex-wrap: nowrap;
    justify-content: center;
    width: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.footer-logos-bar img {
    height: 60px;
    width: auto;
    max-width: 160px;
    filter: none;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .footer-logos-bar {
        gap: 1.5rem;
    }

    .footer-logos-bar img {
        height: 38px;
    }
}

.footer-logos-bar img:hover {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

.footer-logo {
    height: 180px;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link-img {
    object-fit: contain;
    display: inline-block;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.social-link-img:hover {
    transform: scale(1.1) translateY(-3px);
}

.social-fb {
    transform-origin: center;
}

.footer-contact h3,
.footer-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Tourism Page Specifics */
.guiados-page {
    background-color: #f0f4f4;
}

.guiados-page .glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.guiados-page .glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Subpage Styles */
.subpage-hero {
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Activity Modal */
.activity-modal {
    display: none;
    position: fixed;
    z-index: 99999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: flex-start;
    padding: 25vh 20px 50px; /* Increased top offset to 25vh */
    overflow-y: auto;
}

.activity-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 450px; /* Even smaller width */
    max-height: 75vh; /* Safe height */
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6);
    animation: modalReveal 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalReveal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header-img {
    height: 150px; /* Even more compact header */
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #eee; /* More visible border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.modal-close:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto; /* Internal scroll for long content on PC */
    flex: 1;
}

.modal-body h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.modal-body p {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-footer {
    padding: 1.5rem 3rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .activity-modal {
        display: none;
        align-items: flex-start; /* To allow manual lowering with padding */
        justify-content: center;
        padding: 15vh 20px 40px; /* Proportionally lower from top */
    }
    .activity-modal.active {
        display: flex; /* Flex to center correctly */
    }
    .modal-content {
        max-width: 90%;
        max-height: 80vh; /* Don't occupy full screen */
        height: auto;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
    }
    .modal-header-img { height: 160px; flex-shrink: 0; }
    .modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
    .modal-body h2 { font-size: 2rem; }
    .modal-close {
        position: absolute; /* In the card, absolute is better than fixed */
        top: 10px;
        right: 10px;
        z-index: 1000;
        width: 35px;
        height: 35px;
    }
    .modal-footer { padding: 2rem; background: #f9f9f9; text-align: center; }
}

.subpage-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Video Hero */
.video-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 80px;
}

.video-hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-hero .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
    z-index: -1;
}

.video-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 2rem;
}

.video-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.video-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .video-hero video {
        display: none;
    }

    .video-hero {
        background-size: cover;
        background-position: center;
    }
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2-cols.reverse {
    direction: rtl;
}

.grid-2-cols.reverse .content-block {
    direction: ltr;
}

.image-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-stack img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.detail-item {
    margin-bottom: 2rem;
}

.detail-item h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.detail-item h3 i {
    color: var(--accent);
}

.rounded {
    border-radius: 20px;
}

.shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.text-center {
    text-align: center;
}

/* Home Gallery Optimization */
.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

#galeria-home .gallery-item:nth-child(n+6) {
    display: none;
}

#galeria-home.expanded .gallery-item:nth-child(n+6) {
    display: block;
}

.btn-more {
    margin-top: 2rem;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--accent);
}

/* Subpage Grid Enhancements */
.activity-feature {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: center;
}

.activity-feature.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.activity-feature img,
.feature-img img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.activity-feature:hover img {
    transform: scale(1.02);
}

.feature-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Gallery Hover Effect */
.gallery-grid .gallery-item {
    overflow: hidden;
    border-radius: 15px;
}

.gallery-grid .gallery-item img {
    transition: transform 0.5s ease;
}

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

/* History Section */
.history-section {
    padding: 80px 0;
}

.history-content {
    max-width: 900px;
    margin: 0 auto;
}

.history-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.history-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Page Specific Overrides */
.guiados-page .main-header {
    background: rgba(255, 255, 255, 0.98);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* --- TABLET (max-width: 992px) --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

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

    .about-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .split-hero {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .hero-half {
        min-height: 50vh;
        flex: none;
    }

    .hero-half:hover {
        flex: none;
    }

    .hero-left {
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    .hero-half h1 {
        font-size: 2.8rem;
    }

    .activity-feature,
    .activity-feature.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .activity-feature img,
    .feature-img img {
        height: auto;
        max-height: 350px;
    }

    .feature-info h2 {
        font-size: 2.4rem;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr !important;
    }

    .subpage-hero h1 {
        font-size: 2.8rem;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .video-hero {
        height: 50vh;
        min-height: 350px;
    }

    .history-section {
        padding: 60px 0;
    }

    .history-content h2 {
        font-size: 2rem;
    }
}

/* --- MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Navigation */
    .nav-links,
    .nav .btn-primary {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1.5rem 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 100;
        gap: 0;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.active li {
        padding: 0.85rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links.active li:last-child {
        border-bottom: none;
    }

    .nav-links.active a {
        font-size: 1.1rem;
        display: block;
        padding: 0.2rem 0;
    }

    /* Logo */
    .logo {
        height: 97px;
    }

    /* Video Hero - ensure video plays and covers on mobile */
    .video-hero {
        height: 55vh;
        min-height: 320px;
        padding-top: 70px;
    }

    .video-hero video {
        width: 100%;
        height: 100%;
    }

    .video-hero h1 {
        font-size: 2rem;
    }

    .video-hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .video-hero .hero-content {
        padding: 1rem 1.25rem;
    }

    /* Hero */
    .hero-half h1 {
        font-size: 2.2rem;
    }

    .hero-half p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .hero-btns .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Activities - prevent clipping */
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .activity-card {
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .activity-img {
        height: 200px;
    }

    .activity-feature,
    .activity-feature.reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .activity-feature img,
    .feature-img img {
        height: auto;
        max-height: 280px;
        border-radius: 16px;
    }

    .feature-info {
        text-align: center;
    }

    .feature-info h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .feature-info p,
    .feature-list {
        text-align: left;
    }

    .feature-info .badge {
        margin-bottom: 1rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Strip */
    .strip-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .social-link-img[width="60"] {
        width: 45px !important;
        height: 45px !important;
    }
    
    .social-link-img[width="30"] {
        width: 22px !important;
        height: 22px !important;
    }

    .footer-logo {
        height: 120px;
        margin-bottom: 1rem;
    }

    .footer-logos-bar {
        gap: 1.2rem;
    }

    .footer-logos-bar img {
        height: 42px;
    }

    /* Subpage Hero */
    .subpage-hero {
        height: 40vh;
        min-height: 280px;
        padding-top: 70px;
    }

    .subpage-hero h1 {
        font-size: 2rem;
    }

    .subpage-hero p {
        font-size: 1rem;
    }

    /* History */
    .history-section {
        padding: 50px 0;
    }

    .history-content h2 {
        font-size: 1.8rem;
    }

    .history-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* CTA */
    .cta-section {
        padding: 50px 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-btns {
        flex-direction: column;
        gap: 0.8rem;
        display: flex;
        align-items: center;
    }

    .cta-btns .btn {
        display: block;
        width: 80%;
        text-align: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* Glass Cards */
    .guiados-page .glass-card {
        padding: 1.5rem;
    }

    .guiados-page .glass-card h2 {
        font-size: 1.4rem;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Activity Info Buttons on mobile */
    .activity-info .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Lightbox */
    .lightbox-content {
        max-width: 95%;
    }

    .prev-btn,
    .next-btn {
        font-size: 40px;
        padding: 10px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }

    /* Disable hover effects on touch */
    .activity-card:hover {
        transform: none;
    }

    .activity-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* --- SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {
    .hero-half h1 {
        font-size: 1.6rem;
    }

    .hero-half p {
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .video-hero {
        height: 50vh;
        min-height: 280px;
        padding-top: 65px;
    }

    .video-hero h1 {
        font-size: 1.6rem;
    }

    .video-hero p {
        font-size: 0.85rem;
    }

    .subpage-hero h1 {
        font-size: 1.6rem;
    }

    .feature-info h2 {
        font-size: 1.5rem;
    }

    .activity-feature img,
    .feature-img img {
        max-height: 220px;
        border-radius: 12px;
    }

    .activity-feature {
        margin-bottom: 2rem;
    }

    .activity-img {
        height: 180px;
    }

    .activity-info {
        padding: 1.2rem;
    }

    .activity-info h3 {
        font-size: 1.1rem;
    }

    .activity-info p {
        font-size: 0.9rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-btns .btn {
        width: 100%;
    }

    .footer-grid {
        gap: 2rem;
    }

    .logo {
        height: 75px;
    }

    .main-header {
        padding: 0.5rem 0;
    }

    .history-content h2 {
        font-size: 1.5rem;
    }

    .history-content p {
        font-size: 0.9rem;
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Glass cards on small mobile */
    .guiados-page .glass-card {
        padding: 1.2rem;
    }

    .guiados-page .glass-card h2 {
        font-size: 1.2rem;
    }

    .guiados-page .glass-card p {
        font-size: 0.9rem;
    }
}