/* ========== CONTENEDOR PRINCIPAL ========== */
#fixture-mundial-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    color: #1a1a1a;
}

.mfm-titulo-principal {
    text-align: center;
    font-family: "Arial Black", "Arial Bold", sans-serif;
    font-weight: 900;
    font-size: 2rem;           /* un poco más grande */
    letter-spacing: 1px;       /* letras más aireadas */
    margin-bottom: 20px;
    color: #555;
}

.mfm-titulo-seccion {
    font-size: 1.2rem;
    margin: 25px 0 10px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
    color: #555;
}

/* ========== ACORDEÓN ========== */
.mfm-grupo {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 12px;            /* más redondeado */
    overflow: hidden;
    background: #fff;
}

.mfm-grupo-titulo {
    padding: 14px 18px;
    background: #f5f5f5;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;            /* redondeado en el botón */
    transition: background 0.2s;
}

.mfm-grupo-titulo::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.2s;
    margin-left: 10px;
}

details[open] .mfm-grupo-titulo {
    background: #e8f5e9;
    border-radius: 12px 12px 0 0;  /* solo arriba cuando está abierto */
}

details[open] .mfm-grupo-titulo::after {
    transform: rotate(180deg);
}

.mfm-grupo-contenido {
    padding: 10px 18px;
    animation: desplegar 0.2s ease-out;
}

@keyframes desplegar {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.mfm-subtitulo {
    font-size: 0.9rem;
    color: #555;
    margin: 10px 0 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== TABLA DE POSICIONES ========== */
.mfm-tabla-posiciones {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.mfm-tabla-posiciones th {
    background: #2e7d32;
    color: #fff;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.mfm-tabla-posiciones td {
    padding: 8px 4px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.mfm-bandera-celda {
    font-size: 1.3rem;
}

.mfm-puntos {
    font-weight: bold;
    color: #1b5e20;
}

/* Resaltar clasificados (2 primeras filas) */
tr.mfm-clasificado td {
    background: #e8f5e9;
    position: relative;
}

tr.mfm-clasificado td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #2e7d32;
    border-radius: 0 2px 2px 0;
}

/* ========== TARJETA DE PARTIDO ========== */
.mfm-partido-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;            /* más redondeado */
    padding: 10px;
    margin-bottom: 8px;
}

.mfm-partido-fecha-ronda {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 8px;
}

.mfm-ronda {
    font-weight: 600;
    color: #444;
}

.mfm-partido-equipos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.mfm-equipo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.mfm-bandera {
    font-size: 2rem;
    line-height: 1;
}

.mfm-nombre-equipo {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    margin-top: 2px;
}

.mfm-resultado {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 12px;
}

.mfm-vs {
    color: #999;
    font-weight: normal;
}

.mfm-partido-lugar {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

/* ========== ENLACES PARA VER ========== */
.mfm-links-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}

.mfm-ver-partido {
    display: block;
    text-align: center;
    padding: 7px;
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;            /* bien redondeado */
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s;
}

.mfm-ver-partido:hover {
    background: #1b5e20;
}

/* ========== ESTADOS ========== */
.mfm-cargando {
    text-align: center;
    padding: 20px;
    color: #777;
}

.mfm-error {
    text-align: center;
    padding: 20px;
    color: #c62828;
    background: #ffebee;
    border-radius: 12px;
}

/* Estilos mejorados para el plugin de fixture */

/* Acordeón con bordes más redondeados y suaves */
.mfm-grupo {
    border-radius: 16px; /* Bordes más redondeados */
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* Sombra sutil para profundidad */
}
.mfm-grupo-titulo {
    border-radius: 16px; /* Coincide con el borde del acordeón */
    background: #f8f9fa; /* Un fondo ligeramente más claro */
}

/* Tabla de posiciones: colores contrastantes y clasificados resaltados */
.mfm-tabla-posiciones th {
    background: #1e3a8a; /* Cabecera azul oscuro contrastante */
    color: #ffffff;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Resaltar sutilmente a los dos primeros (clasificados) */
tr.mfm-clasificado td {
    background: #e0f2fe; /* Un azul muy claro */
}
tr.mfm-clasificado td:first-child::before {
    background: #0ea5e9; /* Indicador lateral azul cielo */
}

/* Estilo para el botón de los enlaces */
.mfm-ver-partido {
    background: #0ea5e9; /* Azul más vibrante */
    border-radius: 24px; /* Botones completamente redondeados */
    font-size: 0.85rem;
    transition: background 0.3s ease, transform 0.2s ease;
}
.mfm-ver-partido:hover {
    background: #0284c7;
    transform: translateY(-1px); /* Sutil efecto de elevación */
}
/* ========== PENALES ========== */
.mfm-penales {
    text-align: center;
    font-size: 0.85rem;         /* más chiquito */
    font-style: italic;         /* cursiva */
    color: #555;
    margin-top: 2px;
    margin-bottom: 4px;
}
/* ========== BANDERAS EN TÍTULO DE ACORDEÓN ========== */
.mfm-banderas-titulo {
    font-size: 1rem;        /* un poco más chicas que en los partidos */
    margin-left: 8px;
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
    line-height: 1;
}
/* ========== FECHA Y RONDA ========== */
.mfm-partido-fecha-ronda {
    font-size: 0.85rem;      /* un poco más grande que antes (0.75rem) */
    margin-bottom: 10px;
}

.mfm-fecha {
    color: #333;              /* más oscuro para mejor lectura */
    font-weight: 500;
}

/* ========== LUGAR DEL PARTIDO ========== */
.mfm-partido-lugar {
    font-size: 0.85rem;      /* antes 0.75rem */
    color: #444;
    margin-top: 8px;
    font-weight: 500;
}

/* ========== NOMBRE DE EQUIPO ========== */
.mfm-nombre-equipo {
    font-size: 0.9rem;        /* antes 0.75rem */
    font-weight: 600;         /* seminegrita */
    margin-top: 4px;
}

/* ========== BANDERITAS EN TÍTULO DEL ACORDEÓN ========== */
.mfm-banderas-titulo {
    font-size: 1.3rem;        /* antes 1rem */
    margin-left: 10px;
    gap: 4px;                 /* un poquito más de separación */
}
/* ========== BORDE RESALTADO EN TARJETAS DE ELIMINATORIAS ========== */
.mfm-eliminatoria .mfm-partido-card {
    border: 1.5px solid #bdbdbd;   /* gris medio sutil, más visible que el #eee anterior */
    box-shadow: none;             /* mantenemos limpio sin sombra extra */
}
.mfm-partido-card {
    border: 1.5px solid #bdbdbd;
}

/* ========== TEMA DORADO DEFINITIVO (bordes más anchos) ========== */

/* Acordeones de grupos y fases eliminatorias */
.mfm-grupo {
    border: 2px solid #c4a43e !important;           /* antes 1px */
    border-radius: 12px;
}
/* Botón desplegable del acordeón (el título) */
.mfm-grupo-titulo {
    border-bottom: 2px solid #c4a43e !important;    /* línea debajo del título */
}

/* Tarjetas de partido */
.mfm-partido-card {
    border: 2px solid #c4a43e !important;           /* antes 1.5px gris */
}

/* Línea divisoria bajo "Fase de grupos" y "Eliminatorias" */
.mfm-titulo-seccion {
    border-bottom: 3px solid #c4a43e !important;    /* más gruesa, imponente */
}

/* Borde exterior de la tabla de posiciones */
.mfm-tabla-posiciones {
    border: 2px solid #c4a43e !important;
}
/* Líneas internas de la tabla (entre filas) */
.mfm-tabla-posiciones td {
    border-bottom: 1px solid #c4a43e !important;    /* finas, como pediste */
}
.mfm-en-vivo {
    display: inline-block;
    background: #d32f2f;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-bottom: 5px;
}
/* Ocultar botón ADIVINAR si el prode no está activo */
#fixture-mundial-container.sin-prode .mpm-btn-predecir-fixture,
#fixture-mundial-container.sin-prode button[style*="ADIVINAR"],
#fixture-mundial-container.sin-prode [style*="ADIVINAR"] {
    display: none !important;
}