/* VARIABLES Y RESET */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #1670D8;
    --text-color: #333;
    --text-light: #666;
    --light-bg: #f8f9fa;
    --white: #fff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HERO SECTION - FULLSCREEN ========== */
.hero {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a2e 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

/* Hero Background - Full width image */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-bg-img.active {
    opacity: 1;
}

/* The player isn't centered in this shot, nudge the crop so she isn't cut off on narrow screens */
.hero-bg-img:nth-of-type(2) {
    object-position: 65% center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

/* Hero Header - Logo Top Left */
.hero-header {
    position: absolute;
    top: 30px;
    left: 50px;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.logo-spacer {
    display: inline-block;
    width: 123px;
    height: 160px;
}

.logo-link {
    text-decoration: none;
}

.logo-img {
    position: fixed;
    top: 30px;
    left: 50px;
    height: 160px;
    width: auto;
    z-index: 1000;
    border: none;
    cursor: pointer;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

.logo-text {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    top: 40px;
}

/* Mobile-only fixed logo, independent from the desktop .logo-img */
.hero-mobile-logo {
    display: none;
}

/* Hero Navigation - Bottom Left */
.hero-nav {
    position: absolute;
    bottom: 40px;
    left: 50px;
    z-index: 10;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0.3125rem;
    text-align: left;
}

.nav-menu li {
    position: relative;
}

.nav-menu li::before {
    content: '';
    position: absolute;
    top: 14px;
    left: -12px;
    right: -12px;
    bottom: 10px;
    background-color: var(--secondary-color);
    border-radius: 0;
    opacity: 0;
}

.nav-menu li.active-slide::before {
    opacity: 1;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-size: 4rem;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--white);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Contact Icons - Bottom Right, fixed across the whole page */
.hero-contact {
    position: fixed;
    bottom: 40px;
    right: 50px;
    display: flex;
    gap: 25px;
    z-index: 1000;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
}

.contact-icon:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Once scrolled past the hero, switch icons to the logo's blue so they stay visible on light backgrounds */
.hero-contact.past-hero .contact-icon {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.85);
}

.hero-contact.past-hero .contact-icon:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

/* Instagram Icon - Anchored to the footer's bottom left corner */
.footer-social {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.social-icon {
    width: 67px;
    height: 67px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.75rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOTONES */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* RESERVAS SECTION */
.reservas {
    position: relative;
    padding: 340px 20px 80px;
    background-color: var(--white);
}

.reservas h2 {
    position: absolute;
    top: 110px;
    left: 225px;
    right: 225px;
    text-align: left;
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    color: var(--white);
    background-color: var(--secondary-color);
    padding: 6px 28px;
    border-radius: 0;
}

.reservas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.reserva-card {
    display: block;
    background-color: var(--white);
    border: 3px solid var(--secondary-color);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 25px 4px rgba(0, 78, 137, 0.3);
    transition: var(--transition);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.reserva-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px 6px rgba(0, 78, 137, 0.4);
}

.reserva-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 1.5rem;
}

.reserva-img:hover {
    animation: ballBounce 0.7s ease;
}

@keyframes ballBounce {
    0% { transform: translateY(0); }
    30% { transform: translateY(-30px); }
    50% { transform: translateY(0); }
    65% { transform: translateY(-15px); }
    80% { transform: translateY(0); }
    90% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.reserva-card p {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.1rem;
    color: #000;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 1.5rem 1.5rem;
}

.store-badge {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.4rem;
    text-decoration: none;
    transition: var(--transition);
}

.store-badge:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.reserva-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.info-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin: 0 auto 1.5rem;
}

/* APP INFO MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    position: relative;
    background-color: var(--white);
    padding: 2.5rem 2rem 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-box h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.modal-box p {
    color: var(--text-color);
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--secondary-color);
}

/* NOTICIAS SECTION */
.noticias {
    position: relative;
    padding: 220px 20px 80px;
    background-color: var(--white);
}

.noticias h2 {
    position: absolute;
    top: 54px;
    left: 225px;
    right: 225px;
    text-align: left;
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    color: var(--white);
    background-color: var(--secondary-color);
    padding: 6px 28px;
    border-radius: 0;
}

.noticias-carousel {
    min-height: 300px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.noticias-carousel iframe {
    min-height: 500px;
}

.noticias-placeholder {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* FES-TE SOCI SECTION */
.socio {
    position: relative;
    padding: 220px 20px 80px;
    background-color: var(--white);
}

.socio h2 {
    position: absolute;
    top: 54px;
    left: 225px;
    right: 225px;
    text-align: left;
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    color: var(--white);
    background-color: var(--secondary-color);
    padding: 6px 28px;
    border-radius: 0;
}

.socio-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.socio-history {
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.socio-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.socio-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 14px 32px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

.socio-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 78, 137, 0.4);
}

/* GALERIA CAROUSEL - Coverflow style: center slide big & sharp, side slides small & blurred */
.galeria {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.galeria-carousel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.galeria-track {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.8s ease;
    will-change: transform;
}

.galeria-img {
    flex: 0 0 auto;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.4;
    filter: blur(3px);
    transform: scale(0.7);
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
    cursor: pointer;
}

.galeria-img.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.4);
    z-index: 2;
}

/* Galeria Photo Modal */
.modal-box-photo {
    max-width: 900px;
    padding: 1.5rem;
}

.galeria-modal-img {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
}

/* Prices Modal */
.modal-box-wide {
    max-width: 800px;
}

.prices-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.prices-table th,
.prices-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.prices-table th {
    color: var(--secondary-color);
    font-weight: 700;
}

.prices-table td:not(:first-child),
.prices-table th:not(:first-child) {
    text-align: right;
}

.prices-note {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-box-wide h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Contact Modal */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    background-color: var(--light-bg);
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition);
}

.contact-method i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.contact-method:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.contact-method:hover i {
    color: var(--white);
}

/* ABOUT SECTION */
.about {
    padding: 80px 20px;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* CONTACT SECTION */
.contact {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

/* FOOTER */
.footer {
    position: relative;
    background-color: #222;
    color: var(--white);
    text-align: center;
    padding: 1.4rem 20px 3rem;
}

.footer .container {
    margin-top: 1.5rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.footer-legal-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: #ccc;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 0;
}

.footer-legal-link:hover {
    color: var(--white);
}

/* Legal modals */
.legal-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.legal-note {
    font-style: italic;
    color: var(--text-light);
}

.footer-logo-link {
    display: none;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 100px;
    width: auto;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 768px) {
    /* Hero Responsive */
    .hero {
        height: 100vh;
        height: 100dvh;
    }

    .hero-header {
        top: 55px;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
        gap: 8px;
    }

    /* Logo removed on mobile - only the text logotype stays */
    .logo-link {
        display: none;
    }

    .logo-spacer {
        display: none;
    }

    /* Dedicated logo for mobile, anchored inside the hero (scrolls away with it), tucked under the "F" of the centered title */
    .hero-mobile-logo {
        display: block;
        position: absolute;
        top: 150px;
        left: 20px;
        height: 140px;
        width: auto;
        z-index: 10;
    }

    .logo-text {
        font-size: 2.4rem;
        top: 10px;
        white-space: nowrap;
    }

    /* Navigation Menu */
    .hero-nav {
        left: 20px;
        bottom: 70px;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-menu a {
        font-size: 2.4rem;
    }

    .nav-menu li::before {
        top: 6px;
        bottom: 4px;
    }

    /* Contact Icons */
    .hero-contact {
        bottom: 70px;
        right: 20px;
        gap: 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Other sections */
    .reservas,
    .noticias,
    .socio {
        padding-top: 130px;
    }

    .reservas {
        padding-top: 176px;
    }

    .noticias {
        padding-bottom: 40px;
    }

    .reservas h2,
    .noticias h2,
    .socio h2 {
        top: 24px;
        left: 20px;
        right: 20px;
        padding: 6px 18px;
    }

    .reservas h2 {
        top: 70px;
    }

    .reservas h2,
    .noticias h2,
    .socio h2,
    .about h2,
    .contact h2 {
        font-size: 2rem;
    }

    .reservas-grid {
        grid-template-columns: 1fr;
    }

    .noticias-carousel iframe {
        min-height: 350px;
    }

    .galeria {
        height: 300px;
    }

    .galeria-img {
        width: 200px;
        height: 200px;
    }

    .galeria-img.active {
        transform: scale(1.3);
    }

    /* Instagram icon: drop out of the fixed corner to avoid overlapping the centered footer text */
    .footer-social {
        display: none;
    }

    /* Legal links: stacked, left-aligned, below the copyright */
    .footer .container {
        display: flex;
        flex-direction: column;
    }

    .footer-logo-link {
        display: inline-block;
        order: 1;
        align-self: center;
    }

    .footer .container > p {
        order: 2;
        text-align: center;
    }

    .footer-copyright-break {
        display: block;
    }

    .footer-legal {
        order: 3;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.75rem;
        margin-top: 1rem;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh;
        height: 100dvh;
    }

    .hero-header {
        top: 45px;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
    }

    .logo-text {
        font-size: 1.6rem;
        top: 6px;
        white-space: nowrap;
    }

    .hero-mobile-logo {
        top: 115px;
        left: 15px;
        height: 112px;
    }

    .hero-nav {
        left: 15px;
        bottom: 50px;
    }

    .nav-menu {
        gap: 0.3rem;
    }

    .nav-menu a {
        font-size: 1.8rem;
    }

    .nav-menu li::before {
        top: 4px;
        bottom: 3px;
    }

    .hero-contact {
        bottom: 50px;
        right: 15px;
        gap: 10px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .reservas,
    .noticias,
    .socio {
        padding-top: 90px;
    }

    .reservas {
        padding-top: 125px;
    }

    .noticias {
        padding-bottom: 30px;
    }

    .reservas h2,
    .noticias h2,
    .socio h2 {
        top: 20px;
        left: 15px;
        right: 15px;
        padding: 5px 14px;
    }

    .reservas h2 {
        top: 55px;
    }

    .noticias-carousel iframe {
        min-height: 280px;
    }

    .galeria {
        height: 240px;
    }

    .galeria-img {
        width: 150px;
        height: 150px;
    }

    .galeria-img.active {
        transform: scale(1.25);
    }

    .reservas h2,
    .noticias h2,
    .socio h2,
    .about h2,
    .contact h2 {
        font-size: 1.5rem;
    }
}
