/* ================= RESET ================= */

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

/* ================= ROOT ================= */

:root{

    --green: #3f6b57;
    --beige: #f5efe4;
    --white: #ffffff;
    --black: #111111;
    --pink: #f2c6c2;
    --gray: #d9d9d9;

    --transition: 0.4s ease;
}

/* ================= BODY ================= */

body{

    font-family: 'Inter', sans-serif;
    background: var(--beige);
    color: var(--black);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ================= GLOBAL ================= */

.section{
    padding: 100px 8%;
}

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

.mini-title{

    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 600;
}

.section-header h2{

    font-size: 42px;
    margin-top: 15px;
    font-weight: 700;
}

img{
    width: 100%;
    display: block;
}

/* ================= NAVBAR ================= */

.header{

    position: fixed;
    width: 100%;
    top: 0;
    left: 0;

    z-index: 999;

    backdrop-filter: blur(15px);
    background: rgba(255,255,255,0.1);

    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header.scrolled{

    background: rgba(17,17,17,0.92);

    backdrop-filter: blur(20px);

    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.navbar{

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 8%;
}

.logo{

    width: 75px;
}

.nav-links{

    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a{

    text-decoration: none;
    color: var(--white);
    font-weight: 500;

    transition: var(--transition);
}

.nav-links a:hover{
    color: var(--pink);
}

.nav-buttons{

    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-buttons button{

    background: rgba(255,255,255,0.15);
    border: none;

    color: var(--white);

    padding: 10px 15px;
    border-radius: 30px;

    cursor: pointer;

    transition: var(--transition);
}

.nav-buttons button:hover{

    background: var(--pink);
    color: var(--black);
}

.hamburger{

    display: none;
    flex-direction: column;
    gap: 6px;

    cursor: pointer;
}

.hamburger span{

    width: 28px;
    height: 3px;

    background: var(--white);
    border-radius: 10px;
}

/* ================= HAMBURGER ACTIVE ================= */

.hamburger.active span:nth-child(1){

    transform: rotate(45deg) translateY(12px);
}

.hamburger.active span:nth-child(2){

    opacity: 0;
}

.hamburger.active span:nth-child(3){

    transform: rotate(-45deg) translateY(-12px);
}

.hamburger span{

    transition: all 0.4s ease;
}

/* ================= HERO ================= */

.hero{

    height: 100vh;

    background: url('../assets/background/hero.jpg') center/cover no-repeat;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.hero-overlay{

    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.45);
}

.hero-content{

    position: relative;
    z-index: 2;

    color: var(--white);

    max-width: 800px;
}

.hero-content h1{

    font-size: 82px;
    font-weight: 700;

    margin-bottom: 20px;
}

.hero-content p{

    font-size: 22px;
    margin-bottom: 40px;
}

.hero-buttons{

    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary,
.btn-secondary{

    text-decoration: none;

    padding: 16px 34px;

    border-radius: 50px;

    font-weight: 600;

    transition: var(--transition);
}

.btn-primary{

    background: var(--green);
    color: var(--white);
}

.btn-primary:hover{

    background: var(--pink);
    color: var(--black);
}

.btn-secondary{

    background: rgba(255,255,255,0.15);
    color: var(--white);

    backdrop-filter: blur(10px);
}

.btn-secondary:hover{

    background: var(--white);
    color: var(--black);
}

/* ================= WELCOME ================= */

.welcome{

    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 60px;

    align-items: center;
}

.section-text h2{

    font-size: 48px;
    margin: 20px 0;
}

.section-text p{

    line-height: 1.8;
    font-size: 18px;
}

.section-image img{

    border-radius: 30px;

    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* ================= ROOMS ================= */

.room-cards{

    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.room-card{

    background: var(--white);

    border-radius: 25px;

    overflow: hidden;

    transition: var(--transition);

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.room-card:hover{

    transform: translateY(-10px);
}

.room-info{

    padding: 25px;
}

.room-info h3{

    margin-bottom: 15px;
    font-size: 26px;
}

.room-info p{

    line-height: 1.6;
    margin-bottom: 20px;
}

.room-info span{

    color: var(--green);
    font-weight: 700;
}

/* ================= PARALLAX ================= */

.parallax{

    height: 60vh;

    background: url('../assets/instalaciones/alberca.png') center/cover fixed no-repeat;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax-overlay{

    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.45);
}

.parallax-content{

    position: relative;
    z-index: 2;

    text-align: center;
    color: var(--white);

    max-width: 800px;
}

.parallax-content h2{

    font-size: 52px;
}

/* ================= SERVICES ================= */

.services-grid{

    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.service-box{

    background: var(--white);

    padding: 40px;

    border-radius: 25px;

    text-align: center;

    transition: var(--transition);

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.service-box:hover{

    transform: translateY(-8px);
}

.service-box i{

    font-size: 40px;
    color: var(--green);

    margin-bottom: 20px;
}

.service-box p{

    font-size: 18px;
    font-weight: 600;
}

/* ================= MAP ================= */

.map-container iframe{

    width: 100%;
    height: 500px;

    border: none;
    border-radius: 30px;
}

/* ================= FOOTER ================= */

.footer{

    background: var(--black);
    color: var(--white);

    padding: 60px 8%;
}

.footer-content{

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 25px;

    text-align: center;
}

.footer-content img{

    width: 90px;
}

.socials{

    display: flex;
    gap: 20px;
}

.socials a{

    color: var(--white);
    font-size: 24px;

    transition: var(--transition);
}

.socials a:hover{

    color: var(--pink);
}

/* ================= ANIMATIONS ================= */

.room-card,
.service-box,
.section-image img{

    transition: all 0.5s ease;
}

/* ================= DARK MODE ================= */

body.dark-mode{

    background: #121212;
    color: #f5f5f5;
}

body.dark-mode .room-card,
body.dark-mode .service-box{

    background: #1d1d1d;
    color: #ffffff;
}

body.dark-mode .section-header h2,
body.dark-mode .section-text h2,
body.dark-mode .room-info h3,
body.dark-mode .room-info p,
body.dark-mode .service-box p{

    color: #ffffff;
}

body.dark-mode .footer{

    background: #000000;
}

body.dark-mode .header{

    background: rgba(0,0,0,0.4);
}

body.dark-mode .btn-secondary{

    background: rgba(255,255,255,0.1);
}

/* ================= SCROLL ANIMATIONS ================= */

.room-card,
.service-box,
.section-text,
.section-image,
.section-header{

    opacity: 0;
    transform: translateY(60px);

    transition: all 1s ease;
}

.show{

    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ================= LOADER ================= */

.loader{

    position: fixed;

    inset: 0;

    background: #111111;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 99999;

    transition: opacity 1s ease,
                visibility 1s ease;
}

.loader img{

    width: 140px;

    animation: pulse 2s infinite;
}

.loader.hide{

    opacity: 0;
    visibility: hidden;
}

@keyframes pulse{

    0%{

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

    50%{

        transform: scale(1.08);
        opacity: 0.8;
    }

    100%{

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

}

/* ================= PAGE TRANSITION ================= */

.page-transition{

    position: fixed;

    inset: 0;

    background: #111111;

    z-index: 999999;

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.5s ease;
}

.page-transition.active{

    opacity: 1;

    pointer-events: all;
}

/* ================= SOCIAL LINKS ================= */

.social-links{

    margin-top: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;
}

.social-links a{

    width: 50px;
    height: 50px;

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;

    font-size: 22px;

    text-decoration: none;

    transition: 0.3s ease;
}

.social-links a:hover{

    transform: translateY(-5px) scale(1.08);

    background: #ff4fa3;
}