/* Importar fuente desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Estilos generales del cuerpo */
body {
    margin: 0;
    background-color: #000; /* Fondo negro */
    color: #eee; /* Texto gris claro */
    font-family: Poppins, sans-serif;
    font-size: 12px;
}

/* Quitar subrayado a los enlaces */
a {
    text-decoration: none;
}

/* Estilos del encabezado */
header {
    width: 1140px;
    max-width: 80%;
    margin: auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: 40px;
    margin-right: 15px;
    position: relative;
    border-radius: 50%;
    padding: 8px;
    background: rgba(241, 104, 58, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

.logo-img::before,
.logo-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

.logo-img::before {
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    background: rgba(241, 104, 58, 0.2);
    animation: spark 1.5s linear infinite;
}

.logo-img::after {
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: rgba(241, 104, 58, 0.1);
    animation: spark 2s linear infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 15px #f1683a,
                    inset 0 0 8px #f1683a;
    }
    50% {
        box-shadow: 0 0 25px #f1683a,
                    inset 0 0 15px #f1683a;
    }
}

@keyframes spark {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
        opacity: 0.8;
    }
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1683a;
    letter-spacing: 1px;
    margin-left: 10px;
}

/* Navegación */
nav {
    display: flex;
    align-items: center;
}

header a {
    color: #eee;
    margin-right: 40px;
    position: relative;
    transition: color 0.3s ease-in-out; /* Transición de color */
    font-size: 14px;
    font-weight: 500;
}

header a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: #f1683a; /* Color del subrayado */
    transition: width 0.3s ease-in-out; /* Transición del subrayado */
}

header a:hover {
    color: #f1683a; /* Cambia el color del texto al pasar el mouse */
}

header a:hover::after {
    width: 100%; /* Expande el subrayado completamente */
}

/* Marca el enlace activo */
.active {
    color: #f1683a;
}

/* Botón de menú para móviles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Estilos para el menú móvil activo */
nav.mobile-menu-active {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
}

nav.mobile-menu-active a {
    margin: 10px 0;
    text-align: center;
    font-size: 1.2rem;
}


/* Estilos del carrusel */
.carousel {
    height: 100vh;
    margin-top: -70px;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* Configuración de cada imagen dentro del carrusel */
.carousel .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}

.carousel .list .item img {
    width: 100%;
    height: 100vh; /* Asegura que todas las imágenes ocupen el mismo alto */
    object-fit: cover; /* Ajusta la imagen manteniendo su relación de aspecto y recortando lo que sobre */
    object-position: center; /* Centra la imagen para evitar cortes extraños */
}

/* Estilos del contenido de cada imagen */
.carousel .list .item .content {
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

/* Estilos de los textos dentro de las imágenes */
.carousel .list .item .author {
    font-weight: bold;
    letter-spacing: 10px;
}

.carousel .list .item .title,
.carousel .list .item .topic {
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}

.carousel .list .item .topic {
    color: #f1683a; /* Color naranja */
}

/* Estilos de los botones */
.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: #eee;
    letter-spacing: 3px;
    font-family: Poppins, sans-serif;
    font-weight: 500;
}

.carousel .list .item .buttons button:nth-child(2) {
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}

/* Miniaturas del carrusel */
.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Agrega transición */
}

.thumbnail .item:hover {
    transform: scale(1.1); /* Hace que la miniatura se agrande un poco */
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5); /* Agrega un brillo sutil */
}


.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.thumbnail .item .content {
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

/* Flechas de navegación */
.arrows {
    position: absolute;
    top: 80%;
    left: 10%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(238, 238, 238, 0.25);
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: 0.5s;
}

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

/* Animación del primer elemento del carrusel */
.carousel .list .item:nth-child(1) {
    z-index: 1;
}

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 1s linear 1 forwards;
}

@keyframes showContent {
    to {
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

/* Animación de la transición entre imágenes */
.carousel.next .list .item:nth-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
    to {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* Animación de la barra de tiempo */
.carousel .time {
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time {
    animation: runningTime 3s linear 1 forwards;
}

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

/* Estilos del pie de página */
footer {
    position: relative;
    padding: 30px 0 10px;
    width: 100%;
    z-index: 100;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

footer video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.footer-content {
    width: 1140px;
    max-width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    margin-right: 10px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1683a;
}

.footer-contact {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-contact i {
    color: #f1683a;
    margin-right: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-social a {
    color: #eee;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #f1683a;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #999;
    width: 1140px;
    max-width: 80%;
    margin: auto;
}

/* Estilos responsivos para pantallas pequeñas */
@media screen and (max-width: 768px) {
    header {
        max-width: 90%;
    }
    
    header a {
        margin-right: 20px;
        font-size: 14px;
    }
    
    .carousel .list .item .content {
        padding-right: 0;
        top: 15%;
        max-width: 90%;
    }
    
    .carousel .list .item .content .title,
    .carousel .list .item .content .topic {
        font-size: 2.5em;
        line-height: 1.2em;
    }
    
    .carousel .list .item .content .author {
        font-size: 0.9em;
        letter-spacing: 5px;
    }
    
    .carousel .list .item .content .des {
        font-size: 1em;
        line-height: 1.4em;
        margin-top: 10px;
    }
    
    .thumbnail {
        bottom: 20px;
        gap: 10px;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px;
    }
    
    .thumbnail .item {
        width: 100px;
        height: 150px;
        display: inline-block;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .arrows {
        top: 85%;
        left: 10%;
        transform: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav a {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo, .footer-contact, .footer-social {
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 480px) {
    header {
        max-width: 90%;
    }
    
    header a {
        margin-right: 20px;
        font-size: 14px;
    }
    
    .carousel .list .item .content {
        top: 10%;
        max-width: 90%;
    }
    
    .carousel .list .item .content .title,
    .carousel .list .item .content .topic {
        font-size: 1.8em;
        line-height: 1.1em;
    }
    
    .carousel .list .item .content .des {
        font-size: 0.9em;
    }
    
    .thumbnail {
        bottom: 10px;
        gap: 5px;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px;
    }
    
    .thumbnail .item {
        width: 70px;
        height: 100px;
        display: inline-block;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .arrows {
        top: 85%;
        left: 10%;
        transform: none;
    }
    
    .arrows button {
        width: 35px;
        height: 35px;
    }
    
    .footer-content {
        max-width: 90%;
    }
    
    .footer-bottom {
        max-width: 90%;
        font-size: 0.7rem;
    }
}