:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --glass-blur: blur(12px);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent-color: #54B948;
    --bg-gradient: linear-gradient(135deg, #1D2B25 0%, #305847 100%);
    --font-main: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Glassmorphism Utility */
/* Glassmorphism Utility (Premium Liquid Glass) */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2),
        inset 0 4px 20px rgba(255, 255, 255, 0.3);
    padding: 2rem;
    transition: transform 0.3s ease;
    z-index: 1;
    /* Establish stacking context for ::after */
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    box-shadow: inset -10px -8px 0px -11px rgba(255, 255, 255, 1),
        inset 0px -9px 0px -8px rgba(255, 255, 255, 1);
    opacity: 0.6;
    z-index: -1;
    filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
    pointer-events: none;
    /* Ensure clicks pass through */
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.hero-content {
    z-index: 1;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
    margin: 0;
}

.hero p {
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    margin: 0;
}

/* Navigation Pill (Centered in Hero) */
/* Navigation Pill (Centered in Hero) */
.nav-pill {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(2px) saturate(180%);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2),
        inset 0 4px 20px rgba(255, 255, 255, 0.3);
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
    z-index: 10;
}

.nav-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    box-shadow: inset -10px -8px 0px -11px rgba(255, 255, 255, 1),
        inset 0px -9px 0px -8px rgba(255, 255, 255, 1);
    opacity: 0.6;
    z-index: -1;
    filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
    pointer-events: none;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

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

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.sticky-nav.active {
    transform: translateY(0);
}

.sticky-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sticky-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.sticky-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

.sticky-link:hover {
    color: white;
}

.sticky-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.sticky-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .sticky-nav {
        padding: 0.8rem 1rem;
    }

    .sticky-links {
        display: none;
        /* Hide standard links on mobile to prevent clutter */
    }

    /* Keep the Logo and Book Button visible */

    .sticky-logo {
        font-size: 1.2rem;
    }
}

/* Buttons */
/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: white;

    /* Green Liquid Glass */
    background: rgba(84, 185, 72, 0.65);
    /* Accent color with transparency */
    backdrop-filter: blur(4px) saturate(180%);
    -webkit-backdrop-filter: blur(4px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 4px 20px rgba(255, 255, 255, 0.2);

    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.9s forwards;
    opacity: 0;

    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Ensure glass effect stays within rounded corners */
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    box-shadow: inset -10px -8px 0px -11px rgba(255, 255, 255, 0.8),
        inset 0px -9px 0px -8px rgba(255, 255, 255, 0.8);
    opacity: 0.6;
    z-index: -1;
    filter: blur(0.5px) drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.2)) brightness(115%);
    pointer-events: none;
}

.btn:hover {
    transform: scale(1.05) translateY(-2px);
    background: rgba(84, 185, 72, 0.85);
    /* Darker/More solid on hover */
    box-shadow: 0 8px 25px rgba(84, 185, 72, 0.5),
        inset 0 4px 20px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Section Common */
section {
    padding: 6rem 1rem;
    width: 100%;
    margin: 0;
    position: relative;
    /* ensure separate stacking context */
}

/* Container for section content to keep it centered */
.section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Alternating Backgrounds for separation */
section:nth-of-type(even) {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
}

/* Optional: Odd sections could have a very slight light tint if needed, 
   but keeping them transparent (body bg) is safer for "liquid" feel 
*/

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Gallery Mosaic */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

/* Full Gallery Grid (Uniform) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-grid .gallery-item {
    height: 250px;
    /* Fixed height for uniformity */
}

/* Mosaic Layout Rules (Desktop) */
@media (min-width: 901px) {
    .gallery-mosaic .gallery-item:nth-child(1) {
        grid-row: span 2;
    }

    .gallery-mosaic .gallery-item:nth-child(4) {
        grid-column: span 2;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 2;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Feature Rows (Attractions) */
.feature-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--glass-shadow);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    flex: 1;
    padding: 2rem;
}

.feature-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.feature-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.feature-link {
    color: white;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
    transition: color 0.3s;
}

.feature-link:hover {
    color: var(--accent-color);
}

/* Contact Split */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.contact-map {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Back to Top */
#topButton {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    background: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

#topButton:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 900px) {
    section {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .nav-pill {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.8rem;
        width: 90%;
        max-width: 350px;
        text-align: center;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .feature-content {
        padding: 1rem;
    }

    .feature-image {
        width: 100%;
        height: 250px;
    }

    .contact-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-map {
        height: 300px;
    }

    .gallery-mosaic {
        grid-template-columns: 1fr;
        /* Stack vertically */
        grid-auto-rows: 250px;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    display: block;
    /* Ensure it behaves as a block */
    width: 100%;
    padding: 0.8rem 1rem;
    /* More padding */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    /* Prevent iOS zoom */
    min-height: 50px;
    /* Larger touch target */
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 14px auto;
    /* Larger arrow */
    padding-right: 3rem;
    /* Ensure text doesn't overlap arrow */
}

select.form-control option {
    background-color: #333;
    /* Fallback for options */
    color: white;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* Offer Page Layout */
.offer-page {
    background-image: url('../img/galeria/piperecucc.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Disable button animation on Offer Pages */
.offer-page .btn {
    animation: none;
    opacity: 1;
    margin-top: 0;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.6);
    /* Darker for readability */
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    max-width: 800px;
    margin-top: 1rem;
}

.info-box i {
    color: var(--accent-color);
    font-size: 2rem;
    flex-shrink: 0;
}

.info-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.offer-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Overlay to ensure text readability */
    z-index: 0;
}

.offer-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    width: 100%;
}

.offer-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: white;
}

.offer-conditions {
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(4px);
    color: white;
    text-align: center;
    max-width: 800px;
}

/* Back Button Wrapper */
.offer-back-wrapper {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

@media (max-width: 900px) {
    .offer-title {
        font-size: 2.5rem;
    }

    /* Stack form rows on mobile */
    .form-row-2,
    .form-row-3 {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        /* Explicit width */
    }

    .form-group {
        width: 100%;
        /* Explicit width */
    }

    /* Fix Back Button overlap on mobile */
    .offer-page {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .offer-back-wrapper {
        position: static;
        width: 100%;
        margin-bottom: 2rem;
        display: flex;
        justify-content: flex-start;
    }

    /* Fix "Jumping" background on mobile */
    body,
    .offer-page {
        background-attachment: scroll !important;
    }

    /* Ensure card takes full width */
    .glass-card {
        width: 100%;
    }
}