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

:root {
    --ver-primary: #0284c7;
    --ver-navy: #012d54;
    --ver-cian: #38bdf8;
    --ver-border: rgba(2, 132, 199, 0.18);
    --ver-card-bg: rgba(255, 255, 255, 0.96);
    --ver-shadow: 0 20px 50px rgba(1, 45, 84, 0.15);
}

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

/* ================================================================
   FILA DE CARRUSELES (58% / 42% o grid equilibrado)
   ================================================================ */
.ver-carrusels-row {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    margin-bottom: 35px;
    align-items: stretch;
}

/* 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, #012d54, #0284c7, #38bdf8);
    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: var(--ver-cian) !important;
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* 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(1, 45, 84, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    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: rgba(2, 132, 199, 0.85);
}

/* ================================================================
   WIDGET FACEBOOK COMPACTO (Columna Derecha)
   ================================================================ */
.ver-fb-compact-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-fb-compact-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1877f2, #0284c7, #38bdf8);
        z-index: 5;
    }

.ver-fb-compact-header {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(1, 45, 84, 0.04) 0%, rgba(24, 119, 242, 0.04) 100%);
    border-bottom: 1px solid #e2e8f0;
}

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

.ver-fb-compact-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #1877f2;
    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: #0d65d9;
        transform: translateY(-1px);
        color: #ffffff !important;
    }

.ver-fb-compact-body {
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #ffffff;
    min-height: 480px;
    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;
    }
.ver-fb-compact-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #ffffff;
    min-height: 500px;
    height: 500px;
    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;
    }

/* ================================================================
   MODALES
   ================================================================ */
.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(1, 45, 84, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    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);
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 100vh;
}

.video-container video {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* ================================================================
   RESPONSIVIDAD
   ================================================================ */
@media (max-width: 992px) {
    .ver-carrusels-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ver-slider-main .carousel-item img,
    .ver-slider-secondary .carousel-item img {
        height: 380px;
    }

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

@media (max-width: 768px) {
    .ver-layout-wrapper {
        padding: 0 12px;
        margin-top: 12px;
    }

    .ver-slider-main .carousel-item img,
    .ver-slider-secondary .carousel-item img {
        height: 260px;
    }

    .ver-social-header {
        padding: 16px;
    }

    .ver-social-body {
        padding: 16px;
    }
}