/**
 * Hero landing raíz (frontend/index.html) — layout 2 columnas, mockup Viive.
 * Imágenes: /frontend/imagenes/celular-mano.png, inmueble.png, servicio.png
 */

/* Reset solo en esta variante: sin pantalla completa con foto de fondo */
.pagina-raiz .hero-principal.hero-principal-v2 {
    position: relative;
    min-height: auto;
    overflow: visible;
    display: block;
    background: #ffffff;
}

/* Anula oscurecimiento móvil y pseudo-elementos de estilos.css en el hero antiguo */
.pagina-raiz .hero-principal.hero-principal-v2::before,
.pagina-raiz .hero-principal.hero-principal-v2::after {
    display: none !important;
    content: none !important;
    background: none !important;
    pointer-events: none !important;
}

.pagina-raiz .hero-principal-v2 .overlay-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 30px 20px;
    color: inherit;
    text-align: left;
    background: transparent;
}

.hero-v2-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Por defecto (desktop ≥919px): bloque y columna "compact" ocultos */
.hero-v2-block--compact {
    display: none;
}

.hero-v2-right--compact {
    display: none;
}

.hero-v2-right--desktop {
    position: relative;
    width: 100%;
    min-height: 440px;
    display: block;
}

.hero-v2-left {
    flex: 1 1 48%;
    min-width: 0;
    max-width: 560px;
}

.hero-v2-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e6f7ef;
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.hero-v2-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
    margin: 0 0 1rem;
}

.hero-v2-title .hero-v2-highlight {
    color: #ff802e;
}

.hero-v2-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #4b5563;
    max-width: 520px;
    margin: 0 0 1.75rem;
}

.hero-v2-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    margin-bottom: 1.75rem;
}

.hero-v2-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    max-width: 200px;
}

.hero-v2-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0fdf4;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-v2-feature span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

/* Fila: WhatsApp + Iniciar sesión (misma altura visual) */
.hero-v2-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 0;
}

.btn-iniciar-sesion-hero-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Poppins', system-ui, sans-serif;
    cursor: pointer;
    border: 2px solid #667eea;
    background: #fff;
    color: #5b4dc7 !important;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-iniciar-sesion-hero-v2:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.35);
}

.btn-iniciar-sesion-hero-v2 i {
    font-size: 1.1rem;
}

.btn-whatsapp-hero-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #16a34a;
    color: #fff !important;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp-hero-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.4);
    color: #fff !important;
}

.btn-whatsapp-hero-v2 i {
    font-size: 1.35rem;
}

.hero-v2-foot {
    margin: 0.9rem 0 0;
    font-size: 0.9rem;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.hero-v2-foot i {
    font-size: 0.85rem;
}

/* Columna visual */
.hero-v2-right {
    flex: 1 1 50%;
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-v2-floating-img-wrap picture,
.hero-v2-main-phone picture,
.hero-v2-compact-img picture {
    display: block;
    line-height: 0;
}

.hero-v2-blob {
    position: absolute;
    width: min(100%, 420px);
    height: min(100vw, 420px);
    max-height: 90%;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffd54a 0%, #ffb020 45%, #ff9a3c 100%);
    opacity: 0.95;
    z-index: 0;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    filter: blur(0);
}

.hero-v2-dots {
    position: absolute;
    width: 151px;
    height: 151px;
    border: 2px dotted rgba(22, 163, 74, 0.25);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-v2-dots--1 {
    top: 2%;
    left: 79px;
}

.hero-v2-dots--2 {
    bottom: 5%;
    right: 0;
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

.hero-v2-main-phone {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
}

.hero-v2-celular {
    display: block;
    width: 63%;
    height: auto;
    min-height: 240px;
    object-fit: contain;
    object-position: center bottom;
    position: relative;
    z-index: 1;
}

.hero-v2-main-phone .hero-v2-img-placeholder {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Si aún no hay imagen, bloque gris con ratio */
.hero-v2-img-placeholder {
    min-height: 320px;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px dashed #cbd5e1;
}

.hero-v2-floating {
    position: absolute;
    z-index: 3;
    max-width: 200px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.1));
}

.hero-v2-floating--1 {
    top: 0;
    right: 0;
}

.hero-v2-floating--2 {
    bottom: 0;
    right: 5%;
}

.hero-v2-floating-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    background: #e5e7eb;
}

.hero-v2-floating-img-wrap .hero-v2-float-photo {
    width: 100%;
    max-width: 200px;
    height: auto;
    min-height: 112px;
    object-fit: cover;
    object-position: center;
    display: block;
    aspect-ratio: 4 / 3;
}

.hero-v2-floating-card {
    margin-top: -2rem;
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.hero-v2-floating-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.hero-v2-floating-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* ——— Tablet y celular: layout mockup (dos columnas ~65% / ~35%, ≤918px) ——— */
@media screen and (max-width: 918px) {
    .hero-v2-block--desktop,
    .hero-v2-right--desktop {
        display: none !important;
    }

    .hero-v2-block--compact {
        display: block !important;
    }

    .hero-v2-right--compact {
        display: block !important;
    }

    .pagina-raiz .hero-principal-v2 .overlay-hero {
        padding: 16px 12px 24px;
    }

    .hero-v2-container {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        max-width: 100%;
    }

    .hero-v2-left {
        flex: 1 1 65%;
        max-width: 65%;
        min-width: 0;
    }

    .hero-v2-right {
        flex: 0 0 32%;
        max-width: 35%;
        min-width: 0;
        min-height: 0;
        margin-top: 0;
        align-self: stretch;
    }

    .hero-v2-right--compact {
        height: 100%;
        min-height: 220px;
    }

    .hero-v2-compact-stack {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 100%;
    }

    .hero-v2-compact-img {
        border-radius: 10px;
        overflow: hidden;
        line-height: 0;
        background: #e5e7eb;
    }

    .hero-v2-compact-img + .hero-v2-compact-img {
        margin-top: 0.4rem;
    }

    .hero-v2-compact-photo {
        display: block;
        width: 100%;
        height: auto;
        min-height: 72px;
        max-height: 120px;
        object-fit: cover;
        object-position: center;
    }

    @supports (aspect-ratio: 3 / 4) {
        .hero-v2-compact-photo {
            max-height: none;
            aspect-ratio: 3 / 4;
        }
    }

    .hero-v2-wa-fab {
        position: absolute;
        z-index: 2;
        right: 0;
        top: 50%;
        transform: translate(20%, -50%);
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: #ffffff;
        color: #16a34a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.45rem;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(22, 163, 74, 0.2);
    }

    .hero-v2-wa-fab:hover {
        color: #15803d;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    }

    .hero-v2-title--compact {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .hero-v2-title--compact .hero-v2-title-line {
        display: block;
    }

    .hero-v2-title--compact .hero-v2-title-line:nth-of-type(3) {
        margin-top: 0.2em;
    }

    .hero-v2-desc--compact {
        font-size: 0.8rem;
        line-height: 1.45;
        margin-bottom: 0.9rem;
        max-width: none;
    }

    .hero-v2-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
        margin-bottom: 0.5rem;
    }

    .hero-v2-features--compact {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.5rem 0;
        margin-bottom: 0.85rem;
    }

    .hero-v2-features--compact .hero-v2-feature {
        max-width: none;
        align-items: center;
    }

    .hero-v2-feature-icon--outline {
        background: transparent;
        color: #16a34a;
        border: 2.5px solid #15ff6b;
    }

    .hero-v2-feature-icon--outline i.fab {
        font-size: 1.05rem;
    }

    .hero-v2-feature-txt {
        display: flex;
        flex-direction: column;
        gap: 0.05em;
    }

    .hero-v2-feature-strong {
        font-size: 0.78rem;
        font-weight: 700;
        color: #111827;
        line-height: 1.2;
    }

    .hero-v2-feature-sub {
        font-size: 0.72rem;
        font-weight: 500;
        color: #4b5563;
        line-height: 1.2;
    }

    .hero-v2-cta-row--compact {
        flex-direction: column;
        width: 100%;
    }

    .btn-whatsapp-hero-v2--compact {
        width: 100%;
        max-width: 100%;
        padding: 12px 14px;
        font-size: 0.8rem;
        box-sizing: border-box;
    }

    .btn-iniciar-sesion-hero-v2--compact {
        width: 100%;
        max-width: 100%;
        padding: 12px 14px;
        font-size: 0.8rem;
        box-sizing: border-box;
    }

    .btn-whatsapp-hero-v2--compact i {
        font-size: 1.15rem;
    }

    .hero-v2-foot--compact {
        font-size: 0.72rem;
        color: #374151;
    }

    .hero-v2-foot--compact i {
        color: #16a34a;
        margin-right: 0.2rem;
    }
}

/* Celular (0–440px): refino tipografía y cinta lateral */
@media screen and (min-width: 441px) and (max-width: 918px) {
    .hero-v2-title--compact {
        font-size: 2.35rem;
    }
    .hero-v2-desc--compact {
        margin-bottom: 1.9rem;
    }
    .hero-v2-desc {
        color: #000000;
        margin-bottom: 50px;
    }
    .hero-v2-features--compact {
        gap: 1.5rem 0;
    }
    .hero-v2-cta-row--compact {
        width: 61%;
        margin-top: 20px;
        flex-direction: column;
    }
    .btn-whatsapp-hero-v2--compact,
    .btn-iniciar-sesion-hero-v2--compact {
        width: 100%;
    }
    .hero-v2-left {
        margin-left: 10px;
    }
    .hero-v2-right--compact {
        height: 107%;
    }
    .hero-v2-compact-stack {
        gap: 27px;
    }
}

/* Celular (0–440px): refino tipografía y cinta lateral */
@media screen and (max-width: 440px) {
    .pagina-raiz .hero-principal-v2 .overlay-hero {
        padding: 24px 8px 20px;
    }

    .hero-v2-container {
        gap: 6px;
    }

    .hero-v2-left {
        flex: 1 1 64%;
        max-width: 64%;
    }

    .hero-v2-right {
        flex: 0 0 33%;
        max-width: 36%;
    }

    .hero-v2-title--compact {
        font-size: 26px;
    }

    .hero-v2-desc--compact {
        font-size: 0.75rem;
    }

    .hero-v2-wa-fab {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        transform: translate(8%, -50%);
    }
    .hero-v2-features--compact{
        margin-bottom: 2rem;
        margin-top: 22px;
    }
    .hero-v2-compact-stack{
        gap: 20px;
    }
    .hero-v2-right--compact {
        align-content: center;
    }
    @supports (aspect-ratio: 3 / 4) {
        .hero-v2-compact-photo {
            max-height: none;
            aspect-ratio: 2 / 4;
        }
    }
    
}
