* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background: #EEEEEE;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* Sticky / fixed site header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 24px;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
    background: rgb(0, 147, 228);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.navbar {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 56px;
}

.nav-brand {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-brand img {
    width: 120px;
    height: auto;
}

.site-header.is-scrolled .nav-brand {
    display: block;
    opacity: 1;
}

@media (min-width: 993px) {
    .site-header.is-scrolled .navbar {
        padding-left: 132px;
    }
}

.nav-menu {
    display: flex;
    gap: 55px;
    list-style: none;
    align-items: center;
}

.navbar a:not(.nav-brand) {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.28s ease, transform 0.28s ease;
}

.navbar .nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0093E4, #5ec8ff);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.navbar .nav-menu a:hover,
.navbar .nav-menu a:focus-visible {
    color: #7fd4ff;
    transform: translateY(-2px);
}

.navbar .nav-menu a:hover::after,
.navbar .nav-menu a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    z-index: 1002;
    margin-left: auto;
}

.nav-toggle:focus-visible {
    outline: 2px solid #0093E4;
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-backdrop {
    display: none;
}

/* HERO — layered dark gradients for readability + WebP background */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 24px 100px;
    background-color: #1a1d22;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.88) 100%),
        linear-gradient(125deg, rgba(0, 20, 40, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%),
        image-set(
            url('images/header-bg.webp') type('image/webp'),
            url('images/header-bg.jpg') type('image/jpeg')
        );
    background-position: center, center, center;
    background-size: cover, cover, cover;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 80%;
    max-width: 1200px;
}

.hero-logo {
    width: min(300px, 70vw);
    margin: 0 auto 40px;
}

.hero-content h1 {
    color: white;
    font-size: clamp(1.75rem, 4vw, 4rem);
    line-height: 1.2;
    font-weight: 300;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-content span {
    font-weight: 800;
}

.social-icons {
    position: absolute;
    right: clamp(16px, 4vw, 50px);
    bottom: clamp(48px, 10vh, 80px);
    z-index: 2;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.social-link {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, color 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.social-link:hover,
.social-link:focus-visible {
    transform: scale(1.08);
    color: #0093E4;
}

.social-link svg {
    width: 20px;
    height: 20px;
}


/* SECTION TITLES */

.section-title {
    width: 80%;
    margin: 0 auto 80px;
}

.section-title h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
}

.section-title span {
    font-weight: 800;
}

.section-title .line {
    width: 100%;
    height: 2px;
    margin-top: 10px;
}

.section-title.dark {
    color: white;
}

.section-title.dark .line {
    background: white;
}

.section-title.blue {
    color: #0093E4;
}

.section-title.blue .line {
    background: #0093E4;
}


/* ABOUT — stronger overlay + WebP */

.about-section {
    position: relative;
    padding: 140px 0;

    background-color: #111;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.78) 100%),
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(0, 147, 228, 0.18), transparent 55%),
        image-set(
            url('images/about-bg.webp') type('image/webp'),
            url('images/about-bg.jpg') type('image/jpeg')
        );
    background-position: center, center, center;
    background-size: cover, cover, cover;
    background-repeat: no-repeat;
}

.about-text {
    width: 80%;
    margin: auto;
    text-align: center;
}

.about-text p {
    color: white;
    font-size: clamp(1.35rem, 3vw, 3rem);
    line-height: 1.25;
    font-weight: 300;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.about-text strong {
    font-weight: 800;
}


/* INSTAGRAM / CAROUSEL */

.posts-section {
    background: #EEEEEE;
    padding: 120px 0;
}

.instagram-hint {
    width: 85%;
    max-width: 720px;
    margin: -48px auto 40px;
    font-size: 0.95rem;
    color: #555;
    text-align: center;
}

.carousel-container {
    width: 85%;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.45s ease;
}

.instagram-card {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 320px;
    width: 300px;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #0d3d5c;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
    display: block;
}

.instagram-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
}

.instagram-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-card:hover img {
    transform: scale(1.06);
}

.instagram-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 16px 14px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.35;
    max-height: 42%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.instagram-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 24px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(145deg, #0093E4, #005a8c);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    color: #0093E4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background: #0093E4;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.prev {
    left: -10px;
}

.next {
    right: -10px;
}

.instagram-cta {
    text-align: center;
    margin-top: 48px;
}

.instagram-profile-link {
    display: inline-block;
    padding: 14px 28px;
    background: #0093E4;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.instagram-profile-link:hover {
    background: #0076b8;
    transform: translateY(-2px);
}


/* AREAS */

.areas-section {
    background: #EEEEEE;
    padding: 120px 0;
}

.areas-grid {
    width: 80%;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.area-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.area-card img {
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.area-card:hover img {
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(195deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.82) 100%);

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 300;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}


/* CONTACT */

.contact-section {
    position: relative;
    background: #EEEEEE;
    padding: 120px 0 80px;
    overflow-x: visible;
    overflow-y: visible;
}

.contact-argentina-wrap {
    position: absolute;
    z-index: 0;
    left: clamp(-180px, -15vw, -48px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(200px, 30vw, 420px);
    height: min(calc(100% + 100px), 920px);
    min-height: 400px;
    pointer-events: none;
}

.contact-argentina-wrap picture {
    display: block;
    height: 100%;
    width: 100%;
}

.contact-argentina-img {
    height: 100%;
    width: 100%;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    display: block;
    transform: translateX(clamp(-36px, -6vw, -10px)) scale(1.22);
    transform-origin: left center;
}

.contact-section .section-title {
    position: relative;
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 1;
    width: 80%;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding-left: clamp(0px, 5vw, 72px);
}

.contact-info {
    flex: 1;
}

.contact-info p {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    color: #0093E4;
    margin-bottom: 15px;
}

.contact-info strong {
    font-weight: 800;
}

.map-link {
    display: inline-block;
    margin-top: 25px;

    color: #0093E4;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.map-link:hover {
    color: #005f94;
}

.map-container {
    width: 650px;
    max-width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}


/* FOOTER */

footer {
    background: #0093E4;
    padding: 50px 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

footer img {
    width: 260px;
    height: auto;
}


/* Mobile nav */

@media (max-width: 992px) {

    .nav-brand img {
        width: 100px;
    }

    .navbar {
        justify-content: flex-end;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 80px 32px 40px;
        background: #0093E4;
        box-shadow: -12px 0 48px rgba(0, 0, 0, 0.35);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .site-header.nav-open .nav-menu {
        transform: translateX(0);
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .site-header.nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .nav-brand {
        display: block;
        opacity: 1;
        left: 0;
    }

    .site-header:not(.is-scrolled) .nav-brand {
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    }

    .navbar .nav-menu a {
        font-size: 1.1rem;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .contact-argentina-wrap {
        width: clamp(100px, 36vw, 200px);
        height: min(200px, 28vh);
        min-height: 0;
        left: clamp(-88px, -16vw, -16px);
        top: 8%;
        transform: none;
        opacity: 0.9;
    }

    .contact-argentina-img {
        transform: translateX(-12%) scale(1.06);
    }

    .contact-content {
        flex-direction: column;
        padding-left: 0;
    }

    .map-container {
        width: 100%;
    }

}

@media (max-width: 1200px) {

    .nav-menu {
        gap: 32px;
    }

    .navbar .nav-menu a {
        font-size: 16px;
    }

}

@media (max-width: 768px) {

    .site-header {
        padding: 10px 16px;
    }

    .hero {
        padding-top: 100px;
    }

    .social-icons {
        right: 16px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .prev {
        left: 4px;
    }

    .next {
        right: 4px;
    }

}
