:root {
    --primary: #2d3132;     /* Dark charcoal grey */
    --accent: #ba9d5e;      /* Mustard gold */
    --bg-light: #f8f9fa;
    --text-main: #2b2b2b;
    --text-muted: #6c757d;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Fonts from original site */
    --font-heading: 'Cormorant Garamond', serif;
    --font-text: 'Lora', serif;
}

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

body {
    font-family: var(--font-text);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .logo-title {
    font-family: var(--font-heading);
}

/* Navbar */
.navbar {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 1;
}

.logo img {
    max-height: 46px !important;
    max-width: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.btn-reservar {
    background-color: var(--accent);
    color: white !important;
    padding: 9px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(186, 157, 94, 0.3);
    white-space: nowrap;
    display: inline-block;
}

.btn-reservar:hover {
    background-color: #a4884f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(186, 157, 94, 0.4);
}

/* Slider Section */
.slider-container {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 380px;
    max-height: 520px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(20, 22, 24, 0.45) 0%, rgba(20, 22, 24, 0.65) 100%);
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 0;
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 2rem;
    max-width: 850px;
}

.slider-content h1 {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 3px 12px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease forwards;
    letter-spacing: 0.5px;
}

.slider-content p {
    font-size: 1.25rem;
    font-style: italic;
    color: #f0f0f0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 16px 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border-radius: 4px;
}

.slider-btn:hover {
    background: var(--accent);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background: var(--accent);
    transform: scale(1.15);
}

/* Gallery Main Container */
.gallery-container {
    max-width: 1400px;
    margin: 3.5rem auto 5rem;
    padding: 0 2rem;
    width: 100%;
}

.gallery-title {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
    font-weight: 600;
}

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

.gallery-description {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 850px;
    margin: 1rem auto 2.5rem;
    font-family: var(--font-text);
    line-height: 1.7;
}

/* Main Segmented Switch Tabs (Apartamentos vs Zonas Comunes) */
.main-category-tabs {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: #e9ecef;
    padding: 5px;
    border-radius: 35px;
    max-width: 560px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.main-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.main-tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Subcategory Horizontal Pills Bar */
.sub-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 3rem;
    max-width: 1200px;
    padding: 0 0.5rem;
}

.filter-btn {
    background: white;
    border: 1px solid #dfdfdf;
    color: #4a4a4a;
    padding: 7px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-family: var(--font-text);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(186, 157, 94, 0.35);
}

.filter-btn .filter-count {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 4px;
}

/* Gallery Section Blocks */
.gallery-content-wrap {
    width: 100%;
}

.gallery-section-block {
    margin-bottom: 4rem;
    width: 100%;
}

.gallery-section-block.hidden {
    display: none !important;
}

.section-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 0.85rem;
    margin-bottom: 1.75rem;
}

.section-title {
    font-size: 2.1rem;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0;
}

.section-badge {
    font-size: 0.9rem;
    font-family: var(--font-text);
    background: #eef1f3;
    color: var(--text-muted);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 500;
}

/* Responsive Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #e5e5e5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Overlay */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 32, 33, 0.88) 0%, rgba(30, 32, 33, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    height: 45%;
}

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

.overlay span {
    color: white;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.5px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay span {
    transform: translateY(0);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(18, 20, 22, 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transform: scale(0.97);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

#lightbox-caption {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    background: rgba(0,0,0,0.55);
    padding: 6px 20px;
    border-radius: 25px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 42px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 10001;
}

.close-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2.2rem;
    padding: 1.2rem 1.4rem;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    line-height: 1;
}

.lightbox-nav:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--primary);
    color: var(--accent);
    border-top: 4px solid var(--accent);
    font-size: 1rem;
    font-family: var(--font-heading);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness */
@media (max-width: 900px) {
    .slider-content h1 { font-size: 2.6rem; }
    .gallery-title { font-size: 2.4rem; }
    .section-title { font-size: 1.6rem; }
    .main-category-tabs { width: 90%; }
}

@media (max-width: 600px) {
    .navbar { padding: 10px 0; }
    .nav-container { padding: 0 1rem; gap: 0.5rem; }
    .logo img { max-height: 36px !important; max-width: 180px; }
    .btn-reservar { padding: 7px 14px; font-size: 0.75rem; letter-spacing: 1px; }
    .gallery-container { padding: 0 1rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .lightbox-prev { left: 10px; padding: 0.8rem 1rem; font-size: 1.6rem; }
    .lightbox-next { right: 10px; padding: 0.8rem 1rem; font-size: 1.6rem; }
    .close-btn { top: 15px; right: 20px; font-size: 34px; }
    #lightbox-caption { font-size: 1rem; bottom: 15px; }
}

@media (max-width: 380px) {
    .nav-container { padding: 0 0.6rem; }
    .logo img { max-height: 30px !important; max-width: 140px; }
    .btn-reservar { padding: 6px 10px; font-size: 0.7rem; letter-spacing: 0.5px; }
}
