* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: #f5f5f5;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}


.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    align-items: center;
    justify-content: flex-start; 
}

.header-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4));
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.header-arcade {
    position: relative;
    top: 0;
    padding: 10px 80px;
    min-width: 420px;
    text-align: center;
    
    clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
    border-radius: 0 0 40px 40px; 
    
    background: linear-gradient(180deg, #333 0%, #888 10%, #fff 45%, #eee 50%, #999 90%, #222 100%);
    border-bottom: 2px solid #000;
}


.header-arcade::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(rgba(255,255,255,0.3) 0%, transparent 100%);
    pointer-events: none;
}

.pro-mode {
    display: block;
    color: #8da35d;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.2);
    margin-bottom: -2px;
}

.select-music {
    margin: 0 !important; 
    color: #111;
    font-size: 2.5rem;
    font-weight: 950;
    text-transform: uppercase;
    line-height: 0.95;
}

.final-stage {
    display: block;
    color: #444;
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 4px;
    letter-spacing: 1px;
}

.carousel-section {
    width: 100%;
    perspective: 1200px;
    display: flex;
    justify-content: center;
}

.carousel-container {
    width: 100%;
    height: 450px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    position: absolute;
    width: 450px; 
    height: 280px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.6s ease;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card.center {
    z-index: 10;
    transform: translateX(0) scale(1.1);
    opacity: 1;
}

.card.up-1 {
    z-index: 5;
    transform: translateX(-300px) scale(0.85); 
    opacity: 0.7;
}

.card.up-2 {
    z-index: 1;
    transform: translateX(-550px) scale(0.7);
    opacity: 0.3;
}

.card.down-1 {
    z-index: 5;
    transform: translateX(300px) scale(0.85);
    opacity: 0.7;
}

.card.down-2 {
    z-index: 1;
    transform: translateX(550px) scale(0.7); 
    opacity: 0.3;
}


.card.hidden {
    opacity: 0;
    pointer-events: none;
    transition: transform 0s, opacity 0.4s ease;
    transform: translateX(0) scale(0.5);
    z-index: 0;
}

.controls-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding-bottom: 30px;
}

.nav-controls {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: space-between; 
    padding: 0 50px; 
}

.nav-arrow {
    pointer-events: auto; 
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #082a7b;
    border-radius: 18px; 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(8, 42, 123, 0.15);
}

.nav-arrow:hover {
    transform: translateY(-5px);
    background: #082a7b;
    box-shadow: 0 12px 25px rgba(8, 42, 123, 0.3);
}

.arrow-icon {
    display: block;
    width: 15px;
    height: 15px;
    border-top: 4px solid #082a7b;
    border-right: 4px solid #082a7b;
    transition: border-color 0.3s;
}

.nav-arrow:hover .arrow-icon {
    border-color: #ffffff;
}

.left .arrow-icon {
    transform: rotate(-135deg); 
    margin-left: 6px;
}

.right .arrow-icon {
    transform: rotate(45deg);
    margin-right: 6px;
}

@media (max-width: 768px) {
    .nav-controls {
        padding: 0 20px;
        bottom: 20px;
    }
    .nav-arrow {
        width: 50px;
        height: 50px;
    }
}

.member-name {
    color: rgb(8, 42, 123);
    font-size: 2.2rem;
    margin-bottom: 5px;
    transition: opacity 0.3s;
}

.member-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.member-role {
    color: #848696;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s;
}

.nav-controls {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.nav-arrow {
    background: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.nav-arrow:hover { transform: scale(1.1); }
.nav-arrow img { width: 30px; height: 30px; }
.nav-arrow.left img { transform: rotate(-90deg); }
.nav-arrow.right img { transform: rotate(90deg); }

.dots { display: flex; gap: 8px; }
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active { background: rgb(8, 42, 123); transform: scale(1.2); }

@media (max-width: 768px) {
    .card { width: 280px; height: 180px; }
    .card.up-1 { transform: translateX(-160px) scale(0.8); }
    .card.down-1 { transform: translateX(160px) scale(0.8); }
    .card.up-2, .card.down-2 { opacity: 0; pointer-events: none; }
}

/* Fila de calaveras en una sola línea y sincronizadas */
.skulls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1px;
    margin: 10px auto;
    width: 100%;
}

.skulls-row span {
    font-size: 0.9rem;
    display: inline-block;
    animation: moverCabecita 1.5s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes moverCabecita {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}