/* --- VARIABLES Y RESET --- */
:root {
    --color-black: #111111;
    --color-dark-gray: #333333;
    --color-gray: #888888;
    --color-light-gray: #f4f4f4;
    --color-white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-dark-gray);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
    padding-top: 70px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-black);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

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

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

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

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

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

.btn-outline-dark:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* --- LAYOUT GENERAL --- */
section {
    padding: 80px 20px;
    text-align: center;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-black);
    margin: 15px auto 0;
}

.section-subtitle {
    color: var(--color-gray);
    font-size: 1rem;
    margin-bottom: 30px;
}

/* --- NAVBAR STYLES --- */
.navbar {
    background-color: var(--color-white);
    height: 70px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-black);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark-gray);
    position: relative;
}

.nav-link:hover {
    color: var(--color-black);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-black);
    transition: width 0.3s;
}

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

.nav-btn {
    padding: 8px 20px;
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid var(--color-black);
    transition: 0.3s;
}

.nav-btn:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-black);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: left 0.4s ease;
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }
}

/* =========================================
   SECCIONES Y SUS FONDOS (ORDEN LÓGICO)
   ========================================= */

/* --- 1. HERO SECTION (Fondo: Imagen Oscura) --- */
#hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./images/local/local-eixample.jpeg');
    /* background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), ulrl('https://images.unsplash.com/photo-1585747860715-2ba37e788b70?ixlib=rb-1.2.1&auto=format&fit=crop&w=1953&q=80'); */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
}

#hero .logo {
    width: 450px;
    margin-bottom: 20px;
}

#hero .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #ddd;
}

#hero .highlights {
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-weight: 400;
    color: #ccc;
}

#hero .highlights span {
    margin: 0 10px;
    display: inline-block;
}

#hero .cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 2. ABOUT (Fondo: Blanco) --- */
#about {
    background-color: var(--color-white);
}

#about p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--color-gray);
    font-size: 1.1rem;
}

/* --- 3. SERVICES (Fondo: Gris Claro) --- */
#services {
    background-color: var(--color-light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-black);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* --- 4. TEAM SECTION (Fondo: Blanco) --- */
#team {
    background-color: var(--color-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-photo-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 25px;
    background-color: var(--color-light-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.team-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.team-card:hover .team-photo-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.team-card .specialty {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.team-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* --- 5. GALLERY STYLE (Fondo: Blanco) --- */
#gallery {
    background-color: var(--color-white);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: white;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border: 1px solid white;
    padding: 8px 15px;
}

@media (max-width: 768px) {
    .gallery-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        scrollbar-width: none;
    }

    .gallery-container::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        min-width: 85%;
        scroll-snap-align: center;
        aspect-ratio: 4 / 5;
    }

    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(transparent 70%, rgba(0, 0, 0, 0.6));
        align-items: flex-end;
        padding: 20px;
    }

    .gallery-overlay span {
        border: none;
        padding: 0;
    }
}

@media (min-width: 769px) {
    .gallery-item:hover img {
        transform: scale(1.1);
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
}

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

/* --- 6. REVIEWS (Fondo: Negro) --- */
#reviews {
    background-color: var(--color-black);
    color: var(--color-white);
}

#reviews .section-title {
    color: var(--color-white);
}

#reviews .section-title::after {
    background: var(--color-white);
}

.rating-badge {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.rating-badge i {
    color: var(--color-white);
    font-size: 1.2rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    border: 1px solid #333;
    padding: 30px;
    text-align: left;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #ccc;
}

.review-stars {
    color: var(--color-white);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.reviews-cta {
    margin-top: 40px;
    text-align: center;
}

/* --- 7. PRICING: TARJETAS (Fondo: Blanco) --- */
#pricing {
    background-color: var(--color-white);
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.pricing-card {
    background: var(--color-white);
    padding: 30px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--color-black);
}

.pricing-card.featured {
    border: 2px solid var(--color-black);
    transform: scale(1.02);
}

.pc-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.7rem;
    font-family: var(--font-heading);
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.pc-header h4 {
    font-size: 1rem;
    margin: 0;
}

.pc-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.pc-desc {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 20px;
    min-height: 45px;
}

.pc-meta {
    font-size: 0.8rem;
    color: var(--color-black);
    font-weight: 600;
}

/* --- 8. BOOKING BANNER (Fondo: Gris Claro) --- */
#booking-banner {
    background-color: var(--color-light-gray);
    padding: 60px 20px;
}

#booking-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* --- 9. INFO PRACTICA (Fondo: Blanco) --- */
#info {
    background-color: var(--color-light-gray);
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.info-details h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.info-item i {
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1.2rem;
}

.info-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* --- 10. FOOTER (Fondo: Negro) --- */
footer {
    background-color: var(--color-black);
    color: #666;
    padding: 40px 20px;
    font-size: 0.8rem;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

.logo-footer {
    width: 200px;
    margin-bottom: 20px;
}

/* --- RRSS MODULE (Dentro del Footer) --- */
.social-module {
    margin: 20px 0px 0px 0px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--color-white);
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.social-item i {
    font-size: 1.1rem;
}

.social-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .social-item:active {
        background-color: var(--color-white);
        color: var(--color-black);
        transform: scale(0.95);
    }
}

@media (min-width: 769px) {
    .social-item:hover {
        transform: translateY(-2px);
        color: var(--color-white);
    }
}


/* =========================================
   ESTILOS GENERALES Y UTILIDADES (REVEAL & MEDIA QUERIES)
   ========================================= */

@media (max-width: 768px) {
    #hero .logo {
        width: 250px;
    }

    .logo-footer {
        max-width: 150px;
    }

    .info-container {
        flex-direction: column;
        text-align: center;
    }

    .info-item {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .info-item i {
        margin-right: 0;
        margin-top: 0;
    }

    .info-actions {
        justify-content: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        display: block;
        margin: 0 auto 10px;
    }
}

/* --- EFECTO REVEAL (SCROLL) --- */
.reveal {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: all 0.8s ease-out !important;
    visibility: hidden;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible;
}

/* --- BOTÓN SCROLL TO TOP --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:hover {
    background-color: var(--color-dark-gray);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* =========================================
   SELECTOR DE LOCALES (NUEVO APARTADO)
   ========================================= */

/* Contenedor Split Screen */
.split-container {
    display: flex;
    height: 60vh;
    min-height: 400px;
    width: 100%;
    overflow: hidden;
}

.split-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    padding: 40px;
}

/* Lado Eixample (Oscuro) */
.eixample-side {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('./images/local/local-eixample-croped.png');
    background-size: cover;
    background-repeat: no-repeat; 
    background-position: center;
    color: var(--color-white);

}

/* Lado Nou Barris (Claro) */
.noubarris-side {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('./images/local/local-noubarris.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--color-white);
}

/* Efecto expansión al pasar el ratón */
@media (min-width: 769px) {
    .split-option:hover {
        flex: 1.6;
    }
}

.split-content h2 {
    font-size: 2.5rem;
    margin: 10px 0;
    color: inherit;
    /* Mantiene el color blanco o negro según el lado */
}

.tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Ajustes de botones dentro del Split */
.split-option .btn {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 0.8rem;
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* --- BARRA DE SELECCIÓN ACTIVA --- */
.selection-bar {
    background: #f9f9f9;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 60px;
    /* Se queda pegada bajo la navbar */
    z-index: 900;
}

.bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bar-flex p {
    font-size: 0.9rem;
    color: var(--color-dark-gray);
    margin: 0;
}

.btn-change {
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    padding: 8px 15px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-change:hover {
    background: var(--color-dark-gray);
}

/* --- LÓGICA DE FILTRADO (HIDDEN POR DEFECTO) --- */
#filtered-content {
    display: none;
    /* El JS lo pondrá en block al elegir */
}

.loc-data {
    display: none;
    /* El JS mostrará solo la clase seleccionada */
}

/* --- RESPONSIVE PARA EL SPLIT --- */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
        height: auto;
    }

    .split-option {
        width: 100%;
        padding: 80px 20px;
    }

    .split-content h2 {
        font-size: 1.8rem;
    }
}