﻿.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--navy-900);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.video-background,
.video-background2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

    .video-background video,
    .video-background2 video {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        object-fit: cover;
        opacity: 0.85;
    }

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 11, 12, 0.85) 0%, rgba(13, 60, 125, 0.55) 60%, rgba(225, 38, 47, 0.20) 100%);
    z-index: 2;
}

.content-container {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.psn-logo, .tpp-logo {
    max-width: 200px;
    margin-bottom: 15px;
    background: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .35));
    animation: pulse 2s infinite;
}

.title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

.subtitle {
    color: rgba(255, 255, 255, .92);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.video-btn {
    background-color: var(--gold);
    color: #FFFFFF;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: 2px solid var(--gold);
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(225, 38, 47, .35);
}

    .video-btn:hover {
        background-color: var(--gold-light);
        border-color: var(--gold-light);
        color: #FFFFFF;
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(225, 38, 47, .45);
    }

    .video-btn i {
        margin-right: 8px;
    }

.btn-play-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.85;
    animation: bounce 2s infinite;
}

    .btn-play-indicator i {
        font-size: 1.5rem;
        margin-bottom: 5px;
        display: block;
        color: var(--gold-light);
    }

.modal-content {
    background-color: var(--navy);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 15px;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

    .video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background-color: #000;
    }

/* =================== Sección de videos =================== */
.videos-section .section-title {
    display: inline-block;
}

    .videos-section .section-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 70px;
    }

.videos-section .lead {
    color: var(--muted);
}

.video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    isolation: isolate;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
    transition: transform .4s ease, box-shadow .4s ease;
}

    .video-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 60px rgba(0, 0, 0, .32);
    }

    .video-card .video-background video,
    .video-card .video-background2 video {
        transition: transform .6s ease;
    }

    .video-card:hover .video-background video,
    .video-card:hover .video-background2 video {
        transform: translate(-50%, -50%) scale(1.06);
    }

    .video-card .content-container {
        padding: 24px;
    }

    .video-card .tpp-logo,
    .video-card .psn-logo {
        max-width: 150px;
        margin-bottom: 15px;
        animation: none;
    }

    .video-card .title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .video-card .subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .video-card .video-btn {
        padding: 10px 26px;
        font-size: .85rem;
        pointer-events: none;
    }

@media (max-width: 991.98px) {
    .video-card .tpp-logo,
    .video-card .psn-logo {
        max-width: 120px;
    }

    .video-card .title {
        font-size: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .video-card {
        aspect-ratio: 4 / 3;
    }
}

/* =================== Galería flota =================== */
.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    transform: translateZ(0);
}

    .masonry-item:hover {
        transform: translateY(-6px);
        border-color: var(--gold);
        box-shadow: 0 16px 32px rgba(0, 0, 0, .2);
    }

    .masonry-item img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 12px;
    }

@media (max-width: 768px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .masonry-gallery {
        column-count: 1;
    }
}

/* =================== Certificaciones =================== */
.certifications-section {
    position: relative;
}

    .certifications-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: inline-block;
    letter-spacing: .5px;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 70px;
        height: 3px;
        background-color: var(--gold);
    }

.certification-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    border-radius: 12px;
    border-top: 4px solid var(--navy);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
    height: 100%;
}

    .certification-item:hover {
        transform: translateY(-6px);
        border-top-color: var(--gold);
        box-shadow: 0 16px 34px rgba(0, 0, 0, .12);
    }

.certification-logo-wrapper {
    height: 140px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    padding: 4px 10px;
}

.certification-logo {
    max-height: 100%;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.certification-logo[src*="pemex"] {
    max-height: 90%;
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scaleX(1.08);
    transform-origin: center;
}

.certification-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    border-radius: 12px;
    border-top: 4px solid var(--navy);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 260px;
}

.certification-item h5 {
    margin-bottom: 0.5rem;
}

.certification-item p.small {
    margin-bottom: 0;
    min-height: 40px;
}
