* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('./assets/images/star.webp');
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    font-family: sans-serif;
}

.index-body {
    position: relative;
    min-height: 100vh;
}

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('./assets/images/soldado_asalto.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.92;
}

.presentacion {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    z-index: 2;
}

.logo-inicio {
    max-width: 300px;
    width: 80vw;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(255, 232, 31, 0.7));
}

.boton-ver-mas {
    margin-top: 15px;
}

.boton {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #FFE81F, #FFA500);
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.boton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.boton:hover::before {
    left: 100%;
}

.boton:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 232, 31, 0.4);
    border-color: #FFE81F;
}

/* Pantalla de carga */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-gif {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
}

.loading-text {
    color: #FFE81F;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 0 20px;
}

/* Estilos para busquedas.html */
.card {
    background-color: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    border: 2px solid #374151;
    border-radius: 1rem;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.loading-spinner {
    border: 4px solid rgba(255, 232, 31, 0.3);
    border-top: 4px solid #FFE81F;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.section-title {
    color: #FFE81F;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.nav-button {
    background: linear-gradient(45deg, #FFE81F, #FFA500);
    color: #000;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 12px 18px;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 232, 31, 0.4);
}

.nav-button.active {
    background: linear-gradient(45deg, #FFA500, #FFE81F);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 232, 31, 0.6);
}

.volver-inicio-btn {
    background: linear-gradient(45deg, #FFE81F, #FFD700);
    box-shadow: 0 6px 10px rgba(255, 232, 31, 0.5);
    font-size: 1rem;
    padding: 12px 20px;
}

.hidden {
    display: none !important;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    padding: 1rem;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
}

header p {
    font-size: 1rem;
}

main {
    margin-top: 8rem;
    padding: 1rem;
}

.section-content {
    margin-top: 1.5rem;
}

footer {
    padding: 1rem;
    font-size: 0.8rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    margin-top: 2rem;
}

#toggle-music {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    border-width: 2px;
    transition: all 0.3s ease;
}

#toggle-music img {
    width: 100%;
    height: 100%;
    object-cover: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .presentacion {
        left: 5%;
        transform: translateY(-50%);
    }

    .logo-inicio {
        max-width: 250px;
    }

    .boton {
        font-size: 14px;
        padding: 10px 20px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .nav-button {
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    .card img {
        height: auto;
    }

    .grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    main {
        margin-top: 7rem;
    }
}

@media (min-width: 640px) and (max-width: 1024px) {
    .grid-cols-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card img {
        height: 200px;
    }
}

