@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('./images/bgimeg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 60px;

}
/* Pantalla de carga*/
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #121212;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: Arial, sans-serif;
    z-index: 9999;
}
.loading-gif {
    width: 100px; /* Ajusta el tamaño si es necesario */
    height: auto;
}
/* Ocultar contenido mientras carga */
#content {
    display: none;
}
.par{
    text-align: left;
    font-family: "DynaPuff", serif;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
    margin: 10px;
    padding: 0;
    border-radius: 20px;
}
.btn {
    margin-top: 2rem;
    justify-content: center;
    text-align: center;
    width: 200px;
    height: 50px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 2;
}
.btn:hover {
    background: #fff;
    color: #46250a;
    transform: scale(1.1);
}
.fondo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    gap: 10px; /* Ajusta la separación entre elementos */
}
h1{
    padding-top: 50px;
    text-align: center;
    font-family: "Cinzel Decorative", serif;
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 10px;
    margin: 10px;
    padding: 0;
    border-radius: 20px;
}
.carousel-container {
    position: relative;
    background: #0c090c;
    padding: 4rem 2rem;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    min-height: 100vh;
}
.card-container{
    place-items: center;
    padding-top: 50px;
    display: grid;
    grid-template-columns: repeat(4,4fr);
}
.card2 {
    text-align: center;
    background: #18131a;
    color: #ffffff;
    font-family: "DynaPuff", serif;
    border-radius: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.img-card{
    min-width: 300px;
    height: 200px;
    border-radius: 20px;
    opacity: 0.7;
}

@keyframes hueRotate {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}
@media (max-width: 1024px) {
    .title {
        font-size: 4rem;
    }
    .btn {
        padding: 0.8rem 2.5rem;
        font-size: 1rem;
    }
    nav .logo {
        font-size: 1.6rem;
    }
    nav ul li a {
        font-size: 1rem;
    }
    .mapa{
        width: 500px;
        height: 500px;
    }
    .carousel {
        gap: 0.5rem;
    }

    .card {
        min-width: 250px;
    }
    .card-container{
        grid-template-columns: repeat(1,2fr);
    }
}
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    .mapa{
        width: 350px;
        height: 350px;
    }
    .title {
        font-size: 3rem;
    }
    .btn {
        padding: 0.6rem 2rem;
        font-size: 0.9rem;
    }
    nav .logo {
        font-size: 1.4rem;
    }

    .card {
        min-width: 200px;
    }
}
@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
    }
    nav .logo {
        font-size: 1.2rem;
    }
    .card {
        min-width: 180px;
        padding: 1rem;
    }

    .nav-btn {
        padding: 0.8rem;
    }
}
@media (max-width: 350px) {
    .title {
        font-size: 2.5rem;
    }
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
    }
    nav .logo {
        font-size: 1.2rem;
    }

    .card {
        min-width: 180px;
        padding: 1rem;
    }

    .nav-btn {
        padding: 0.8rem;
    }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.contenido {
    display: flex;
    justify-content: center;
    padding-top: 40px;
    align-items: center;
    align-content: center;
    flex-direction: column;
    z-index: 1;
    background: #0f0c0f;
    min-height: 100vh;
    gap: 20;
}
.contenido2 {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: row;
    min-height: 100vh;
}
.robosito{
    position: absolute;
    right: -25%;
    scale: 0.5;
}
.mapa{
    width: 1200px;
    height: 700px;
    border-radius: 10px;
}
@media (max-width: 1020px) {
    .mapa {
        width: 100%; /* Ocupa todo el ancho disponible */
        height: 200px; /* Altura suficiente para que se vea bien */
    }
}
.logotxt{
    color: rgb(0, 0, 0);
    font-size: 18px;
    font-weight: 600;
    padding-left: 1px;
    position: relative;
    left: -10%;
}
.logo{
    font-family: "Caveat Brush", cursive;
    color: rgb(0, 0, 0);   
    background: transparent;
    border-radius: 10px;
    transition: all .55s ease;
    height: 50px;
    scale: 1.5;
}
.logo:hover{
    transition: all .55s ease;
    scale: 1.1;
}
h4{
    text-align: center;
    font-family: "Cinzel Decorative", serif;
    font-size: 106px;
    color: #ffffff;
    margin-bottom: 20px;
    margin: 10px;
    padding: 0;
    border-radius: 20px;
}
h5{
    text-align: center;
    font-family: "Cinzel Decorative", serif;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 5px;
    margin: 10px;
    padding: 0;
    border-radius: 20px;
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0000;
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    transition: transform 0.3s ease-in-out, pointer-events 0.3s ease-in-out;
}
.hidden-nav {
    transform: translateY(-100%);
    pointer-events: none; /* Evita que reciba eventos cuando está oculta */
}
nav:hover {
    transform: translateY(0);
    pointer-events: auto; /* Vuelve a recibir eventos al hacer hover */
}
.navbar {
    position: fixed;
    z-index: 10;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 30px;
    text-decoration: none;
}
.navbar ul {
    list-style: none; /* Quita los puntos */
    padding: 0; /* Elimina el espacio interno por defecto */
    margin: 0; /* Elimina el margen por defecto */
}
.navbar img {
    height: 40px;
}
.nav-links a {
    position: relative;
    text-decoration: none;
    color: white; /* Color del texto */
    padding: 10px 15px;
    display: inline-block;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px; /* Grosor de la barra */
    background-color: #e100ff; /* Color de la barra */
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
    color: #ff009d;
}
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
/* Ocultar con animación */
.nav-links.hide {
    animation: fadeOut 0.3s ease-out forwards;
}
/* Ocultar el menú hamburguesa en PC */
@media (min-width: 991px) {
    #menu-icon {
        display: none; /* Oculta el icono del menú en escritorio */
    }

    .nav-links {
        display: flex !important; /* Asegura que los enlaces sean visibles en pantalla grande */
        position: static; /* Evita que se superponga */
        width: auto;
        background: none;
        flex-direction: row;
        padding: 0;
    }
}
@media (max-width: 990px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        right: 10px;
        width: 60%;
        background: rgba(0, 0, 0, 0.85);
        flex-direction: column;
        align-items: center;
        padding: 10px;
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }

    .nav-links.open {
        display: flex;
    }
}
/* 📌 Timeline */
#timeline {
    text-align: center;
    padding: 50px 20px;
    background-color: #070006;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

/* 📌 Línea del Timeline */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e100ff;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 📌 Ajuste en las tarjetas */
.timeline-item {
    position: relative;
    background-color: #161018;
    padding: 20px;
    margin: 40px 0;
    width: 40%; /* Reducimos el ancho para mayor separación */
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 📌 Alternar lados */
.timeline-item:nth-child(odd) {
    left: calc(-5%);
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: calc(55%);
    text-align: left;
}

/* 📌 Ajuste en los puntos */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #ff009d;
    border-radius: 50%;
    top: 20px;
    left: 100%; /* Alineamos el punto en los pares */
    transform: translateX(-50%);
    z-index: 1;
}

/* 📌 Para los impares, mover el punto */
.timeline-item:nth-child(odd)::before {
    left: 0;
    transform: translateX(-50%);
}

.timeline-container{
    min-height: 100vh;
    min-width: 100vh;
}

/* 📌 Animación de entrada */
.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* 📌 Animación de salida */
.timeline-item.hide {
    opacity: 0;
    transform: translateY(50px);
}

/* Animación de las cards */

.card2.show {
    opacity: 1;
    transform: rotateZ(0);
    padding-bottom: 10px;
}

/* 📌 Animación de salida */
.card2.hide {
    opacity: 0;
    transform: rotateZ(50px);
}

p{
    text-align: center;
}

h2{
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
}
h3{
    text-align: left;
    font-family: 'Cinzel Decorative', serif;
    position: absolute;
    left: 10%;
    margin: 20px;
}