/* Importación de fuente */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    background: #f0f0f0;
}

header {
    width: 100%;
    max-width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
    background: rgba(0, 0, 0, 8.);           
    backdrop-filter: blur(10px);             
    -webkit-backdrop-filter: blur(10px);     
    color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

header nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 15px 0;
    width: 100%;
    flex-wrap: wrap;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 3px;
    transition: background 0.3s;
    margin-right: 5px;
}

header nav a:hover,
header nav a.active {
    background-color: #14ff72cb;
    color: black;
}



/* CAROUSEL */
.carousel {
    width: 100vw;
    height: 100vh;
    margin-top: -50px;
    overflow: hidden;
    position: relative;
}

.carousel .list {
    display: flex;
    transition: transform 0.5s ease;
}
.item {
  background: rgba(0, 0, 0, 0.6); 
}

.carousel .list .item {
    width: 180px;
    height: 250px;
    position: absolute;
    top: 80%;
    transform: translateY(-70%);
    left: 70%;
    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;
}

.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;
}

/* CONTENIDO DEL ITEM */
.list .item .content {
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    width: 400px;
    text-align: left;
    color: #fff;
    display: none;
}

.list .item:nth-child(2) .content {
    display: block;
}

.content .title {
    font-size: 100px;
    text-transform: uppercase;
    color: #14ff72cb;
    font-weight: bold;
    line-height: 1;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content .name {
    font-size: 100px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1;
    text-shadow: 3px 4px 4px rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

.content .des {
    margin: 10px 0 20px 5px;
    font-size: 18px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.9s 1 forwards;
}

.content .btn {
    margin-left: 5px;
    opacity: 0;
    animation: animate 1s ease-in-out 1.2s 1 forwards;
}

.content .btn button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid #fff;
    background: transparent;
    color: #14ff72cb;
    transition: 0.3s;
}

.content .btn button:nth-child(1) {
    margin-right: 15px;
}

.content .btn button:hover {
    background-color: #14ff72cb;
    color: #fff;
    border-color: #14ff72cb;
}

/* ANIMACIÓN */
@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* FLECHAS */
.arrows {
    position: absolute;
    top: 80%;
    right: 52%;
    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: #14ff72cb;
    color: #fff;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    transition: 0.5s;
    cursor: pointer;
}

.arrows button:hover {
    background: #fff;
    color: #000;
}

/* BARRA DE TIEMPO */
.carousel .timeRunning {
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 4px;
    background-color: #14ff72cb;
    left: 0;
    top: 0;
    animation: runningTime 7s linear 1 forwards;
}

@keyframes runningTime {
    from { width: 0%; }
    to { width: 100%; }
}

/* SPINNER */
#spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#spinner-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top-color: #14ff72cb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.spinner-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.spinner-modal-content .spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top-color: #14ff72cb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media screen and (max-width: 999px) {
    header {
        padding-left: 50px;
    }

    .list .item .content {
        left: 50px;
    }

    .content .title,
    .content .name {
        font-size: 70px;
    }

    .content .des {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    nav#navbar {
        display: flex !important;
        flex-direction: row !important;  
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;      
    }

    nav#navbar a {
        width: auto;
        padding: 10px 15px;
        text-align: center;
        border-top: none;
    }

    #menu-toggle {
        display: none; 
    }
}

@media screen and (max-width: 690px) {
    header nav a {
        font-size: 14px;
        margin-right: 0;
    }

    .list .item .content {
        top: 40%;
    }

    .content .title,
    .content .name {
        font-size: 45px;
    }

    .content .btn button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media screen and (min-width: 1000px) {
    header nav {
        flex-direction: row;
        background-color: transparent;
        width: auto;
    }

    header nav a {
        background-color: transparent;
        padding: 10px 15px;
    }

    header nav a:hover {
        background-color: #1afa57;
    }
}

.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('public/img/mesatrabajobanner1.jpg');
  background-size: cover;
  background-position: center;
}

.banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); 
}

.item {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); 
  z-index: 1;
}

.item .content {
  position: relative;
  z-index: 2; 
  color: white;
}