html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #040714;
    color: #f9f9f9;
    font-family: Avenir-Roman, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    color: #f9f9f9;
    text-decoration: none;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #090b13;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 36px;
    letter-spacing: 16px;
    z-index: 3;
}

.navLogo {
    padding: 0;
    width: 80px;
    margin-top: 4px;
    max-height: 70px;
    font-size: 0;
    display: inline-block;
}

.navLogo img {
    display: block;
    width: 70%;
}

.navMenu {
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
    height: 100%;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    position: relative;
    margin-right: auto;
    margin-left: 25px;
}

.navMenu a {
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.navMenu a img {
    height: 20px;
    min-width: 20px;
    width: 20px;
    z-index: auto;
}

.navMenu a span {
    color: rgb(249, 249, 249);
    font-size: 13px;
    letter-spacing: 1.42px;
    line-height: 1.08;
    padding: 2px 0px;
    white-space: nowrap;
    position: relative;
}

.navMenu a span::before {
    background-color: rgb(249, 249, 249);
    border-radius: 0px 0px 4px 4px;
    bottom: -6px;
    content: "";
    height: 2px;
    left: 0px;
    opacity: 0;
    position: absolute;
    right: 0px;
    transform-origin: left center;
    transform: scaleX(0);
    transition: all 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
    visibility: hidden;
    width: auto;
}

.navMenu a:hover span::before {
    transform: scaleX(1);
    visibility: visible;
    opacity: 1 !important;
}

.TwitterCC {
    position: relative;
    height: 48px;
    width: 48px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.TwitterCC .userImg {
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.TwitterCC .dropDown  {
    position: absolute;
    top: 48px;
    right: 0;
    background: rgb(19, 19, 19);
    border: 1px solid rgba(151, 151, 151, 0.34);
    border-radius: 4px;
    box-shadow: rgb(0 0 0 / 50%) 0px 0px 18px 0px;
    padding: 10px;
    font-size: 14px;
    letter-spacing: 3px;
    width: 100px;
    opacity: 0;
}

.TwitterCC:hover .dropDown {
    opacity: 1;
    transition-duration: 1s;
}

main {
    position: relative;
    min-height: calc(100vh - 250px);
    overflow-x: hidden;
    display: block;
    top: 72px;
    padding: 0; /* quitar padding lateral */
}



main::after {
    content: "";
    position: fixed;   /* ESTA ES LA CLAVE */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(images/extras/home-background.png) center center / cover no-repeat;
    z-index: -1;
}


.carousel {
    background: transparent;
    height: 100%;
    margin: 0 -4.6875vw;
    margin-bottom: 30px;
}

.carousel button {
    opacity: 0;
    height: 25px;
    width: 25px;
    z-index: 1;
}

.carousel button:hover {
    opacity: 1;
    transition: opacity 0.2s ease 0s;
}

.carousel ol li {
    background: rgb(150, 158, 171) !important;
}

.carousel ol .is-selected {
    background: white !important;
}

.carousel-cell {
    width: 90vw;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    counter-increment: gallery-cell;
}

.carousel-cell a {
    border-radius: 4px;
    cursor: pointer;
    display: block;
    position: relative;
    padding: 4px;
}

.carousel-cell a img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}


.viewers {
    margin-top: 30px;
    padding: 30px 0px 26px;
    display: grid;
    grid-gap: 25px;
    gap: 25px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.viewerWrap {
    padding-top: 56.25%;
    border-radius: 10px;
    box-shadow: rgb(0 0 0 / 69%) 0px 26px 30px -10px, rgb(0 0 0 / 73%) 0px 16px 10px -10px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
    border: 3px solid rgba(249, 249, 249, 0.1);
}

.viewerWrap img {
    inset: 0px;
    display: block;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    position: absolute;
    transition: opacity 500ms ease-in-out 0s;
    width: 100%;
    z-index: 1;
    top: 0;
}

.viewerWrap video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    opacity: 0;
    z-index: 0;
}

.viewerWrap:hover {
    box-shadow: rgb(0 0 0 / 69%) 0px 26px 30px -10px, rgb(0 0 0 / 73%) 0px 16px 10px -10px;
    transform: scale(1.05);
    border-color: rgba(249, 249, 249, 0.8);
}

.viewerWrap:hover video{
    opacity: 1;
}

.recommends {
    padding: 0 0 26px;
}

.recommends h4 {
    margin-left: 20px; /* mismo que el padding-left del scroll */
}

.recommendedContent {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* permite scroll real */
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
}

/* ocultar scroll nativo */
.recommendedContent::-webkit-scrollbar { display: none; }
.recommendedContent { -ms-overflow-style: none; scrollbar-width: none; }

.recWrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid rgba(249, 249, 249, 0.1);
   
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.recWrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recWrap:hover {
    transform: scale(1.05);
    border-color: rgba(249, 249, 249, 0.8);
    
}



    .recWrap { 
        width: 21%; 
        aspect-ratio: 16 / 9; 
        flex: 0 0 auto; 
        transition: transform 0.5s ease; /* suaviza el movimiento */
    }

    .recContainer {
        display: flex;
        gap: 10px;
        transition: transform 0.5s ease; /* movimiento del slider */
    }

    @media (min-width: 769px) {
    .recommends { position: relative; overflow: hidden; }

    .recommends .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: rgba(0,0,0,0.5);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 8%;
        font-size: 20px;
        cursor: pointer;
        z-index: 5;
        user-select: none;
        opacity: 0;
        transition: opacity 0.3s, transform 0.3s;
    }

    .recommends:hover .arrow { opacity: 1; }

    .recommends .arrow.left { left: 0; }
    .recommends .arrow.right { right: 0; }

    .recWrap { 
        width: 21%; 
        aspect-ratio: 16 / 9; 
        flex: 0 0 auto; 
        transition: transform 0.5s ease; 
    }

    .recommendedContent {
        display: flex;
        gap: 10px;
        transition: transform 0.5s ease; 
        scroll-behavior: smooth;
    }
}



/* MÓVIL */
@media (max-width: 768px) {
    .recWrap { width: 48%; aspect-ratio: 16 / 9; flex: 0 0 auto; }
    .recommends .arrow { display: none !important; }
}


@media only screen and (min-width: 768px) {
    body {
        font-size: 16px;
    }
}

@media only screen and (min-width: 480px) and (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .viewers {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .recommendedContent {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 479px) {
    body {
        font-size: 14px;
    }

    .viewers {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .recommendedContent {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


  
  .custom-video-container {
    width: 90%;
    margin-left: 5%;
    margin-top: 5%;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .custom-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 300px;
    position: relative;
  }
  
  .popup h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: black;
  }
  
  .popup p {
    font-size: 14px;
    margin-bottom: 20px;
    color: gray;
  }
  
  .popup .popup-button {
    display: inline-block;
    padding: 15px 30px;  /* Hacer el botón más grande */
    margin-top: 10px;
    background-color: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    font-size: 16px; /* Aumentar tamaño de texto */
  }
  
  .popup .popup-button:hover {
    background-color: #363636;
  }
  
  .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
  }
  
  .close:hover {
    color: red;
  }
  
