/* Estilos para el Carrusel Dinámico Carrier */
:root {
    --color_11: 15, 23, 42;
    --color_15: 255, 255, 255;
}

#comp-m23i0h842 {
    position: relative;
    width: 100%;
    left: 0;
    margin-left: 0;
    min-width: initial;
    height: auto;
    /* Se ajusta dinámicamente */
    --transition-duration: 700ms;
    overflow: hidden;
    z-index: 0;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr;
}

.slide {
    grid-area: 1 / 1 / 2 / 2;
    /* Todas las capas en el mismo lugar */
    opacity: 0;
    transition: opacity var(--transition-duration) ease-in-out;
    z-index: 1;
    position: relative;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Barra de subtítulo al fondo */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(181, 189, 212, 0.9);
    padding: 10px 15px;
    color: var(--carrier-blue);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--main-font);
    z-index: 20;
    text-align: center;
}

@media (max-width: 768px) {
    .slide-caption {
        font-size: 11px;
        padding: 8px 10px;
    }
}


/* Header Sticky Adjustment para no tapar el carrusel */
header.sticky {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: white;
    z-index: 1000;
}

/* Video Section Components */
.video-player-container {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.video-player-top {
    padding: 15px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #333;
    font-weight: 700;
}

.video-main-area {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.play-btn {
    background: var(--carrier-light-blue);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    transition: background 0.3s;
}

.play-btn:hover {
    background: #0077d4;
}

.search-container {
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
}

.search-input {
    border: none;
    font-family: var(--main-font);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    background: transparent;
}

.video-grid-horizontal {
    padding: 20px 0;
    display: flex;
    gap: 15px;
    overflow-x: hidden; /* Ocultar barra para control manual */
    max-width: 900px;
    margin: 0 auto;
    scroll-behavior: smooth;
}

.video-nav-controls {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding-top: 10px;
}

.video-nav-link {
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.video-nav-link:hover {
    color: var(--carrier-light-blue);
}

.video-thumb {
    width: 220px;
    height: 125px;
    background: #eee;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.video-thumb:hover, .video-thumb.active {
    border-color: #81BE40; /* Verde Carrier para el borde activo como en la captura */
}

/* --- Media Queries --- */

@media (max-width: 992px) {
    .video-player-container, .search-container, .video-grid-horizontal {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .video-overlay h3 {
        font-size: 1.5rem !important;
    }
    .video-thumb {
        width: 140px;
        height: 80px;
    }
}

