@font-face {
    font-family: 'Avenir';
    src: url('../fonts/AvenirLTStd-Roman.otf') format("opentype");
    font-weight: normal;
    font-style: normal;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'Avenir';
}

:root {
    /* Paleta base */
    ---color-primary: #AD9752;
    --color-secondary: #fdf0da;

    /* Acentos y neutrales */
    --color-accent-1: #CBB88C;
    --color-accent-2: #19160E;
    --color-neutral-dark: #3A2E1F;
    --color-white: #ffffff;

    /* Paleta Them Dark  */
    --color-td-primary: #CBB88C;
    /* dorado más suave y elegante */
    --color-td-secondary: #1D1B16;
    /* beige muy oscuro como fondo */
    --color-td-accent-1: #AD9752;
    /* dorado original como acento */
    --color-td-accent-2: #fdf0da;
    /* beige claro para contrastes */
    --color-td-neutral-dark: #f1e8d5;
    /* texto claro sobre fondo oscuro */
    --color-td-white: #ffffff;
    /* se mantiene para elementos destacados */

    /* Texto y fondos */
    --color-bg: var(--color-secondary);
    --color-text: var(--color-neutral-dark);
    --bg-nav: transparent;
    --bg-body: var(--color-secondary);

    /* Acciones */
    --color-success: #6C9C5A;
    --color-error: #D45D5D;

    /* UI */
    --big-font: 5.5rem;
    --p-font: 1.5rem;
    --nav-f-size-item: 1rem;


}

body {
    background: var(--color-bg);
    color: var(--color-text);
}

nav {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 37px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .50s ease;
    background-color: var(--bg-nav);
}

/* .logo img { width: 100%; height: auto; } */

.logo {
    font-size: 26px;
    color: var(--color-text);
}

.navlist {
    display: flex;
}

.navlist a {
    display: inline-block;
    margin: 0 35px;
    color: var(--color-text);
    font-size: var(--nav-f-size-item);
    transition: all .6s ease;
}

.navlist a:hover {
    color: var(--color-accent-1);
}

.right-content {
    display: flex;
    align-items: center;
}

.nav-btn {
    display: inline-block;
    padding: 9px 24px;
    background: transparent;
    border: 2px solid var(--color-text);
    border-radius: 7px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    transition: all .6s ease;
}

.nav-btn:hover {
    transform: translateY(-5px);
    border: 2px solid var(--color-accent-1);
    color: var(--color-accent-1);
}

#menu-icon {
    font-size: 42px;
    z-index: 1001;
    cursor: pointer;
    margin-left: 25px;
    display: none;
    color: var(--color-text);
}

nav.bg-black {
    --color-bg: var(--color-td-secondary);
    --color-text: var(--color-td-neutral-dark);
    --bg-body: var(--color-td-secondary);
}

nav.bg-white {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: backdrop-filter;
    /* soporte para Safari */
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --color-text: white;
}


.wrapper {
    position: relative;
    height: 500vh;
    /* 5 secciones apiladas */
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.8s ease-in-out;
    -webkit-transition: background 0.8s ease-in-out;
    padding: 2rem;
}

.sticky-container.s-hero {
    background: url(../images/webp/screenfull-golf-2.webp) center/cover no-repeat;
    --color-bg: var(--color-td-secondary);
    --color-text: var(--color-td-neutral-dark);
    --bg-nav: var(--color-td-secondary);
}

.sticky-container.s-golf {
    background: var(--bg-body);
}

.sticky-container.s-casaclub {
    background: url(../images/webp/casa-club.webp) center/cover no-repeat;
    --color-bg: var(--color-td-secondary);
    --color-text: var(--color-td-neutral-dark);
    --bg-nav: var(--color-td-secondary);
}

.sticky-container.s-academy {
    background: var(--bg-body);
}

.sticky-container.s-contacto {
    background: url(../images/webp/dibujo-casaclub.webp) center/cover no-repeat;
}

.sticky-container.sd-terraza {
    background: url(../images/webp/terraza-dentro.webp) center/cover no-repeat;
}

.sticky-container.sd-gym {
    background: url(../images/webp/gym.webp) center/cover no-repeat;
}

.sticky-container.sd-lockers-c {
    background: url(../images/webp/lockers-c.webp) center/cover no-repeat;
}

.sticky-container.sd-lockers-d {
    background: url(../images/webp/lockers-d.webp) center/cover no-repeat;
}

.sticky-container.sd-salon-belleza {
    background: url(../images/webp/salon-belleza-2.webp) center/cover no-repeat;
}

.sticky-container.sd-tiro-practica {
    background: url(../images/webp/tiro-practica-2.webp) center/cover no-repeat;
}

.sticky-container.sd-campo-golf {
    background: url(../images/webp/campo-golf.webp) center/cover no-repeat;
}


.content-panel {
    width: 100%;
    position: absolute;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    z-index: 0;
}

.content-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 10;
}

.hero {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 8%;
}

.hero__texContent,
.hero__imgConent {
    flex: 1;
}

.hero__texContent {
    color: var(--color-text);
}

.hero__texContent h1 {
    font-size: var(--big-font);
    font-weight: 900;
    margin: 15px 0;
}

.hero__texContent h5 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero__texContent p {
    width: 100%;
    max-width: 630px;
    font-size: var(--p-font);
    font-weight: 400;
    line-height: 32px;
    color: var(--text-color);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 13px 32px;
    background: var(---color-primary);
    border: 2px solid transparent;
    border-radius: 7px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    transition: all .6s ease;
    margin-right: 20px;
}

.btn:hover {
    background: var(--color-accent-1);
    transform: scale(1.1);
}

.hero__imgConent {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__imgConent img {
    width: 70%;
    height: auto;
}

.golf {
    position: relative;
    display: flex;
    width: 100%;
    height: 100vh;
}

.golf__img-golfista {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.golf__img-ball {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 130px;
    z-index: 2;
}

.golf_textContainer {
    position: absolute;
    bottom: 20%;
    right: 80px;
    max-width: 500px;
    z-index: 3;
    text-align: right;
    color: var(--color-text);
}

.golf_textContainer h2 {
    font-size: 2.5rem;
    color: var(--color-accent-2);
    font-family: 'Avenir', sans-serif;
    font-weight: bold;
}

.golf_textContainer p {
    margin: 15px 0;
    font-size: 1rem;
    color: var(--color-neutral-dark);
    line-height: 1.6;
}

.casaclub {
    height: 100vh;
}

.casaclub__text {
    position: absolute;
    bottom: 10%;
    left: 5%;
    max-width: 500px;
    z-index: 3;
    text-align: left;
    padding: 15px;
    color: var(--color-accent-2);
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(5px);
    /* ← Importante para iPhone */
    backdrop-filter: blur(5px);
    /* Para navegadores modernos */
    border-radius: 7px;
    transform: translateZ(0);
}

.casaclub__text h2 {
    font-size: 3rem;
    font-family: 'Avenir', sans-serif;
    font-weight: bold;
}

.casaclub__text p {
    font-size: 1.5rem;
    line-height: 1.6;
}



/* card con glasmorfismo  */
.glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: backdrop-filter;
    /* soporte para Safari */
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    width: 320px;
    color: white;
    position: absolute;
    bottom: 8%;
    left: 5%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card h2 {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.glass-card p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4em;
    color: #e0e0e0;
}

.glass-card .location-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.1em;
}

.glass-card .arrow-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(3px);
}

.arrow-icon::before {
    content: '';
    font-size: 16px;
    color: white;
}

/* card con glasmorfismo  */














.casaclub__menu {
    position: absolute;
    bottom: 8%;
    right: 3%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
}

.casaclub__menu a {
    width: 100%;
    text-align: end;
    display: block;
    /* Asegura que todo el enlace sea clickeable */
}

.casaclub__menu span {
    display: inline-block;
    padding: 5px;
    margin-bottom: .5rem;
    font-size: 25px;
    color: var(--color-accent-2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    transform: translateY(0);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    /* Evita flash azul en iOS */
    user-select: none;
    border-radius: 7px;
    text-shadow: none;
    background-color: var(--color-secondary);
    backdrop-filter: blur(5px);
}

/* Efecto hover para escritorio */
.casaclub__menu span:hover,
.casaclub__menu span:active {
    transform: translateY(-5px);
    color: var(--color-accent-1);
}


.golfA {
    width: 100%;
    height: 100%;
    display: flex;
}

.golfA__container,
.golfA__img {
    flex: 1;
}

.golfA__container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    z-index: 1;
}

.golfA__header {
    width: 50%;
    text-align: center;
}

.golfA__header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.golfA__header .subtitle {
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    color: #3a2e1f;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.golfA__body {
    max-width: 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding: 5rem 1rem;
}

.golfA__features {
    flex: 1 1 220px;
    max-width: 300px;
    text-align: center;
}

.golfA__features .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.golfA__features h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.golfA__features p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a3d2f;
}

.golfA__img {
    position: absolute;
    width: 100%;
}

.golfA__footer {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 8%;
}

.contacto__form,
.contacto__info {
    flex: 1;
}

.contacto__form {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(3px);
    border: 2px solid #a39884;
    box-shadow: 6px 6px 0 rgba(176, 166, 154, 0.7);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
}

.contacto__form h2 {
    text-align: center;
    color: #3c2f1c;
    font-size: 26px;
    margin-bottom: 20px;
    border-bottom: 2px solid #a39884;
    padding-bottom: 10px;
}

.contacto__form label {
    display: block;
    margin-bottom: 5px;
    color: #4e4133;
    font-weight: bold;
    font-size: 14px;
    text-align: start;
}

.contacto__form input,
.contacto__form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #a39884;
    border-radius: 4px;
    background-color: #fdfaf5;
    font-size: 15px;
    font-family: 'Georgia', serif;
}

.contacto__form input:focus,
.contacto__form textarea:focus {
    border-color: #7b6955;
    outline: none;
}


.success-message {
    margin-top: 10px;
    text-align: center;
    color: green;
    font-weight: bold;
    display: none;
}

.contacto__info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 60px 20px 40px;
    background-color: transparent;
}

.contacto__medios {
    text-align: center;
    max-width: 400px;
}

.contacto__medios h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #AD9752;
}

.contacto__medios p {
    margin: 5px 0;
    font-size: 15px;
    color: #3c2f1c;
}

.contacto__medios a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: underline;
    color: #000;
    cursor: pointer;
}

.contacto__frase {
    text-align: center;
    padding: 30px 15px;
    color: #3c2f1c;
}

.contacto__frase p {
    font-size: 18px;
    margin: 5px;
}

.contacto__frase span {
    display: block;
    font-size: 14px;
    color: #AD9752;
    margin-top: 5px;
}

footer {
    background-color: #fdf0da;
    padding: 25px 10px 10px;
    text-align: center;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #ccc;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    margin: 0 8px;
    text-decoration: none;
    color: #444;
}

.footer-links a:hover {
    color: #AD9752;
}

.fcontacto {
    display: none;
}

/* RESPONSIVE MAX-WIDTH 1770  */
@media(max-width: 1770px) {
    nav {
        padding: 22px 4%;
    }

    .golf_textContainer {
        right: 5%;
    }

    .golf__btn {
        margin: 0;
    }

    .casaclub__menu {
        right: 5%;
    }

    .hero__imgConent {
        justify-content: end;
    }

    .golfA__body {
        padding: 2rem;
    }

    .contacto__info {
        flex-direction: column;
    }
}

/* RESPONSIVE MAX-WIDTH 1670  */
@media(max-width: 1670px) {
    :root {
        --big-font: 4.4rem;
        --p-font: 15px
    }
}

@media(max-width: 1370px) {}

/* RESPONSIVE MAX-WIDTH 1150  */
@media(max-width: 1150px) {
    :root {
        --big-font: 3.6rem;
    }
}



/* RESPONSIVE MAX-WIDTH 950PX  */
@media(max-width: 950px) {
    #menu-icon {
        display: block;
    }

    .navlist {
        position: absolute;
        width: 100%;
        height: 100vh;
        padding: 100px 50px;
        top: 0;
        right: 0;
        bottom: 0;
        left: 100%;
        display: flex;
        flex-direction: column;
        backdrop-filter: blur(32px);
        transition: all .6s ease-in-out;
    }

    .navlist a {
        display: block;
        padding: 0;
        margin: 0px 0px 25px 0px;
        font-size: 1.7rem;
    }

    .navlist.open {
        left: 0;
    }

    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        padding: 0 2%;
        text-align: center;
    }

    .hero__imgConent {
        justify-content: center;
    }

    .hero__texContent {
        margin: 25px;
    }

    .hero__texContent h1 {
        font-size: calc(var(--big-font) * 0.8);
    }

    .hero__texContent h5 {
        font-size: 14px;
    }

    .hero__texContent p {
        font-size: calc(var(--p-font) * 1.2);
        line-height: 28px;
        margin: 20px auto;
    }

    .casaclub__text {
        position: absolute;
        top: 60%;
        left: 5%;
        width: 60%;
    }

    .casaclub__text h2 {
        font-size: 2rem;
    }

    .casaclub__text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .casaclub__menu span {
        font-size: 16px;
    }

    .golf__img-golfista {
        transform: translateX(15%) scale(1.3);
        transform-origin: center bottom;
        object-fit: cover;
        height: auto;
    }

    .golf__img-ball {
        width: 75px;
    }

    .golf_textContainer {
        right: 7%;
        bottom: 35%;
    }

    .golf_textContainer h2 {
        font-size: 2rem;
    }

    .golf_textContainer p {
        word-break: break-word;
        hyphens: auto;
    }

    .golfA__img {
        bottom: 0;
        transform: translateX(-15%) scale(1.3);
        transform-origin: center bottom;
        object-fit: cover;
        height: auto;
    }

    .golfA__container {
        position: relative;
        left: 0;
        overflow: hidden;
        align-items: center;
    }

    .golfA__header {
        width: 100%;
    }

    .golfA__body {
        max-width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        transition: transform 0.5s ease-in-out;
        gap: 0;
        padding: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .golfA__features {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 20px 35px;
        box-sizing: border-box;
        border-radius: 10px;
        /* background: rgba(253, 240, 218, 0.7); */
        /* backdrop-filter: blur(5px); */
        color: #AD9752;
    }

    .contacto__container {
        flex-direction: column;
        padding: 0;
    }

    .contacto__info {
        display: none;
    }

    .fcontacto {
        display: flex;
    }

    /* .contacto__container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0 8%;
    }

    .contacto__form,
    .contacto__info {
        flex: 1;
    }

    .contacto__form {
        background-color: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(3px);
        border: 2px solid #a39884;
        box-shadow: 6px 6px 0 rgba(176, 166, 154, 0.7);
        padding: 40px;
        max-width: 500px;
        width: 90%;
        border-radius: 12px;
    }

    .contacto__form h2 {
        text-align: center;
        color: #3c2f1c;
        font-size: 26px;
        margin-bottom: 20px;
        border-bottom: 2px solid #a39884;
        padding-bottom: 10px;
    }

    .contacto__form label {
        display: block;
        margin-bottom: 5px;
        color: #4e4133;
        font-weight: bold;
        font-size: 14px;
        text-align: start;
    }

    .contacto__form input,
    .contacto__form textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
        border: 1px solid #a39884;
        border-radius: 4px;
        background-color: #fdfaf5;
        font-size: 15px;
        font-family: 'Georgia', serif;
    }

    .contacto__form input:focus,
    .contacto__form textarea:focus {
        border-color: #7b6955;
        outline: none;
    }


    .success-message {
        margin-top: 10px;
        text-align: center;
        color: green;
        font-weight: bold;
        display: none;
    }

    .contacto__info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding: 60px 20px 40px;
        background-color: transparent;
    }

    .contacto__medios {
        text-align: center;
        max-width: 400px;
    }

    .contacto__medios h2 {
        font-size: 26px;
        margin-bottom: 10px;
        color: #AD9752;
    }

    .contacto__medios p {
        margin: 5px 0;
        font-size: 15px;
        color: #3c2f1c;
    }

    .contacto__medios a {
        display: inline-block;
        margin-top: 10px;
        text-decoration: underline;
        color: #000;
        cursor: pointer;
    }

    .contacto__frase {
        text-align: center;
        padding: 30px 15px;
        color: #3c2f1c;
    }

    .contacto__frase p {
        font-size: 18px;
        margin: 5px;
    }

    .contacto__frase span {
        display: block;
        font-size: 14px;
        color: #AD9752;
        margin-top: 5px;
    }

    footer {
        background-color: #fdf0da;
        padding: 25px 10px 10px;
        text-align: center;
        font-size: 13px;
        color: #666;
        border-top: 1px solid #ccc;
    }

    .footer-links {
        margin-bottom: 10px;
    }

    .footer-links a {
        margin: 0 8px;
        text-decoration: none;
        color: #444;
    }

    .footer-links a:hover {
        color: #AD9752;
    } */

}