/* views/pages/mecanica/mecanica.css */

.mecanica-page {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
}

/* --- Hero Section (Steps & Dumi) --- */
.mecanica-hero-section {
    width: 100%;
    padding-top: 130px; /* Space for the fixed header */
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
}

.mecanica-hero-container {
    width: 90%;
    max-width: 1200px;
}

.mecanica-header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px; 
}

.mecanica-title-img {
    width: clamp(250px, 30vw, 550px);
    height: auto;
}

.mecanica-main-content {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin: 10px auto 0;
    gap: 15px;
}

.paso-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.paso-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.paso-img:hover {
    transform: scale(1.04);
}

.paso-container.paso-dos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Prizes Section --- */
.mecanica-prizes-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
}

.rondas-box-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px; 
    margin-bottom: 20px;
}

.rondas-box {
    width: 90%;
    max-width: 1100px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    position: relative;
    padding: 60px 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ranking-banner-img {
    position: absolute;
    top: -25px; /* overlap the top border */
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 60vw, 650px);
    z-index: 2;
}

.rounds-header {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.rounds-title-img {
    width: clamp(280px, 40vw, 450px);
    height: auto;
}

/* Rondas */
.rounds-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 950px;
}

.round-item {
    flex: 1;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
}

.round-item img {
    width: 100%;
    max-width: 140px;
    height: auto;
}

.round-separator {
    display: flex;
    justify-content: center;
    align-items: center;
}

.round-separator img {
    height: clamp(30px, 6vw, 65px);
    width: auto;
}

/* Valido Banner */
.mecanica-valido-container {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.valido-img {
    width: clamp(280px, 35vw, 450px);
    height: auto;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {
    .mecanica-main-content {
        gap: 10px;
    }
}

@media (max-width: 850px) {
    .mecanica-main-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .paso-container {
        width: 100%;
        max-width: 450px;
    }
    
    .instructivo-btn {
        width: 45%;
        bottom: 10%;
    }

    .rounds-timeline {
        flex-wrap: wrap;
        gap: 25px 5px;
        justify-content: center;
    }

    .round-separator {
        display: none;
    }

    .round-item {
        width: calc(33% - 10px);
        min-width: 130px;
    }
}

@media (max-width: 600px) {
    .mecanica-hero-section {
        padding-top: 100px;
    }
    
    .rondas-box {
        padding: 50px 15px 30px;
    }

    .ranking-banner-img {
        top: -20px;
        width: 85%;
    }

    .round-item {
        width: calc(50% - 10px);
    }
}