/* =========================================
   HERO LUMINOSO (HIPOTECARIO)
========================================= */
.hipoteca-hero-light {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.9) 45%, rgba(255, 255, 255, 0) 100%),
        url("img/casahead1.webp") center/cover no-repeat;
    border-bottom: 1px solid #e2e8f0;
}

.hero-container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

.hero-content {
    max-width: 650px;
    padding: 4rem 0;
}

.hero-eyebrow {
    color: var(--accent-premium);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.hipoteca-hero-light h1 {
    font-family: var(--font-headers);
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hipoteca-hero-light h1 span {
    color: var(--accent-premium);
}

.hipoteca-hero-light p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* =========================================
   SECCIÓN HISTORIA (DISEÑO PREMIUM)
========================================= */
.historia-hogar {
    padding: 7rem 5%;
    background: #f8fafc; /* Fondo gris extra claro */
}

.hogar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.hogar-texto h2 {
    font-family: var(--font-headers);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    line-height: 1.2;
}

.hogar-texto p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.hogar-imagen img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* =========================================
   SECCIÓN MOMENTOS (TARJETAS LIMPIAS)
========================================= */
.momentos-hogar {
    padding: 6rem 5%;
    background: #ffffff;
}

.momentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.momento-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.momento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.momento-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.momento-texto {
    padding: 2rem;
}

.momento-texto h3 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 700;
}

.momento-texto p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   CONDICIONES Y PROCESO HIPOTECARIO
========================================= */
.hipoteca-condiciones-proceso {
    padding: 7rem 5%;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-headers);
    font-size: 2.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Grid de Condiciones Financieras */
.condiciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.condicion-item {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--accent-premium);
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    text-align: center;
    transition: transform 0.3s ease;
}

.condicion-item:hover {
    transform: translateY(-5px);
}

.condicion-item i {
    font-size: 2.5rem;
    color: var(--accent-premium);
    margin-bottom: 1.5rem;
}

.condicion-item h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.condicion-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Timeline (4 Pasos) */
.hipoteca-steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline-connector {
    position: absolute;
    top: 30px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
    background: #f8fafc;
    padding: 0 10px;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid var(--accent-premium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-family: var(--font-headers);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-premium);
    transition: all 0.3s ease;
}

.step-card:hover .step-circle {
    background: var(--accent-premium);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.step-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   RESPONSIVIDAD
========================================= */
@media (max-width: 992px) {
    .hipoteca-hero-light {
        background:
            linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)),
            url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hogar-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hipoteca-steps-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }
    .timeline-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .hipoteca-hero-light h1 {
        font-size: 2.6rem;
    }
    .hipoteca-steps-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .condicion-item {
        padding: 2rem 1.5rem;
    }
}