/* Reset & Variables */
:root {
    --primary-color: #2c5f2d; /* Forest Green */
    --secondary-color: #97bc62; /* Light Green */
    --accent-color: #d4a373; /* Wood/Earth */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #39393b; /* From info.txt */
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed navbar */
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

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

.section-title.text-center .line {
    margin: 10px auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #ccc;
    color: #555;
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--dark-bg);
    color: var(--dark-bg);
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-muted { color: #777; }
.bg-light { background-color: var(--light-bg); }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Utility Classes for Flexbox */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }
.img-fluid { max-width: 100%; height: auto; }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; }
.rounded { border-radius: .25rem!important; }

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8 {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 { width: 33.333%; }
    .col-md-5 { width: 41.666%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.333%; }
    .col-md-8 { width: 66.666%; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 5px 0;
    transition: var(--transition);
}

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

.logo img {
    height: 112px;
    object-fit: contain;
    border-radius: 15px; /* Puntas un poco redondeadas */
}

.nav-links {
    display: flex;
    align-items: center; /* Ensure vertical alignment */
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-bg);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 20px;
}

.nav-cta:hover {
    background-color: var(--dark-bg);
}

.nav-cta::after { display: none; }

/* Social Icons in Navbar */
.nav-social {
    font-size: 1.2rem;
    color: var(--primary-color) !important;
}

.nav-social:hover {
    color: var(--dark-bg) !important;
    transform: scale(1.1);
    display: inline-block;
}

.nav-social::after { display: none; }

/* Adjust spacing for social icons on mobile */
@media (max-width: 768px) {
    .social-icon-item {
        margin: 10px 0 !important;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-bg);
}

/* Mobile Controls Container */
.mobile-nav-controls {
    display: flex;
    align-items: center;
}

.mobile-social-icons {
    display: none; /* Hidden by default (Desktop) */
    margin-right: 20px;
}

.mobile-social-icons a {
    color: var(--primary-color);
    font-size: 1.4rem; /* Slightly larger for mobile touch */
    margin-left: 15px;
    transition: var(--transition);
}

.mobile-social-icons a:hover {
    color: var(--dark-bg);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Dynamic viewport height for mobile */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0; /* Override if needed */
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Hidden by default on desktop */
}

.hero-image-desktop {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: block;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding-top: 60px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons .btn {
    margin: 0 10px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    z-index: 2;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-down:hover {
    color: var(--primary-color);
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* About Section */
.features-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 30px;
}

.feature-item {
    text-align: center;
    flex: 1;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.image-stack {
    position: relative;
    height: 500px; /* Increased height to accommodate portrait images */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-stack img {
    position: absolute;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
    max-height: 100%; /* Ensure images don't overflow container */
}

.img-back {
    height: 90%; /* Base size on height for portrait */
    width: auto;
    max-width: 60%;
    top: 0;
    right: 0;
    z-index: 1;
    opacity: 0.9;
    object-fit: cover;
}

.img-front {
    width: 70%;
    height: auto;
    bottom: 40px; /* Positioned from bottom */
    left: 0;
    z-index: 2;
    border: 5px solid var(--white);
}

.image-stack:hover .img-back {
    transform: scale(1.02) translate(-5px, 5px);
    opacity: 1;
    z-index: 3;
}

/* Details Section */
.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-card ul li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.table-container {
    background: #4f6f26; /* Verde Musgo */
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.table-container h3 {
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    /* Scrollbar styling for webkit */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.5) rgba(0,0,0,0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
}

.table th {
    background-color: #3e581e; /* Darker moss for header */
    color: var(--white);
    position: sticky;
    top: 0;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.1);
}

/* Button style inside the moss green table container */
.table-container .btn-outline {
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
}

.table-container .btn-outline:hover {
    background-color: var(--white);
    color: #4f6f26; /* Moss green text on hover */
    border-color: var(--white);
}

/* Detailed Map Container */
.map-detail-container {
    margin-bottom: 60px; /* Space below the map */
    padding: 10px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.map-detail-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.map-detail-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

/* Finance Card Styles */
.finance-card {
    border-left: 5px solid #25D366; /* WhatsApp Green for highlight */
    background-color: #f0fdf4; /* Very light green background */
}

.finance-card h3 i {
    color: #25D366;
}

.finance-content {
    padding-top: 10px;
}

.highlight-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e7e34;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.highlight-text i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Slightly wider items */
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 280px; /* Increased height */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 95, 45, 0.6); /* Slightly more transparent */
    backdrop-filter: blur(2px); /* Add blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

.video-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transition: var(--transition);
}

.video-item:hover .play-icon {
    opacity: 0;
}

/* Location Section */
.location-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.location-list li i {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.cta-box {
    background: var(--white);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* CTA Footer */
.cta-footer {
    position: relative;
    overflow: hidden; /* Ensure video doesn't spill out */
    padding: 100px 0; /* More padding for impact */
}

.cta-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(44, 95, 45, 0.9), rgba(44, 95, 45, 0.7));
    z-index: 1; /* Ensure overlay is above video */
}

.cta-footer .container {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
}

.cta-footer h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-footer p {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 40px; /* Space between text and button */
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Footer */
footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    position: relative;
    text-align: center;
}

.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border: 3px solid var(--white);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-controls {
    text-align: center;
    margin-top: 20px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Attraction Highlight */
.attraction-highlight {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 60px; /* Ensure spacing from previous section */
}

.attraction-highlight h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.attraction-highlight p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.attraction-highlight img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-social-icons {
        display: flex;
    }

    /* Hide duplicated social icons in the dropdown menu */
    .nav-links .social-icon-item {
        display: none;
    }

    .nav-links {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-buttons .btn {
        margin: 0 !important;
        width: 80%;
        max-width: 300px;
    }

    .hero-video-mobile {
        display: block;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.2); /* Lighter overlay for mobile video clarity */
    }
    
    .hero-image-desktop {
        display: none;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .image-stack {
        height: auto; /* Allow auto height */
        display: flex; /* Use flex column for better control */
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
        padding-bottom: 20px;
    }

    /* Override the specific selector .image-stack img */
    .image-stack img {
        position: relative;
        max-height: none; /* Remove height constraint */
        width: 100%;
    }

    .img-back {
        width: 90%; /* Adjust width for mobile */
        max-width: 400px;
        height: auto;
        opacity: 1;
        transform: none;
        margin-bottom: -40px; /* Create overlap */
        z-index: 1;
    }

    .img-front {
        width: 95%;
        max-width: 450px;
        height: auto;
        margin-top: 0;
        bottom: auto;
        left: auto;
        z-index: 2;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .image-stack:hover .img-back {
         transform: none;
    }

    .map-container iframe {
        height: 300px; /* Reduce map height on mobile */
    }

    /* Attraction Highlight Mobile */
    .attraction-highlight {
        padding: 30px 20px;
        text-align: center;
        margin-top: 40px;
    }
    
    .attraction-highlight img {
        margin-bottom: 20px;
    }

    /* Table Mobile Adjustments */
    .table-container {
        padding: 15px;
        margin-top: 20px;
        overflow-x: hidden; /* Prevent container itself from overflowing */
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto; /* Allow internal table scroll if needed */
        -webkit-overflow-scrolling: touch;
    }

    .table th, .table td {
        padding: 8px 5px; /* Compact padding */
        font-size: 0.85rem; /* Smaller font */
        white-space: normal; /* Allow wrapping */
        word-wrap: break-word;
    }

    .table th {
        font-size: 0.8rem;
        vertical-align: bottom;
    }
}