/* =========================================
   CONTENEDOR GENERAL DE LA PÁGINA
========================================= */
.main-container {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

/* =========================================
   BLOQUE DE TÍTULO PRINCIPAL
========================================= */
.title-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.title-card h2 {
    font-size: 1.85rem;
    font-weight: 700;
}

/* =========================================
   GRID SUPERIOR DE TARJETAS (CASAS)
========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.image-wrapper {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
}

/* --- Botón Azul --- */
.btn {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* =========================================
   SECCIONES DETALLE DE CADA CASA
========================================= */
.house-detail-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}

/* Disposición invertida (Carrusel a la izquierda | Info a la derecha) */
.house-detail-card.reverse-layout {
    grid-template-columns: 1.2fr 1fr;
}

/* Columna de Información */
.house-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.house-info .description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.house-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.house-features-list li {
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.house-features-list strong {
    color: #0f172a;
}

.contact-action {
    display: flex;
    justify-content: center;
}

/* Botón de Contacto (WhatsApp) */
.btn-contact {
    background-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-contact:hover {
    background-color: #059669;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* =========================================
   CARRUSEL DE FOTOS
========================================= */
.carousel-container {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
}

.carousel-slider {
    display: flex;
    width: 100%;
    height: 100%;
}

.carousel-slider img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s ease;
    user-select: none;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

/* =========================================
   ADAPTACIÓN RESPONSIVE
========================================= */
@media (max-width: 868px) {
    .house-detail-card,
    .house-detail-card.reverse-layout {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        height: 260px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}