/* ============================================================
   extrahomeinfo - Front CSS
   Maderas Barber
   ============================================================ */

.extrahomeinfo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* ---- BLOQUE IZQUIERDO ---- */
.ehi-block--left {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.ehi-left__title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 28px 0;
    line-height: 1.15;
}

.ehi-left__list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ehi-left__list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e8e8e8;
    font-size: 0.97rem;
    line-height: 1.4;
}

.ehi-check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ehi-check-icon svg {
    width: 22px;
    height: 22px;
}

.ehi-left__btn {
    display: inline-block;
    background: #4caf50;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
}

.ehi-left__btn:hover {
    background: #43a047;
    color: #ffffff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ---- BLOQUE DERECHO ---- */
.ehi-block--right {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ehi-right__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.ehi-right__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ehi-block--right:hover .ehi-right__img {
    transform: scale(1.04);
}

.ehi-right__img-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

.ehi-right__badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.92);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    padding: 12px 28px;
    border-radius: 50px;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.ehi-right__desc {
    color: #444;
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 20px 24px 16px;
}

.ehi-right__btn {
    display: block;
    margin: 0 24px 24px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 11px 20px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ehi-right__btn:hover {
    border-color: #4caf50;
    color: #4caf50;
    background: #f6fff6;
    text-decoration: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .extrahomeinfo-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
    }

    .ehi-left__title {
        font-size: 1.6rem;
    }

    .ehi-block--left {
        padding: 30px 24px;
    }
}

@media (max-width: 575px) {
    .ehi-left__title {
        font-size: 1.4rem;
    }

    .ehi-right__badge {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}
