/* ==========================================================================
   Centro de Configuración — FiebreParley.com (server01)
   Prefijo exclusivo: .fpg / .fpg- (aislado de screen.css, main.css, form.css y print.css)
   Paleta oficial: Azul marino (#04132c - #0b2f66), Verde eléctrico (#1ce882 / #9be15d),
   Cian (#0ac2ff / #3cbae3) y superficie administrativa clara (#f5f8fc / #ffffff).
   ========================================================================== */

.fpg {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #0f243c;
    background-color: #f5f8fc;
    border: 1px solid #dce6f2;
    border-radius: 14px;
    padding: 22px;
    margin: 6px 0 20px;
    -webkit-font-smoothing: antialiased;
}

.fpg,
.fpg *,
.fpg *:before,
.fpg *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Neutralización de estilos heredados de main.css y screen.css */
.fpg h1,
.fpg h2,
.fpg h3,
.fpg h4,
.fpg p,
.fpg ul,
.fpg ol,
.fpg li {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-style: normal;
}

.fpg ul,
.fpg ol {
    list-style: none;
}

/* Utilidad accesible solo para lectores de pantalla */
.fpg .fp-sr,
.fpg-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fpg a:focus-visible,
.fpg button:focus-visible,
.fpg input:focus-visible,
.fpg summary:focus-visible {
    outline: 3px solid #0ac2ff;
    outline-offset: 2px;
}

/* ==========================================================================
   1. CABECERA DEPORTIVA Y BARRA DE SESIÓN (.fpg-hero)
   ========================================================================== */
.fpg-hero {
    position: relative;
    overflow: hidden;
    background-color: #061a3d;
    background-image:
        radial-gradient(640px 260px at 92% 14%, rgba(28, 232, 130, 0.22), transparent 65%),
        radial-gradient(520px 250px at 8% 88%, rgba(10, 194, 255, 0.22), transparent 65%),
        linear-gradient(145deg, #04132c 0%, #08234f 52%, #0b2f66 100%);
    color: #eef5fc;
    border-radius: 12px;
    border: 1px solid #173d73;
    padding: 24px 28px 20px;
    margin-bottom: 18px;
    box-shadow: 0 10px 26px rgba(4, 19, 44, 0.16);
}

.fpg-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.fpg-hero__insignia {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background-color: #0d2b59;
    background-color: rgba(28, 232, 130, 0.14);
    border: 1px solid rgba(28, 232, 130, 0.42);
    color: #9be15d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.fpg-hero__insignia svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.fpg-hero__atajos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fpg-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(10, 194, 255, 0.35);
    color: #dff4ff;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.fpg-hero__link:hover {
    background-color: rgba(10, 194, 255, 0.20);
    border-color: #1ce882;
    color: #ffffff;
    text-decoration: none;
}

.fpg-hero__link svg {
    width: 14px;
    height: 14px;
    color: #1ce882;
    flex-shrink: 0;
}

.fpg .fpg-hero__titulo {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin: 0 0 8px 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

.fpg .fpg-hero__titulo span {
    color: #1ce882;
}

.fpg .fpg-hero__sub {
    font-size: 14.8px;
    line-height: 1.55;
    color: #c7d9f0;
    max-width: 820px;
    margin-bottom: 16px;
}

/* Barra de estado de sesión dentro del Hero */
.fpg-sesion-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background-color: #071e46;
    background-color: rgba(4, 16, 36, 0.55);
    border: 1px solid rgba(10, 194, 255, 0.28);
}

.fpg-sesion-bar__info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #e2eefc;
}

.fpg-sesion-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fpg-sesion-pill--activa {
    background-color: rgba(28, 232, 130, 0.18);
    border: 1px solid rgba(28, 232, 130, 0.50);
    color: #1ce882;
}

.fpg-sesion-pill--visitante {
    background-color: rgba(10, 194, 255, 0.18);
    border: 1px solid rgba(10, 194, 255, 0.45);
    color: #7ce2ff;
}

.fpg-sesion-bar__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    background-color: #1ce882;
    color: #04192e;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.fpg-sesion-bar__cta:hover {
    background-color: #15d6a8;
    color: #04192e;
    text-decoration: none;
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

.fpg-sesion-bar__cta svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ==========================================================================
   2. BARRA DE BÚSQUEDA Y FILTROS POR CATEGORÍA (.fpg-toolbar)
   ========================================================================== */
.fpg-toolbar {
    background-color: #ffffff;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(15, 36, 60, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fpg-toolbar__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fpg-buscador {
    position: relative;
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
}

.fpg-buscador__ico {
    position: absolute;
    left: 13px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #64748b;
    pointer-events: none;
}

.fpg-buscador__input {
    width: 100%;
    height: 44px;
    padding: 8px 38px 8px 40px;
    border-radius: 9px;
    border: 1.5px solid #cbd8e8;
    background-color: #f8fafd;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: #0f243c;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.fpg-buscador__input:focus {
    background-color: #ffffff;
    border-color: #0b65c6;
    box-shadow: 0 0 0 3px rgba(10, 194, 255, 0.20);
    outline: none;
}

.fpg-buscador__limpiar {
    position: absolute;
    right: 8px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background-color: #e2e8f0;
    color: #334155;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fpg-buscador__limpiar.es-visible {
    display: inline-flex;
}

.fpg-buscador__limpiar:hover {
    background-color: #cbd5e1;
    color: #0f172a;
}

.fpg-contador-res {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.fpg-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fpg-filtro-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid #cbd8e8;
    background-color: #f8fafd;
    color: #1e3a5f;
    font-family: inherit;
    font-size: 12.8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fpg-filtro-btn:hover {
    background-color: #eef5ff;
    border-color: #0b65c6;
    color: #071b3b;
}

.fpg-filtro-btn.es-activo {
    background-color: #08234f;
    border-color: #0ac2ff;
    color: #1ce882;
    box-shadow: 0 2px 8px rgba(8, 35, 79, 0.18);
}

/* ==========================================================================
   3. SECCIONES Y TARJETA DESTACADA DE TICKERA MODO 4 (.fpg-tickera-destacada)
   ========================================================================== */
.fpg-seccion {
    margin-bottom: 26px;
}

.fpg-seccion:last-of-type {
    margin-bottom: 8px;
}

.fpg-seccion--oculta,
.fpg-card--oculta {
    display: none !important;
}

.fpg-seccion__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2ecf6;
}

.fpg-seccion__titulo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fpg-seccion__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    background-color: #08234f;
    color: #1ce882;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fpg .fpg-seccion__titulo {
    font-size: 20px;
    font-weight: 800;
    color: #092147;
}

.fpg .fpg-seccion__desc {
    font-size: 13.5px;
    color: #52657d;
}

/* Tarjeta destacada: Última configuración de Tickera (Agente Propio Modo 4) */
.fpg-tickera-destacada {
    background-color: #ffffff;
    border: 2px solid #0b65c6;
    border-top: 5px solid #1ce882;
    border-radius: 13px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(9, 33, 71, 0.07);
}

.fpg-tickera-destacada__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.fpg-tickera-destacada__titular {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 720px;
}

.fpg-tickera-destacada__ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #08234f;
    color: #1ce882;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fpg-tickera-destacada__ico svg {
    width: 26px;
    height: 26px;
}

.fpg .fpg-tickera-destacada__titulo {
    font-size: 20px;
    font-weight: 800;
    color: #071b3b;
    margin-bottom: 4px;
}

.fpg .fpg-tickera-destacada__sub {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.fpg-tickera-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.fpg-tickera-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.fpg-tickera-badge--azul {
    background-color: #eef5ff;
    border-color: #bfd7f6;
    color: #0b4f9c;
}

.fpg-tickera-pilares {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.fpg-tickera-pilar {
    background-color: #f8fafd;
    border: 1px solid #dce6f2;
    border-radius: 10px;
    padding: 14px 16px;
}

.fpg .fpg-tickera-pilar__titulo {
    font-size: 14px;
    font-weight: 800;
    color: #092147;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.fpg-tickera-pilar__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #08234f;
    color: #1ce882;
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fpg .fpg-tickera-pilar__texto {
    font-size: 13px;
    color: #475569;
    line-height: 1.48;
}

.fpg-tickera-acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e6eef7;
    margin-bottom: 14px;
}

/* Acordeón de guía rápida Modo 4 */
.fpg-acordeon {
    background-color: #f0f6fe;
    border: 1px solid #cfe0f5;
    border-radius: 10px;
    overflow: hidden;
}

.fpg-acordeon__summary {
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 800;
    color: #092147;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    user-select: none;
}

.fpg-acordeon__summary:hover {
    background-color: #e4effd;
}

.fpg-acordeon__body {
    padding: 14px 18px 16px;
    border-top: 1px solid #cfe0f5;
    background-color: #ffffff;
}

.fpg-pasos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.fpg-paso-item {
    background-color: #f8fafd;
    border: 1px solid #e2ecf6;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
}

.fpg-paso-item strong {
    color: #092147;
}

/* ==========================================================================
   4. CUADRÍCULA DE TARJETAS DE CONFIGURACIÓN (.fpg-grid, .fpg-card)
   ========================================================================== */
.fpg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.fpg-card {
    background-color: #ffffff;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 5px 16px rgba(15, 36, 60, 0.04);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.fpg-card:hover {
    border-color: #9bb5d3;
    box-shadow: 0 8px 22px rgba(15, 36, 60, 0.07);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

.fpg-card__top {
    margin-bottom: 16px;
}

.fpg-card__top:last-child {
    margin-bottom: 0;
}

.fpg-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.fpg-card__ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #eef5ff;
    border: 1px solid #cfe0f5;
    color: #0b65c6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fpg-card__ico svg {
    width: 21px;
    height: 21px;
}

.fpg-permiso {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.fpg-permiso--activo {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.fpg-permiso--publico {
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.fpg-permiso--login {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.fpg-permiso--restringido {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.fpg .fpg-card__titulo {
    font-size: 16.5px;
    font-weight: 800;
    color: #092147;
    margin-bottom: 6px;
    line-height: 1.3;
}

.fpg .fpg-card__desc {
    font-size: 13.3px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 12px;
}

.fpg-card__lista {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px dashed #e2ecf6;
}

.fpg-card__lista li {
    position: relative;
    padding-left: 14px;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.4;
}

.fpg-card__lista li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #1ce882;
}

.fpg-card__foot {
    padding-top: 14px;
    border-top: 1px solid #eef3f9;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Botones de acción de tarjetas */
.fpg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fpg-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.fpg-btn--primario {
    background-color: #08234f;
    border: 1px solid #0b65c6;
    color: #ffffff;
}

.fpg-btn--primario:hover {
    background-color: #0b2f66;
    border-color: #0ac2ff;
    color: #1ce882;
    text-decoration: none;
}

.fpg-btn--verde {
    background-color: #1ce882;
    background-image: linear-gradient(90deg, #1ce882 0%, #15d6a8 60%, #0ac2ff 100%);
    border: 1px solid #10b981;
    color: #04192e;
    box-shadow: 0 4px 12px rgba(21, 214, 168, 0.22);
}

.fpg-btn--verde:hover {
    color: #04192e;
    text-decoration: none;
    filter: brightness(1.03);
}

.fpg-btn--secundario {
    background-color: #f0f6fe;
    border: 1px solid #bfd7f6;
    color: #0b4f9c;
}

.fpg-btn--secundario:hover {
    background-color: #dcebff;
    border-color: #0b65c6;
    color: #071b3b;
    text-decoration: none;
}

.fpg-btn--login {
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.fpg-btn--login:hover {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #78350f;
    text-decoration: none;
}

.fpg-btn--deshabilitado {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: default;
}

/* ==========================================================================
   5. ESTADO VACÍO DE BÚSQUEDA (#fpg-vacio)
   ========================================================================== */
.fpg-vacio {
    display: none;
    background-color: #ffffff;
    border: 1.5px dashed #cbd8e8;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    margin: 14px 0;
}

.fpg-vacio.es-visible {
    display: block;
}

.fpg .fpg-vacio__titulo {
    font-size: 17px;
    font-weight: 800;
    color: #092147;
    margin-bottom: 6px;
}

.fpg .fpg-vacio__sub {
    font-size: 13.5px;
    color: #52657d;
    margin-bottom: 14px;
}

/* ==========================================================================
   6. RESPONSIVE (TABLETA <= 920px Y MÓVIL <= 640px)
   ========================================================================== */
@media (max-width: 920px) {
    .fpg-tickera-pilares {
        grid-template-columns: 1fr;
    }

    .fpg-pasos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .fpg {
        padding: 14px;
        border-radius: 10px;
    }

    .fpg-hero {
        padding: 18px 16px;
    }

    .fpg .fpg-hero__titulo {
        font-size: 23px;
    }

    .fpg-sesion-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .fpg-sesion-bar__cta {
        justify-content: center;
    }

    .fpg-tickera-destacada {
        padding: 18px 15px;
    }

    .fpg-tickera-destacada__titular {
        flex-direction: column;
    }

    .fpg-tickera-acciones {
        flex-direction: column;
        align-items: stretch;
    }

    .fpg-grid {
        grid-template-columns: 1fr;
    }

    .fpg-card__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .fpg-btn {
        width: 100%;
    }
}
