/* ============================================================
   Marcas Video Hub — Frontend styles
   ============================================================ */

.vmh-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 60px 32px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* ── Columnas de logos ── */
.vmh-logos {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.vmh-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── Perspectiva orbital ──────────────────────────────────────
   Fila 0 (arriba)  → cerca del video
   Fila 1 (media)   → lejos del video
   Fila 2 (abajo)   → cerca del video
   Se logra empujando las filas del medio hacia afuera.
   ─────────────────────────────────────────────────────────── */

/* Izquierda: filas alineadas a la derecha (hacia el video) */
.vmh-left .vmh-row         { justify-content: flex-end; }
.vmh-left .vmh-row-near    { padding-right: 4px; }
.vmh-left .vmh-row-far     { padding-right: 56px; }

/* Derecha: filas alineadas a la izquierda (hacia el video) */
.vmh-right .vmh-row        { justify-content: flex-start; }
.vmh-right .vmh-row-near   { padding-left: 4px; }
.vmh-right .vmh-row-far    { padding-left: 56px; }

/* ── Tarjeta de logo ── */
.vmh-logo-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 170px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.vmh-logo-item img,
.vmh-logo-item a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vmh-logo-item a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* ── Video central ── */
.vmh-video-wrap {
    flex: 0 0 380px;
    max-width: 380px;
    margin: 0 24px;
}

/* Embed (YouTube / Vimeo) — ratio 16:9 */
.vmh-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
}

.vmh-video-embed iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Archivo mp4 nativo */
.vmh-video-native {
    width: 100%;
    border-radius: 12px;
    display: block;
    background: #1a1a2e;
}

/* Placeholder sin video configurado */
.vmh-video-placeholder {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
    background: #e0f2f0;
    border-radius: 12px;
    border: 2px dashed #80cbc4;
}

.vmh-video-placeholder span {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00897b;
    font-size: 14px;
    text-align: center;
    padding: 16px;
}

/* ── Banner de marcas ── */
.vmh-banner-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vmh-banner-wrap a {
    display: block;
    width: 100%;
}

.vmh-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    object-fit: cover;
}

.vmh-banner-placeholder {
    width: 100%;
    padding: 48px 24px;
    background: #e0f2f0;
    border: 2px dashed #80cbc4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00897b;
    font-size: 14px;
    text-align: center;
}

/* ── Tablet: reduce tamaños pero mantiene layout horizontal ── */
@media (max-width: 1024px) {
    .vmh-logo-item {
        width: 180px;
        height: 120px;
    }

    .vmh-video-wrap {
        flex: 0 0 280px;
        max-width: 280px;
        margin: 0 12px;
    }

    .vmh-left .vmh-row-far  { padding-right: 32px; }
    .vmh-right .vmh-row-far { padding-left:  32px; }
}

/* ── Mobile: layout vertical (logos arriba → video → logos abajo) ── */
@media (max-width: 640px) {
    .vmh-section {
        padding: 24px 16px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        overflow: visible;
    }

    /* Columnas de logos: filas horizontales centradas */
    .vmh-logos {
        flex: 0 0 auto;
        width: 100%;
        gap: 10px;
    }

    .vmh-row {
        width: 100%;
        gap: 10px;
        justify-content: center !important;
    }

    /* Sin efecto orbital en mobile */
    .vmh-left .vmh-row-far,
    .vmh-left .vmh-row-near  { padding-right: 0; }
    .vmh-right .vmh-row-far,
    .vmh-right .vmh-row-near { padding-left:  0; }

    /* Tarjetas: ancho relativo para que SIEMPRE quepan en pantalla */
    .vmh-logo-item {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        height: 80px;
        padding: 8px 12px;
        border-radius: 8px;
    }

    /* Video ocupa todo el ancho */
    .vmh-video-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

}
