/* FanSports: fanzone pública de cada club y su panel. Los colores del club llegan como variables --c1 / --c2. */
.sp { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #14181F; background: #F6F7FB; line-height: 1.55; }
.sp * { box-sizing: border-box; }
.sp a { color: var(--c1, #3A33F2); }
.sp-wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.sp-hero { background: var(--c1, #3A33F2) center / cover no-repeat; color: var(--c1on, #fff); padding: 38px 0 0; }
.sp-hero.has-banner { padding-top: 90px; }
.sp-id { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding-bottom: 22px; }
.sp-logo { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 22px; padding: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.sp-id h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; }
.sp-id p { margin: 6px 0 0; opacity: .92; font-size: 1.08rem; }
.sp-nav { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.sp-nav a { color: var(--c1on, #fff); text-decoration: none; padding: 14px 16px; font-weight: 700; border-bottom: 3px solid transparent; }
.sp-nav a:hover { border-bottom-color: var(--c2, #F0B93A); }
.sp-section { padding: 34px 0 6px; }
.sp-section h2 { margin: 0 0 16px; font-size: 1.5rem; letter-spacing: -0.02em; border-left: 6px solid var(--c2, #F0B93A); padding-left: 12px; }
.sp-about { max-width: 70ch; white-space: pre-wrap; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.sp-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #E4E6EF; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.sp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 30, 60, .13); }
.sp-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ECEEF4; }
.sp-card .b { padding: 14px 16px 18px; display: grid; gap: 4px; }
.sp-card h3 { margin: 0; font-size: 1.08rem; }
.sp-card .k { font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--c1, #3A33F2); }
.sp-card .price { font-weight: 800; font-size: 1.25rem; }
.sp-card .d { color: #555b6e; font-size: .92rem; }
.sp-rules details { background: #fff; border: 1px solid #E4E6EF; border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.sp-rules summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style: none; }
.sp-rules summary::after { content: "+"; float: right; font-size: 1.3rem; color: var(--c1, #3A33F2); }
.sp-rules details[open] summary::after { content: "–"; }
.sp-rules .body { padding: 0 0 16px; white-space: pre-wrap; color: #333a4d; }
.sp-soon { margin: 34px 0 8px; padding: 22px; border: 2px dashed #CBD0DF; border-radius: 16px; text-align: center; color: #5a6075; }
.sp-foot { margin-top: 44px; padding: 26px 0 34px; background: #14181F; color: #B9BECD; font-size: .92rem; }
.sp-foot a { color: #fff; }
.sp-foot .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.sp-btn { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 12px; background: var(--c1, #3A33F2); color: var(--c1on, #fff) !important; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.sp-btn.alt { background: var(--c2, #F0B93A); color: var(--c2on, #14181F) !important; }
.sp-btn.ghost { background: transparent; color: var(--c1, #3A33F2) !important; border: 2px solid var(--c1, #3A33F2); }
.sp-btn.danger { background: transparent; color: #B42318 !important; border: 2px solid #B42318; }
.sp-btn.small { padding: 6px 14px; font-size: .9rem; }

/* Panel del club */
.sp-top { background: var(--c1, #3A33F2); color: var(--c1on, #fff); }
.sp-top .in { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 12px 0; }
.sp-top .who { display: flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; color: inherit; }
.sp-top .who img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.sp-top nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.sp-top nav a, .sp-top nav button { color: inherit; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; background: none; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; }
.sp-top nav a:hover, .sp-top nav a.on, .sp-top nav button:hover { background: rgba(255, 255, 255, .2); }
.sp-main { padding: 26px 0 50px; }
.sp-main h1 { margin: 0 0 4px; letter-spacing: -0.02em; }
.sp-lead { color: #555b6e; margin: 0 0 20px; }
.sp-panel { background: #fff; border: 1px solid #E4E6EF; border-radius: 18px; padding: 22px 24px; }
.sp-panel + .sp-panel { margin-top: 18px; }
.sp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.sp-stat { background: #fff; border: 1px solid #E4E6EF; border-radius: 16px; padding: 16px 18px; }
.sp-stat .v { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.sp-form label { display: block; margin: 16px 0 6px; font-weight: 700; }
.sp-form input[type=text], .sp-form input[type=email], .sp-form input[type=password], .sp-form input[type=url], .sp-form input[type=number], .sp-form select, .sp-form textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #CBD0DF; border-radius: 12px; font: inherit; background: #fff; }
.sp-form textarea { min-height: 120px; }
.sp-form input[type=color] { width: 72px; height: 44px; padding: 3px; border: 1.5px solid #CBD0DF; border-radius: 10px; background: #fff; }
.sp-form .hint, .sp-hint { color: #6b7185; font-size: .88rem; margin: 4px 0 0; }
.sp-err { color: #B42318; margin: 4px 0 0; font-size: .9rem; }
.sp-flash { padding: 12px 16px; border-radius: 12px; background: #E7F6EE; border: 1px solid #A8DEC0; margin-bottom: 16px; }
.sp-flash.bad { background: #FDECEA; border-color: #F2B8B3; }
.sp-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #E4E6EF; border-radius: 14px; overflow: hidden; }
.sp-table th, .sp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #EEF0F6; vertical-align: top; }
.sp-table th { background: #F6F7FB; font-size: .85rem; color: #555b6e; }
.sp-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #EEF0F6; font-size: .8rem; font-weight: 700; }
.sp-pill.ok { background: #D9F3E5; color: #0B6B3A; } .sp-pill.bad { background: #FBE0DD; color: #B42318; }
.sp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .sp-two { grid-template-columns: 1fr; } .sp-id { gap: 14px; } .sp-logo { width: 72px; height: 72px; } }
.sp-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-check li::before { content: "○"; margin-right: 8px; color: #9aa0b4; } .sp-check li.done::before { content: "✓"; color: #0B6B3A; font-weight: 800; }
.sp-preview { border-radius: 14px; padding: 16px 18px; margin-top: 10px; font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp-preview span { padding: 6px 14px; border-radius: 10px; }
