/* ================================================================
   VER.CSS — Vista Principal de Inicio (Home)
   Diseño espacioso, tecnológico y consistente
   ================================================================ */

:root {
    --ver-primary: #18181b;
    --ver-navy: #27272a;
    --ver-cian: #BAB9B8;
    --ver-border: rgba(186, 185, 184, 0.35);
    --ver-card-bg: rgba(255, 255, 255, 0.98);
    --ver-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ================================================================
   CONTENEDOR PRINCIPAL
   ================================================================ */
.ver-layout-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto 50px auto;
    padding: 0 20px;
}

/* ================================================================
   TARJETA CONTENEDORA DE CARRUSELES
   ================================================================ */
.ver-carousel-card {
    background: var(--ver-card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--ver-shadow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ver-carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #18181b, #BAB9B8, #ffffff);
    z-index: 5;
}

/* Alturas y ajuste de imágenes en carruseles */
.ver-slider-main .carousel-inner,
.ver-slider-main .carousel-item {
    height: 100%;
}

.ver-slider-main .carousel-item img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
    cursor: default;
}

.ver-slider-secondary .carousel-inner,
.ver-slider-secondary .carousel-item {
    height: 100%;
}

.ver-slider-secondary .carousel-item img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    cursor: default;
}

/* Indicadores de puntos */
.ver-carousel-card .carousel-indicators {
    margin-bottom: 0.75rem;
}

.ver-carousel-card .carousel-indicators button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    background: transparent !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.ver-carousel-card .carousel-indicators button.active {
    background: #ffffff !important;
    border-color: #BAB9B8 !important;
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* Controles de navegación */
.ver-carousel-card .carousel-control-prev,
.ver-carousel-card .carousel-control-next {
    width: 38px;
    height: 38px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(24, 24, 27, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(186, 185, 184, 0.4);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease;
    margin: 0 10px;
}

.ver-carousel-card:hover .carousel-control-prev,
.ver-carousel-card:hover .carousel-control-next {
    opacity: 1;
}

.ver-carousel-card .carousel-control-prev:hover,
.ver-carousel-card .carousel-control-next:hover {
    background: #BAB9B8;
    color: #18181b;
}

/* ================================================================
   VIDEO 1: VIDEO VERTICAL INCRUSTADO (SEMBLANZA)
   Sin adornos, etiquetas ni botones extras; solo el reproductor vertical
   ================================================================ */
.ver-video-clean-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto 25px auto;
}

.ver-video-vertical {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
    background: #000000;
    display: block;
    outline: none;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ver-video-vertical:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ================================================================
   WIDGETS DE REDES SOCIALES (FACEBOOK E INSTAGRAM)
   Se muestran ambos directamente uno tras otro
   ================================================================ */
.ver-social-widget-card {
    background: var(--ver-card-bg);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--ver-shadow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ver-social-widget-card.ver-fb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1877F2;
    z-index: 5;
}

.ver-social-widget-card.ver-ig-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f09433, #dc2743, #bc1888);
    z-index: 5;
}

.ver-social-widget-header {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.04) 0%, rgba(186, 185, 184, 0.12) 100%);
    border-bottom: 1px solid #e2e8f0;
}

.ver-social-widget-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ver-navy);
}

.ver-fb-compact-btn,
.ver-ig-compact-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #18181b;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.ver-fb-compact-btn:hover {
    background: #1877F2;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.35);
}

.ver-ig-compact-btn:hover {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.35);
}

/* Cuerpo del Widget de Facebook */
.ver-fb-compact-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #ffffff;
    min-height: 460px;
    height: 460px;
    overflow: hidden;
}

.ver-fb-compact-body .fb-page,
.ver-fb-compact-body .fb-page iframe,
.ver-fb-compact-body .fb-page span {
    width: 100% !important;
    height: 100% !important;
}

/* ================================================================
   VISTA PREVIA DEL PERFIL REAL DE INSTAGRAM
   ================================================================ */
.ver-ig-profile-body {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.ver-ig-real-card {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ver-ig-avatar-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ver-ig-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #18181b;
    border: 2px solid #ffffff;
}

.ver-ig-stats-col {
    padding-right: 8px;
}

.ver-ig-stat-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.ver-ig-stat-lbl {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.ver-ig-real-username {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.ver-ig-real-category {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.ver-ig-real-bio {
    font-size: 0.8rem;
    color: #1e293b;
    line-height: 1.4;
}

.ver-ig-link {
    color: #00376b;
    font-weight: 600;
    text-decoration: none;
}

.ver-ig-link:hover {
    text-decoration: underline;
}

.ver-ig-btn-primary {
    background: #0095f6;
    color: #ffffff !important;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    transition: background 0.2s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ver-ig-btn-primary:hover {
    background: #1877f2;
}

.ver-ig-btn-secondary {
    background: #efefef;
    color: #000000 !important;
    font-size: 0.84rem;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    transition: background 0.2s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ver-ig-btn-secondary:hover {
    background: #dbdbdb;
}

/* ================================================================
   MODALES (VIDEO 2: MODAL HORIZONTAL - VIDEO 5)
   ================================================================ */
.ver-video-modal .modal-content {
    border: none;
    background: transparent;
    box-shadow: none;
}

.ver-video-btn-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    background: rgba(24, 24, 27, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(186, 185, 184, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ver-video-btn-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

.horizontal-modal-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.ver-video-modal-horizontal {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000000;
    border-radius: 16px;
}

/* ================================================================
   RESPONSIVIDAD Y AJUSTE PAREJO EN MÓVIL
   ================================================================ */
@media (max-width: 992px) {
    .ver-layout-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        margin: 10px auto 40px auto !important;
        box-sizing: border-box !important;
    }

    .ver-layout-wrapper .row > div {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #inicio,
    #nuevoCarrusel,
    .ver-carousel-card.ver-slider-main,
    .ver-carousel-card.ver-slider-secondary,
    .ver-social-widget-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
        overflow: hidden !important;
        display: block !important;
        position: relative !important;
    }

    #inicio,
    #nuevoCarrusel,
    .ver-carousel-card.ver-slider-main,
    .ver-carousel-card.ver-slider-secondary {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }

    .ver-video-vertical {
        max-width: 320px !important;
        border-radius: 16px !important;
    }

    #slider,
    #slider2,
    .ver-slider-main .carousel,
    .ver-slider-secondary .carousel,
    .ver-slider-main .carousel-inner,
    .ver-slider-main .carousel-item,
    .ver-slider-secondary .carousel-inner,
    .ver-slider-secondary .carousel-item,
    #slider .carousel-inner,
    #slider2 .carousel-inner {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
    }

    .ver-slider-main .carousel-item img,
    .ver-slider-secondary .carousel-item img,
    #slider .carousel-item img,
    #slider2 .carousel-item img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }

    .ver-carousel-card .carousel-control-prev,
    .ver-carousel-card .carousel-control-next {
        opacity: 1 !important;
        width: 34px !important;
        height: 34px !important;
    }

    .ver-carousel-card .carousel-indicators button {
        width: 8px !important;
        height: 8px !important;
    }
}

@media (max-width: 576px) {
    .ver-layout-wrapper {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    #inicio,
    #nuevoCarrusel,
    .ver-carousel-card.ver-slider-main,
    .ver-carousel-card.ver-slider-secondary,
    .ver-social-widget-card {
        border-radius: 14px !important;
        margin-bottom: 16px !important;
    }

    .ver-video-vertical {
        max-width: 290px !important;
    }
}
