/* casas.css - Estilos específicos para Construcción de Casas */

/* --- Hero / Carrusel --- */
.hero.carousel-container {
    position: relative;
    overflow: hidden;
    height: 70vh;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    max-width: 90%;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hero-content .btn {
    background-color: #ff6600;
    color: #fff;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hero-content .btn:hover {
    background-color: #e55b00;
}

/* --- Sección Proceso de Construcción --- */
.process-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.process-cards .card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    flex: 1 1 250px;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.process-cards .icon {
    font-size: 2.5rem;
    color: #ff6600;
    margin-bottom: 1rem;
}

/* --- Sección Por Qué Elegirnos --- */
.why-choose-us .why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.why-choose-us .why-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.why-choose-us .why-item .icon {
    font-size: 2rem;
    color: #ff6600;
    margin-bottom: 0.5rem;
}

/* --- Sección Proyectos Destacados --- */
.casas-proyectos {
    padding: 3rem 0;
    background: #f4f4f4;
}

.casas-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.casas-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.casas-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.casas-project {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casas-project img {
    width: 100%;
    display: block;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.casas-project:hover img {
    transform: scale(1.05);
}

.casas-project h3 {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .process-cards {
        flex-direction: column;
        align-items: center;
    }
    .casas-project img {
        height: 180px;
    }
}

/* Overlay oscuro para el carrusel */
.hero.carousel-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.700), rgba(0,0,0,0.700));
    z-index: 1;
}

/* Ajustar el contenido del héroe para que esté encima del overlay */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    max-width: 90%;
    z-index: 2; /* Asegura que esté por encima del overlay */
}
