:root {
    --gold: #c5a059;
    --gold-bright: #f1d592;
    --black-deep: #050505;
    --black-surface: #121212;
    --border-subtle: rgba(197, 160, 89, 0.15);
    --text-gray: #a0a0a0;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--black-deep);
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* === CABECERA LUXURY === */
.luxury-header {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Ajuste premium para el logo en la cabecera */
.brand-logo img {
    height: 45px; 
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.brand-logo img:hover {
    transform: scale(1.05);
}

.brand-logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    letter-spacing: 4px;
    color: #fff;
    font-weight: 400;
}

.brand-logo h1 span {
    color: var(--gold);
    font-weight: 700;
}

.luxury-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.luxury-nav a {
    color: var(--text-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.luxury-nav a:hover,
.luxury-nav a.active {
    color: var(--gold);
}

.luxury-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.luxury-nav a:hover::after,
.luxury-nav a.active::after {
    width: 100%;
}

/* === NUEVOS ESTILOS PARA LA GALERÍA (SLIDER) === */
.hero-showcase {
    background: none;
    padding-top: 85px;
    height: auto;
    display: block;
    position: relative;
}

.premium-slider-wrapper {
    position: relative;
    width: 100%;
    height: 75vh;
    overflow: hidden;
    background: #000;
}

.premium-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
}

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

.premium-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Degradado oscuro para que el texto sea siempre legible */
.premium-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 50%);
}

.slide-info {
    position: absolute;
    bottom: 120px;
    left: 5%;
    z-index: 2;
    color: white;
    max-width: 700px;
    text-align: left;
}

.s-loc {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.s-desc {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
    color: #fff;
}

.s-price {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-bright);
}

/* Controles del Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0,0,0,0.4);
    color: white;
    border: 1px solid var(--border-subtle);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--gold);
    color: black;
    border-color: var(--gold);
}

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

/* Miniaturas (Thumbnails) */
.slider-thumbnails {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 15px;
}

.thumb {
    width: 100px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: 0.3s;
    border-radius: 4px;
}

.thumb.active, .thumb:hover {
    opacity: 1;
    border-color: var(--gold);
}

/* Superponer el buscador sobre la parte inferior del slider */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 1100px;
    margin: -50px auto 0 auto; 
}

/* Buscador Flotante Estilo Lounge */
.luxury-search-box {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    padding: 15px 25px;
    border-radius: 4px;
    display: flex;
    gap: 20px;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 15px;
}

.search-field:last-of-type {
    border: none;
}

.search-field label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
}

.search-field input,
.search-field select {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    padding: 5px 0;
    outline: none;
}

.search-field select option {
    background: var(--black-surface);
}

.search-btn {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 0 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 2px;
}

.search-btn:hover {
    background: var(--gold-bright);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

/* === SECCIÓN PORTAFOLIO (TARJETAS) === */
.main-showcase {
    padding: 80px 0;
}

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

.gold-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.gold-divider {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto 0 auto;
}

.luxury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

.luxury-card {
    background: var(--black-surface);
    border: 1px solid #1a1a1a;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.luxury-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.card-media {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.luxury-card:hover .card-media img {
    transform: scale(1.06);
}

.property-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(5, 5, 5, 0.85);
    color: var(--gold-bright);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border: 1px solid var(--border-subtle);
    font-weight: 500;
}

.card-body {
    padding: 30px;
}

.loc {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 500;
}

.card-body h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 52px;
    color: #fff;
}

.price {
    font-size: 1.3rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.specs {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* === LUXURY FOOTER === */
.luxury-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 50px 0;
    text-align: center;
    background: #020202;
}

.footer-locations {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.copyright {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-gray);
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .luxury-search-box {
        flex-direction: column;
        gap: 15px;
    }

    .search-field {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-right: 0;
        padding-bottom: 10px;
    }

    .luxury-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .slide-info { bottom: 150px; }
    .slider-thumbnails { display: none; }
}

/* === AJUSTES COMPATIBILIDAD MENÚ DE JOOMLA === */
.luxury-nav ul.mod-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.luxury-nav ul.mod-menu li a {
    color: var(--text-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.luxury-nav ul.mod-menu li a:hover,
.luxury-nav ul.mod-menu li.active a,
.luxury-nav ul.mod-menu li.current a {
    color: var(--gold);
}

.luxury-nav ul.mod-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.luxury-nav ul.mod-menu li a:hover::after,
.luxury-nav ul.mod-menu li.active a::after,
.luxury-nav ul.mod-menu li.current a::after {
    width: 100%;
}