:root {
    /* Color Palette */
    --primary: #00a8ff;
    /* Updated to match legacy blue */
    --primary-light: #4dbfff;
    --primary-dark: #0084c7;
    --secondary: #7bc041;
    /* Legacy green */
    --accent: #facc17;
    /* Legacy yellow */
    --legacy-red: #ce0000;
    --legacy-orange: #f4911a;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);

    /* Layout */
    --padding-section: 100px 5%;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Sigmar+One&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1 {
    font-family: 'Sigmar One', cursive;
    letter-spacing: 2px;
}

h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* Utilities */
.section {
    padding: var(--padding-section);
}

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 5%;
    transition: 0.3s ease;
}

header.scrolled {
    padding: 10px 5%;
}

.nav-container.glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 35px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: linear-gradient(to right, rgba(0, 168, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    box-shadow: 0 8px 32px 0 rgba(0, 71, 149, 0.15);
}

.nav-links li:nth-child(1) a:hover {
    color: var(--legacy-red);
}

.nav-links li:nth-child(2) a:hover {
    color: var(--legacy-orange);
}

.nav-links li:nth-child(3) a:hover {
    color: var(--secondary);
}

.nav-links li:nth-child(4) a:hover {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .nav-links {
        display: none !important;
        /* Hide links earlier to avoid deformation on smaller laptops/tablets */
    }

    .nav-container.glass {
        justify-content: center;
        /* Center logo on mobile/tablet */
    }
}

.logo img {
    height: 60px;
    transition: 0.3s ease;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links li:last-child {
    margin-left: auto;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
}

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

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

/* Hero Section with Layered Background */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #4dabf7;
    /* Sky base */
    overflow: hidden;
}

.hero-bg-layers {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sky-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 1;
}

.sun-element {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 250px;
    z-index: 2;
    animation: floatSun 10s ease-in-out infinite;
}

.grass-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: url('images/grass1.jpg') center bottom repeat-x;
    background-size: cover;
    z-index: 3;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: url('images/wave1.png') repeat-x;
    z-index: 4;
    animation: waveAnim 8.7s linear infinite;
}

@keyframes floatSun {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes waveAnim {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: 1601px;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
}

.hero h1 {
    font-size: 5rem;
    color: white;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    -webkit-text-fill-color: initial;
    background: none;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-img {
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 40%;
    z-index: 5;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .hero-img {
        width: 300px;
        position: relative;
        right: auto;
        bottom: auto;
        margin: 20px auto 0;
        display: block;
    }

    .hero {
        height: auto;
        padding-top: 150px;
        padding-bottom: 50px;
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 991px) {
    .nav-container.glass {
        padding: 8px 20px;
        border-radius: 50px;
    }

    .nav-links {
        gap: 15px;
        margin-left: 10px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .logo img {
        height: 45px;
    }

    .sun-element {
        width: 150px;
        top: 20px;
        right: 20px;
    }
}

.features-grid .feature-card:nth-child(1) {
    border-top: 5px solid var(--legacy-red);
}

.features-grid .feature-card:nth-child(2) {
    border-top: 5px solid var(--secondary);
}

.features-grid .feature-card:nth-child(3) {
    border-top: 5px solid var(--legacy-orange);
}

.features-grid .feature-card:nth-child(4) {
    border-top: 5px solid var(--primary);
}

.features-grid .feature-card i {
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto 20px;
}

.features-grid .feature-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Parallax Section */
.parallax-section {
    padding: 150px 5%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 168, 255, 0.4);
    z-index: 1;
}

/* Creative Form */
.creative-form .form-group {
    margin-bottom: 20px;
}

.creative-form input,
.creative-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.creative-form input:focus,
.creative-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

.creative-form button {
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Review Card Enhancements */
.review-card {
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: perspective(1000px) rotateY(10deg);
}

/* Gallery - The Wow Factor */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 5% 30px;
}

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

.footer-grid>div {
    flex: 1;
    min-width: 200px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

@media (max-width: 768px) {
    . hero h1 {
        font-size: 2.5rem;
    }

    .hero-img {
        display: none;
    }
}

/* Mobile Bottom Navigation (iOS Style) */
.mobile-bottom-nav {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
        background: linear-gradient(to top, rgba(0, 168, 255, 0.95), rgba(0, 168, 255, 0.85));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.75rem;
        gap: 5px;
        transition: 0.3s ease;
        flex: 1;
        text-decoration: none;
    }

    .nav-item i {
        font-size: 1.25rem;
    }

    .nav-item.active {
        color: white;
        transform: translateY(-3px);
    }

    .nav-item.call-action {
        color: var(--accent);
        font-weight: 700;
    }

    body {
        padding-bottom: 80px;
        /* Add space for footer nav */
    }

    .whatsapp-float {
        bottom: 90px;
        /* Prevenir que se tape con el menú inferior */
    }
}

/* Inflatables Decorativos */
.hero-inflatable-desktop {
    position: absolute;
    bottom: 20px;
    left: 12%;
    width: 220px;
    z-index: 4;
    /* Delante del pasto */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.hero-inflatable-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hero-inflatable-desktop {
        display: none;
    }

    .hero-inflatable-mobile {
        display: block;
        position: absolute;
        bottom: 80px;
        right: -30px;
        width: 220px;
        z-index: 2;
        opacity: 0.6;
        filter: blur(0.5px) rotate(-10deg);
    }
}