﻿/* ── Hero ── */
.gv-hero {
    background: var(--secondary-color-dark);
    border-bottom: 3px solid var(--primary-color);
    padding: 28px 32px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
}

.gv-hero-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .gv-hero-icon i {
        font-size: 26px;
        color: var(--secondary-color-dark);
    }

.gv-hero-text h1 {
    font-size: 24px;
    font-weight: 600;
    color: #e8edf3;
    letter-spacing: .5px;
    margin: 0;
}

.gv-hero-text p {
    font-size: 13px;
    color: #8fa8c4;
    margin: 4px 0 0;
}

.gv-hero-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(188,137,31,.15);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: var(--primary-color-light);
    font-weight: 500;
    white-space: nowrap;
}

    .gv-hero-badge i {
        font-size: 14px;
    }

/* ── Body wrapper ── */
.gv-body {
    padding: 28px 32px;
}

/* ── Section label ── */
.gv-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

    .gv-section-label span {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: var(--secondary-color);
        white-space: nowrap;
    }

    .gv-section-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #dee2e6;
    }

/* ── Carousel destacado ── */
.gv-carousel-wrap {
    background: var(--secondary-color-dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--secondary-color);
}

    .gv-carousel-wrap .carousel-inner {
        border-radius: 0;
    }

.gv-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

    .gv-iframe-wrap iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        border: 0;
    }

.gv-carousel-meta {
    padding: 16px 20px 4px;
}

.gv-carousel-date {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.gv-carousel-title {
    font-size: 16px;
    font-weight: 600;
    color: #e8edf3;
    line-height: 1.4;
}

.gv-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
}

.gv-dots {
    display: flex;
    gap: 6px;
}

.gv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: all .2s;
}

    .gv-dot.active {
        width: 24px;
        border-radius: 4px;
        background: var(--primary-color);
    }

.gv-arrows {
    display: flex;
    gap: 8px;
}

.gv-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #e8edf3;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
    line-height: 1;
}

    .gv-arrow:hover {
        background: rgba(255,255,255,.2);
    }

/* ── Divider dorado ── */
.gv-divider {
    border: none;
    height: 2px;
    margin: 28px 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 60%);
}

/* ── Buscador ── */
.gv-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.gv-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 9px 14px;
    transition: border-color .15s;
}

    .gv-search-box:focus-within {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(12,61,109,.12);
    }

    .gv-search-box i {
        font-size: 16px;
        color: #6c757d;
    }

    .gv-search-box input {
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 14px;
        color: #212529;
        flex: 1;
        font-family: inherit;
    }

        .gv-search-box input::placeholder {
            color: #adb5bd;
        }

/* ── Grid de tarjetas ── */
.gv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gv-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

    .gv-card:hover {
        border-color: var(--secondary-color);
        transform: translateY(-2px);
        text-decoration: none;
        color: inherit;
    }

        .gv-card:hover .gv-thumb-overlay {
            opacity: 1;
        }

.gv-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--secondary-color-dark);
    overflow: hidden;
    flex-shrink: 0;
}

    .gv-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.gv-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7,31,72,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}

.gv-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gv-play-btn i {
        font-size: 22px;
        color: var(--secondary-color-dark);
        margin-left: 3px;
    }

.gv-card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gv-card-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color-dark);
}

.gv-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gv-card-desc {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gv-card-date {
    font-size: 11px;
    color: #adb5bd;
    margin-top: auto;
    padding-top: 6px;
}

.gv-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid #f1f3f5;
    padding: 8px 14px;
    background: #fafbfc;
}

    .gv-card-footer i {
        font-size: 14px;
        color: var(--primary-color);
    }

    .gv-card-footer span {
        font-size: 11px;
        color: #6c757d;
    }

/* ── Paginación ── */
.gv-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 28px;
}

.gv-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #fff;
    font-size: 13px;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}

    .gv-page-btn.active {
        background: var(--secondary-color);
        color: #fff;
        border-color: var(--secondary-color);
    }

    .gv-page-btn:hover:not(.active) {
        background: #f1f3f5;
        border-color: var(--secondary-color);
        color: var(--secondary-color);
    }

/* ── Empty state ── */
.gv-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 48px 16px;
    color: #6c757d;
    font-size: 14px;
}

    .gv-empty i {
        font-size: 40px;
        display: block;
        margin-bottom: 12px;
        color: #ced4da;
    }

/* ── Modal ── */
#ModalVideo .modal-content {
    background: var(--secondary-color-dark);
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

#ModalVideo .modal-header {
    border-bottom: 1px solid var(--secondary-color);
    padding: 12px 16px;
}

#ModalVideo .btn-close {
    filter: invert(1);
}

#ModalVideo .gv-modal-iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .gv-hero {
        flex-wrap: wrap;
        padding: 20px 16px;
    }

    .gv-hero-badge {
        display: none;
    }

    .gv-body {
        padding: 20px 16px;
    }

    .gv-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .gv-grid {
        grid-template-columns: 1fr;
    }
}
