:root {
  color-scheme: light;
  --rld-bg: #f3f6f8;
  --rld-panel: #ffffff;
  --rld-text: #17212b;
  --rld-muted: #5e6c78;
  --rld-line: #dce3e8;
  --rld-navy: #17324d;
  --rld-navy-2: #244b68;
  --rld-teal: #087f73;
  --rld-teal-soft: #e7f5f2;
  --rld-amber: #b55c0a;
  --rld-amber-soft: #fff4dd;
  --rld-red: #b42318;
  --rld-red-soft: #fff0ee;
  --rld-green: #067647;
  --rld-green-soft: #eaf8f0;
  --rld-shadow: 0 12px 28px rgba(23, 50, 77, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--rld-bg);
  color: var(--rld-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.rld-hidden { display: none !important; }

.rld-public { min-height: 100vh; background: #f4f6f7; }
.rld-public main { display: flex; flex-direction: column; }
.rld-public-header {
  min-height: 76px; padding: 0 clamp(18px, 5vw, 72px); display: flex; align-items: center;
  justify-content: space-between; gap: 28px; background: #071c2c; color: #fff;
}
.rld-public-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.rld-public-brand > img { width: 48px; height: 48px; display: block; flex: 0 0 auto; border: 1px solid rgba(101,213,192,.52); border-radius: 7px; object-fit: cover; background: #061827; box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.rld-public-brand strong { max-width: 210px; font-size: .9rem; line-height: 1.2; }
.rld-public-brand b { color: #65d5c0; }
.rld-public-nav { display: flex; align-items: center; gap: 17px; margin-left: auto; }
.rld-public-nav a { color: #cbd8df; text-decoration: none; font-size: .8rem; font-weight: 700; }
.rld-public-nav a:hover { color: #fff; }
.rld-desktop-login { min-height: 34px; border: 1px solid rgba(101,213,192,.65); border-radius: 5px; padding: 0 11px; background: transparent; color: #70dfcb; font-size: .74rem; font-weight: 900; }
.rld-desktop-login:hover { border-color: #70dfcb; background: #70dfcb; color: #08263a; }
.rld-ball-menu-wrap { display: none; position: relative; }
.rld-ball-menu { width: 42px; height: 42px; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: #fff; color: #08283c; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.rld-ball-menu > span { font-size: 1.28rem; line-height: 1; transition: transform .45s ease; }
.rld-ball-menu > i { position: absolute; inset: 5px; border: 1px dashed rgba(8,40,60,.28); border-radius: 50%; opacity: 0; transition: opacity .2s ease, transform .45s ease; }
.rld-ball-menu:hover, .rld-ball-menu[aria-expanded="true"] { border-color: #65d5c0; box-shadow: 0 0 0 4px rgba(101,213,192,.15); transform: translateY(-1px); }
.rld-ball-menu:hover > span, .rld-ball-menu[aria-expanded="true"] > span { transform: rotate(180deg); }
.rld-ball-menu:hover > i, .rld-ball-menu[aria-expanded="true"] > i { opacity: 1; transform: rotate(180deg); }
.rld-ball-menu-panel { width: min(330px, calc(100vw - 28px)); position: absolute; top: calc(100% + 12px); right: 0; z-index: 50; display: grid; gap: 2px; visibility: hidden; opacity: 0; transform: translateY(-8px); border: 1px solid rgba(101,213,192,.42); border-radius: 8px; padding: 8px; background: #08263a; box-shadow: 0 22px 50px rgba(5,22,36,.35); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.rld-ball-menu-panel[data-open="true"] { visibility: visible; opacity: 1; transform: translateY(0); }
.rld-ball-menu-panel::before { content: "NAVEGACIÓN DEPORTIVA"; padding: 8px 10px 10px; color: #70dfcb; font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.rld-ball-menu-panel a { min-height: 46px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; border-radius: 5px; padding: 0 10px; color: #fff; text-decoration: none; transition: background-color .16s ease; }
.rld-ball-menu-panel a:hover { background: rgba(255,255,255,.1); }
.rld-ball-menu-panel span { font-size: .8rem; font-weight: 800; }
.rld-ball-menu-panel b { color: #72dfcb; font-size: 1rem; }
.rld-menu-login { display: grid; gap: 8px; margin: 8px 2px 2px; border-top: 1px solid rgba(255,255,255,.15); padding: 15px 8px 7px; }
.rld-menu-login > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rld-menu-login strong { color: #fff; font-size: .8rem; }
.rld-menu-login small { color: #8ba5b3; font-size: .66rem; }
.rld-menu-login label { display: grid; gap: 4px; }
.rld-menu-login label > span { color: #b9ccd5; font-size: .67rem; font-weight: 800; }
.rld-menu-login input { width: 100%; min-height: 36px; border: 1px solid rgba(255,255,255,.22); border-radius: 5px; padding: 0 10px; background: #10354a; color: #fff; outline: none; font-size: .78rem; }
.rld-menu-login input::placeholder { color: #8fa7b3; }
.rld-menu-login input:focus { border-color: #70dfcb; box-shadow: 0 0 0 3px rgba(112,223,203,.13); }
.rld-menu-login button { min-height: 38px; border: 1px solid #70dfcb; border-radius: 5px; background: #70dfcb; color: #08263a; font-size: .77rem; font-weight: 900; }
.rld-menu-login button:hover { background: #fff; border-color: #fff; }
.rld-menu-login button:disabled { cursor: wait; opacity: .72; }
.rld-menu-login p { min-height: 16px; margin: 0; color: #ffb6ad; font-size: .68rem; line-height: 1.35; }
.rld-admin-access, .rld-public-back { min-height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 0 16px; background: transparent; color: #fff; font-weight: 700; }
.rld-admin-access { display: inline-flex; align-items: center; gap: 8px; }
.rld-admin-access:hover { border-color: #65d5c0; background: #65d5c0; color: #071c2c; }
.rld-directory-intro {
  min-height: min(690px, calc(100vh - 76px)); padding: clamp(52px, 9vw, 116px) clamp(18px, 6vw, 92px) 36px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 62px; color: #fff;
  background: linear-gradient(90deg, rgba(4,21,34,.95) 0%, rgba(4,21,34,.82) 40%, rgba(4,21,34,.18) 75%), url("assets/brand/transfer-liga-hero.png") center / cover no-repeat;
}
.rld-directory-intro { order: 0; }
.rld-hero-content { max-width: 760px; }
.rld-directory-intro > p, .rld-public-section-head p { margin: 0 0 8px; color: #5fd1c3; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.rld-hero-content > p { margin: 0 0 14px; color: #65d5c0; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.rld-directory-intro h1 { max-width: 750px; margin: 0; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: 1.02; }
.rld-hero-content > span { display: block; max-width: 620px; margin-top: 20px; color: #d7e1e7; font-size: 1.02rem; line-height: 1.65; }
.rld-public-search { width: min(650px, 100%); margin-top: 28px; display: grid; gap: 7px; color: #dce8f0; font-size: .75rem; font-weight: 800; }
.rld-public-search input { min-height: 52px; border: 2px solid transparent; border-radius: 6px; padding: 0 16px; background: #fff; color: #17212b; outline: none; }
.rld-public-search input:focus { border-color: #5fd1c3; box-shadow: 0 0 0 3px rgba(95,209,195,.2); }
.rld-hero-stats { width: min(620px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.34); }
.rld-hero-stats div { padding: 18px 18px 0 0; }
.rld-hero-stats strong, .rld-hero-stats span { display: block; }
.rld-hero-stats strong { font-size: 1.75rem; }
.rld-hero-stats span { margin-top: 4px; color: #c3d0d8; font-size: .74rem; }
.rld-news-ticker { min-height: 46px; display: flex; align-items: center; gap: 16px; padding: 8px clamp(18px, 5vw, 72px); background: #087f73; color: #fff; }
.rld-news-ticker > span { flex: 0 0 auto; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.38); font-size: .68rem; font-weight: 900; letter-spacing: .06em; }
.rld-news-ticker p { margin: 0; min-width: 0; overflow: hidden; color: #e9fbf7; font-size: .78rem; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.rld-news-ticker a { flex: 0 0 auto; color: #fff; font-size: .74rem; font-weight: 800; text-decoration: none; }
.rld-editorial { order: 1; padding: clamp(54px, 7vw, 88px) clamp(18px, 5vw, 72px); background: #f7f9fa; }
.rld-editorial-head, .rld-editorial-grid { max-width: 1144px; margin-inline: auto; }
.rld-editorial-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.rld-editorial-head p, .rld-matchday p { margin: 0 0 8px; color: #087f73; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.rld-editorial-head h2, .rld-matchday h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.55rem); }
.rld-editorial-head > span { color: #60707c; font-size: .76rem; font-weight: 700; }
.rld-editorial-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 16px; }
.rld-feature-story { position: relative; min-height: 420px; overflow: hidden; border-radius: 7px; background: #102c42; color: #fff; }
.rld-feature-story > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.rld-feature-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,21,35,.93) 0%, rgba(3,21,35,.68) 48%, rgba(3,21,35,.12) 100%); }
.rld-feature-story > div { position: relative; z-index: 1; width: min(520px, 88%); min-height: 420px; display: flex; flex-direction: column; justify-content: end; padding: clamp(24px, 4vw, 44px); }
.rld-feature-story span, .rld-world-story span, .rld-register-story span { color: #6ce0ca; font-size: .7rem; font-weight: 900; letter-spacing: .05em; }
.rld-feature-story h3 { margin: 11px 0; font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.08; }
.rld-feature-story p { margin: 0; color: #d7e2e8; font-size: .86rem; line-height: 1.6; }
.rld-feature-story a, .rld-world-story a { margin-top: 20px; color: #fff; font-size: .78rem; font-weight: 900; text-decoration: none; }
.rld-feature-story a b, .rld-world-story a b, .rld-register-story b { margin-left: 6px; font-size: 1rem; }
.rld-editorial-side { display: grid; gap: 16px; }
.rld-world-story, .rld-register-story { min-height: 202px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid #d7e1e6; border-radius: 7px; padding: 26px; background: #fff; }
.rld-world-story h3, .rld-register-story h3 { margin: 9px 0; color: #17212b; font-size: 1.1rem; line-height: 1.3; }
.rld-world-story p, .rld-register-story p { margin: 0; color: #5b6b76; font-size: .78rem; line-height: 1.55; }
.rld-world-story a { color: #087f73; }
.rld-register-story { border-color: #17324d; background: #17324d; }
.rld-register-story h3 { color: #fff; }
.rld-register-story p { color: #cfdee6; }
.rld-register-story button { margin-top: 17px; border: 0; padding: 0; background: transparent; color: #70dfcb; font-size: .78rem; font-weight: 900; }
.rld-matchday { order: 2; display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr); gap: 36px; align-items: center; padding: clamp(40px, 5vw, 64px) clamp(18px, 7vw, 100px); background: #e6eff1; }
.rld-matchday ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rld-matchday li { min-width: 0; min-height: 108px; display: flex; align-items: center; border-top: 3px solid #087f73; padding: 16px 12px 10px 0; }
.rld-matchday strong, .rld-matchday small { display: block; }
.rld-matchday strong { color: #17212b; font-size: .86rem; }
.rld-matchday small { margin-top: 6px; color: #667681; font-size: .75rem; line-height: 1.45; }
.rld-news-channel { padding: clamp(54px, 7vw, 88px) clamp(18px, 5vw, 72px); }
.rld-news-channel > .rld-public-section-head, .rld-current-news-grid { max-width: 1144px; margin-inline: auto; }
.rld-news-channel-world { order: 7; background: #0a263a; color: #fff; }
.rld-news-channel-world .rld-public-section-head h2 { color: #fff; }
.rld-news-channel-world .rld-public-section-head div > small { color: #b6c7d1; }
.rld-news-channel-world .rld-public-section-head p { color: #6ce0ca; }
.rld-news-channel-national { order: 6; background: #edf3ee; }
.rld-section-link { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; border: 1px solid currentColor; border-radius: 5px; padding: 0 11px; color: inherit; font-size: .73rem; font-weight: 800; text-decoration: none; }
.rld-news-channel-world .rld-section-link { color: #72dfcb; }
.rld-news-channel-national .rld-section-link { color: #087f73; }
.rld-current-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rld-current-news-card { min-width: 0; display: grid; grid-template-columns: minmax(180px, .74fr) minmax(0, 1.26fr); overflow: hidden; border: 1px solid rgba(203,218,225,.24); border-radius: 7px; background: #fff; color: #17212b; }
.rld-news-image-link { position: relative; min-height: 245px; display: block; overflow: hidden; background: #102c42; }
.rld-news-image-link img { width: 100%; height: 100%; min-height: 245px; display: block; object-fit: cover; transition: transform .25s ease; }
.rld-news-image-link:hover img { transform: scale(1.035); }
.rld-news-image-link span { position: absolute; right: 8px; bottom: 8px; border-radius: 4px; padding: 4px 6px; background: rgba(5,22,36,.76); color: #fff; font-size: .62rem; font-weight: 800; }
.rld-current-news-card > div { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; }
.rld-current-news-card span { color: #087f73; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.rld-current-news-card h3 { margin: 10px 0 9px; font-size: 1.1rem; line-height: 1.3; }
.rld-current-news-card p { margin: 0; color: #596a76; font-size: .78rem; line-height: 1.58; }
.rld-current-news-card a { margin-top: auto; padding-top: 18px; color: #087f73; font-size: .75rem; font-weight: 900; text-decoration: none; }
.rld-leagues-section, .rld-public-players { max-width: 1240px; margin: 0 auto; padding: clamp(54px, 7vw, 88px) clamp(18px, 4vw, 48px) 78px; }
.rld-leagues-section { order: 3; width: 100%; }
.rld-public-players { order: 4; width: 100%; }
.rld-news-section { order: 5; padding: clamp(54px, 7vw, 88px) clamp(18px, 5vw, 72px); background: #eaf0f2; }
.rld-news-section > .rld-public-section-head, .rld-news-section > .rld-news-grid { max-width: 1144px; margin-inline: auto; }
.rld-leagues-section { position: relative; }
.rld-leagues-section::before { content: ""; position: absolute; top: 0; left: clamp(18px, 4vw, 48px); width: 58px; height: 5px; background: #0d8c7e; }
.rld-public-section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.rld-public-section-head h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.rld-public-section-head div > small { display: block; margin-top: 7px; color: #687884; font-size: .78rem; }
.rld-public-section-head > span { min-height: 30px; display: inline-flex; align-items: center; border: 1px solid #ccd7de; border-radius: 999px; padding: 0 11px; color: #435662; background: #fff; font-size: .75rem; font-weight: 800; }
.rld-league-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rld-league-tile { position: relative; min-width: 0; min-height: 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; overflow: hidden; border: 1px solid #d7e0e7; border-top: 4px solid #0d8c7e; border-radius: 7px; padding: 22px; background: #fff; color: #17212b; text-align: left; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.rld-league-tile:hover { border-color: #087f73; box-shadow: 0 15px 30px rgba(23,50,77,.12); transform: translateY(-3px); }
.rld-league-rank { position: absolute; top: 18px; right: 20px; color: #a8b6bf; font-size: .72rem; font-weight: 900; }
.rld-league-logo { width: 92px; height: 92px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dce3e8; border-radius: 6px; background: #f3f7f8; color: #17324d; }
.rld-league-logo img, .rld-player-avatar img { width: 100%; height: 100%; object-fit: contain; }
.rld-league-logo strong { font-size: 1.2rem; }
.rld-league-info strong, .rld-league-info small { display: block; overflow-wrap: anywhere; }
.rld-league-info strong { font-size: 1.05rem; line-height: 1.3; }
.rld-league-info small { margin-top: 7px; color: #657582; font-size: .75rem; }
.rld-league-action { width: 100%; margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid #e2e8ec; color: #087f73; font-size: .76rem; font-weight: 800; }
.rld-league-action b { font-size: 1.4rem; line-height: 1; }
.rld-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rld-news-card { min-width: 0; overflow: hidden; border: 1px solid #d7e0e7; border-radius: 7px; background: #fff; }
.rld-news-card > img, .rld-news-placeholder { width: 100%; height: 150px; display: block; object-fit: cover; }
.rld-news-placeholder { display: grid; place-items: center; background: #17324d; color: #65d5c0; font-size: 1.25rem; font-weight: 900; }
.rld-news-card > div { padding: 16px; }
.rld-news-card span { color: #087f73; font-size: .7rem; font-weight: 800; }
.rld-news-card h3 { margin: 8px 0 7px; font-size: 1rem; line-height: 1.3; }
.rld-news-card p { margin: 0; color: #5d6e79; font-size: .78rem; line-height: 1.55; }
.rld-league-news { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--rld-line); }
.rld-league-news h3 { margin: 0; font-size: 1.2rem; }
.rld-public-players { padding-top: 20px; scroll-margin-top: 20px; }
.rld-public-back { margin-bottom: 28px; border-color: #bdcbd5; color: #17324d; }
.rld-public-back:hover { border-color: #087f73; color: #087f73; }
.rld-public-search-compact { margin: 0 0 18px; color: #3d4b57; }
.rld-public-search-compact input { border: 1px solid #cbd5dc; }
.rld-public-player-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rld-public-player { min-width: 0; min-height: 98px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid #dce3e8; border-radius: 7px; padding: 14px; background: #fff; }
.rld-player-avatar { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #e7f5f2; color: #087f73; }
.rld-public-player h3 { margin: 0; font-size: .94rem; overflow-wrap: anywhere; }
.rld-public-player p { margin: 5px 0 2px; color: #40515e; font-size: .79rem; }
.rld-public-player div > span { color: #6b7984; font-size: .72rem; }
.rld-saas-banner { order: 8; min-height: 280px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 42px; align-items: center; padding: clamp(38px, 6vw, 76px) clamp(18px, 7vw, 100px); background: #092638; color: #fff; }
.rld-saas-banner p { margin: 0 0 10px; color: #67d7c2; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.rld-saas-banner h2 { max-width: 690px; margin: 0; font-size: clamp(1.8rem, 3.5vw, 3.2rem); line-height: 1.08; }
.rld-saas-banner > div > span { display: block; max-width: 620px; margin-top: 15px; color: #c5d6dd; line-height: 1.6; }
.rld-saas-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rld-saas-banner-actions > span { min-height: 80px; margin: 0 !important; padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: #a7c1cb !important; font-size: .76rem; }
.rld-saas-banner-actions strong { color: #fff; font-size: .88rem; }
.rld-saas-banner-actions .rld-admin-access { grid-column: 1 / -1; width: 100%; justify-content: center; border-color: #65d5c0; background: #65d5c0; color: #092638; }
.rld-saas-banner-actions .rld-admin-access:hover { background: #fff; border-color: #fff; }
.rld-public-footer { padding: 28px clamp(18px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #203544; background: #071c2c; color: #aebec8; font-size: .76rem; }
.rld-public-footer strong { color: #17324d; }
.rld-public-footer strong, .rld-public-footer small { display: block; }
.rld-public-footer strong { color: #fff; }
.rld-public-footer small { margin-top: 5px; color: #8ea2af; }
.rld-login-dialog { width: min(460px, calc(100% - 28px)); border: 0; border-radius: 8px; padding: 0; background: transparent; }
.rld-login-dialog::backdrop { background: rgba(5,22,36,.72); backdrop-filter: blur(3px); }
.rld-login-dialog .rld-login-form { width: 100%; position: relative; }
.rld-login-dialog .rld-dialog-close { position: absolute; top: 14px; right: 14px; }

.rld-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  background: #eef3f5;
}

.rld-login-brand {
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 46px;
  background: var(--rld-navy);
  color: #fff;
}

.rld-login-logo { display: flex; align-items: center; gap: 12px; }
.rld-login-logo > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  color: var(--rld-navy);
  font-size: .82rem;
  font-weight: 900;
}
.rld-login-logo strong { font-size: .98rem; }
.rld-login-brand p { margin: 0 0 12px; color: #9dd9d2; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.rld-login-brand h1 { max-width: 760px; margin: 0; font-size: clamp(2.25rem, 5vw, 5rem); line-height: .98; }
.rld-login-brand > div > span { display: block; max-width: 680px; margin-top: 20px; color: #c8d8e4; line-height: 1.65; }
.rld-login-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.15); }
.rld-login-points article { min-width: 0; padding: 18px 18px 0 0; }
.rld-login-points strong, .rld-login-points span { display: block; }
.rld-login-points strong { font-size: .82rem; }
.rld-login-points span { margin-top: 5px; color: #aebfcd; font-size: .72rem; }

.rld-login-form {
  width: min(430px, calc(100% - 40px));
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--rld-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--rld-shadow);
}
.rld-login-form > p { margin: 0; color: var(--rld-teal); font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.rld-login-form h2 { margin: -5px 0 0; font-size: 1.65rem; }
.rld-login-form > span { margin: -8px 0 5px; color: var(--rld-muted); font-size: .82rem; line-height: 1.5; }
.rld-login-form label { display: grid; gap: 6px; color: #3d4b57; font-size: .77rem; font-weight: 800; }
.rld-login-form .rld-button { margin-top: 4px; }
.rld-login-error { min-height: 20px; color: var(--rld-red); font-size: .78rem; line-height: 1.45; }

.rld-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.rld-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  background: var(--rld-navy);
  color: #fff;
  z-index: 20;
}

.rld-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.rld-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  background: #fff;
  color: var(--rld-navy);
  font-size: .82rem;
  font-weight: 800;
}

.rld-brand strong, .rld-brand small { display: block; }
.rld-brand strong { font-size: .98rem; }
.rld-brand small { margin-top: 2px; color: #c7d6e2; font-size: .76rem; }

.rld-nav { display: grid; gap: 5px; margin-top: 22px; }
.rld-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: #d9e5ee;
  text-align: left;
  transition: background-color .18s ease, color .18s ease;
}
.rld-nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.rld-nav button[aria-current="page"] { background: #fff; color: var(--rld-navy); font-weight: 700; }

.rld-sidebar-note {
  margin-top: auto;
  padding: 13px 10px 3px;
  border-top: 1px solid rgba(255,255,255,.13);
}
.rld-sidebar-note span, .rld-sidebar-note strong { display: block; }
.rld-sidebar-note span { color: #aebfcd; font-size: .72rem; }
.rld-sidebar-note strong { margin-top: 3px; font-size: .8rem; }
.rld-sidebar-note button {
  width: 100%;
  min-height: 34px;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: .76rem;
}
.rld-sidebar-note button:hover { background: rgba(255,255,255,.08); }

.rld-main { min-width: 0; padding: 24px clamp(18px, 3vw, 42px) 48px; }
.rld-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.rld-header h1 { margin: 3px 0 0; font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.15; }
.rld-header p { margin: 0; color: var(--rld-muted); font-size: .82rem; }
.rld-system-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--rld-muted);
  font-size: .8rem;
}
.rld-system-status span { width: 8px; height: 8px; border-radius: 50%; background: #18a66f; box-shadow: 0 0 0 3px #dff4ea; }

.rld-mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rld-line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 9px;
}
.rld-mobile-menu span { display: block; height: 2px; margin: 4px 0; background: var(--rld-navy); }

.rld-alerts:not(:empty) {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #e7b861;
  border-radius: 7px;
  background: var(--rld-amber-soft);
  color: #713b09;
  font-size: .86rem;
}
.rld-alerts[data-kind="success"] { border-color: #86cfac; background: var(--rld-green-soft); color: var(--rld-green); }
.rld-alerts[data-kind="error"] { border-color: #efa49d; background: var(--rld-red-soft); color: var(--rld-red); }

.rld-content { max-width: 1440px; }
.rld-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 10px; }
.rld-card, .rld-panel {
  background: var(--rld-panel);
  border: 1px solid var(--rld-line);
  border-radius: 7px;
}
.rld-card { min-height: 112px; padding: 17px; }
.rld-card span { display: block; min-height: 32px; color: var(--rld-muted); font-size: .78rem; }
.rld-card strong { display: block; margin-top: 8px; font-size: 1.65rem; line-height: 1; }
.rld-card[data-tone="good"] { border-top: 3px solid var(--rld-green); }
.rld-card[data-tone="warn"] { border-top: 3px solid var(--rld-amber); }
.rld-card[data-tone="danger"] { border-top: 3px solid var(--rld-red); }

.rld-dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 14px; margin-top: 14px; }
.rld-panel { padding: 18px; }
.rld-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rld-panel-head h2 { margin: 0; font-size: 1rem; }
.rld-panel-head p { margin: 5px 0 0; color: var(--rld-muted); font-size: .8rem; }
.rld-count { color: var(--rld-muted); font-size: .78rem; white-space: nowrap; }

.rld-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 190px auto; gap: 9px; margin-bottom: 12px; }
.rld-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rld-form-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rld-field { display: grid; gap: 6px; min-width: 0; }
.rld-field-hint { color: var(--rld-muted); font-size: .72rem; }
.rld-profile-logo-preview { width: 112px; height: 112px; display: block; margin-top: 6px; border: 1px solid var(--rld-line); border-radius: 7px; object-fit: contain; background: #f7fafb; }
.rld-field-wide { grid-column: 1 / -1; }
.rld-field > label, .rld-field > span { color: #3d4b57; font-size: .76rem; font-weight: 700; }
.rld-input, .rld-select, .rld-textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5dc;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--rld-text);
  outline: none;
}
.rld-textarea { min-height: 78px; resize: vertical; }
.rld-input:focus-visible, .rld-select:focus-visible, .rld-textarea:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(8,127,115,.24);
  outline-offset: 1px;
}

.rld-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--rld-teal);
  color: #fff;
  font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease;
}
.rld-button:hover { background: #066d64; }
.rld-button-secondary { border-color: #bfcbd4; background: #fff; color: var(--rld-navy); }
.rld-button-secondary:hover { border-color: var(--rld-navy-2); background: #f7fafb; }
.rld-button-danger { background: var(--rld-red); }
.rld-button-danger:hover { background: #922018; }
.rld-button-small { min-height: 32px; padding: 0 10px; font-size: .78rem; }

.rld-create { margin-bottom: 14px; border: 1px solid var(--rld-line); border-radius: 7px; background: #fff; }
.rld-create summary { padding: 13px 15px; cursor: pointer; color: var(--rld-navy); font-size: .85rem; font-weight: 800; }
.rld-create[open] summary { border-bottom: 1px solid var(--rld-line); }
.rld-create .rld-form { padding: 15px; }
.rld-registration > form { padding: 16px; }
.rld-registration fieldset { min-width: 0; margin: 0 0 14px; border: 1px solid var(--rld-line); border-radius: 7px; padding: 15px; }
.rld-registration legend { padding: 0 7px; color: var(--rld-navy); font-size: .8rem; font-weight: 900; }
.rld-registration fieldset .rld-form { padding: 0; }
.rld-form-docs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rld-form-note { margin: 0 0 12px; color: var(--rld-muted); font-size: .75rem; }
.rld-file { width: 100%; min-height: 42px; border: 1px dashed #aebdc7; border-radius: 6px; padding: 8px; background: #f8fafb; color: #40515e; font-size: .75rem; }
.rld-registration-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rld-registration-actions span { color: var(--rld-muted); font-size: .76rem; }
.rld-competition-grid { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 14px; }
.rld-inline-create { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.rld-simple-list { display: grid; gap: 7px; margin-top: 14px; }
.rld-simple-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 11px; border-left: 3px solid var(--rld-teal); background: #f7fafb; font-size: .8rem; }
.rld-simple-list span { color: var(--rld-muted); }
.rld-check { min-height: 40px; display: flex; align-items: center; gap: 9px; color: #3d4b57; font-size: .76rem; font-weight: 700; }
.rld-check input { width: 18px; height: 18px; accent-color: var(--rld-teal); }
.rld-category-list { margin-top: 14px; }
.rld-news-admin-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 14px; }
.rld-news-admin-list { display: grid; gap: 10px; }
.rld-news-admin-list > div { padding: 12px; border-left: 3px solid var(--rld-teal); background: #f7fafb; }
.rld-news-admin-list strong, .rld-news-admin-list span { display: block; }
.rld-news-admin-list span { margin-top: 3px; color: var(--rld-muted); font-size: .73rem; }
.rld-news-admin-list p { margin: 7px 0 0; color: #40515e; font-size: .78rem; line-height: 1.45; }
.rld-document-list { display: grid; gap: 8px; }
.rld-document-item { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--rld-line); border-radius: 6px; }
.rld-document-item strong, .rld-document-item span { display: block; }
.rld-document-item span { margin-top: 3px; color: var(--rld-muted); font-size: .72rem; overflow-wrap: anywhere; }

.rld-table-wrap { overflow-x: auto; border: 1px solid var(--rld-line); border-radius: 6px; }
.rld-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.rld-table th { padding: 10px 12px; background: #f4f7f9; color: #52616d; font-size: .7rem; text-align: left; text-transform: uppercase; }
.rld-table td { padding: 11px 12px; border-top: 1px solid var(--rld-line); vertical-align: middle; }
.rld-table tbody tr:hover { background: #f8fbfc; }
.rld-primary-cell strong, .rld-primary-cell small { display: block; }
.rld-primary-cell small { margin-top: 3px; color: var(--rld-muted); }
.rld-empty { padding: 34px 18px; color: var(--rld-muted); text-align: center; }

.rld-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #edf2f6;
  color: #465966;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.rld-badge[data-status="habilitado"], .rld-badge[data-status="active"] { background: var(--rld-green-soft); color: var(--rld-green); }
.rld-badge[data-status="observado"], .rld-badge[data-status="pendiente"] { background: var(--rld-amber-soft); color: #8a4709; }
.rld-badge[data-status="suspendido"], .rld-badge[data-status="rejected"] { background: var(--rld-red-soft); color: var(--rld-red); }
.rld-alert-count { display: inline-flex; align-items: center; min-height: 24px; color: var(--rld-red); font-size: .75rem; font-weight: 800; }

.rld-attention-list { display: grid; gap: 8px; }
.rld-attention-item { padding: 11px 12px; border-left: 3px solid var(--rld-amber); background: #fafbfc; }
.rld-attention-item strong, .rld-attention-item span { display: block; }
.rld-attention-item strong { font-size: .82rem; }
.rld-attention-item span { margin-top: 3px; color: var(--rld-muted); font-size: .74rem; }
.rld-button-link { width: 100%; border: 0; color: inherit; text-align: left; }
.rld-rule-list { margin: 0; padding-left: 18px; color: var(--rld-muted); font-size: .8rem; line-height: 1.65; }

.rld-dialog { width: min(960px, calc(100vw - 28px)); max-height: calc(100vh - 28px); border: 0; border-radius: 8px; padding: 0; box-shadow: 0 28px 70px rgba(9,30,48,.28); }
.rld-dialog::backdrop { background: rgba(12,29,43,.58); }
.rld-dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--rld-line); background: #fff; }
.rld-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.rld-dialog-head p { margin: 4px 0 0; color: var(--rld-muted); font-size: .78rem; }
.rld-dialog-close { width: 36px; height: 36px; border: 1px solid var(--rld-line); border-radius: 6px; background: #fff; color: var(--rld-navy); font-size: 1.25rem; }
.rld-dialog-body { padding: 18px 20px 24px; }
.rld-player-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.rld-summary-item { padding: 11px; border: 1px solid var(--rld-line); border-radius: 6px; }
.rld-summary-item span, .rld-summary-item strong { display: block; }
.rld-summary-item span { color: var(--rld-muted); font-size: .7rem; }
.rld-summary-item strong { margin-top: 4px; font-size: .82rem; overflow-wrap: anywhere; }
.rld-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rld-subpanel { padding: 15px; border: 1px solid var(--rld-line); border-radius: 7px; }
.rld-subpanel h3 { margin: 0 0 12px; font-size: .9rem; }
.rld-subpanel-full { grid-column: 1 / -1; }
.rld-history { display: grid; gap: 9px; }
.rld-history-item { padding: 11px 12px; border: 1px solid var(--rld-line); border-left: 3px solid var(--rld-teal); border-radius: 5px; }
.rld-history-item[data-risk="true"] { border-left-color: var(--rld-red); }
.rld-history-item strong, .rld-history-item span, .rld-history-item small { display: block; }
.rld-history-item span { margin-top: 4px; color: #3e4e5a; font-size: .78rem; }
.rld-history-item small { margin-top: 4px; color: var(--rld-muted); }
.rld-warning-box { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #e6b45a; border-radius: 6px; background: var(--rld-amber-soft); color: #713b09; font-size: .78rem; line-height: 1.5; }

.rld-sidebar-overlay { display: none; }

@media (max-width: 1120px) {
  .rld-league-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rld-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .rld-form-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .rld-public-nav { display: none; }
  .rld-ball-menu-wrap { display: block; }
  .rld-directory-intro { min-height: 620px; background-position: 62% center; }
  .rld-editorial-grid, .rld-matchday { grid-template-columns: 1fr; }
  .rld-matchday { gap: 26px; }
  .rld-current-news-grid { grid-template-columns: 1fr; }
  .rld-public-player-grid { grid-template-columns: 1fr; }
  .rld-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rld-saas-banner { grid-template-columns: 1fr; gap: 28px; }
  .rld-login { grid-template-columns: 1fr; }
  .rld-login-brand { min-height: 360px; padding: 28px; gap: 30px; }
  .rld-login-brand h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .rld-login-form { margin: 24px auto; }
  .rld-shell { grid-template-columns: 1fr; }
  .rld-sidebar { position: fixed; left: 0; transform: translateX(-100%); width: 236px; transition: transform .2s ease; }
  .rld-sidebar[data-open="true"] { transform: translateX(0); }
  .rld-sidebar-overlay[data-open="true"] { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(12,29,43,.48); }
  .rld-mobile-menu { display: block; }
  .rld-main { padding-top: 16px; }
  .rld-dashboard-layout, .rld-detail-grid { grid-template-columns: 1fr; }
  .rld-competition-grid { grid-template-columns: 1fr; }
  .rld-news-admin-layout { grid-template-columns: 1fr; }
  .rld-form-docs { grid-template-columns: 1fr; }
  .rld-subpanel-full { grid-column: auto; }
  .rld-toolbar { grid-template-columns: 1fr 160px; }
  .rld-toolbar .rld-button { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .rld-public-header { min-height: 64px; gap: 8px; padding-inline: 14px; }
  .rld-public-brand > img { width: 42px; height: 42px; }
  .rld-public-brand strong { max-width: 130px; font-size: .78rem; line-height: 1.2; }
  .rld-ball-menu { width: 38px; height: 38px; }
  .rld-ball-menu > span { font-size: 1.12rem; }
  .rld-admin-access { padding-inline: 10px; font-size: .72rem; }
  .rld-directory-intro { min-height: 610px; padding: 48px 16px 28px; gap: 36px; background-position: 66% center; }
  .rld-directory-intro h1 { font-size: 2.45rem; }
  .rld-hero-content > span { font-size: .92rem; }
  .rld-hero-stats strong { font-size: 1.35rem; }
  .rld-hero-stats div { padding-right: 8px; }
  .rld-news-ticker { gap: 10px; padding-inline: 14px; }
  .rld-news-ticker p { font-size: .7rem; }
  .rld-news-ticker a { display: none; }
  .rld-editorial, .rld-news-section { padding-inline: 14px; }
  .rld-news-channel { padding-inline: 14px; }
  .rld-editorial-head { align-items: start; flex-direction: column; gap: 8px; }
  .rld-feature-story, .rld-feature-story > div { min-height: 390px; }
  .rld-feature-story > div { width: 100%; padding: 22px; }
  .rld-feature-story h3 { font-size: 1.65rem; }
  .rld-world-story, .rld-register-story { min-height: 0; padding: 22px; }
  .rld-matchday { padding: 38px 16px; }
  .rld-matchday ol { grid-template-columns: 1fr; gap: 17px; }
  .rld-current-news-card { grid-template-columns: 130px minmax(0, 1fr); }
  .rld-news-image-link, .rld-news-image-link img { min-height: 100%; }
  .rld-current-news-card > div { padding: 17px; }
  .rld-current-news-card h3 { font-size: .98rem; }
  .rld-leagues-section, .rld-public-players { padding-inline: 14px; }
  .rld-league-grid { grid-template-columns: 1fr; }
  .rld-news-grid { grid-template-columns: 1fr; }
  .rld-public-section-head { align-items: flex-start; }
  .rld-league-tile { min-height: 112px; display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 12px; border-top-width: 1px; border-left: 4px solid #0d8c7e; padding: 14px; }
  .rld-league-tile:hover { transform: none; }
  .rld-league-logo { width: 68px; height: 68px; grid-row: 1 / 3; }
  .rld-league-rank { top: 10px; right: 12px; }
  .rld-league-info { padding-right: 28px; }
  .rld-league-action { margin-top: 0; padding-top: 8px; }
  .rld-public-player { grid-template-columns: 50px minmax(0, 1fr); }
  .rld-player-avatar { width: 50px; height: 50px; }
  .rld-public-player .rld-badge { grid-column: 2; justify-self: start; }
  .rld-public-footer { flex-direction: column; }
  .rld-saas-banner { padding: 42px 16px; }
  .rld-saas-banner-actions { grid-template-columns: 1fr; }
  .rld-saas-banner-actions .rld-admin-access { grid-column: auto; }
  .rld-login-brand { min-height: 330px; }
  .rld-login-points { grid-template-columns: 1fr; }
  .rld-login-points article { padding-top: 10px; }
  .rld-login-points article:nth-child(n+2) { display: none; }
  .rld-login-form { width: calc(100% - 24px); padding: 24px 18px; }
  .rld-main { padding-inline: 12px; }
  .rld-header { margin-bottom: 16px; }
  .rld-system-status { display: none; }
  .rld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rld-card { min-height: 98px; padding: 13px; }
  .rld-form, .rld-form-wide, .rld-toolbar, .rld-player-summary { grid-template-columns: 1fr; }
  .rld-toolbar .rld-button { grid-column: auto; }
  .rld-panel { padding: 13px; }
  .rld-dialog { width: calc(100vw - 12px); max-height: calc(100vh - 12px); }
  .rld-dialog-head, .rld-dialog-body { padding-left: 14px; padding-right: 14px; }
  .rld-registration-actions { align-items: stretch; flex-direction: column; }
  .rld-document-item { grid-template-columns: 1fr auto; }
  .rld-document-item .rld-button { width: 100%; grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .rld-sidebar, .rld-header, .rld-alerts, .rld-toolbar, .rld-create, .rld-button { display: none !important; }
  .rld-shell { display: block; }
  .rld-main { padding: 0; }
  .rld-panel, .rld-table-wrap { border: 0; }
}
