/* Mejoras de conversion exclusivas de la Home */
.home-page .hero {
    min-height: clamp(620px, 78vh, 820px);
    padding: clamp(8.5rem, 17vh, 12rem) 1.5rem clamp(3rem, 7vh, 5rem);
    background-image: url('Fondo hero.webp');
    background-size: cover;
    background-position: center 46%;
    align-items: flex-end;
    overflow: hidden;
}

.home-page .hero::before {
    background:
        linear-gradient(90deg, rgba(35, 0, 0, 0.9) 0%, rgba(45, 0, 0, 0.7) 48%, rgba(25, 0, 0, 0.18) 100%),
        linear-gradient(0deg, rgba(20, 0, 0, 0.34), transparent 46%);
}

.home-page .hero-content {
    max-width: 1180px;
    margin: 0 auto;
}

.home-page .hero-kicker {
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    letter-spacing: 0.14em;
}

.home-page .hero-content h1 {
    max-width: 880px;
    margin: 0 0 0.9rem;
    font-size: clamp(2.55rem, 5.1vw, 4.75rem);
    line-height: 1.02;
    text-wrap: balance;
}

.home-page .hero-content .hero-commercial-line {
    max-width: 780px;
    margin: 0 0 0.65rem;
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.3;
    text-wrap: balance;
}

.home-page .hero-content .hero-description {
    max-width: 760px;
    margin: 0 0 1.6rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.55;
}

.home-page .hero-actions {
    gap: 0.85rem;
}

.home-page .hero-actions .cta-button {
    min-height: 52px;
    padding: 0.95rem 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.home-page .hero-actions .hero-cta-primary {
    background: #fff;
    color: var(--bordo-primario);
}

.home-page .hero-actions .hero-cta-secondary {
    background: transparent;
    color: #fff;
}

.home-page .hero-actions .hero-cta-primary:hover,
.home-page .hero-actions .hero-cta-primary:focus-visible {
    background: #f3f3f3;
}

.home-page .hero-actions .hero-cta-secondary:hover,
.home-page .hero-actions .hero-cta-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.home-page .hero-actions .cta-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .home-page .hero {
        min-height: 680px;
        padding-top: 9rem;
        background-position: 56% center;
    }

    .home-page .hero-content h1 {
        max-width: 760px;
    }
}

@media (max-width: 768px) {
    .home-page .hero {
        min-height: 650px;
        padding: 8.5rem 1.25rem 3.25rem;
        background-position: 62% center;
        align-items: flex-end;
    }

    .home-page .hero-content {
        text-align: left;
    }

    .home-page .hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .home-page .hero {
        min-height: 620px;
        margin-top: 78px;
        padding: 3.2rem 1rem 2.6rem;
        background-position: 64% center;
    }

    .home-page .hero::before {
        background: linear-gradient(180deg, rgba(35, 0, 0, 0.76) 0%, rgba(35, 0, 0, 0.88) 100%);
    }

    .home-page .hero-kicker {
        font-size: 0.72rem;
        letter-spacing: 0.09em;
    }

    .home-page .hero-content h1 {
        font-size: clamp(2rem, 9.4vw, 2.5rem);
        line-height: 1.06;
    }

    .home-page .hero-content .hero-commercial-line {
        font-size: 1.1rem;
    }

    .home-page .hero-content .hero-description {
        margin-bottom: 1.35rem;
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .home-page .hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .home-page .hero-actions .cta-button {
        width: 100%;
        min-width: 0;
    }
}

/* Formulario de contacto exclusivo de la Home */
.home-page .contacto-content,
.home-page .contacto-info,
.home-page .contacto-derecha,
.home-page .formulario-contacto,
.home-page #formContacto,
.home-page .form-row,
.home-page .form-group {
    min-width: 0;
}

.home-page .form-group input,
.home-page .form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.home-page .field-help {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    line-height: 1.35;
}

.home-page .field-error {
    min-height: 1em;
    color: #fff1b8;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-page .form-group .input-error {
    border-color: #ffd166;
    background: #fffdf5;
}

.home-page .form-status.error a {
    display: inline-block;
    margin-left: 0.25rem;
    color: #8b0000;
    font-weight: 800;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .home-page .contacto-content {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 2rem;
    }

    .home-page .formulario-contacto {
        padding: 1.5rem;
    }
}

/* Navegacion principal exclusiva de la Home */
.home-page #inicio,
.home-page #propiedades,
.home-page #tasacion,
.home-page #nosotros,
.home-page #contacto {
    scroll-margin-top: 96px;
}

.home-page .nav-cta-vender {
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.home-page .nav-cta-vender:hover,
.home-page .nav-cta-vender:focus-visible {
    background: #fff;
    color: var(--bordo-primario);
}

.home-page .menu-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
}

.home-page .logo:focus-visible,
.home-page .nav-links a:focus-visible,
.home-page .menu-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .home-page #inicio,
    .home-page #propiedades,
    .home-page #tasacion,
    .home-page #nosotros,
    .home-page #contacto {
        scroll-margin-top: 88px;
    }

    .home-page .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-page .nav-cta-vender {
        width: min(240px, calc(100% - 2rem));
        margin: 0 auto;
        border-color: rgba(255, 255, 255, 0.85);
    }
}

/* Presentacion de tarjetas del listado de propiedades */
.home-page .grid-propiedades {
    gap: clamp(1.25rem, 2vw, 1.75rem);
    align-items: stretch;
}

.home-page .propiedad-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(128, 0, 0, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(40, 20, 20, 0.1);
}

.home-page .propiedad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 34px rgba(40, 20, 20, 0.15);
}

.home-page .propiedad-link {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-page .propiedad-img-wrap {
    height: auto;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.home-page .propiedad-img-wrap .propiedad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-page .propiedad-info {
    flex: 1;
    padding: 1.3rem 1.35rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-page .propiedad-tipo {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--bordo-primario);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-page .propiedad-titulo {
    margin: 0.55rem 0 0;
    color: #2c2525;
    font-size: 1.2rem;
    line-height: 1.28;
}

.home-page .propiedad-ubicacion {
    margin: 0.65rem 0 0;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #696161;
    font-size: 0.92rem;
    line-height: 1.4;
}

.home-page .propiedad-ubicacion i {
    margin-top: 0.18rem;
    color: var(--bordo-primario);
}

.home-page .propiedad-precio {
    margin: 0.8rem 0 0;
    color: var(--bordo-primario);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
}

.home-page .propiedad-detalles {
    width: 100%;
    margin: 0.9rem 0 0;
    padding-top: 0.85rem;
    display: flex;
    gap: 0.65rem 1rem;
    flex-wrap: wrap;
    border-top: 1px solid #ece7e7;
    color: #625b5b;
    font-size: 0.84rem;
}

.home-page .propiedad-detalles span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.home-page .propiedad-detalles i {
    color: var(--bordo-primario);
}

.home-page .propiedad-acciones {
    padding: 0 1.35rem 1.3rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 48px;
    gap: 0.55rem;
}

.home-page .btn-card {
    min-height: 46px;
    border-radius: 6px;
}

.home-page .btn-ver {
    background: var(--bordo-primario);
}

.home-page .btn-consultar {
    border: 1px solid rgba(128, 0, 0, 0.3);
    background: #fff;
    color: var(--bordo-primario);
}

@media (max-width: 640px) {
    .home-page .grid-propiedades {
        gap: 1.1rem;
    }

    .home-page .propiedad-info {
        padding: 1.1rem 1rem 0.95rem;
    }

    .home-page .propiedad-titulo {
        font-size: 1.12rem;
    }

    .home-page .propiedad-precio {
        font-size: 1.45rem;
    }

    .home-page .propiedad-acciones {
        padding: 0 1rem 1.05rem;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) 48px;
        gap: 0.45rem;
    }

    .home-page .btn-card {
        min-width: 0;
        padding-inline: 0.55rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 380px) {
    .home-page .hero {
        min-height: 630px;
        padding-inline: 0.9rem;
    }

    .home-page .hero-content h1 {
        font-size: 1.95rem;
    }

    .home-page .hero-content .hero-commercial-line {
        font-size: 1.04rem;
    }

    .home-page .hero-content .hero-description {
        font-size: 0.94rem;
    }
}

/* Seccion de tasacion y captacion de propietarios */
.home-page .home-valuation {
    scroll-margin-top: 96px;
    padding: clamp(4rem, 7vw, 6.5rem) 1.5rem;
    background: linear-gradient(135deg, #3a0000 0%, #6a0000 58%, #800000 100%);
    color: #fff;
}

.home-page .home-valuation__container {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: center;
}

.home-page .home-valuation__eyebrow {
    display: block;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-page .home-valuation__title {
    max-width: 760px;
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2.15rem, 4vw, 3.7rem);
    line-height: 1.06;
    text-wrap: balance;
}

.home-page .home-valuation__lead {
    max-width: 680px;
    margin: 0 0 0.65rem;
    color: #fff;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 700;
    line-height: 1.4;
}

.home-page .home-valuation__description {
    max-width: 680px;
    margin: 0 0 1.75rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.6;
}

.home-page .home-valuation__cta {
    min-height: 54px;
    width: fit-content;
    padding: 0.95rem 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border: 2px solid #fff;
    border-radius: 6px;
    background: #fff;
    color: var(--bordo-primario);
    box-shadow: 0 14px 32px rgba(20, 0, 0, 0.26);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.home-page .home-valuation__cta:hover,
.home-page .home-valuation__cta:focus-visible {
    background: #f3f3f3;
    color: var(--bordo-primario);
    transform: translateY(-2px);
}

.home-page .home-valuation__cta:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.65);
    outline-offset: 4px;
}

.home-page .home-valuation__cta i {
    font-size: 1.25rem;
}

.home-page .home-valuation__benefits {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    list-style: none;
}

.home-page .home-valuation__benefit {
    min-height: 132px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.home-page .home-valuation__benefit i {
    color: #fff;
    font-size: 1.35rem;
}

.home-page .home-valuation__benefit span {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .home-page .home-valuation__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .home-page .home-valuation__benefits {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-page .home-valuation {
        scroll-margin-top: 88px;
        padding: 3.75rem 1rem;
    }

    .home-page .home-valuation__title {
        font-size: clamp(2rem, 9vw, 2.45rem);
    }

    .home-page .home-valuation__benefits {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .home-page .home-valuation__benefit {
        min-height: 0;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
    }

    .home-page .home-valuation__cta {
        width: calc(100% - 70px);
        min-width: 0;
    }
}
