/* --- VARIABLES Y CONFIGURACIÓN GLOBAL --- */
:root {
    --primary-gold: #C5A059; /* Dorado elegante */
    --gold-hover: #b08d4b;
    --deep-navy: #1A237E;    /* Azul para contrastes fuertes */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-cream: #faf9f6;     /* Crema muy sutil para fondos */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.4s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal no deseado */
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* --- CLASES DE UTILIDAD --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
}

.section-title.center {
    text-align: center;
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.logo {
    color: white;
    font-size: 1.8rem;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* --- ACTUALIZACIÓN HERO: MEJOR LECTURA --- */
.hero-section {
    /* Fondo más oscuro (0.6 y 0.7) para que resalten las letras blancas */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('CASAJ8.jpg') !important; 
    /* El resto de propiedades se mantienen igual que antes... */
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.main-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    /* Sombra negra fuerte detrás del texto */
    text-shadow: 3px 3px 10px lch(2.74% 0 296.81); 
    font-weight: 700; /* Aseguramos grosor */
    color: #ffffff;
}

.subtitle, .price {
    text-shadow: 2px 2px 8px rgba(0,0,0,1);
    font-weight: 400;
}

/* --- BOTONES --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-gold);
    color: white;
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid var(--primary-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-primary-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: var(--transition);
}

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

/* --- FEATURES SECTION --- */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid #eee;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- DESCRIPTION SECTION (Split Layout) --- */
.description-section {
    padding: 100px 0;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
}

.image-content img {
    box-shadow: 20px 20px 0px var(--bg-white), 20px 20px 0px 2px var(--primary-gold); /* Efecto marco elegante */
    width: 100%;
    height: auto;
}

.text-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.luxury-list {
    list-style: none;
    margin-top: 30px;
}

.luxury-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.luxury-list li i {
    color: var(--primary-gold);
    margin-right: 15px;
}

/* --- GALLERY SECTION --- */
.gallery-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

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

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

/* Overlay de texto en galería */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    opacity: 0;
    transition: var(--transition);
}

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

/* --- CTA FOOTER --- */
.cta-footer {
    padding: 100px 0;
    text-align: center;
    background-color: var(--bg-cream);
}

.cta-footer h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-footer p {
    margin-bottom: 40px;
    color: var(--text-light);
}

/* --- FOOTER --- */
footer {
    background-color: #222;
    color: #888;
    text-align: center;
    padding: 30px 0;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* --- ANIMACIONES FADE IN --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        background-position: 70% center; /* Ajuste para que se vea bien en móviles */
    }

    .split-layout {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
        text-align: center;
    }

    .image-content img {
        box-shadow: none; /* Simplificar en móvil */
        border: 1px solid var(--primary-gold);
    }
}

/* --- ESTILOS DEL CARRUSEL --- */
.carousel-section {
    padding: 60px 0;
    background-color: var(--bg-cream);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Ocultar slides por defecto */
.carousel-slide {
    display: none;
    position: relative;
}

/* Imagen del slide */
.carousel-slide img {
    width: 100%;
    height: 500px; /* Altura fija para uniformidad */
    object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformar */
}

/* Texto sobre la imagen del carrusel */
.carousel-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 15px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* Botones Anterior/Siguiente */
.carousel-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    border: none;
    z-index: 10;
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-btn:hover {
    background-color: var(--primary-gold);
}

/* Animación suave */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Puntos indicadores */
.dots-container {
    text-align: center;
    margin-top: 15px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary-gold);
}

/* Ajuste Movil para Carrusel */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 300px;
    }
}