@import url('https://fonts.googleapis.com/css2?family=Edu+SA+Hand:wght@400..700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif;
}

header {
    width: 100%;
    max-width: 100%;
    padding-left: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
}

header nav a {
    color: #fff;
    margin-right: 5px;
    padding: 5px 10px;
    font-size: 16px;
    transition: 0.2s;
    text-decoration: none;
}

a.active {
    background: #14ff72cb;
    border-radius: 2px;
}
/*
a:hover {
    background: #14ff72cb;
    border-radius: 2px;
}
*/
/*
.carousel {
    width: auto;
    height: 100vh;
    margin-top: -50px;
    overflow: hidden;
    position: relative;
}
*/

.carousel .list .item {
    
    width: 180px;
    height: 250px;
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
    border-radius: 20px;
    /*box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);*/
    background-position: 50% 50%;
    background-size: cover;
    z-index: 100;
    transition: 1s;
    filter: brightness(80%); /* Oscurecer la imagen */
}

.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.carousel .list .item:nth-child(3) {
    left: 67%;
}

.carousel .list .item:nth-child(4) {
    left: calc(67% + 200px);
}

.carousel .list .item:nth-child(5) {
    left: calc(67% + 400px);
}

.carousel .list .item:nth-child(6) {
    left: calc(67% + 600px);
}

.carousel .list .item:nth-child(n + 7) {
    left: calc(67% + 800px);
    opacity: 0;
}
.titulo{
    font-size: 70px;
}

.tarjeta h1,
.tarjeta h4,
.tarjeta h5,
.VerMas {
    margin-bottom: 1rem;
    font-family: "Edu SA Hand", cursive;
    font-optical-sizing: auto;
}

.tarjeta{
    top: 10%;
}
@media (max-width: 780px) {
    .carousel .list .item{
        width: 100px;
        height: 170px;
    }
    .tarjeta{
        top: 10%;
    }
    .titulo{
        font-size: 40px;
    }    
    .carousel .list .item:nth-child(3) {
    left: 75%;
    }

    .carousel .list .item:nth-child(4) {
        left: calc(75% + 130px);
    }

    .carousel .list .item:nth-child(5) {
        left: calc(75% + 260px);
    }

    .carousel .list .item:nth-child(6) {
        left: calc(75% + 390px);
    }

    .carousel .list .item:nth-child(n + 7) {
        left: calc(75% + 420px);
        opacity: 0;
    }
}

.sombra{
    -webkit-text-stroke: 0.5px rgb(0, 0, 0);
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
    font-weight: bold; 
    font-family: verdana; 

}

.list .item .content {

    top: 35%;
    color: #ffffff;
    max-width: 900px;
    display: none;
}


.list .item:nth-child(2) .content {
    display: block;
}

.animacion {
    opacity: 0;
    animation: animate 1s ease-in-out 0.9s 1 forwards;
}

@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.arrows {
    position: absolute;
    top: 30rem;
    right: 45%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2eb062df;

    color: #fff;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    transition: 0.5s;
    cursor: pointer;
}

.arrows button:hover {
    background-color: #fff;
    color: #000;
}

.carousel .timeRunning {
    position: absolute; /* ← ahora sí el z-index funcionará */
    z-index: 900;        /* ← más bajo que el nav */
    width: 0%;
    height: 4px;
    background-color: #14ff72cb;
    left: 0;
    top: 0;
    animation: runningTime 7s linear 1 forwards;
}
@media (max-width:780px) {
    .arrows{
        top: 27rem;
        right: 43%;
    }
}

@keyframes runningTime {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}


@media screen and (min-width: 768px) {
    
    header {
        padding-left: 50px;
    }
    
    .list .item .content {
        left: 100px;
    }
    
/*
    .content .title,
    .content .name {
        font-size: 70px;
    }

    .content .des {
        font-size: 16px;
    }
*/
}

/* Estilos para dispositivos móviles */
/* Resetear estilos personalizados solo para móviles */
@media screen and (max-width: 420px) {
    /* Aseguramos que no se apliquen estilos personalizados al carrusel */
    #carouselExampleControls {
        display: block !important; /* Muestra el carrusel solo en móviles */
        height: auto !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* Asegura que las imágenes dentro del carrusel usen el estilo por defecto de Bootstrap */
    .carousel-inner .carousel-item img {
        width: 100% !important; 
        height: auto !important;
        object-fit: cover !important;
    }

    /* Opcional: Si tienes más estilos personalizados en los botones o controles */
    .carousel-control-prev, .carousel-control-next {
        background-color: transparent !important;
        color: white !important;
    }
}