/* 
   ESTILOS GENERALES (Carga diferida)
   Aquí pondremos todo lo que no es esencial para la primera pantalla
*/

/* --- SECCIÓN PROPUESTA DE VALOR --- */
.features {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    margin: 15px 0 10px;
    color: var(--primary);
    font-size: 1.5rem;
}

/* --- SECCIÓN PRODUCTOS (CASAS/TERRENOS) --- */
.products {
    padding: 80px 0;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Tarjeta de Producto */
.product-item {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

.product-image {
    flex: 1;
    min-height: 400px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    padding: 40px;
}

.product-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.specs {
    margin-bottom: 30px;
    display: grid;
    gap: 10px;
}

.specs li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-secondary {
    display: block;
    margin-top: 15px;
    color: var(--gray);
    font-weight: 600;
    text-decoration: underline;
}

.link-secondary:hover {
    color: var(--primary);
}

/* Reverso (Imagen a la derecha) */
.product-reverse {
    flex-direction: row-reverse;
}

/* Responsive para Productos */
@media (max-width: 900px) {

    .product-item,
    .product-reverse {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        min-height: 250px;
    }

    .product-info {
        padding: 30px 20px;
    }
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}