/* ============================================================
   TRANSPORTES FRANCISCO LANDING CORE — Video Section Styles
   BEM + CSS Custom Properties
   ============================================================ */
:root {
    --tflc-video-bg: #ffffff;
    --tflc-video-primary: #223D65; /* Color del subtítulo (oscuro) */
    --tflc-video-dark: #9AC123; /* Color del título principal (verde claro) */
    --tflc-video-list-title: #152d24; /* Color independiente para titulos de lista */
    --tflc-video-accent: #FFC600;
    --tflc-video-text: #666666; /* Color independiente para descripcion de lista */
    --tflc-video-font: var(--project-font, 'Montserrat', sans-serif);
    --tflc-badge-font: var(--project-font, 'Montserrat', sans-serif);
    --tflc-title-font: var(--project-font, 'Montserrat', sans-serif);
}

.tflc-video-section {
    padding: 80px 20px;
    background-color: var(--tflc-video-bg);
    font-family: var(--tflc-video-font);
}

.tflc-video-section__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cabecera */
.tflc-video-section__header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.tflc-video-section__badge {
    display: inline-block;
    color: var(--tflc-video-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-family: var(--tflc-badge-font);
}
.tflc-video-section__title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--tflc-video-dark);
    margin: 0;
    line-height: 1.1;
    font-family: var(--tflc-title-font);
}

/* Grid Layout */
.tflc-video-section__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}
.tflc-video-section__col-video,
.tflc-video-section__col-text {
    flex: 1 1 45%;
    min-width: 300px;
}
.tflc-video-section__grid--reverse {
    flex-direction: row-reverse;
}

/* Video Wrapper */
.tflc-video-section__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.tflc-video-section__thumb {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.4s ease;
}
.tflc-video-section__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(21, 45, 36, 0.3);
    z-index: 11;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.tflc-video-section__play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: auto; height: auto;
    background: transparent !important;
    display: flex; align-items: center; justify-content: center;
    color: var(--tflc-video-primary);
    cursor: pointer;
    z-index: 12;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: transform 0.3s ease, opacity 0.4s ease, color 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    -webkit-tap-highlight-color: transparent;
}
.tflc-video-section__play-btn:hover,
.tflc-video-section__play-btn:focus,
.tflc-video-section__play-btn:active {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--tflc-video-accent);
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.tflc-video-section__play-icon {
    width: 75px; height: 75px;
    fill: currentColor;
    margin-left: 0;
}

.tflc-video-section__iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
    z-index: 5; /* Starts below thumb */
}
.tflc-video-section__player.is-playing .tflc-video-section__thumb,
.tflc-video-section__player.is-playing .tflc-video-section__overlay,
.tflc-video-section__player.is-playing .tflc-video-section__play-btn {
    opacity: 0;
    pointer-events: none;
}
.tflc-video-section__player.is-playing .tflc-video-section__iframe {
    z-index: 20; /* Move above when playing */
}

/* Info Column */
.tflc-video-section__list {
    list-style: none;
    padding: 0; margin: 0 0 35px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.tflc-video-section__list-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.tflc-video-section__list-icon {
    flex-shrink: 0;
    width: 24px; height: 24px;
    color: var(--tflc-video-primary);
    margin-top: 3px;
}
.tflc-video-section__list-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tflc-video-list-title);
    margin-bottom: 5px;
}
.tflc-video-section__list-desc {
    font-size: 1rem;
    color: var(--tflc-video-text);
    line-height: 1.6;
    margin: 0;
}

.tflc-video-section__btn {
    display: inline-block;
    background-color: var(--tflc-video-dark);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.tflc-video-section__btn:hover {
    background-color: var(--tflc-video-primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    .tflc-video-section__grid {
        flex-direction: column;
        gap: 40px;
    }
    .tflc-video-section__grid--reverse {
        flex-direction: column;
    }
    .tflc-video-section__title {
        font-size: 2.2rem;
    }
    .tflc-video-section {
        padding: 60px 15px;
    }
}
