@charset "utf-8";

/* ========== ESTILOS MODERNOS – MUNDIAL 2026 Y PÁGINAS ASOCIADAS ========== */

/* Estilos para index.php (moderno) */
body.home-page {
    background: #0a0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}
.home-card {
    background: #1e293b;
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.home-logo {
    width: 300px;
    max-width: 80%;
    margin-bottom: 20px;
}
.home-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.home-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.btn-home {
    padding: 12px 24px;
    background-color: #22c55e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s;
    display: inline-block;
}
.btn-home:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
}
.btn-contact {
    background: transparent;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}
.btn-contact:hover {
    color: white;
    border-color: #64748b;
}
.home-footer {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #475569;
}
.home-footer a {
    color: #64748b;
    text-decoration: none;
}
.home-footer a:hover {
    text-decoration: underline;
}

/* ========== LOGIN (ingresar.php) ========== */
body.login-body {
    background: #0a0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
}
.login-card {
    background: #1e293b;
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}
.login-card .logo {
    width: 180px;
    display: block;
    margin: 0 auto 25px;
}
.login-card h2 {
    text-align: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.login-card .form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}
.login-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}
.login-card .form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}
.login-card .form-group input:focus {
    outline: none;
    border-color: #22c55e;
}
.login-card .checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: left;
}
.login-card .btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #22c55e;
    color: #fff;
}
.login-card .btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}
.login-card .link-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #64748b;
}
.login-card .link-footer a {
    color: #3b82f6;
    text-decoration: none;
}
.login-card .link-footer a:hover {
    text-decoration: underline;
}
.error-message {
    color: #f87171;
    text-align: center;
    margin-bottom: 1rem;
}

/* ========== INDEX (segunda versión) ========== */
body.home-page {
    background: #0a0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
}
.home-card {
    background: #1e293b;
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    box-sizing: border-box;
}
.home-card,
.home-card *:not(a):not(a *) {
    color: #ffffff;
}
.home-logo {
    display: block;
    margin: 0 auto 25px;
    max-width: 100%;
    height: auto;
}
.home-title {
    font-size: 1.6rem;
    margin-bottom: 35px;
    line-height: 1.3;
    font-weight: 600;
}
.home-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.btn-home {
    background-color: #22c55e;
    color: white !important;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 180px;
    display: inline-block;
    box-sizing: border-box;
}
.btn-home:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    color: white !important;
}
.btn-contact-home {
    background: transparent;
    border: 1px solid #475569;
    color: #94a3b8 !important;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-block;
}
.btn-contact-home:hover {
    color: white !important;
    border-color: #64748b;
}
.home-footer {
    margin-top: 35px;
    font-size: 0.75rem;
    color: #475569;
}
.home-footer a {
    color: #64748b !important;
    text-decoration: none;
}
.home-footer a:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .home-card {
        padding: 30px 20px;
    }
    .home-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .btn-home {
        min-width: unset;
        width: 100%;
        font-size: 1rem;
        padding: 12px 20px;
    }
    .home-title {
        font-size: 1.3rem;
    }
}

/* ========== CHECKBOX AUTOGUARDAR ========== */
.autosave-toggle {
    text-align: right;
    margin-bottom: 10px;
    margin-top: -10px;
}
.autosave-toggle label {
    background: #1e293b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.autosave-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}
.autosave-toggle label.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== REGISTRARSE ========== */
body.register-body {
    background: #0a0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
}
.register-card {
    background: #1e293b;
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}
.register-card .logo {
    width: 180px;
    display: block;
    margin: 0 auto 25px;
}
.register-card h2 {
    text-align: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.register-card .form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}
.register-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}
.register-card .form-group input,
.register-card .form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}
.register-card .form-group input:focus {
    outline: none;
    border-color: #22c55e;
}
.register-card .btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #22c55e;
    color: #fff;
}
.register-card .btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}
.register-card .link-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #64748b;
}
.register-card .link-footer a {
    color: #3b82f6;
    text-decoration: none;
}
.register-card .link-footer a:hover {
    text-decoration: underline;
}
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}
.register-card .textfieldRequiredMsg,
.register-card .textfieldMinCharsMsg,
.register-card .textfieldMaxCharsMsg,
.register-card .confirmRequiredMsg,
.register-card .confirmInvalidMsg {
    font-size: 0.75rem;
    color: #f87171;
    display: block;
    margin-top: 4px;
}

/* ========== EMPEZAR.PHP (moderno) ========== */
body {
    background: #0a0e17;
    margin: 0;
    padding: 0;
}
.main-container {
    max-width: 1400px;
    margin: 100px auto 30px;
    padding: 0 20px;
    box-sizing: border-box;
}
.grid-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
@media (max-width: 800px) {
    .grid-2cols {
        grid-template-columns: 1fr;
    }
}
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0f172a;
    border-bottom: 1px solid #334155;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
}
.modern-header .logo img {
    height: 50px;
    width: auto;
}
.modern-header .user-info {
    text-align: right;
    color: #cbd5e1;
    font-size: 0.9rem;
}
.modern-header .user-info a {
    color: #22c55e;
    text-decoration: none;
    margin-left: 10px;
}
.modern-header .user-info a:hover {
    text-decoration: underline;
}
.modern-card {
    background: #1e293b;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 25px;
    border: 1px solid #334155;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.modern-card h3 {
    color: #22c55e;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.4rem;
    border-left: 4px solid #22c55e;
    padding-left: 12px;
}
.modern-card h2 {
    color: white;
    margin: 0;
}
.modern-card p {
    color: #e2e8f0;
}
.welcome-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    text-align: center;
}
.welcome-card p {
    color: #94a3b8;
    margin: 8px 0 0;
}
.btn-small:link,
.btn-small:visited,
.btn-small:hover,
.btn-small:active {
    background-color: #22c55e !important;
    color: white !important;
    text-decoration: none;
}
.btn-small {
    background: #22c55e;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s;
    display: inline-block;
}
.btn-small:hover {
    background: #16a34a;
}
.participante-link:link,
.participante-link:visited,
.participante-link:hover,
.participante-link:active {
    background-color: #334155 !important;
    color: white !important;
    text-decoration: none;
}
.participante-link {
    background: #334155;
    padding: 5px 12px;
    border-radius: 30px;
    display: inline-block;
    margin: 4px;
    color: white;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.participante-link:hover {
    background: #22c55e !important;
}
.modern-hr {
    border: 0;
    height: 1px;
    background: #334155;
    margin: 24px 0;
    clear: both;
}
.comentarios-scroll {
    max-height: 350px;
    overflow-y: auto;
    background: #0f172a;
    border-radius: 20px;
    padding: 8px;
}
.comentario-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: #e2e8f0;
}
.comentario-item:nth-child(odd) {
    background: #0f172a;
}
.comentario-item:nth-child(even) {
    background: #1e293b;
}
.comentario-item strong {
    color: #22c55e;
}
.comentario-item img {
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.modern-textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 10px;
    color: white;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}
.modern-textarea:focus {
    outline: none;
    border-color: #22c55e;
}
.trofeos-wrapper {
    background: #0f172a;
    border-radius: 20px;
    padding: 8px;
}
.trofeos-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.trofeo-item {
    padding: 12px;
    border-radius: 16px;
}
.trofeo-item:nth-child(odd) {
    background: #0f172a;
}
.trofeo-item:nth-child(even) {
    background: #1e293b;
}
.trofeo-usuario {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #fbbf24;
    font-weight: bold;
}
.trofeo-lista {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.4;
}
.trofeo-lista img {
    width: 24px;
    height: auto;
    vertical-align: middle;
    margin-right: 4px;
}
.chat-area {
    background: #0f172a;
    border-radius: 20px;
    padding: 16px;
    min-height: 120px;
    color: #cbd5e1;
}
.footer-modern {
    text-align: center;
    padding: 20px;
    background: #0f172a;
    border-radius: 24px;
    margin-top: 30px;
    color: #94a3b8;
}
.footer-modern a {
    color: #64748b;
    text-decoration: none;
}
.footer-modern a:hover {
    text-decoration: underline;
}

/* ========== REGLAS (listado de torneos) ========== */
#lista-reglas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: #1e293b;
    border-radius: 24px;
    border: 1px solid #334155;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
@media (max-width: 800px) {
    #lista-reglas {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
@media (max-width: 500px) {
    #lista-reglas {
        grid-template-columns: 1fr;
    }
}
#lista-reglas a.botoneschicos {
    background: #0f172a;
    color: #cbd5e1;
    padding: 12px 16px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #334155;
    display: block;
}
#lista-reglas a.botoneschicos:hover {
    background: #22c55e;
    color: white;
    transform: translateY(-2px);
    border-color: #22c55e;
}

/* ========== ESTILOS PARA VERMUNDIAL2026 Y EMEPEZAR (bordes alternos, etc.) ========== */
.partido-grupo,
.partido-ko,
.tabla-grupo-ver td,
.tabla-grupo-ver th,
.grupo-partidos,
.ronda .partido-ko {
    color: #e2e8f0 !important;
}
.partido-grupo {
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 12px;
    font-size: 0.85rem;
    transition: background 0.1s;
}
.grupo-partidos .partido-grupo:nth-child(odd) {
    border-left: 3px solid #22c55e;
    background: #0f172a;
}
.grupo-partidos .partido-grupo:nth-child(even) {
    border-left: 3px solid #f97316;
    background: #1e293b;
}
.partido-ko {
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 12px;
    font-size: 0.85rem;
    transition: background 0.1s;
}
.ronda .partido-ko:nth-child(odd) {
    border-left: 3px solid #22c55e;
    background: #0f172a;
}
.ronda .partido-ko:nth-child(even) {
    border-left: 3px solid #f97316;
    background: #1e293b;
}
.tabla-grupo-ver {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    border-radius: 12px;
    overflow: hidden;
}
.tabla-grupo-ver th,
.tabla-grupo-ver td {
    padding: 4px 6px;
    text-align: center;
    border-bottom: 1px solid #334155;
}
.tabla-grupo-ver th {
    background: #1e293b;
    color: #22c55e;
}
.tabla-grupo-ver tr:nth-child(odd) td {
    background-color: #0f172a;
}
.tabla-grupo-ver tr:nth-child(even) td {
    background-color: #1e293b;
}
.tabla-grupo-ver .equipo-nombre {
    text-align: left;
    white-space: nowrap;
}
.fecha-partido {
    font-size: 0.7rem;
    color: #94a3b8;
}
.ronda h4 {
    color: #22c55e;
    margin: 15px 0 10px;
    font-size: 1.1rem;
    border-left: 4px solid #22c55e;
    padding-left: 10px;
}
/* Extras box - texto claro y fondo oscuro */
.extras-box {
    background: #0f172a;
    border-radius: 16px;
    padding: 15px;
    margin-top: 20px;
    color: #e2e8f0;
}
.extras-box p {
    color: #e2e8f0;
    margin: 8px 0;
}
/* Reducir tamaño de títulos de grupos */
.titulo_grupos {
    font-size: 1.2rem !important;
    padding: 5px !important;
}
.extras .partido-ko {
    background: #1e293b;
    border-left: 3px solid #f97316;
}
@media (max-width: 800px) {
    .grupo-contenido {
        flex-direction: column;
    }
    .fase-final {
        overflow-x: auto;
    }
}

/* ========== MENÚ HAMBURGUESA Y NAVEGACIÓN FIJA ========== */
/* Contenedor wrapper (visible en desktop, no afecta en móvil) */
.nav-wrapper {
    position: sticky;
    top: 70px;           /* Ajusta según la altura de tu cabecera (modern-header) */
    z-index: 99;
    background: #0f172a;
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 8px 12px;
}

/* Botón hamburguesa – por defecto oculto (solo se ve en móvil) */
.nav-toggle {
    display: none;
    background: #1e293b;
    color: #22c55e;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
    font-weight: bold;
    border: 1px solid #334155;
}

/* Contenedor de enlaces (visible en desktop) */
.anchor-grupos-container {
    display: block;
}
#anchor_grupos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
#anchor_grupos a {
    background: #1e293b;
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
    white-space: nowrap;
}
#anchor_grupos a:hover {
    background: #22c55e;
    color: white;
}

/* ===== MÓVIL (ancho ≤ 800px) ===== */
@media (max-width: 800px) {
    /* El botón hamburguesa se vuelve visible y queda fijo en la parte superior izquierda */
    .nav-toggle {
        display: block;
        position: fixed;
        left: 5px;
        top: 120px;           /* ← SUBIDO de 70px a 80px para no quedar tapado por el header */
        z-index: 10000;
        background: #1e293b;
        color: #22c55e;
        border: 1px solid #334155;
        border-radius: 30px;
        padding: 6px 12px;
        font-size: 0.9rem;
        cursor: pointer;
    }

    /* El contenedor de enlaces se convierte en un panel desplegable con scroll */
    .anchor-grupos-container {
        display: none;
        position: fixed;
        top: 120px;          /* Ajustado acorde (80px del botón + 40px) */
        left: 15px;
        right: 15px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        background: #0f172a;
        border-radius: 16px;
        border: 1px solid #334155;
        padding: 10px;
        z-index: 9999;
    }
    .anchor-grupos-container.show {
        display: block;
    }

    /* Los enlaces se distribuyen en 2 columnas para ahorrar espacio */
    #anchor_grupos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    #anchor_grupos a {
        white-space: normal;
        text-align: center;
        font-size: 0.8rem;
        padding: 6px 8px;
        background: #1e293b;
        color: #cbd5e1;
        border-radius: 30px;
        text-decoration: none;
    }
    #anchor_grupos a:hover {
        background: #22c55e;
        color: white;
    }
}

/* ========== MODAL GLOBAL (fuera del media query, oculto por defecto) ========== */
.modal-grupos {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 20000;
    justify-content: center;
    align-items: center;
}
.modal-grupos .contenido-modal {
    background: #0f172a;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #334155;
    text-align: center;
}
.modal-grupos h3 {
    color: #22c55e;
    margin-top: 0;
}
.modal-grupos .lista-modal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}
.modal-grupos a {
    background: #1e293b;
    color: #cbd5e1;
    padding: 8px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid #334155;
    transition: 0.2s;
}
.modal-grupos a:hover {
    background: #22c55e;
    color: white;
}
.modal-grupos button {
    background: #22c55e;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 30px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
}

/* ========== CONTACTO ANÓNIMO ========== */
.login-card .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
}
.login-card .form-group textarea:focus {
    outline: none;
    border-color: #22c55e;
}

/* Mensajes flotantes */
.mensaje-flotante {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}
.mensaje-flotante.success {
    background: #22c55e;
    color: #fff;
}
.mensaje-flotante.error {
    background: #f87171;
    color: #fff;
}

/* ========== MODIFICAR PERFIL ========== */
.modern-card .form-group label,
.modern-card p,
.modern-card strong {
    color: #e2e8f0 !important;
}
.modern-card hr.modern-hr {
    border-color: #334155;
}
.modern-card p strong {
    color: #22c55e !important;
}

/* ========== MEJORAS RESPONSIVAS PARA empezar.php (móvil) ========== */
@media (max-width: 800px) {
    /* Reducir padding de las tarjetas en móvil */
    .modern-card {
        padding: 16px !important;
        word-break: break-word;          /* ← NUEVO: evita que textos largos desborden */
        overflow-wrap: break-word;
        overflow-x: hidden;              /* ← NUEVO: previene scroll horizontal */
    }
    /* Aumentar margen superior para que no tape el header fijo */
    .main-container {
        margin-top: 120px !important;
    }
    /* Participantes: se apilan verticalmente y centran */
    .participante-link {
        display: block !important;
        width: 100% !important;
        margin: 6px 0 !important;
        text-align: center;
        box-sizing: border-box;
    }
    .modern-card div[style*="text-align:center"] {
        padding: 0 !important;
    }
    .modern-textarea {
        width: 100% !important;
        box-sizing: border-box;
    }
    /* Ajustar listas de comentarios */
    .comentarios-scroll {
        padding: 8px !important;
    }
    .comentario-item {
        padding: 8px !important;
    }
    /* Títulos más pequeños y con menor padding */
    .modern-card h3 {
        font-size: 1.2rem !important;
        padding-left: 8px !important;
    }
    .welcome-card h2 {
        font-size: 1.3rem !important;
    }
}

/* ========== REGLAS MUNDIAL 2026 ========== */
.reglas-mundial-container .reglas-contenido p,
.reglas-mundial-container .reglas-contenido li,
.reglas-mundial-container .reglas-contenido td,
.reglas-mundial-container .reglas-contenido th {
    color: #e2e8f0;
}
.reglas-mundial-container .reglas-contenido table {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
}
.reglas-mundial-container .reglas-contenido th {
    background: #1e293b;
    color: #22c55e;
}
.mensaje-error {
  color: var(--naranja) !important;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}
.login-body .login-card .mensaje-error,
.login-body .login-card p.mensaje-error {
  color: #f90 !important;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}