/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Special+Gothic+Expanded+One&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif;
    text-decoration: none;
    list-style: none;
   /* outline: 1px solid red;*/
}

/* 1. Color principal del logo (dorado) */
:root {
    --color-primario: #ffcc00;
    --color-secundario: #131313; 
    --color-texto: #ffffff;        
    --color-hover: #ffcc0026;
    --color-fondo: #ffffff;
    --color-fondo-secundario: #ffffff1f;
    --color-fondo-menu: #000000b6;
}


body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--color-fondo,#ffffff);
    color: var(--color-secundario, #131313);
    margin: 0;
    font-size: 16px;
    min-height: 100vh;
    line-height: 1.6;
}

@media screen and (max-width: 1048px) {
    .carrusel .lista .item .content {
        top: 15vh;
        width: 95%;
        padding: 1rem;
        text-align: center;
    }

    .carrusel .thumbnail {
        display: none;
    }

    .carrusel .lista .item .content .title {
        font-size: 30px;
    }

    header {
        padding: 1rem;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #000000b6;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: all 0.3s ease;
        align-items: center;
        z-index: 999;
        /* asegúrate que sea el más alto */
    }

    .nav-links li {
        width: 100%;
        padding: 10px;
    }

    .nav-links li a {
        display: block;
        color: #fff;
        width: 100%;
    }

    .nav-links.active {
        left: 0;
    }

    .logo {
        width: 150px;
        height: auto;
    }

    .menu {
        display: block;
        font-size: 26px;
        color:  #131313;
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 1.5rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .search-bar {
        display: none;
    }

    .nav-links li.has-submenu .submenu {

        display: none;
        background: transparent;
        box-shadow: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
    }


    .nav-links li.has-submenu.active .submenu {
        display: flex;
        flex-direction: column;
    }

    .nav-links li .submenu li a {
        padding-left: 2rem;
    }

    .arrows {
        display: none;
    }

    .arrows button {
        display: none;
    }
    #avatar-container {
        display: none;
    }
    #service-form {
        width: 100%;
        height: auto;
        padding: 1rem;
        box-sizing: border-box;
      }
      .form-assistant-grid {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
        gap: 2rem;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .checkbox-card-group {
        grid-template-columns: 1fr;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.carrusel {
    margin-top: 0;
    width: 100%;
    height: 100vh;
    /* Valor base para compatibilidad */
    max-height: 100%;
    position: relative;
    overflow: hidden;
}

@supports (height: 100dvh) {
    .carrusel {
        height: 100dvh;
    }
}


.carrusel .lista .item {
    position: absolute;
    inset: 0 0 0 0;
}

.carrusel .lista .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.carrusel .lista .item .content {

    position: absolute;
    top: 20vh;
    /* Usa altura relativa */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1140px;
    padding: 1rem;
    box-sizing: border-box;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.7);

}

.carrusel .lista .item .content .title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: bold;
    list-style: 1.3em;
    color: #ffffff;
}

.carrusel .lista .item .content .description {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.7);
}

.carrusel .lista .item .content button {
    background: #ffcc00;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all .3s ease;
    margin: 10px;
}

/* thumbnail */
.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;
}

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

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

.thumbnail .item .content .title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 5px 11px rgba(0, 0, 0, 0.7);
}

.arrows {
    position: absolute;
    top: 80%;
    right: 52%;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
}

.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 204, 0, 0.15);
    border: none;
    font-family: monospace;
    color: #fff;
    font-weight: bold;
    font-size: large;
    transform: .5s;
    z-index: 100;
}

.arrows button:hover {

    transform: scale(1.2);
    background:  #ffcc00;
}

.carrusel .lista .item:nth-child(1) {
    z-index: 1;
}

.carrusel .lista .item:nth-child(1) .title,
.carrusel .lista .item:nth-child(1) .description,
.carrusel .lista .item:nth-child(1) .button {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 1s linear 1 forwards;
}

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

.carrusel .lista .item:nth-child(1) .title {
    animation-delay: 1.3s;
}

.carrusel .lista .item:nth-child(1) .description {
    animation-delay: 1.5s;
}

.carrusel .lista .item:nth-child(1) .button {
    animation-delay: 1.7s;
}

.carrusel.next .lista .item:nth-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    left: 50%;
    bottom: 50px;
    border-radius: 20px;
    animation: showimage 0.5s linear 1 forwards;
}

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

.carrusel.next .thumbnail .item:nth-child(1) {
    width: 0;
    overflow: hidden;
    animation: showthumbnail .5s linear 1 forwards;
}

@keyframes showthumbnail {
    to {
        width: 150px;
    }
}

.carrusel.next .thumbnail {
    transform: translateX(150px);
    animation: transformthumbnail .5s linear 1 forwards;
}

@keyframes transformthumbnail {
    to {
        transform: translateX(0);
    }
}

/*preview*/
.carrusel.prev .lista .item:nth-child(2) {
    z-index: 2;
}

.carrusel.prev .lista .item:nth-child(2) img {
    position: absolute;
    bottom: 0;
    left: 0;
    animation: outimage 0.5s linear 1 forwards;
}

@keyframes outimage {
    to {
        width: 150px;
        height: 220px;
        border-radius: 20px;
        left: 50%;
        bottom: 50px;
    }
}

.carrusel.prev .thumbnail .item:nth-child(2) {
    width: 0;
    overflow: hidden;
    animation: outthumbnail 0.5s linear 1 forwards;
}

@keyframes outthumbnail {
    to {
        width: 150px;
        height: 220px;
    }
}

.carrusel.prev .lista .item:nth-child(2) .title,
.carrusel.prev .lista .item:nth-child(2) .description,
.carrusel.prev .lista .item:nth-child(2) .button {
    animation: outContent 1.5s linear 1 forwards;
}

@keyframes outContent {
    to {
        transform: translateY(150px);
        filter: blur(20px);
        opacity: 0;
    }
}

.carrusel.next .arrows button,
.carrusel.prev .arrows button {
    pointer-events: none;
}

/*timer*/
.timer {
    width: 100%;
    height: 3px;
    background-color: #ffcc00;
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
}

.carrusel.next .timer,
.carrusel.prev .timer {
    width: 100%;
    animation: timerunning 2s linear 1 forwards;

}

@keyframes timerunning {
    to {
        width: 0;
    }
}