﻿/* Estilos generales */

.carruseltv-container {
    /*position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;*/

    width: 100%;
    /*height: 100vh;*/ /* Alto igual al 100% del viewport */
    height: calc(100vh - 80px); /* Resta el alto del banner (80px) */
    /*margin-top: 80px;*/ /* Opcional: Si el banner está en posición "fixed" */
    overflow: hidden;
    position: relative;
}

.carruseltv {
    /*position: relative;
    width: 100%;
    height: 520px;*/ /* Ajusta según tus necesidades */
    width: 100%;
    height: 100%; /* Hereda el 100% del alto del contenedor */
}

.carruseltv-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carruseltv-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}

    .carruseltv-item.active {
        opacity: 1;
    }

    .carruseltv-item img {
        width: 100%;
        height: auto; /* Mantiene la proporción de la imagen */
        object-fit: cover; /* Recorta la imagen para que ocupe todo el ancho */
    }

/* Controles de navegación (igual que antes) */
.carruseltv-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 2;
}

    .carruseltv-control.prev {
        left: 15px;
    }

    .carruseltv-control.next {
        right: 10px;
    }

    .carruseltv-control:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

/* Marcadores (igual que antes) */
.carruseltv-markers {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.markertv {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

    .markertv.active {
        background-color: white;
    }
