/**
 * Estilos portada – Liga profesional.
 * Diseño unificado: espaciado consistente, jerarquía clara, secciones ordenadas.
 */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;600;700&display=swap');

/* Variables de diseño */
:root {
    --pl-color-dark: #0a1628;
    --pl-color-blue: #0d2137;
    --pl-color-gold: #d4a75a;
    --pl-color-text: #1a1a1a;
    --pl-color-muted: #555;
    --pl-radius: 12px;
    --pl-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --pl-section-padding: 3.5rem 1.5rem;
}

/* Scroll siempre visible */
html { overflow-y: scroll; }
body.home-pl {
    font-family: "Roboto", sans-serif;
    color: var(--pl-color-text);
    background: #ffffff;
    overflow-y: auto;
    min-height: 100vh;
    line-height: 1.5;
}
body.home-pl.hidden { overflow: hidden; }

/* Títulos: Poppins */
body.home-pl h1,
body.home-pl h2,
body.home-pl h3,
body.home-pl h4,
body.home-pl h5,
body.home-pl h6,
body.home-pl .tour-card-pl-title,
body.home-pl .hero-pl h1,
body.home-pl .section-pl h2 {
    font-family: Poppins !important;
}

/* ---- Nav principal estilo Punta League ---- */
body.home-pl .header-pl {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    transition: background 0.3s, box-shadow 0.3s;
}
body.home-pl.header-scrolled .header-pl {
    background: rgba(13,33,55,0.96);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* Header con fondo siempre visible (páginas sin hero: divisionales, noticias, etc.) */
body.home-pl .header-pl.header-pl-fixed-bg {
    background: rgba(13,33,55,0.96);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

body.home-pl .header-pl-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

body.home-pl .header-pl .logo-pl img {
    height: 48px;
    width: auto;
}

body.home-pl .nav-pl ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.home-pl .nav-pl a {
    font-family: "Oswald", sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

body.home-pl .nav-pl a:hover {
    background: rgba(255,255,255,0.2);
    color: #ffd700;
}
body.home-pl .nav-pl a#selected {
    background: #c9a227;
    color: #0a1628;
}

body.home-pl .header-pl .user-pl {
    font-family: "Oswald", sans-serif;
    color: #ffffff;
    font-size: 0.9rem;
}

body.home-pl .header-pl .user-pl a {
    font-family: "Oswald", sans-serif;
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

body.home-pl .header-pl .user-pl a:hover {
    text-decoration: underline;
}

/* Hamburguesa y overlay para móvil (compatibilidad script.js) */
body.home-pl .header-pl-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
}
body.home-pl .header-pl-back {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}
body.home-pl .header-pl .nav-pl#nav {
    transition: left 0.25s ease;
}

/* Espaciador por el header fijo */
body.home-pl .header-spacer {
    height: 72px;
}
@media (max-width: 768px) {
    body.home-pl .header-spacer {
        height: 60px;
    }
}

/* ---- Torneos destacados (4 tarjetas al inicio) ---- */
body.home-pl .torneos-destacados-pl {
    padding: 2.5rem 1.5rem 3rem;
    max-width: 1280px;
    margin: 0 auto;
}
body.home-pl .torneos-destacados-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
}
body.home-pl .tour-card-pl {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: var(--pl-radius);
    overflow: hidden;
    width: 100%;
    box-shadow: var(--pl-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
body.home-pl .tour-card-pl:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
body.home-pl .tour-card-pl:hover .tour-card-pl-btn {
    background: #c9a227;
    color: #0a1628;
}
body.home-pl .tour-card-pl-image {
    position: relative;
    height: 540px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    overflow: hidden;
}
body.home-pl .tour-card-pl-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
body.home-pl .tour-card-pl-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
}
body.home-pl .tour-card-pl-image .tour-card-pl-badge,
body.home-pl .tour-card-pl-image .tour-card-pl-textos {
    position: relative;
    z-index: 2;
}
body.home-pl .tour-card-pl-textos {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: auto;
}
body.home-pl .tour-card-pl-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.95;
}
body.home-pl .tour-card-pl-fecha {
    font-size: 0.75rem;
    opacity: 0.95;
    display: block;
}
body.home-pl .tour-card-pl-cta {
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
}
body.home-pl .tour-card-pl-titulo-img {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
body.home-pl .tour-card-pl-titulo-img em {
    font-style: normal;
    color: #ffd700;
}
body.home-pl .tour-card-2 .tour-card-pl-titulo-img em { color: #ff9f43; }
body.home-pl .tour-card-3 .tour-card-pl-titulo-img em { color: #74b9ff; }
body.home-pl .tour-card-4 .tour-card-pl-titulo-img em { color: #fd79a8; }
body.home-pl .tour-card-pl-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pl-color-dark);
    text-align: center;
    margin: 0;
    padding: 1rem 0.75rem 0.5rem;
    line-height: 1.3;
}
body.home-pl .tour-card-pl-btn {
    display: block;
    text-align: center;
    background: var(--pl-color-gold);
    color: #0a1628;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.65rem 1rem;
    margin: 0 1rem 1rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
@media (max-width: 1024px) {
    body.home-pl .torneos-destacados-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    body.home-pl .torneos-destacados-pl {
        padding: 1.5rem 1rem 2rem;
    }
    body.home-pl .torneos-destacados-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    body.home-pl .tour-card-pl-image {
        height: 540px;
    }
    body.home-pl .tour-card-pl-titulo-img {
        font-size: 1.25rem;
    }
}

/* ---- Hero ---- */
body.home-pl .hero-pl {
    background: linear-gradient(180deg, rgba(10,22,40,0.85) 0%, rgba(13,33,55,0.78) 50%, rgba(10,22,40,0.9) 100%),
                url('../img/banner/Background-page.jpg') center / cover no-repeat;
    color: #ffffff;
    margin-top: -72px;
    padding: calc(72px + 3.5rem) 1.5rem 4.5rem;
    text-align: center;
}

body.home-pl .hero-pl h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

body.home-pl .hero-pl .hero-tagline {
    font-size: 1.1rem;
    color: #e8ecf0;
    margin-bottom: 2.25rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

body.home-pl .hero-pl .hero-tagline a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

body.home-pl .hero-pl .hero-tagline a:hover {
    text-decoration: underline;
}

/* CTAs tipo "Torneo + INSCRIBIRSE" */
body.home-pl .hero-ctas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

body.home-pl .hero-cta-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: background 0.25s, transform 0.2s;
}

body.home-pl .hero-cta-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

body.home-pl .hero-cta-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

body.home-pl .hero-cta-card .btn-inscribirse {
    display: inline-block;
    background: #ffd700;
    color: #0a1628;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

body.home-pl .hero-cta-card .btn-inscribirse:hover {
    background: #fff;
    color: #0a1628;
}

/* ---- Stats (Equipos, Jugadores, Goles) ---- */
body.home-pl .stats-pl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 820px;
    margin: -2.25rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

body.home-pl .stat-pl {
    background: #ffffff;
    border-radius: var(--pl-radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--pl-shadow);
    border: 1px solid rgba(13,33,55,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

body.home-pl .stat-pl .label {
    font-size: 0.8rem;
    color: #444444;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

body.home-pl .stat-pl .number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a1628;
    line-height: 1.2;
}

/* ---- Secciones genéricas ---- */
body.home-pl .section-pl {
    max-width: 100%;
    margin: 0 auto;
    padding: var(--pl-section-padding);
}
body.home-pl .section-pl:nth-of-type(odd),
body.home-pl .section-pl:nth-of-type(even) {
    background: #ffffff;
}

body.home-pl .section-pl h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--pl-color-dark);
    text-align: center;
    margin: 0 auto 1.75rem;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 0.75rem;
}
body.home-pl .section-pl h2:not(.faq-pl-heading)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--pl-color-gold);
    border-radius: 2px;
}

body.home-pl .section-intro {
    text-align: center;
    color: var(--pl-color-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.65;
    font-size: 1rem;
}

/* ---- Tabla de posiciones (vista torneo) ---- */
body.home-pl .section-pl.section-pl--torneo {
    /*background: #020617;*/
    color: #e5e7eb;
}

body.home-pl .section-pl.section-pl--torneo h2 {
    color: #f9fafb;
}

body.home-pl .tabla-pos-wrapper-pl {
    max-width: 1040px;
    margin: 1.5rem auto 0;
    border-radius: 14px;
    background: #020617;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    padding: 0.75rem 1rem 1rem;
}

body.home-pl .tabla-pos-scroll-pl {
    overflow-x: auto;
}

body.home-pl .tabla-pos-wrapper-header-pl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0 1rem;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 0.5rem;
}

body.home-pl .tabla-pos-wrapper-header-pl h3 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #e5e7eb;
}

body.home-pl .tabla-pos-header-actions-pl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Admin: sin barras de ranking (todas grises) */
body.home-pl .tabla-pos-pl--admin tbody tr {
    box-shadow: inset 3px 0 0 #4b5563;
}

body.home-pl .tabla-pos-pl--admin tbody tr:nth-child(1),
body.home-pl .tabla-pos-pl--admin tbody tr:nth-child(2),
body.home-pl .tabla-pos-pl--admin tbody tr:nth-child(3),
body.home-pl .tabla-pos-pl--admin tbody tr:nth-child(4) {
    box-shadow: inset 3px 0 0 #4b5563;
}

body.home-pl .tabla-pos-pl {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    color: #e5e7eb;
}

body.home-pl .tabla-pos-pl thead th {
    background: #020617;
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #1f2937;
}

body.home-pl .tabla-pos-pl tbody tr {
    background: #020617;
    transition: background 0.15s ease;
    box-shadow: inset 3px 0 0 #4b5563;
}

body.home-pl .tabla-pos-pl tbody tr:nth-child(odd) {
    background: #030712;
}

body.home-pl .tabla-pos-pl tbody tr:hover {
    background: #0b1220;
}

body.home-pl .tabla-pos-pl th,
body.home-pl .tabla-pos-pl td {
    padding: 0.6rem 0.55rem;
    font-size: 0.85rem;
    text-align: center;
    border-bottom: 1px solid #111827;
}

body.home-pl .tabla-pos-pl th.catombe,
body.home-pl .tabla-pos-pl td.catombe {
    text-align: left;
    padding-left: 0.9rem;
}

body.home-pl .tabla-pos-pl td.jopo {
    font-weight: 700;
    color: #facc15;
}

body.home-pl .tabla-pos-pl td img {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: contain;
    background: #020617;
    box-shadow: 0 0 0 1px rgba(148,163,184,0.5);
}

body.home-pl .tabla-pos-pl td a,
body.home-pl .tabla-pos-pl thead th a {
    color: #ffffff;
    text-decoration: none;
}
body.home-pl .tabla-pos-pl td a:hover,
body.home-pl .tabla-pos-pl thead th a:hover {
    color: #e5e7eb;
}
body.home-pl .tabla-pos-pl thead th .fa-eye,
body.home-pl .tabla-pos-pl td a .fa-eye,
body.home-pl .tabla-pos-pl td a .fa-trash {
    color: #ffffff;
}

body.home-pl .jugador-foto-popup {
    cursor: pointer;
    transition: opacity 0.2s;
}
body.home-pl .jugador-foto-popup:hover {
    opacity: 0.85;
}

/* Popup foto jugador */
.foto-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.foto-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}
.foto-popup-overlay .foto-popup-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.foto-popup-overlay .foto-popup-nombre {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    margin-top: 12px;
}
.foto-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
}
.foto-popup-close:hover {
    opacity: 0.8;
}

/* barra de color a la izquierda para las primeras posiciones */
body.home-pl .tabla-pos-pl tbody tr:nth-child(1) {
    box-shadow: inset 3px 0 0 #facc15;
}

body.home-pl .tabla-pos-pl tbody tr:nth-child(2),
body.home-pl .tabla-pos-pl tbody tr:nth-child(3),
body.home-pl .tabla-pos-pl tbody tr:nth-child(4) {
    box-shadow: inset 3px 0 0 #22c55e;
}

body.home-pl .tabla-pos-empty-pl {
    padding: 1.75rem 1rem;
    text-align: center;
    color: #e5e7eb;
}

/* Pares de tablas (detalle de partido) */
body.home-pl .tabla-pos-pair-pl {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 0.75rem;
}

body.home-pl .tabla-pos-half-pl {
    flex: 1 1 50%;
    min-width: 0;
}

body.home-pl .tabla-pos-half-pl .tabla-pos-pl {
    min-width: 0;
}

/* ---- Últimas noticias (cards) ---- */
body.home-pl .noticias-grid-pl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

body.home-pl .noticia-card-pl {
    background: #fff;
    border-radius: var(--pl-radius);
    overflow: hidden;
    box-shadow: var(--pl-shadow);
    transition: box-shadow 0.25s, transform 0.2s;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

body.home-pl .noticia-card-pl:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

body.home-pl .noticia-card-pl .noticia-img-pl {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e9ecef;
}

body.home-pl .noticia-card-pl .noticia-body-pl {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.home-pl .noticia-card-pl .noticia-date-pl {
    font-size: 0.8rem;
    color: #555555;
    margin-bottom: 0.5rem;
}

body.home-pl .noticia-card-pl h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

body.home-pl .noticia-card-pl p {
    font-size: 0.9rem;
    color: #333333;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

body.home-pl .noticia-card-pl .leer-mas-pl {
    color: #0a1628;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

body.home-pl .noticia-card-pl .leer-mas-pl:hover {
    text-decoration: underline;
}

/* ---- Equipos: carrusel horizontal (banda gris + flechas) ---- */
body.home-pl .equipos-slider-section {
    margin: 0;
    padding: 0;
}
body.home-pl .equipos-slider-section .equipos-slider-band {
    background: #f8f9fa;
    padding: 1rem 0;
    margin: 0;
}
body.home-pl .equipos-slider-section .container3,
body.home-pl .equipos-slider-section .client-area {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}
body.home-pl .equipos-slider-section .equipos-slider-pl,
body.home-pl .equipos-slider-section .logo-area.slider {
    background: transparent;
    padding: 0.5rem 2.5rem;
}
/* Flechas del slider de equipos (dorado); ocultar las por defecto blancas de Slick */
body.home-pl .equipos-slider-section .slick-prev::before,
body.home-pl .equipos-slider-section .slick-next::before {
    content: none !important;
}
body.home-pl .equipos-slider-section .equipos-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent !important;
    color: #c9a227;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, opacity 0.2s;
}
body.home-pl .equipos-slider-section .equipos-slider-arrow:hover {
    color: #a8861f;
    opacity: 0.9;
}
body.home-pl .equipos-slider-section .slick-prev.equipos-slider-arrow {
    left: 0;
}
body.home-pl .equipos-slider-section .slick-next.equipos-slider-arrow {
    right: 0;
}
/* Forzar una sola fila horizontal (Slick) */
body.home-pl .section-pl .logo-area.slick-slider {
    display: block;
    overflow: hidden;
}
body.home-pl .section-pl .logo-area .slick-list {
    overflow: hidden;
}
body.home-pl .section-pl .logo-area .slick-track {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
}
body.home-pl .section-pl .logo-area .slick-slide {
    float: none;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Solo se ve el escudo, sin tarjeta de color */
body.home-pl .equipos-slider-pl .slide,
body.home-pl .section-pl .logo-area .slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100px;
    height: 100px;
    padding: 4px;
    margin: 0 4px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
/* Slider equipos: escudos más juntos */
body.home-pl .equipos-slider-section .slide {
    margin: 0 2px;
    padding: 4px 2px;
}
body.home-pl .equipos-slider-pl .slide:hover,
body.home-pl .section-pl .logo-area .slide:hover {
    background: transparent;
    box-shadow: none;
    border: none;
}
body.home-pl .equipos-slider-pl .slide img,
body.home-pl .section-pl .logo-area .slide img {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* ---- Resultados: tarjetas grandes que llenan el panel ---- */
body.home-pl .carrusel-tablas {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}
body.home-pl .carrusel-tablas .carrusel {
    width: 100%;
}
body.home-pl .carrusel-tablas .partido-card-container {
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}
body.home-pl .partido-card {
    background: #ffffff !important;
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
    border: 1px solid #e8eaed;
    width: 100% !important;
    min-height: 160px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}
body.home-pl .partido-card .equipo-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
body.home-pl .partido-card .logo-equipo {
    width: 72px;
    height: 72px;
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto;
}
body.home-pl .partido-card .resultado,
body.home-pl .partido-card p.resultado {
    color: #0a1628;
    font-weight: 700;
    font-size: 1.6rem;
    flex-shrink: 0;
    margin: 0;
}
body.home-pl .carrusel-noticias {
    margin-bottom: 2rem;
}

/* Mensaje cuando no hay resultados */
body.home-pl .carrusel-tablas > p {
    text-align: center;
    color: var(--pl-color-muted);
    padding: 2rem;
    font-size: 1rem;
}

/* Flechas del carrusel de resultados */
body.home-pl .carrusel-tablas .slick-prev,
body.home-pl .carrusel-tablas .slick-next {
    width: 40px;
    height: 40px;
    z-index: 2;
    background: var(--pl-color-blue);
    border-radius: 50%;
    color: #fff;
    transition: background 0.2s;
}
body.home-pl .carrusel-tablas .slick-prev:hover,
body.home-pl .carrusel-tablas .slick-next:hover {
    background: var(--pl-color-gold);
}
body.home-pl .carrusel-tablas .slick-prev { left: -8px; }
body.home-pl .carrusel-tablas .slick-next { right: -8px; }

/* ---- Canal de YouTube: fondo tipo video, medio oscuro ---- */
body.home-pl .youtube-pl {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a1628;
}

body.home-pl .youtube-pl-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
body.home-pl .youtube-pl-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    border: none;
}

body.home-pl .youtube-pl-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,22,40,0.72) 0%, rgba(13,33,55,0.78) 50%, rgba(10,22,40,0.82) 100%);
    pointer-events: none;
}

body.home-pl .youtube-pl-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 640px;
}

body.home-pl .youtube-pl-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--pl-color-gold);
    margin: 0 0 0.35rem 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

body.home-pl .youtube-pl-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 600;
    color: var(--pl-color-gold);
    margin: 0 0 1rem 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

body.home-pl .youtube-pl-desc {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

body.home-pl .youtube-pl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pl-color-gold);
    color: #0a1628;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
body.home-pl .youtube-pl-btn:hover {
    background: #e5b84d;
    transform: scale(1.03);
}
body.home-pl .youtube-pl-btn i {
    font-size: 1.4rem;
}

/* ---- Complejo ARACHAN (hardcodeado, sin BD) ---- */
body.home-pl .complejo-arachan-pl {
    background: #f8f9fa !important;
}
body.home-pl .complejo-arachan-card {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--pl-radius);
    overflow: hidden;
    box-shadow: var(--pl-shadow);
    border: 1px solid #e8eaed;
    background: #fff;
}
body.home-pl .complejo-arachan-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}
body.home-pl .complejo-arachan-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.home-pl .complejo-arachan-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
body.home-pl .complejo-arachan-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pl-color-dark);
    margin: 0 0 0.75rem 0;
}
body.home-pl .complejo-arachan-info p {
    color: var(--pl-color-muted);
    margin: 0;
    line-height: 1.6;
}
@media (max-width: 700px) {
    body.home-pl .complejo-arachan-card {
        grid-template-columns: 1fr;
    }
    body.home-pl .complejo-arachan-img {
        aspect-ratio: 16/10;
    }
}

/* ---- Sponsors (grid) ---- */
body.home-pl .sponsors-pl {
    background: var(--pl-color-blue);
}
body.home-pl .sponsors-pl h2 {
    margin-bottom: 2rem;
    color: #0a1628;
}
body.home-pl .sponsors-pl h2::after {
    background: var(--pl-color-gold);
}
body.home-pl .sponsors-grid-pl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}
body.home-pl .sponsor-item-pl {
    background: #0a1628;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: background 0.2s, transform 0.2s;
}
body.home-pl .sponsor-item-pl:hover {
    background: var(--pl-color-gold);
    transform: translateY(-2px);
}
body.home-pl .sponsor-item-pl img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    /*filter: brightness(0) invert(1);*/
    opacity: 0.9;
}
body.home-pl .sponsor-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pl-color-dark);
    line-height: 1.3;
}

body.home-pl .liga-tabla {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #e2e6ea;
}
body.home-pl .liga-tabla .nombre-liga {
    color: #0a1628;
    font-weight: 700;
}

/* Torneos y Complejos: grid ordenado */
body.home-pl .section-pl .container2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    width: 100%;
}
body.home-pl .tarjeta2 {
    background: #ffffff !important;
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
    border: 1px solid #e8eaed;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
body.home-pl .tarjeta2:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
body.home-pl .tarjeta2 .name {
    color: var(--pl-color-dark);
    font-weight: 600;
}

/* Torneos: cards horizontales desplegables */
body.home-pl .section-pl .container2.container2-torneos {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
body.home-pl .torneo-card {
    background: #ffffff;
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
    border: 1px solid #e8eaed;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
body.home-pl .torneo-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
body.home-pl .torneo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    min-height: 52px;
}
body.home-pl .torneo-card-link .torneo-card-header {
    text-decoration: none;
    color: inherit;
}
body.home-pl .torneo-card-nombre {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--pl-color-dark);
}
body.home-pl .torneo-card-ano {
    font-weight: 400;
    color: var(--pl-color-muted);
    font-size: 0.9em;
}
body.home-pl .torneo-card-icon {
    color: var(--pl-color-muted);
    font-size: 0.85rem;
    transition: transform 0.25s;
}
body.home-pl .torneo-card--open .torneo-card-icon {
    transform: rotate(180deg);
}
body.home-pl .torneo-card-series {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
body.home-pl .torneo-card--open .torneo-card-series {
    max-height: 400px;
}
body.home-pl .torneo-series-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e8eaed;
}
body.home-pl .torneo-series-list li {
    border-bottom: 1px solid #f0f0f0;
}
body.home-pl .torneo-series-list li:last-child {
    border-bottom: none;
}
body.home-pl .torneo-series-list a {
    display: block;
    padding: 0.85rem 1.25rem;
    color: var(--pl-color-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}
body.home-pl .torneo-series-list a:hover {
    background: #f5f5f5;
    color: var(--pl-color-blue);
}

/* ---- Contacto: cards y formulario (colores oscuros como tablas) ---- */
body.home-pl .section-pl--contacto .contacto-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--pl-color-text);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
body.home-pl .section-pl--contacto .contacto-intro a {
    color: var(--pl-color-blue);
    font-weight: 600;
}
body.home-pl .contacto-cards-pl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
}
body.home-pl .contacto-card-pl {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #020617;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    border: 1px solid #1f2937;
    color: #e5e7eb;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
body.home-pl .contacto-card-pl:hover {
    background: #0b1220;
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.8);
}
body.home-pl .contacto-card-pl-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.home-pl .contacto-card-pl-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
body.home-pl .contacto-card-pl h3 {
    font-family: Poppins, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f9fafb;
    margin: 0 0 0.5rem;
}
body.home-pl .contacto-card-pl p {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0 0 1rem;
    line-height: 1.4;
}
body.home-pl .contacto-card-pl-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #facc15;
}
body.home-pl .contacto-form-wrapper-pl {
    max-width: 560px;
    margin: 0 auto;
    scroll-margin-top: 80px;
}
body.home-pl .contacto-form-pl {
    background: #020617;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    padding: 1.5rem;
    border: 1px solid #1f2937;
}
body.home-pl .contacto-form-pl h3 {
    font-family: Poppins, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f9fafb;
    margin: 0 0 1.25rem;
    text-align: center;
}
body.home-pl .contacto-form-pl-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
body.home-pl .contacto-form-pl-field--full {
    grid-column: 1 / -1;
}
body.home-pl .contacto-form-pl-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}
body.home-pl .contacto-form-pl-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #030712;
    border: 1px solid #1f2937;
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
body.home-pl .contacto-form-pl-input::placeholder {
    color: #6b7280;
}
body.home-pl .contacto-form-pl-input:focus {
    outline: none;
    border-color: #4b5563;
}
body.home-pl .contacto-form-pl-textarea {
    min-height: 120px;
    resize: vertical;
}
body.home-pl .contacto-form-pl-submit {
    padding: 0.85rem 1.5rem;
    background: #0a1628;
    border: 1px solid #1f2937;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
body.home-pl .contacto-form-pl-submit:hover {
    background: #0b1220;
}

/* Contacto responsive */
@media (max-width: 768px) {
    body.home-pl .contacto-cards-pl {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    body.home-pl .contacto-form-pl-fields {
        grid-template-columns: 1fr;
    }
    body.home-pl .contacto-form-pl {
        padding: 1.25rem;
    }
}

/* ---- Preguntas Frecuentes (acordeón) ---- */
body.home-pl .faq-pl {
    background: #f8f8f8 !important;
}
body.home-pl .faq-pl-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: start;
}
body.home-pl .faq-pl-title {
    text-align: center;
    position: sticky;
    top: 100px;
}
body.home-pl .faq-pl-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0e2a47;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    text-align: center;
}
body.home-pl .faq-pl-line {
    display: block;
    width: 50px;
    height: 4px;
    background: #d4a75a;
    border-radius: 2px;
    margin: 0 auto;
}
body.home-pl .faq-pl-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}
body.home-pl .faq-pl-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}
body.home-pl .faq-pl-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    border: none;
    background: #ffffff;
    color: #0e2a47;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}
body.home-pl .faq-pl-item--open .faq-pl-question {
    background: #d4a75a;
    color: #0e2a47;
}
body.home-pl .faq-pl-question:hover {
    background: #f5f5f5;
}
body.home-pl .faq-pl-item--open .faq-pl-question:hover {
    background: #d4a75a;
}
body.home-pl .faq-pl-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4a75a;
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
}
body.home-pl .faq-pl-item--open .faq-pl-icon {
    background: #0e2a47;
    color: #fff;
}
body.home-pl .faq-pl-question span:nth-child(2) {
    flex: 1;
}
body.home-pl .faq-pl-plus {
    flex-shrink: 0;
    color: #d4a75a;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
}
body.home-pl .faq-pl-item--open .faq-pl-plus {
    color: #0e2a47;
    transform: rotate(45deg);
}
body.home-pl .faq-pl-answer {
    padding: 0 1.25rem 1.25rem;
}
body.home-pl .faq-pl-answer ul,
body.home-pl .faq-pl-answer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
}
body.home-pl .faq-pl-answer ul {
    padding-left: 1.25rem;
}
body.home-pl .faq-pl-answer li {
    margin-bottom: 0.35rem;
}
@media (max-width: 768px) {
    body.home-pl .faq-pl-inner {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    body.home-pl .faq-pl-title {
        position: static;
    }
    body.home-pl .faq-pl-heading {
        font-size: 1.75rem;
    }
}

/* ---- Footer ---- */
body.home-pl .footer-pl {
    background: var(--pl-color-blue);
    color: #fff;
    margin-top: 4rem;
}

body.home-pl .footer-pl-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
}

body.home-pl .footer-pl h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffd700;
}

body.home-pl .footer-pl p,
body.home-pl .footer-pl a {
    color: #e8ecf0;
    font-size: 0.95rem;
    line-height: 1.6;
}

body.home-pl .footer-pl a:hover {
    color: #ffd700;
}

body.home-pl .footer-pl-inner > div:last-child {
    text-align: center;
}
body.home-pl .footer-social-pl {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

body.home-pl .footer-social-pl img {
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

body.home-pl .footer-social-pl a:hover img {
    opacity: 1;
}

body.home-pl .footer-bottom-pl {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

body.home-pl .footer-bottom-pl a {
    color: rgba(255,255,255,0.9);
}

/* Ocultar elementos antiguos de la portada que ya no usamos en el nuevo layout */
body.home-pl .containercolor1 .galeria2 .linea {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Header móvil: fondo semi-transparente para legibilidad al hacer scroll */
    body.home-pl .header-pl {
        background: rgba(13,33,55,0.92);
        box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    }
    body.home-pl .header-pl-inner {
        flex-wrap: nowrap;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }
    body.home-pl .header-pl-toggle {
        display: block;
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
    body.home-pl .header-pl .user-pl {
        font-size: 0.8rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body.home-pl .header-pl .user-pl a {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.home-pl .header-pl .nav-pl#nav {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        background: var(--pl-color-blue);
        z-index: 1001;
        padding: 4rem 1rem 1rem;
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    }
    body.home-pl .header-pl .nav-pl#nav ul {
        flex-direction: column;
        gap: 0;
    }
    body.home-pl .header-pl .nav-pl#nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        min-height: 44px;
        line-height: 2;
    }
    body.home-pl .section-pl {
        padding: 2rem 1rem;
    }
    body.home-pl .section-pl h2 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }
    /* Hero móvil */
    body.home-pl .hero-pl {
        margin-top: -60px;
        padding: calc(60px + 2.5rem) 1rem 3.5rem;
    }
    body.home-pl .hero-pl h1 {
        font-size: 1.75rem;
    }
    body.home-pl .hero-pl .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    body.home-pl .hero-ctas {
        gap: 0.75rem;
    }
    body.home-pl .hero-cta-card {
        padding: 1.25rem;
    }
    /* Stats móvil */
    body.home-pl .stats-pl {
        grid-template-columns: 1fr;
        margin-top: 1rem;
        padding: 0 1rem;
        gap: 0.75rem;
        margin-top: -1.5rem;
    }
    body.home-pl .stat-pl {
        padding: 1.25rem 1rem;
    }
    body.home-pl .stat-pl .number {
        font-size: 2rem;
    }
    /* Slider equipos móvil */
    body.home-pl .equipos-slider-section .equipos-slider-pl,
    body.home-pl .equipos-slider-section .logo-area.slider {
        padding: 0.5rem 2rem;
    }
    body.home-pl .equipos-slider-section .equipos-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    body.home-pl .equipos-slider-section .slide img,
    body.home-pl .equipos-slider-pl .slide img {
        width: 70px;
        height: 70px;
        max-width: 70px;
        max-height: 70px;
    }
    body.home-pl .equipos-slider-section .slide {
        min-height: 80px;
        height: 80px;
    }
    body.home-pl .carrusel-tablas {
        padding: 0 0.5rem;
    }
    /* Sponsors móvil */
    body.home-pl .sponsors-grid-pl {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    body.home-pl .sponsor-item-pl {
        min-height: 80px;
        padding: 1rem;
    }
    body.home-pl .partido-card {
        min-height: 140px;
        padding: 1rem;
    }
    body.home-pl .partido-card .logo-equipo {
        width: 56px;
        height: 56px;
    }
    body.home-pl .noticias-grid-pl {
        grid-template-columns: 1fr;
    }
    body.home-pl .noticia-card-pl {
        min-height: 0;
    }
    body.home-pl .section-pl .container2 {
        grid-template-columns: 1fr;
    }
    body.home-pl .footer-pl {
        margin-top: 3rem;
    }
    body.home-pl .footer-pl-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1rem;
    }
    body.home-pl .footer-social-pl {
        justify-content: center;
    }
    /* YouTube móvil */
    body.home-pl .youtube-pl {
        min-height: 320px;
    }
    body.home-pl .youtube-pl-content {
        padding: 2rem 1rem;
    }
    body.home-pl .youtube-pl-title {
        font-size: 1.5rem;
    }
    body.home-pl .youtube-pl-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    /* FAQ móvil */
    body.home-pl .faq-pl-title {
        position: static;
    }
    body.home-pl .faq-pl-question {
        padding: 1rem 0.75rem;
        font-size: 0.95rem;
    }
    body.home-pl .faq-pl-question span:nth-child(2) {
        flex: 1;
        text-align: left;
    }
}

@media (max-width: 600px) {
    body.home-pl .header-pl .logo-pl img {
        height: 38px;
    }
    body.home-pl .header-spacer {
        height: 60px;
    }
    body.home-pl .hero-pl {
        margin-top: -60px;
        padding: calc(60px + 2rem) 0.75rem 3rem;
    }
    body.home-pl .hero-pl h1 {
        font-size: 1.5rem;
    }
    body.home-pl .hero-ctas {
        grid-template-columns: 1fr;
    }
    body.home-pl .torneos-destacados-pl {
        padding: 1.25rem 0.75rem 1.5rem;
    }
    body.home-pl .equipos-slider-section .equipos-slider-pl,
    body.home-pl .equipos-slider-section .logo-area.slider {
        padding: 0.5rem 1.75rem;
    }
    body.home-pl .equipos-slider-section .equipos-slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    body.home-pl .equipos-slider-section .slide img,
    body.home-pl .equipos-slider-pl .slide img {
        width: 60px;
        height: 60px;
        max-width: 60px;
        max-height: 60px;
    }
    body.home-pl .equipos-slider-section .slide {
        min-height: 70px;
        height: 70px;
    }
    body.home-pl .sponsors-grid-pl {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    body.home-pl .header-pl .logo-pl img {
        height: 34px;
    }
    body.home-pl .header-pl .user-pl {
        max-width: 90px;
        font-size: 0.75rem;
    }
    body.home-pl .header-pl .user-pl i {
        font-size: 0.9rem;
    }
    body.home-pl .stat-pl .number {
        font-size: 1.75rem;
    }
    body.home-pl .tour-card-pl-image {
        height: 520px;
    }
    body.home-pl .tour-card-pl-title {
        font-size: 1rem;
    }
    body.home-pl .section-pl {
        padding: 1.5rem 0.75rem;
    }
    body.home-pl .complejo-arachan-info {
        padding: 1.5rem;
    }
    body.home-pl .complejo-arachan-info h3 {
        font-size: 1.4rem;
    }
}

/* ---- Panel admin: dashboard, tablas, formularios, paginación ---- */
body.home-pl .admin-dashboard-pl {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

body.home-pl .admin-dashboard-pl-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    font-weight: 600;
}

body.home-pl .admin-dashboard-pl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

body.home-pl .admin-dashboard-pl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

body.home-pl .admin-dashboard-pl-card:hover {
    background: #f1f5f9;
    border-color: #c9a227;
    transform: translateY(-2px);
}

body.home-pl .admin-dashboard-pl-card-icon {
    font-size: 1.5rem;
    color: #64748b;
    transition: color 0.2s;
}

body.home-pl .admin-dashboard-pl-card:hover .admin-dashboard-pl-card-icon {
    color: #c9a227;
}

body.home-pl .admin-form-pl-foto-actual {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

body.home-pl .admin-dashboard-pl-card--disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
}

body.home-pl .admin-content-pl {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

body.home-pl .admin-content-pl h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    color: #1a1a1a;
    margin: 0 0 1rem;
    font-weight: 600;
}   

body.home-pl .tabla-pos-wrapper-pl + h2 {
    margin-top: 3.5rem;
}

body.home-pl .admin-search-pl {
    position: relative;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

body.home-pl .admin-search-pl input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
}

body.home-pl .admin-search-pl input:focus {
    outline: none;
    border-color: #c9a227;
}

body.home-pl .admin-search-pl i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}

body.home-pl .tabla-pos-pl td .admin-actions-pl {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

body.home-pl .admin-btn-foto-pl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    background: rgba(13, 33, 55, 0.8);
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

body.home-pl .admin-btn-foto-pl:hover {
    color: #ffd700;
    background: rgba(13, 33, 55, 1);
    border-color: #ffd700;
}

body.home-pl .sancion-form-eliminar-pl {
    display: inline-block;
}

body.home-pl .admin-btn-eliminar-pl {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(185, 28, 28, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

body.home-pl .admin-btn-eliminar-pl:hover {
    background: rgba(185, 28, 28, 0.5);
    border-color: #ef4444;
    color: #fef2f2;
}

body.home-pl .admin-btn-eliminar-pl i {
    font-size: 0.9rem;
}

body.home-pl .admin-pagination-pl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

body.home-pl .tabla-pos-wrapper-pl .admin-pagination-pl {
    background: #020617;
    border-top: 1px solid #1f2937;
}

body.home-pl .admin-pagination-info {
    font-size: 0.9rem;
    color: #64748b;
}

body.home-pl .tabla-pos-wrapper-pl .admin-pagination-info {
    color: #9ca3af;
}

body.home-pl .admin-pagination-btns {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

body.home-pl .admin-pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    color: #475569;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

body.home-pl .tabla-pos-wrapper-pl .admin-pagination-btn {
    border-color: #1f2937;
    background: #030712;
    color: #e5e7eb;
}

body.home-pl .admin-pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #c9a227;
    color: #0d2137;
}

body.home-pl .tabla-pos-wrapper-pl .admin-pagination-btn:hover:not(:disabled) {
    background: #0b1220;
    border-color: #c9a227;
    color: #facc15;
}

body.home-pl .admin-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.home-pl .admin-pagination-btn--active {
    background: #0d2137;
    border-color: #0d2137;
    color: #fff;
}

body.home-pl .admin-pagination-ellipsis {
    padding: 0 0.25rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

body.home-pl .admin-card-pl {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 2rem;
}

body.home-pl .admin-card-pl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

body.home-pl .admin-card-pl-header h3 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #1a1a1a;
}

body.home-pl .admin-btn-add-pl {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #0d2137;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

body.home-pl .admin-btn-add-pl:hover {
    background: #0a1628;
    color: #ffd700;
}

body.home-pl .admin-btn-ingresar-pl {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: #0d2137;
    color: #ffd700;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

body.home-pl .admin-btn-ingresar-pl:hover {
    background: #0a1628;
    color: #fff;
}

body.home-pl .tabla-formulario-pl-row {
    cursor: pointer;
    transition: background 0.15s;
}

body.home-pl .tabla-formulario-pl-row:hover {
    background: rgba(13, 33, 55, 0.5) !important;
}

body.home-pl .tabla-formulario-pl-row:focus {
    outline: 1px solid #4b5563;
    outline-offset: -1px;
}

body.home-pl .admin-msg-pl {
    max-width: 560px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

body.home-pl .admin-msg-pl--success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

body.home-pl .admin-msg-pl--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

body.home-pl .admin-form-pl {
    max-width: 560px;
    margin: 0 auto;
    background: #020617;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

body.home-pl .admin-form-pl h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 1.5rem;
}

body.home-pl .admin-form-pl-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

body.home-pl .admin-form-pl-field--full {
    grid-column: 1 / -1;
}

body.home-pl .admin-form-pl-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.35rem;
}

body.home-pl .admin-form-pl-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #030712;
    border: 1px solid #1f2937;
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 0.95rem;
}

body.home-pl .admin-form-pl-input::placeholder {
    color: #6b7280;
}

body.home-pl .admin-form-pl-input:focus {
    outline: none;
    border-color: #4b5563;
}

body.home-pl .admin-form-pl-input[type="file"] {
    padding: 0.5rem;
}

body.home-pl select.admin-form-pl-input {
    cursor: pointer;
}

body.home-pl .admin-form-pl-submit {
    grid-column: 1 / -1;
    padding: 0.85rem 1.5rem;
    background: #0d2137;
    border: 1px solid #1f2937;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

body.home-pl .admin-form-pl-submit:hover {
    background: #0a1628;
    color: #ffd700;
}

@media (max-width: 768px) {
    body.home-pl .admin-dashboard-pl {
        padding: 1.5rem 1rem;
    }
    body.home-pl .admin-dashboard-pl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    body.home-pl .admin-form-pl-fields {
        grid-template-columns: 1fr;
    }
    body.home-pl .admin-form-pl {
        padding: 1.5rem;
    }
}

/* Pagos jugadores - combo buscable */
body.home-pl .combo-search-pl {
    position: relative;
}

body.home-pl .combo-search-pl .admin-form-pl-input {
    width: 100%;
}

body.home-pl .combo-search-pl-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #020617;
    border: 1px solid #1f2937;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

body.home-pl .combo-search-pl-dropdown--open {
    display: block;
}

body.home-pl .combo-search-pl-dropdown li {
    padding: 0.65rem 1rem;
    cursor: pointer;
    color: #e5e7eb;
    font-size: 0.95rem;
    transition: background 0.15s;
}

body.home-pl .combo-search-pl-dropdown li:hover,
body.home-pl .combo-search-pl-dropdown li:focus {
    background: #1f2937;
    color: #fff;
    outline: none;
}

body.home-pl .combo-search-pl-no-results {
    color: #6b7280;
    cursor: default;
    font-style: italic;
}

body.home-pl .combo-search-pl-no-results:hover {
    background: transparent;
}

/* Pagos jugadores */
body.home-pl .admin-form-pl--pagos-select {
    margin-bottom: 1.5rem;
}

body.home-pl .pago-status-pl {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    min-width: 70px;
}

body.home-pl .pago-pagado-pl {
    background: rgba(34, 197, 94, 0.25);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.5);
    font-weight: 700;
}

body.home-pl .pago-pendiente-pl {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
    font-weight: 700;
}

body.home-pl .admin-no-jugadores-pl {
    text-align: center;
    padding: 2rem;
    color: #000000;
    background: rgba(31, 41, 55, 0.5);
    border-radius: 10px;
    border: 1px solid #1f2937;
}

body.home-pl .admin-no-jugadores-pl p {
    margin: 0;
    font-size: 0.95rem;
}

body.home-pl .admin-no-jugadores-pl i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

/* Formulario B - jugadores no aceptan nro camiseta (rojo) */
body.home-pl .jugador-no-aceptado-pl {
    color: #ef4444 !important;
    font-weight: 600;
}

body.home-pl .tabla-pos-wrapper-header-pl.formulariob-header-pl {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
}

body.home-pl .formulariob-leyenda-pl {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

body.home-pl .formulariob-leyenda-pl .jugador-no-aceptado-pl {
    color: #ef4444;
}

body.home-pl .formulariob-input-camiseta {
    max-width: 80px;
    text-align: center;
}

body.home-pl .formulariob-submit-pl {
    margin-top: 1.5rem;
}

/* Formulario B - escritorio: apellido solo en su columna */
body.home-pl .formulariob-apellido-en-nombre-pl {
    display: none;
}

body.home-pl .formulariob-th-jugador-pl {
    display: none;
}

/* Formulario B - móvil: lista densa, 2 columnas (Nº + jugador), scroll vertical */
@media (max-width: 768px) {
    body.home-pl .formulariob-form-pl {
        width: 350px;
        /*max-width: 100%;*/
        box-sizing: border-box;
    }

    body.home-pl .formulariob-form-pl .tabla-pos-wrapper-pl {
        width: 350px;
        /*max-width: 100%;¨*/
        margin: 0.5rem 0 0;
        padding: 0.35rem 0.35rem 0.5rem;
        box-sizing: border-box;
    }

    body.home-pl .formulariob-form-pl .tabla-pos-wrapper-header-pl.formulariob-header-pl {
        padding: 0.35rem 0 0.45rem;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    body.home-pl .formulariob-form-pl .tabla-pos-wrapper-header-pl.formulariob-header-pl h3 {
        font-size: 0.88rem;
        margin: 0;
    }

    body.home-pl .formulariob-form-pl .formulariob-leyenda-pl {
        font-size: 0.62rem;
        line-height: 1.3;
        margin: 0.35rem 0 0;
    }

    body.home-pl .formulariob-th-nombre-pl {
        display: none;
    }

    body.home-pl .formulariob-th-jugador-pl {
        display: inline;
    }

    body.home-pl .formulariob-apellido-en-nombre-pl {
        display: inline;
        font-weight: 500;
    }

    /* Altura útil: se ve el encabezado y se hace scroll en la lista */
    body.home-pl .formulariob-form-pl .formulariob-scroll-pl {
        max-height: calc(100vh - 11.5rem);
        max-height: min(62vh, calc(100dvh - 11.5rem));
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        border-radius: 8px;
        border: 1px solid #1f2937;
    }

    body.home-pl .tabla-pos-pl.tabla-formulariob-pl {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
        margin: 0;
    }

    body.home-pl .tabla-pos-pl.tabla-formulariob-pl thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #020617;
        box-shadow: 0 1px 0 #1f2937;
        font-size: 0.6rem;
        letter-spacing: 0.03em;
        padding: 0.28rem 0.2rem;
        line-height: 1.2;
    }

    body.home-pl .tabla-pos-pl.tabla-formulariob-pl tbody td {
        padding: 0.12rem 0.2rem;
        font-size: 0.72rem;
        line-height: 1.2;
        word-break: break-word;
        vertical-align: middle;
    }

    body.home-pl .tabla-pos-pl.tabla-formulariob-pl tbody tr {
        box-shadow: inset 2px 0 0 #4b5563;
    }

    body.home-pl .tabla-pos-pl.tabla-formulariob-pl th:first-child,
    body.home-pl .tabla-pos-pl.tabla-formulariob-pl td:first-child {
        width: 3rem;
        max-width: 3rem;
    }

    body.home-pl .tabla-pos-pl.tabla-formulariob-pl .formulariob-col-foto-pl,
    body.home-pl .tabla-pos-pl.tabla-formulariob-pl .formulariob-col-segap-pl,
    body.home-pl .tabla-pos-pl.tabla-formulariob-pl .formulariob-col-apellido-pl {
        display: none;
    }

    body.home-pl .tabla-pos-pl.tabla-formulariob-pl td img {
        width: 22px;
        height: 22px;
    }

    /* Anular padding grande de .admin-form-pl-input solo en camiseta (móvil) */
    body.home-pl .formulariob-form-pl input.formulariob-input-camiseta.admin-form-pl-input {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0.2rem 0.15rem;
        font-size: 16px;
        line-height: 1.15;
        border-radius: 6px;
        box-sizing: border-box;
    }

    body.home-pl .formulariob-form-pl .formulariob-submit-pl {
        width: 100%;
        max-width: 280px;
        margin: 0.75rem auto 0;
        display: block;
        padding: 0.5rem 1rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    body.home-pl .formulariob-form-pl .formulariob-scroll-pl {
        max-height: calc(100vh - 10.5rem);
        max-height: min(58vh, calc(100dvh - 10.5rem));
    }

    body.home-pl .tabla-pos-pl.tabla-formulariob-pl tbody td {
        font-size: 0.68rem;
        padding: 0.1rem 0.15rem;
    }

    body.home-pl .tabla-pos-pl.tabla-formulariob-pl th:first-child,
    body.home-pl .tabla-pos-pl.tabla-formulariob-pl td:first-child {
        width: 2.65rem;
        max-width: 2.65rem;
    }
}

/* general.php - mensaje de resultado */
body.home-pl .general-msg-pl {
    max-width: 520px;
    margin: 0 auto;
}

body.home-pl .admin-form-pl-msg.general-msg-pl {
    margin: 0 0 1.5rem 0;
    padding: 2.5rem 2rem;
    background: #020617;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    border: 1px solid #1f2937;
    text-align: center;
}

body.home-pl .general-msg-pl-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
}

body.home-pl .general-msg-pl--success .general-msg-pl-icon {
    color: #22c55e;
}

body.home-pl .general-msg-pl--info .general-msg-pl-icon {
    color: #38A9FF;
}

body.home-pl .general-msg-pl-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1f2937;
    margin: 0 0 1.75rem;
}

body.home-pl .admin-form-pl-msg .general-msg-pl-text {
    color: #e5e7eb;
}

body.home-pl .general-msg-pl-form {
    margin: 0;
}

body.home-pl .general-msg-pl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin: 0;
}

/* Acciones fixture - botones Crear fixture / Crear partido */
body.home-pl .admin-acciones-fixture-pl {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #1f2937;
}

body.home-pl .admin-acciones-fixture-form-pl {
    margin: 0;
}

body.home-pl .admin-btn-fixture-pl {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

body.home-pl .admin-btn-fixture-pl i {
    font-size: 1rem;
}

body.home-pl .admin-btn-fixture-pl--primary {
    background: linear-gradient(135deg, #0d2137 0%, #0a1628 100%);
    color: #fff;
    border: 1px solid #1e3a5f;
}

body.home-pl .admin-btn-fixture-pl--primary:hover {
    background: linear-gradient(135deg, #0a1628 0%, #071018 100%);
    color: #ffd700;
    border-color: #2d4a6f;
}

body.home-pl .admin-btn-fixture-pl--secondary {
    background: rgba(30, 58, 95, 0.4);
    color: #93c5fd;
    border: 1px solid #1e3a5f;
}

body.home-pl .admin-btn-fixture-pl--secondary:hover {
    background: rgba(30, 58, 95, 0.7);
    color: #fff;
    border-color: #3b82f6;
}

/* Admin modal - crear partido manual */
body.home-pl .admin-modal-overlay-pl {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.home-pl .admin-modal-overlay-pl--open {
    display: flex;
    opacity: 1;
}

body.home-pl .admin-modal-pl {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border: 1px solid #1e3a5f;
    border-radius: 16px;
    padding: 0;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

body.home-pl .admin-modal-overlay-pl--open .admin-modal-pl {
    transform: scale(1);
}

body.home-pl .admin-modal-pl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(13, 33, 55, 0.6);
    border-bottom: 1px solid #1f2937;
}

body.home-pl .admin-modal-pl-header h3 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.home-pl .admin-modal-pl-header h3 i {
    color: #4b5563;
}

body.home-pl .admin-modal-pl-close {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    line-height: 1;
    transition: all 0.2s;
}

body.home-pl .admin-modal-pl-close:hover {
    color: #fff;
    background: #374151;
    border-color: #4b5563;
}

body.home-pl .admin-form-pl--modal {
    margin: 0;
    max-width: none;
    padding: 1.5rem;
    box-shadow: none;
    background: transparent;
}

body.home-pl .admin-form-pl--modal .admin-form-pl-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.home-pl .admin-form-pl--modal .admin-form-pl-submit {
    margin-top: 0.5rem;
}

/* Tutoriales - cards y popup de video */
body.home-pl .tutoriales-grid-pl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
body.home-pl .tutorial-card-pl {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    position: relative;
}
body.home-pl .tutorial-card-pl:hover {
    background: #f1f5f9;
    border-color: #c9a227;
    transform: translateY(-3px);
}
body.home-pl .tutorial-card-pl-icon {
    font-size: 2rem;
    color: #64748b;
    transition: color 0.2s;
}
body.home-pl .tutorial-card-pl:hover .tutorial-card-pl-icon {
    color: #c9a227;
}
body.home-pl .tutorial-card-pl-title {
    line-height: 1.3;
}
body.home-pl .tutorial-card-pl-play {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--pl-color-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0.9;
}
body.home-pl .tutorial-card-pl:hover .tutorial-card-pl-play {
    background: var(--pl-color-gold);
    color: #0a1628;
}
body.home-pl .tutorial-video-overlay-pl {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}
body.home-pl .tutorial-video-overlay-pl--open {
    display: flex;
    opacity: 1;
}
body.home-pl .tutorial-video-modal-pl {
    background: #0f172a;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
body.home-pl .tutorial-video-header-pl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(13, 33, 55, 0.8);
    border-bottom: 1px solid #1f2937;
}
body.home-pl .tutorial-video-header-pl h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}
body.home-pl .tutorial-video-close-pl {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}
body.home-pl .tutorial-video-close-pl:hover {
    color: #fff;
}
body.home-pl .tutorial-video-container-pl {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
body.home-pl .tutorial-video-container-pl iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Adcalendario - destino AJAX */
body.home-pl .adcalendario-destino-pl {
    min-height: 120px;
}

body.home-pl .adcalendario-placeholder-pl {
    margin-top: 0;
}

body.home-pl .adcalendario-loading-pl {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

body.home-pl .adcalendario-loading-pl i {
    margin-right: 0.5rem;
}

body.home-pl .adcalendario-tablas-pl {
    margin-bottom: 1.5rem;
}

body.home-pl .adcalendario-tablas-pl:last-child {
    margin-bottom: 0;
}

/* Finalizar partido */
body.home-pl .finalizar-form-pl {
    margin-bottom: 1.5rem;
}

body.home-pl .finalizar-input-gol {
    max-width: 80px;
    text-align: center;
}

body.home-pl .finalizar-acciones-pl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

body.home-pl .finalizar-tablas-pl {
    margin-bottom: 1.5rem;
}

body.home-pl .finalizar-dos-columnas-pl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    body.home-pl .finalizar-dos-columnas-pl {
        grid-template-columns: 1fr;
    }
}

/* Finalizar resultado - responsive móvil */
@media (max-width: 768px) {
    body.home-pl .finalizar-resultado-scroll-pl {
        overflow-x: visible;
    }
    body.home-pl .finalizar-resultado-tabla-pl {
        min-width: 0;
        width: 100%;
        display: block;
    }
    body.home-pl .finalizar-resultado-tabla-pl thead {
        display: none;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody tr {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.75rem;
        padding: 1rem;
        align-items: center;
        border: 1px solid #1f2937;
        border-radius: 8px;
        background: #020617;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody td {
        border: none;
        padding: 0.5rem;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody td:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody td:nth-child(2)::before {
        content: "Goles local";
        font-size: 0.7rem;
        color: #9ca3af;
        text-transform: uppercase;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody td:nth-child(3) {
        grid-column: 2;
        grid-row: 1 / 3;
        font-size: 1.25rem;
        color: #9ca3af;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody td:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody td:nth-child(4)::before {
        content: "Goles visitante";
        font-size: 0.7rem;
        color: #9ca3af;
        text-transform: uppercase;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody td:nth-child(5) {
        grid-column: 3;
        grid-row: 1;
        justify-self: center;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody td:nth-child(6) {
        grid-column: 1 / -1;
        grid-row: 3;
        padding-top: 0.75rem;
        border-top: 1px solid #1f2937;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody td:nth-child(6)::before {
        content: "Estado";
        display: block;
        font-size: 0.7rem;
        color: #9ca3af;
        text-transform: uppercase;
        margin-bottom: 0.35rem;
    }
    body.home-pl .finalizar-resultado-tabla-pl .finalizar-input-gol {
        max-width: 70px;
        margin: 0 auto;
    }
    body.home-pl .finalizar-resultado-tabla-pl td img {
        width: 36px;
        height: 36px;
    }
    body.home-pl .finalizar-resultado-tabla-pl tbody td:nth-child(6) select {
        width: 100%;
    }
}

/* Agregar estadísticas */
body.home-pl .agregar-estadisticas-form-pl {
    max-width: none;
}

body.home-pl .agregar-estadisticas-tabla-pl th,
body.home-pl .agregar-estadisticas-tabla-pl td {
    white-space: nowrap;
}

body.home-pl .agregar-estadisticas-camiseta-pl {
    max-width: 90px;
    text-align: center;
}

body.home-pl .admin-btn-estadistica-pl {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

body.home-pl .admin-btn-estadistica-pl--amarilla:hover {
    border-color: #facc15;
}

body.home-pl .admin-btn-estadistica-pl--roja:hover {
    border-color: #ef4444;
}

body.home-pl .agregar-estadisticas-roja-pl {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(30, 58, 95, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(75, 85, 99, 0.4);
}

body.home-pl .agregar-estadisticas-roja-pl h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #9ca3af;
}

body.home-pl .agregar-estadisticas-roja-fields-pl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

body.home-pl .agregar-estadisticas-roja-fields-pl .admin-form-pl-field--full {
    grid-column: 1 / -1;
}

body.home-pl .agregar-estadisticas-roja-btn-pl {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    body.home-pl .agregar-estadisticas-tabla-pl {
        min-width: 600px;
    }
}

/* Botón flotante WhatsApp */
.whatsapp-float-pl {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float-pl:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}
