@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

a{
    text-decoration: none;
}




/* carousel */
.carousel{
 
    height: 85vh;
    margin-top: -100px !important;
    width: 100vw;
    overflow: visible;
    position: relative;
}
@font-face {
    font-family: 'Blunt Condensed Italic';
    src: url('../font/Demo_Fonts/Fontspring-DEMO-blunt-semicon.otf') format('truetype');
}

.carousel .list .item .title,
.carousel .list .item .topic {
    font-family: 'Blunt Condensed Italic', sans-serif;
    color: #eeeeee;

}

.video_fondo{
    margin-top: 200px;
}


  
.carousel .item {
    position: relative;
    width: 100%; /* Ajusta al ancho del contenedor */
    height: auto; /* Mantiene la proporción */
    max-height: 1200px; /* Ajusta la altura máxima según necesites */
    opacity: 1;
    transition: opacity 1s ease-in-out;
    overflow: hidden; /* Evita que la imagen se desborde */
   
}

.carousel .item.fade-out {
    opacity: 0; /* Se vuelve invisible */
}

.carousel .item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); // OPACIDAD PARA RESALTAR EL TEXTO //
    z-index: 2; /* Debe estar sobre la imagen pero debajo del contenido */
}


#carrusel {
    width: 100%;  /* Asegura que el carrusel ocupe todo el ancho de la pantalla */
    overflow: hidden;  /* Esconde cualquier parte de la imagen que se desborde */
}

.carousel .list {
    display: flex;
    flex-direction: column; /* Apila las imágenes de arriba a abajo */
    overflow-y: scroll; /* Permite desplazarse verticalmente */
    height: 400px; /* Ajusta la altura según necesites */
}

.carousel .list .item {
    position: absolute;
    inset: 0;
    opacity: 0;  /* Ocultos por defecto */
    transition: opacity 0.5s ease;
    z-index: 1;
    
    
}
.carousel .item img {
    width: 100%; /* Hace que la imagen se ajuste al ancho */
    height: 100%; /* Hace que ocupe el alto del contenedor */
    object-fit: cover; /* Cubre todo el espacio sin deformarse */
    position: absolute; /* Asegura el posicionamiento correcto */
    
    top: 0;
    left: 0;
}

.carousel .list .item .content {
    position: absolute;
    top: 45%;
    width: 1140px;
    max-width: 80%;
    left: 80%;
    transform: translateX(-25%);
    padding-right: 30%;
    box-sizing: border-box;
    
    
    z-index: 3; /* Para que quede encima */
}


.carousel .list .item .content h2,
.carousel .list .item .content p {
    background: rgba(0, 0, 0, 0.5);
    display: inline-block; /* Para que el fondo solo ocupe el tamaño del texto */
    padding: 5px 10px;
    border-radius: 5px;
  
}


.carousel .list .item.active {
    opacity: 1;  /* Se muestra el fondo activo */
    z-index: 10;
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
    
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 3em;
}
.carousel .list .item .title{
    font-size: 2em;

}

.carousel .list .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .buttons button{
    border: none;
    background-color: #eeeeee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}


.thumbnail-wrapper {
    position: absolute;
    top: 75%;
    left: 1%;
    width: calc(5 * 150px);
    max-width: 750px;
    overflow: hidden;
    white-space: nowrap;
    z-index: 100;
    transform: translateY(-50%);
}

/* Aplicamos el degradado como una máscara */
.thumbnail {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow: hidden;
    width: 100%;
    
    /* Efecto de desvanecimiento */
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), black 20%, black 80%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), black 20%, black 80%, rgba(0, 0, 0, 0));
}


.thumbnail .item {
    width: 200px;            /* Incrementado de 150px a 200px */
    height: 300px;   
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;      /* Estado por defecto: atenuado */
    transform: scale(0.9);
    margin: 0 -31px;  
}
/* Estilo para el thumbnail activo (el central) */
.thumbnail .item.active {
    width: 370px;       /* Ya agrandado desde 150px */
    height: 450px;      /* Ajustado según tu necesidad */
    opacity: 1;
 
    z-index: 1;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    animation: pulse 3s infinite;
}

/* Agregar efecto de desplazamiento si hay más de 4 elementos */
.thumbnail:hover {
    overflow-x: auto;
    scrollbar-width: none; /* Oculta la barra de desplazamiento en Firefox */
}

.thumbnail::-webkit-scrollbar {
    display: none; /* Oculta la barra de desplazamiento en Chrome y Safari */
}
/* Opcional: los vecinos inmediatos (uno a la izquierda y uno a la derecha) se muestran un poco mejor que los extremos */
.thumbnail .item.side {
    opacity: 1;
    transform: scale(0.95);
    z-index: 1;
}
/* Opcional: los extremos (más lejanos) pueden quedar igual que el estado base o con un poco menos */
.thumbnail .item.far {
    opacity: 1;
    transform: scale(0.9);
}
.thumbnail img {
    -webkit-user-select: none; /* Para Safari y Chrome */
    -moz-user-select: none;    /* Para Firefox */
    -ms-user-select: none;     /* Para Internet Explorer/Edge */
    user-select: none;         /* Estándar */
  }
.thumbnail .item img{
    width: 100%;
    height: 100%;
    
    border-radius: 5px;
}
.thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 50px;
    left: 100px;
    right: 20px;
}
.thumbnail .item .content .title{
    font-weight: 500;
}
.thumbnail .item .content .description{
    font-weight: 300;
}
/* arrows */

/* Si deseas que #ver-video se posicione de forma absoluta dentro de su contenedor */
.ver-video {
width: 150px;
height: 50px;
background: linear-gradient(45deg, #000000, #000000);
}

/* Efecto hover */
.ver-video:hover {
    background: linear-gradient(45deg, #000000, #000000);
    box-shadow: 0 0 10px rgba(26, 71, 217, 0.6);
    color: white;
}

/* Reubicar los botones de navegación para el carrusel de thumbnails */
/* Posicionamos el contenedor de flechas de forma absoluta en relación al contenedor global,
   alineándolo con la izquierda del thumbnail-wrapper y dándole el mismo ancho */
/* Contenedor de los arrows */
/* Ajusta estos valores para posicionar el contenedor de flechas */
.arrows {
    position: absolute;
    left: 1%;                     /* Ajusta este valor para mover horizontalmente */
    width: calc(5 * 150px);        /* Asegura que tenga el mismo ancho que el thumbnail-wrapper */
    top: 78%;                     /* Modifica este valor para mover verticalmente (por ejemplo, 60% en lugar de 50%) */
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    margin: 0;
    background-color: transparent;
}

/* Ajusta estos valores para cambiar el tamaño (grosor) de los botones */
/* Asegúrate de que el contenedor padre tenga position: relative.
   En este ejemplo, usaré el contenedor global ".carousel" o bien, puedes usar otro contenedor apropiado. */
   .carousel {
    position: relative;
  }
  
  /* Botón de retroceso (#prev) */
  #prev, #next {
    backdrop-filter: blur(10px); /* Aplica desenfoque */
    position: absolute;
    width: 15px;
    height: 260px;
    border-radius: 0;
    background-color: transparent; /* Hace que el fondo sea transparente */
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: background-color 0.5s, color 0.5s;
    z-index: 200;
    margin-top: 4%;
}

#prev {
    left: 0%;
    top: 50%;
    transform: translateY(-50%);
}

#next {
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
}

/* Efecto hover */
#prev:hover, #next:hover {
    background: rgba(255, 255, 255, 0.0); /* Hace el fondo un poco más visible al pasar el mouse */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.0); /* Efecto de brillo leve */
}
  /* Efecto hover para ambos botones */
  #prev:hover,
  #next:hover {
      border: 1px solid white; /* Contorno blanco */
      border-radius: 5px; /* Bordes redondeados opcionales */
  }
  

/* Evitamos que las reglas originales bloqueen la interacción */
.carousel.next .arrows button,
.carousel.prev .arrows button {
    pointer-events: auto !important;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */





@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */

@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2); /* Se agranda más */
    }
    100% {
        transform: scale(1.1);
    }
}

/* Pausar el carrusel cuando el thumbnail está activo */
.carousel.paused .thumbnail {
    animation-play-state: paused;
}

.carousel.next .thumbnail{
        animation: slideLeft 0.5s ease-out forwards;
    animation-delay: 2s; 
}
.carousel.prev .thumbnail {
      animation: slideRight 0.5s ease-out forwards;
    animation-delay: 2s; /* Espera 2 segundos antes de continuar */
}

@keyframes slideLeft {
    from {
        transform: translateX(150px) scale(1); /* Mayor desplazamiento al inicio */
        opacity: 0.5;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(--150PX) scale(1);
        opacity: 0.5;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}



/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;

    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
    color: black;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}

/* 🔹 Estilos generales del modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 🔹 Contenedor del video */
#video-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: black;
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
}

/* 🔹 Estilos del video */
#video-player {
    width: 100%;
    height: 650px;
    display: block;
    border-radius: 50px;
}

/* 🔹 Botón de cerrar */
#close-video {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    font-size: 18px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s ease-in-out;
}

#close-video:hover {
    background: darkred;
}



/* 🔹 Estilos generales para móviles */
@media screen and (max-width: 768px) {
    /* Ajustes para el carrusel */
    .carousel {
        height: auto; /* Altura automática para adaptarse al contenido */
        margin-top: 0 !important; /* Elimina el margen superior */
    }

    .carousel .list .item {
        max-height: 500px; /* Reduce la altura máxima de los ítems */
    }

    .carousel .list .item .content {
        top: 27%; /* Ajusta la posición del contenido */
        left: 50%;
        transform: translateX(-50%);
        width: 90%; /* Ocupa el 90% del ancho */
        padding-right: 0; /* Elimina el padding derecho */
    }

    .carousel .list .item .content .title {
        font-size: 2em; /* Reduce el tamaño del título */
    }

    .carousel .list .item .content .topic {
        font-size: 1.5em; /* Reduce el tamaño del tema */
    }

    .carousel .list .item .content .des {
        font-size: 16px; /* Reduce el tamaño de la descripción */
    }

    .carousel .list .item .buttons {
        grid-template-columns: repeat(2, 100px); /* Reduce el tamaño de los botones */
        grid-template-rows: 30px;
    }

    /* Ajustes para las miniaturas */
.thumbnail-wrapper {
        top: 93%;
        left: 26%;
        height: 180px; /* Altura fija para el contenedor */
        overflow-x: auto; /* Permitir scroll horizontal */
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    }
    
    /* Ajustamos las flechas de navegación */
    #prev, #next {
        height: 150px; /* Más cortas que en desktop */
        margin-top: 0;
    }

  .thumbnail .item {
        width: 100px; /* Tamaño normal de las miniaturas inactivas */
        height: 150px;
        margin: 0 -15px;
    }
    
    .thumbnail .item.active {
        width: 300px;       /* Reducido de 240px a 180px */
        height: 400px;      /* Reducido de 360px a 270px */
        opacity: 1;
        z-index: 1;
        /* Mantenemos la animación pero más sutil */
        animation: pulseMobile 3s infinite;
    }

    /* Ajustes para los botones de navegación */
    .arrows {
        top: 60%; /* Ajusta la posición de las flechas */
        width: 90%; /* Ocupa el 90% del ancho */
        left: 50%;
        transform: translateX(-50%);
    }

    #prev, #next {
        height: 200px; /* Reduce la altura de las flechas */
    }

    /* Ajustes para el modal */
    .modal {
        padding: 10px; /* Añade padding para mejor visualización */
    }

    #video-content {
        width: 95%; /* Ocupa el 95% del ancho */
        max-width: 100%;
    }

    #video-player {
        height: 300px; /* Reduce la altura del reproductor de video */
    }

    #close-video {
        top: 5px; /* Ajusta la posición del botón de cerrar */
        right: 5px;
        font-size: 16px; /* Reduce el tamaño del botón */
        padding: 3px 8px;
    }
    .video_fondo{
        margin-top: 50px;
    }
}

/* Estilos para los botones de contacto */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.btn-contact {
    padding: 10px 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn-contact i {
    margin-right: 8px;
    font-size: 18px;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shineButton 3s infinite;
    z-index: 1;
}

/* Estilos específicos para WhatsApp */
.btn-whatsapp {
    background: linear-gradient(145deg, #25D366, #128C7E);
    border-left: 4px solid #075E54;
}

.btn-whatsapp:hover {
    background: linear-gradient(145deg, #2de072, #15a38f);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.3);
}

/* Estilos específicos para Messenger */
.btn-messenger {
    background: linear-gradient(145deg, #0084FF, #0063CB);
    border-left: 4px solid #0063CB;
}

.btn-messenger:hover {
    background: linear-gradient(145deg, #1a91ff, #0b70e3);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 132, 255, 0.4);
}

.btn-messenger:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 132, 255, 0.3);
}

/* Animación de brillo */
@keyframes shineButton {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

   @keyframes pulseMobile {
        0% {
            transform: scale(1.05);
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1.05);
        }
    }

/* Ajustes responsivos */
@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
    }
    
    .btn-contact {
        width: 100%;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .btn-contact i {
        font-size: 16px;
    }
}

/* 🔹 Estilos adicionales para pantallas muy pequeñas (menos de 480px) */
@media screen and (max-width: 480px) {
    .carousel .list .item .content .title {
        font-size: 1.5em; /* Reduce aún más el tamaño del título */
    }

    .carousel .list .item .content .topic {
        font-size: 1.2em; /* Reduce aún más el tamaño del tema */
    }

    .carousel .list .item .content .des {
        font-size: 14px; /* Reduce aún más el tamaño de la descripción */
    }

    .thumbnail .item {
        width: 100px; /* Reduce aún más el tamaño de las miniaturas */
        height: 150px;
    }

    #video-player {
        height: 250px; /* Reduce aún más la altura del reproductor de video */
    }
    .video_fondo{
        margin-top: 75px;
    }
}

