/* ==========================================================================
   LANDINGS B2B - ESTILOS SECUNDARIOS
   ========================================================================== */

/* --- 1. UTILIDADES Y TIPOGRAFÍA MACRO --- */
.text-primary {
    color: #ffffff;
}

.page-b2b .title-massive {
    font-size: clamp(2.875rem, 7.25vw, 4.5rem);
}

.page-b2b .btn-cro-primary {
    padding: 1rem;
}
.page-b2b .btn-cro-primary span {
    font-size: 1rem;
}
.page-b2b .btn-cro-primary small {
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .page-b2b .title-massive {
        font-size: clamp(3.5rem, 8.5vw, 6rem);
    }
    .page-b2b .btn-cro-primary {
        padding: 1.25rem 2.5rem;
    }
    #step-2 .btn-cro-primary {
        width: 100%;
    }
    .page-b2b .btn-cro-primary span {
        font-size: 1.125rem;
    }
    .page-b2b .btn-cro-primary small {
        font-size: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .page-b2b .title-massive {
        font-size: 4.5rem;
    }
    .section-header-macro {
        max-width: 800px;
        margin: 0 auto var(--gap-massive);
    }
}

@media (min-width: 1280px) {
    .page-b2b .title-massive {
        font-size: 7vw;
    }
    .section-header-macro {
        max-width: 1024px;
    }
}

@media (min-width: 1536px) {
    .page-b2b .title-massive {
        font-size: clamp(3.5rem, 8.5vw, 6rem);
    }
}

/* --- 2. SECCIÓN HÉROE DIVIDIDO --- */
.hero-split {
    padding-top: 3rem;
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.z-content {
    flex: 1 1 400px;
}
.z-visual {
    flex: 1 1 500px;
}

.hero-split .z-content {
    order: 2;
}
.hero-split .z-visual {
    aspect-ratio: auto;
    background: transparent;
    border: none;
    order: 1;
}

.hero-title-split {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    margin-bottom: 2.5rem;
}

.cta-macro-spacing {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-proof-micro {
    font-size: 0.85rem;
    border-left: 2px solid var(--accent-b2b);
    padding-left: 1rem;
    max-width: 400px;
}

@media (min-width: 768px) {
    .hero-split {
        padding-top: clamp(6rem, 15vw, 10rem);
    }
    .cta-macro-spacing {
        margin-top: 3.5rem;
        padding-top: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-split {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }
    .z-row {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }
    .hero-split .z-content {
        order: 1;
        flex: 1 1 50%;
    }
    .hero-split .z-visual {
        order: 2;
        flex: 1 1 50%;
    }
    .hero-title-split {
        font-size: 3.25rem;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    .cta-macro-spacing {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .hero-split {
        padding-bottom: clamp(2rem, 5vw, 4rem);
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 4rem;
    }
    .z-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4rem;
    }
    .hero-split .z-content {
        flex: 1 1 400px;
    }
    .hero-split .z-visual {
        flex: 1 1 500px;
    }
    .hero-title-split {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    .hero-subtitle {
        margin-bottom: 2.5rem;
    }
    .cta-macro-spacing {
        margin-top: 3.5rem;
        padding-top: 2rem;
    }
}

@media (min-width: 1440px) {
    .hero-split {
        padding-top: 5rem;
    }
}

@media (min-width: 1536px) {
    .hero-split {
        padding-top: 7rem;
    }
}

@media (min-width: 2560px) {
    .hero-split {
        padding-top: 10rem;
    }
}

/* --- 3. CONTENEDORES VISUALES --- */
.b2c-asset-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.b2c-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.border-accent-b2b {
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.4s ease;
}
.border-accent-b2b:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1024px) {
    .b2c-asset-wrapper {
        aspect-ratio: 4/3;
    }
}

@media (min-width: 1280px) {
    .b2c-asset-wrapper {
        aspect-ratio: 16/9;
    }
}

/* --- 4. CARACTERÍSTICAS E INFRAESTRUCTURA --- */
.feature-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0 auto 4rem;
}


@media (min-width: 768px) {
    .feature-grid-3 {
        max-width: 540px;
    }
}

@media (min-width: 1024px) {
    .feature-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        max-width: none;
    }
}

.feature-list {
    list-style: none;
    flex-grow: 1;
}

.feature-list li {
    color: #d4d4d8;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.feature-list .check {
    color: var(--accent-b2b);
    font-weight: bold;
    flex-shrink: 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    border-top: 2px solid var(--accent-b2b);
    padding: 2rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}
.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-title {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- 5. COMPONENTE DEMO INTERACTIVA --- */
.demo-visual-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    aspect-ratio: 16/10;
    position: relative;
}

.demo-link-overlay {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
}

.demo-overlay-text {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 1;
    padding-block: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
    .demo-overlay-text {
        inset: 0;
        font-size: 1.25rem;
        opacity: 0;
        padding-block: 0;
    }
    .demo-link-overlay:hover .demo-overlay-text {
        opacity: 1;
    }
}

.demo-link-overlay picture,
.demo-link-overlay .b2c-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-link-overlay:hover .b2c-img {
    transform: scale(1.03);
}

@media (min-width: 768px) {
    .demo-visual-wrapper {
        max-width: 540px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .demo-visual-wrapper {
        max-width: none;
    }
}

/* --- 6. FORMULARIO B2B Y ROUTING --- */
.routing-section {
    padding-block: 6rem;
}

.routing-section .text-muted a {
    color: #ffffff;
    text-decoration: underline;
    white-space: nowrap;
}

.card-title {
    font-size: clamp(2.8125rem, 9vw, 3.75rem);
    font-weight: 700;
    color: #f4f4f5;
    margin-bottom: 1rem;
    line-height: 1.05;
}

.theme-b2b .input-group {
    margin-bottom: 1rem;
}
.theme-b2b .form-grid {
    gap: 1rem;
}
.theme-b2b .mb-4 {
    margin-bottom: 1.25rem;
}
.theme-b2b .mb-5 {
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .card-title {
        font-size: 2.5rem;
    }
    .routing-section {
        max-width: 512px;
    }
    .theme-b2b .input-group {
        margin-bottom: 2rem;
    }
    .theme-b2b .form-grid {
        gap: 1.5rem;
    }
    .theme-b2b .mb-4 {
        margin-bottom: 2rem;
    }
    .theme-b2b .mb-5 {
        margin-bottom: 3rem;
    }
}
@media (min-width: 1024px) {
    .routing-section {
        max-width: none;
    }
    .card-title {
        font-size: clamp(2.8125rem, 9vw, 3.75rem);
    }
}

