/* ============================================================
   Nuestros Videos — página pública institucional
   public/css/web/nuestros-videos.css
   ============================================================ */

.nv-page {
    --nv-navy: #0b2545;
    --nv-navy-2: #123a67;
    --nv-blue: #1e5fbf;
    --nv-blue-2: #2e7ce0;
    --nv-soft: #f2f8ff;
    --nv-soft-2: #e4effc;
    --nv-teal: #0fb5a6;
    --nv-teal-dark: #0a9487;
    --nv-ink: #0f172a;
    --nv-muted: #64748b;
    --nv-line: #e6edf6;
    --nv-card-shadow: 0 18px 40px -28px rgba(11, 37, 69, .45);
    --nv-card-shadow-hover: 0 32px 60px -30px rgba(11, 37, 69, .55);

    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--nv-ink);
    background: #ffffff;
    padding-top: 4rem;
    -webkit-font-smoothing: antialiased;
}

/* Sin barra lateral en esta página: header y footer a todo el ancho */
.nv-page #site-header {
    padding-left: 0 !important;
}

.nv-page footer {
    padding-left: 0 !important;
}

.nv-page h1,
.nv-page h2,
.nv-page h3,
.nv-page .nv-font-display {
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
}

.nv-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================================================
   HERO
   ============================================================ */

.nv-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 4rem;
    background:
        radial-gradient(1100px 500px at 88% -10%, rgba(15, 181, 166, .16), transparent 60%),
        radial-gradient(900px 480px at 5% 10%, rgba(46, 124, 224, .18), transparent 62%),
        linear-gradient(160deg, #f6faff 0%, #eaf3fe 48%, #eef8f7 100%);
    border-bottom: 1px solid var(--nv-line);
}

.nv-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.nv-shape--1 {
    width: 340px;
    height: 340px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle at 30% 30%, rgba(46, 124, 224, .28), rgba(46, 124, 224, 0));
}

.nv-shape--2 {
    width: 260px;
    height: 260px;
    bottom: -110px;
    left: -90px;
    background: radial-gradient(circle at 60% 40%, rgba(15, 181, 166, .3), rgba(15, 181, 166, 0));
}

.nv-shape--3 {
    width: 120px;
    height: 120px;
    top: 22%;
    left: 46%;
    background: linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(228, 239, 252, .2));
    box-shadow: 0 20px 40px -24px rgba(11, 37, 69, .4);
    border-radius: 34px;
    transform: rotate(18deg);
}

.nv-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.25rem;
    align-items: center;
}

.nv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #ffffff;
    color: var(--nv-navy);
    border: 1px solid var(--nv-soft-2);
    border-radius: 999px;
    padding: .45rem .95rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 12px 26px -20px rgba(11, 37, 69, .6);
}

.nv-eyebrow i {
    width: 16px;
    height: 16px;
    color: var(--nv-teal);
}

.nv-title {
    margin: 1.4rem 0 1rem;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--nv-navy);
}

.nv-title span {
    color: var(--nv-teal);
}

.nv-lead {
    max-width: 34rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--nv-muted);
}

.nv-hero__tags {
    margin-top: 2.1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    max-width: 40rem;
}

.nv-tag {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--nv-soft-2);
    border-radius: 16px;
    padding: .75rem .85rem;
    backdrop-filter: blur(6px);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.nv-tag:hover {
    transform: translateY(-3px);
    border-color: #cfe4fb;
    box-shadow: 0 18px 34px -26px rgba(11, 37, 69, .7);
}

.nv-tag__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(46, 124, 224, .16), rgba(15, 181, 166, .18));
    color: var(--nv-blue);
}

.nv-tag__icon i {
    width: 20px;
    height: 20px;
}

.nv-tag__label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--nv-navy);
    line-height: 1.2;
}

.nv-tag__sub {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    color: var(--nv-muted);
}

/* Figura del hero */
.nv-figure {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 460px;
}

.nv-figure__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 480px;
    object-fit: cover;
    border-radius: 30px;
    border: 6px solid rgba(255, 255, 255, .85);
    box-shadow: 0 40px 80px -40px rgba(11, 37, 69, .65);
    background: var(--nv-soft-2);
}

.nv-figure__glow {
    position: absolute;
    inset: auto -18px -18px auto;
    width: 180px;
    height: 180px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 181, 166, .35), rgba(46, 124, 224, .25));
    filter: blur(6px);
    z-index: -1;
}

.nv-float {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(255, 255, 255, .96);
    border-radius: 16px;
    padding: .6rem .85rem;
    box-shadow: 0 22px 44px -24px rgba(11, 37, 69, .8);
    border: 1px solid var(--nv-line);
}

.nv-float--play {
    top: 1.35rem;
    left: -1.1rem;
}

.nv-float--count {
    bottom: 1.5rem;
    right: -1rem;
}

.nv-float__icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--nv-teal);
    color: #ffffff;
}

.nv-float__icon i {
    width: 18px;
    height: 18px;
}

.nv-float__value {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    color: var(--nv-navy);
    line-height: 1;
}

.nv-float__label {
    display: block;
    font-size: .7rem;
    color: var(--nv-muted);
    margin-top: .15rem;
}

/* ============================================================
   FILTROS + LISTADO
   ============================================================ */

.nv-section {
    padding: 3.5rem 0 1rem;
}

.nv-section__head {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 2rem;
}

.nv-section__kicker {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nv-teal);
}

.nv-section__title {
    margin: .6rem 0 .5rem;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    color: var(--nv-navy);
    letter-spacing: -.01em;
}

.nv-search {
    position: relative;
    max-width: 540px;
    margin: 0 auto 1.6rem;
}

.nv-search__icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--nv-muted);
    pointer-events: none;
}

.nv-search input {
    width: 100%;
    height: 58px;
    border-radius: 999px;
    border: 1px solid var(--nv-line);
    background: #ffffff;
    padding: 0 3.5rem 0 3.35rem;
    font-size: .98rem;
    color: var(--nv-ink);
    outline: none;
    box-shadow: 0 16px 40px -30px rgba(11, 37, 69, .9);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.nv-search input::placeholder {
    color: #93a3b8;
}

.nv-search input:focus {
    border-color: var(--nv-teal);
    box-shadow: 0 0 0 4px rgba(15, 181, 166, .14);
}

.nv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
}

.nv-pill {
    border: 1px solid var(--nv-line);
    background: #ffffff;
    color: var(--nv-navy);
    border-radius: 999px;
    padding: .6rem 1.2rem;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.nv-pill:hover {
    border-color: #bfe0dc;
    color: var(--nv-teal-dark);
    transform: translateY(-1px);
}

.nv-pill.is-active {
    background: var(--nv-teal);
    border-color: var(--nv-teal);
    color: #ffffff;
    box-shadow: 0 14px 30px -14px rgba(15, 181, 166, .85);
}

.nv-count {
    text-align: center;
    color: var(--nv-muted);
    font-size: .85rem;
    margin: 1.1rem 0 2rem;
}

.nv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.nv-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--nv-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--nv-card-shadow);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.nv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--nv-card-shadow-hover);
    border-color: #d5e6fb;
}

.nv-card.is-hidden {
    display: none;
}

.nv-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--nv-navy), #0d3a63);
}

.nv-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nv-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 37, 69, .04) 28%, rgba(11, 37, 69, .62) 100%);
}

.nv-card__badge {
    position: absolute;
    top: .8rem;
    left: .8rem;
    z-index: 2;
    background: rgba(255, 255, 255, .95);
    color: var(--nv-navy);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .38rem .68rem;
    border-radius: 999px;
    box-shadow: 0 10px 22px -14px rgba(11, 37, 69, .9);
}

.nv-card__dur {
    position: absolute;
    bottom: .8rem;
    right: .8rem;
    z-index: 2;
    background: rgba(11, 37, 69, .86);
    color: #ffffff;
    font-size: .74rem;
    font-weight: 600;
    padding: .26rem .58rem;
    border-radius: 9px;
    font-variant-numeric: tabular-nums;
}

.nv-card__play {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 2;
    width: 66px;
    height: 66px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .94);
    color: var(--nv-teal);
    box-shadow: 0 18px 38px -12px rgba(0, 0, 0, .45);
    transition: transform .3s ease, background-color .3s ease, color .3s ease;
}

.nv-card__play i {
    width: 26px;
    height: 26px;
    margin-left: 3px;
}

.nv-card:hover .nv-card__play {
    background: var(--nv-teal);
    color: #ffffff;
    transform: scale(1.08);
}

.nv-card__body {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.1rem 1.15rem 1.25rem;
    flex: 1;
}

.nv-card__title {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.38;
    color: var(--nv-navy);
}

.nv-card__date {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--nv-muted);
}

.nv-card__date i {
    width: 15px;
    height: 15px;
}

.nv-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--nv-teal-dark);
    font-weight: 700;
    font-size: .9rem;
    transition: gap .25s ease, color .25s ease;
}

.nv-card__cta i {
    width: 16px;
    height: 16px;
}

.nv-card:hover .nv-card__cta {
    gap: .7rem;
    color: var(--nv-teal);
}

.nv-empty {
    max-width: 34rem;
    margin: 1rem auto 0;
    text-align: center;
    background: var(--nv-soft);
    border: 1px dashed #cfe0f5;
    border-radius: 20px;
    padding: 3rem 1.5rem;
    color: var(--nv-muted);
}

.nv-empty i {
    width: 42px;
    height: 42px;
    color: var(--nv-blue);
    margin-bottom: .75rem;
}

.nv-empty h3 {
    color: var(--nv-navy);
    font-size: 1.1rem;
    margin-bottom: .35rem;
}

/* ============================================================
   CTA FINAL
   ============================================================ */

.nv-cta {
    padding: 4rem 0 5rem;
}

.nv-cta__box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 3.6rem 1.75rem;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--nv-navy) 0%, var(--nv-navy-2) 48%, #0d5a63 100%);
    box-shadow: 0 40px 80px -45px rgba(11, 37, 69, .95);
}

.nv-cta__box::before,
.nv-cta__box::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.nv-cta__box::before {
    width: 320px;
    height: 320px;
    top: -140px;
    right: -90px;
    background: radial-gradient(circle, rgba(15, 181, 166, .5), transparent 70%);
}

.nv-cta__box::after {
    width: 280px;
    height: 280px;
    bottom: -150px;
    left: -70px;
    background: radial-gradient(circle, rgba(46, 124, 224, .45), transparent 70%);
}

.nv-cta__kicker {
    position: relative;
    z-index: 1;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7ff0e4;
}

.nv-cta__title {
    position: relative;
    z-index: 1;
    margin: .7rem auto .6rem;
    max-width: 34rem;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -.01em;
}

.nv-cta__text {
    position: relative;
    z-index: 1;
    max-width: 32rem;
    margin: 0 auto 1.9rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.65;
}

.nv-cta__btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: #ffffff;
    color: var(--nv-navy);
    font-weight: 700;
    padding: .95rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.nv-cta__btn i {
    width: 18px;
    height: 18px;
}

.nv-cta__btn:hover {
    background: var(--nv-teal);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.nv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(4, 14, 27, .9);
    backdrop-filter: blur(4px);
}

.nv-lightbox.is-open {
    display: flex;
}

.nv-lightbox__inner {
    width: 100%;
    max-width: 960px;
}

.nv-lightbox__bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: .5rem;
}

.nv-lightbox__close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, .92);
    color: var(--nv-navy);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.nv-lightbox__close:hover {
    background: #ffffff;
    transform: rotate(90deg);
}

.nv-lightbox__player {
    width: 100%;
    border-radius: 20px;
    background: #000000;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}

.nv-lightbox__title {
    margin-top: .85rem;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
    .nv-hero__grid {
        gap: 2.25rem;
    }

    .nv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .nv-hero {
        padding-top: 3.25rem;
    }

    .nv-hero__grid {
        grid-template-columns: 1fr;
    }

    .nv-figure {
        justify-self: center;
        max-width: 420px;
    }

    .nv-float--play {
        left: .4rem;
    }

    .nv-float--count {
        right: .4rem;
    }
}

@media (max-width: 640px) {
    .nv-hero__tags {
        grid-template-columns: 1fr;
    }

    .nv-grid {
        grid-template-columns: 1fr;
    }

    .nv-section {
        padding-top: 2.75rem;
    }

    .nv-cta__box {
        padding: 2.75rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nv-page * {
        transition: none !important;
        animation: none !important;
    }
}
