/* =========================
   1. BASE
========================= */

body {
    background: #f8f9fa;
}

/* CONTENEDOR PRINCIPAL */
main {
    max-width: 1100px;
    margin: 90px auto 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* =========================
   2. TIMELINE
========================= */

.timeline-wrapper {
    position: relative;
    width: 100%;
    background: #f1f1f1;
    border-radius: 50px;
    padding: 14px 55px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.years {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 6px;
}

.years::-webkit-scrollbar {
    height: 6px;
}

.years::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 10px;
}

.year {
    flex: 0 0 auto;
    padding: 8px 18px;
    border-radius: 25px;
    background: #f7f7f7;
    border: 1px solid #e2e2e2;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.year:hover {
    transform: translateY(-1px);
    background: #eeeeee;
}

.year.active {
    background: #1a139d;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(26, 19, 157, 0.3);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 2;
}

.left {
    left: 10px;
}

.right {
    right: 10px;
}

/* =========================
   3. CARD
========================= */

.winner-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background: white;
    padding: 30px 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* FOTO */

.winner-photo-container {
    position: relative;
}

#capitan-foto {
    width: 280px;
    height: 280px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#capitan-foto.is-roscon {
    object-fit: contain;
    border: none;
    background: transparent;
}

.badge {
    position: absolute;
    bottom: 15px;
    left: 25px;

    background: #e18a2d;
    color: white;

    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
}

/* =========================
   TEXTO LIMPIO (CLAVE)
========================= */

.winner-info {
    flex: 1;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    padding-left: 20px; 
}

/* EDICIÓN → GRANDE */
.year-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

/* VS → azul y más pequeño */
#matchup {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1a139d;
    margin-bottom: 6px;
    
}

/* DESCRIPCIÓN */
#edicion-desc {
    color: #666;
    font-size: 15px;
    margin-bottom: 2px;
}

/* MÚSICA PEGADA */
.music {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
    width: 100%;
}

/* BOTÓN */

.video-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    background: #150b9b;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.25s;
    margin-top: 20px;
}

.video-link:hover {
    transform: translateY(-2px);
}


#matchup,
#edicion-desc,
.music {
    max-width: 400px;
    /* 🔥 evita que se abran demasiado */
}
/* =========================
   4. RESPONSIVE
========================= */

@media (max-width: 768px) {

    main {
        margin: 80px auto 30px auto;
    }

    .winner-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    #capitan-foto {
        width: 200px;
        height: 200px;
    }
}