/* Limitar tamaño máximo del escudo del equipo en el generador de retos */
.escudo {
    max-width: 220px;
    max-height: 220px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 8px auto;
}
/* =====================
   VARIABLES GLOBALES
   ===================== */
:root {
    --color-primario: #540c0d;
    --color-acento: #ffd700;
    --color-section-alt: #f8f6f2;
    --sombra-suave: 0 4px 32px 0 rgba(84,12,13,0.10);
}
/* =====================
   BARRA FLEXIBLE
   ===================== */
.retos-barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 650px;
    margin: 32px auto 0 auto;
    padding: 0.7rem 2.2rem;
    background: #fffbe6;
    border-radius: 1.2rem;
    box-shadow: 0 2px 8px rgba(84,12,13,0.06);
    border: 1.5px solid #f3e9c7;
    font-size: 1.1rem;
    font-weight: 500;
    gap: 1.5rem;
}
.retos-izq {
    text-align: left;
    color: var(--color-primario);
}
.retos-centro {
    text-align: center;
    color: #333;
    font-weight: 700;
}
.retos-der {
    text-align: right;
    color: var(--color-acento);
}
/* =====================
   ESTRUCTURA GENERAL
   ===================== */
body {
    background: linear-gradient(135deg, #f8f6f2 0%, #fffbe6 100%);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}
/* =====================
   CONTENEDOR PRINCIPAL
   ===================== */

.retos-header,
.retos-footer {
    width: 100%;
    background: #fffbe6;
    border-radius: 1.2rem;
    box-shadow: 0 2px 8px rgba(84,12,13,0.06);
    border: 1.5px solid #f3e9c7;
    padding: 1.2rem 2.2rem;
    color: var(--color-primario);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.retos-footer {
    margin-top: 2rem;
    margin-bottom: 0;
}

   
.retos-container {
    max-width: 900px;
    margin: 56px auto;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: var(--sombra-suave), 0 1.5px 8px 0 rgba(84,12,13,0.06);
    padding: 2.8rem 2.2rem 2.8rem 2.2rem;
    text-align: center;
    border: 1.5px solid #f3e9c7;
    transition: box-shadow 0.2s;
}
.retos-container:hover {
    box-shadow: 0 8px 40px 0 rgba(84,12,13,0.13), 0 1.5px 8px 0 rgba(84,12,13,0.06);
}
.retos-title {
    font-size: 2.5rem;
    color: var(--color-primario);
    font-weight: 900;
    margin-bottom: 0.8rem;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(255,215,0,0.08);
}
.retos-desc {
    color: #444;
    font-size: 1.18rem;
    margin-bottom: 2.3rem;
    line-height: 1.7;
    opacity: 0.92;
}
.retos-btn {
    margin-bottom: 2.3rem;
}
/* =====================
   CAJA DE RETO - DISEÑO DE 3 COLUMNAS
   ===================== */
.reto-box-grid {
    display: grid;
    /* Definimos las columnas: la del medio es el doble de ancha que las laterales */
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    background: linear-gradient(120deg, var(--color-section-alt) 80%, #fff 100%);
    border-radius: 1.2rem;
    padding: 2.5rem 1.5rem;
    margin-top: 0.7rem;
    box-shadow: 0 4px 24px 0 rgba(84,12,13,0.10);
    animation: fadeIn 0.7s;
    text-align: left;
    border: 1.5px solid #f3e9c7;
    position: relative;
    overflow: hidden;
}

.reto-box-grid::before {
    content: "";
    position: absolute;
    top: -40px; left: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, var(--color-acento) 0%, transparent 70%);
    opacity: 0.08;
    z-index: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos de la cabecera del reto (escudo y nombre del equipo) */
.reto-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.7rem;
    z-index: 1;
    position: relative;
}

/* Centrar el contenido de la columna central */
.retos-centro {
    text-align: center;
}

/* Estilos de los títulos de las secciones */
.reto-plantilla h3,
.retos-objetivos h3,
.retos-reglas h3 {
    color: var(--color-primario);
    font-size: 1.18rem;
    margin-bottom: 0.4rem;
    margin-top: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: center;
}
.retos-objetivos h3 {
    margin-top: 1.2rem;
}

/* Estilos de las listas de objetivos y reglas */
.reto-plantilla ul,
.retos-objetivos ul,
.retos-reglas ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0.8rem;
}
.retos-objetivos ul {
    margin-bottom: 0.6rem;
}
.reto-plantilla ul li,
.retos-objetivos ul li,
.retos-reglas ul li {
    background: #fff;
    margin: 5px 0;
    padding: 9px 16px;
    border-radius: 0.6em;
    color: #333;
    font-size: 1.04rem;
    box-shadow: 0 2px 8px rgba(84,12,13,0.06);
    border-left: 4px solid var(--color-acento);
    transition: background 0.18s, box-shadow 0.18s;
    position: relative;
}
.reto-plantilla ul li:hover,
.retos-objetivos ul li:hover,
.retos-reglas ul li:hover {
    background: #fffbe6;
    box-shadow: 0 4px 16px rgba(255,215,0,0.10);
}

/* Estilos de los jugadores */
.jugador-item {
    display: flex;
    align-items: center;
    gap: 0.9em;
    background: #fff;
    margin: 5px 0;
    padding: 9px 16px;
    border-radius: 0.6em;
    color: #333;
    font-size: 1.04rem;
    box-shadow: 0 2px 8px rgba(84,12,13,0.06);
    border-left: 4px solid var(--color-acento);
    transition: background 0.18s, box-shadow 0.18s;
    position: relative;
}
.jugador-item:hover {
    background: #fffbe6;
    box-shadow: 0 4px 16px rgba(255,215,0,0.10);
}
.jugador-foto {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-acento);
    background: #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    transition: border 0.18s, box-shadow 0.18s;
}
.jugador-foto:hover {
    border: 2.5px solid #fffbe6;
    box-shadow: 0 4px 16px rgba(255,215,0,0.13);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .retos-container {
        padding: 1.2rem 0.5rem;
    }
    .reto-box-grid {
        grid-template-columns: 1fr; /* Una sola columna para móviles */
        padding: 1.2rem 0.5rem;
    }
    .reto-header {
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
    }
    .escudo {
        width: 58px;
        height: 58px;
    }
    .reto-plantilla h3,
    .retos-objetivos h3,
    .retos-reglas h3 {
        text-align: left;
    }
}