
:root{
  --blue:#0a4598;
  --blue-dark:#062d6b;
  --blue-deep:#031d49;
  --pink:#df087f;
  --pink-dark:#b40068;
  --bg:#f2f5fa;
  --surface:#fff;
  --text:#172033;
  --muted:#758097;
  --line:#dce4ef;
  --green:#18a66d;
  --danger:#d84d5a;
  --shadow:0 18px 45px rgba(6,45,105,.10);
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#f9fbfe,#eef3f9);
}
button,input,select,textarea{font:inherit}
button,a{cursor:pointer}
img{max-width:100%}
a{text-decoration:none;color:inherit}
.hidden{display:none!important}

/* PUBLICO */
.public-header{
  position:sticky;top:0;z-index:50;
  height:76px;
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;padding:0 6vw;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}
.public-brand{display:flex;align-items:center;gap:11px}
.public-brand img{width:48px;height:48px;object-fit:contain}
.public-brand strong{
  display:block;font-family:"Barlow Condensed",sans-serif;
  color:var(--blue);font-size:25px;line-height:.9;letter-spacing:1.5px
}
.public-brand span{display:block;color:var(--pink);font-size:8px;font-weight:800;letter-spacing:1.5px;margin-top:4px}
.public-nav{display:flex;gap:7px;align-items:center}
.public-nav a{
  padding:10px 12px;border-radius:9px;
  font-size:10px;font-weight:800;color:#536076;
  transition:.22s ease
}
.public-nav a:hover,.public-nav a.active{background:#edf3ff;color:var(--blue)}
.admin-access{
  padding:10px 14px!important;
  color:#fff!important;
  background:linear-gradient(135deg,var(--blue),var(--pink))!important;
  box-shadow:0 8px 18px rgba(207,0,127,.15)
}
.public-menu{display:none;border:0;background:#edf3fa;color:var(--blue);width:39px;height:39px;border-radius:9px;font-size:19px}
.public-main{max-width:1500px;margin:0 auto;padding:27px 5vw 45px}
.public-hero{
  position:relative;overflow:hidden;
  min-height:410px;
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);
  align-items:center;gap:30px;
  padding:52px 64px;
  border-radius:26px;
  color:#fff;
  background:
    radial-gradient(circle at 84% 19%,rgba(255,255,255,.13),transparent 22%),
    radial-gradient(circle at 93% 64%,rgba(225,0,131,.52),transparent 28%),
    linear-gradient(116deg,#0a4b9d 0%,#062d6b 56%,#bd096e 100%);
  box-shadow:0 24px 60px rgba(5,44,103,.17)
}
.public-hero:before{
  content:"";position:absolute;right:-140px;bottom:-250px;
  width:600px;height:600px;border-radius:50%;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 0 0 65px rgba(255,255,255,.025),0 0 0 130px rgba(255,255,255,.012)
}
.hero-copy{position:relative;z-index:2}
.kicker{
  display:inline-flex;padding:7px 11px;border-radius:8px;
  background:#fff;color:var(--blue);font-size:8px;font-weight:900;letter-spacing:1px
}
.hero-copy h1{
  margin:18px 0 0;font-family:"Barlow Condensed",sans-serif;
  font-size:76px;line-height:.88;letter-spacing:1px
}
.hero-copy h2{
  margin:7px 0 16px;font-family:"Barlow Condensed",sans-serif;
  color:#ff7fc2;font-size:31px
}
.hero-copy p{max-width:720px;color:#dce8f8;font-size:11px;line-height:1.8}
.hero-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
.btn-primary,.btn-secondary,.btn-outline,.btn-danger{
  min-height:41px;border:0;border-radius:9px;padding:0 17px;
  font-size:9px;font-weight:900;letter-spacing:.5px;transition:.22s ease
}
.btn-primary{color:#fff;background:linear-gradient(135deg,var(--pink),#6c48c7);box-shadow:0 10px 23px rgba(207,0,127,.19)}
.btn-secondary{color:#fff;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.29)}
.btn-outline{color:var(--blue);background:#fff;border:1px solid #cfd9e7}
.btn-danger{color:#fff;background:var(--danger)}
.btn-primary:hover,.btn-secondary:hover,.btn-outline:hover,.btn-danger:hover{transform:translateY(-2px)}
.hero-logo{position:relative;z-index:2;display:grid;place-items:center}
.hero-logo img{
  width:245px;height:245px;object-fit:contain;
  filter:drop-shadow(0 24px 25px rgba(0,0,0,.28));
  animation:floatLogo 4s ease-in-out infinite
}
@keyframes floatLogo{50%{transform:translateY(-10px)}}
.section-title{display:flex;justify-content:space-between;gap:20px;align-items:end;margin:35px 0 15px}
.section-title small{display:block;color:var(--pink);font-size:8px;font-weight:900;letter-spacing:1.5px}
.section-title h2{margin:4px 0 0;font-family:"Barlow Condensed";font-size:32px;color:#1d2a42}
.section-title p{max-width:570px;margin:0;color:var(--muted);font-size:10px;line-height:1.6}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.public-card{
  background:#fff;border:1px solid var(--line);border-radius:17px;
  box-shadow:0 10px 26px rgba(6,45,105,.05);overflow:hidden
}
.news-img{height:190px;background:#edf3fb;overflow:hidden}
.news-img img{width:100%;height:100%;object-fit:cover}
.news-content{padding:17px}
.news-content time{font-size:8px;color:#98a1af}
.badge{
  display:inline-flex;padding:6px 8px;border-radius:20px;
  background:#edf3ff;color:var(--blue);font-size:7px;font-weight:900;letter-spacing:.5px
}
.badge.pink{background:#fff0f7;color:var(--pink)}
.news-content h3{margin:10px 0 6px;font-family:"Barlow Condensed";font-size:23px}
.news-content p{margin:0;color:var(--muted);font-size:9px;line-height:1.65}
.empty-public{
  grid-column:1/-1;padding:42px;text-align:center;
  border:1px dashed #cbd6e5;border-radius:16px;background:#fff;color:#8792a5;font-size:10px
}
.coach-public{
  display:grid;grid-template-columns:360px 1fr;overflow:hidden;
  border-radius:22px;color:#fff;
  background:linear-gradient(115deg,var(--blue-deep),var(--blue-dark) 60%,#37135e);
  box-shadow:var(--shadow)
}
.coach-photo{
  min-height:420px;position:relative;display:grid;place-items:center;
  background:radial-gradient(circle,rgba(255,255,255,.13),transparent 58%)
}
.coach-photo img{width:82%;max-height:360px;object-fit:contain;filter:drop-shadow(0 22px 30px rgba(0,0,0,.28))}
.coach-info{align-self:center;padding:48px}
.coach-info small{color:#ff79bd;font-size:8px;font-weight:900;letter-spacing:1.6px}
.coach-info h1{margin:7px 0 0;font-family:"Barlow Condensed";font-size:49px}
.coach-info h2{margin:3px 0 22px;color:#ff79bd;font-family:"Barlow Condensed";font-size:25px}
.coach-info p{color:#dce6f6;font-size:10px;line-height:1.8}
.meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:20px 0}
.meta-item{padding:13px;border:1px solid rgba(255,255,255,.13);border-radius:11px;background:rgba(255,255,255,.05)}
.meta-item span{display:block;color:#9fb3d2;font-size:7px;font-weight:900}
.meta-item strong{display:block;margin-top:4px;font-size:10px}
.pay-public{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:18px;align-items:start}
.qr-card,.public-form{
  padding:24px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 32px rgba(6,45,105,.06)
}
.qr-box{
  min-height:300px;margin-top:18px;border-radius:16px;
  display:grid;place-items:center;text-align:center;
  background:linear-gradient(145deg,#eef4ff,#fff5fa)
}
.qr-box img{max-width:280px;max-height:280px;object-fit:contain;border-radius:12px}
.qr-placeholder span{font-size:48px;color:var(--blue)}
.qr-placeholder strong{display:block;color:var(--blue);font-size:13px;margin-top:9px}
.qr-placeholder p{font-size:9px;color:var(--muted)}
.amount{margin:15px 0 0;text-align:center;color:var(--pink);font-family:"Barlow Condensed";font-size:25px}
.field{display:block;margin-bottom:13px}
.field>span{display:block;margin-bottom:6px;color:#5e6a7d;font-size:8px;font-weight:800}
.field input,.field select,.field textarea{
  width:100%;border:1px solid #d4deeb;border-radius:9px;
  background:#fff;padding:11px 12px;color:var(--text);outline:0;font-size:10px
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#8cadde;box-shadow:0 0 0 3px #edf4ff}
.file-box{
  display:grid;place-items:center;min-height:125px;
  border:1px dashed #c8d4e3;border-radius:12px;color:#778398;background:#f9fbfe;text-align:center
}
.file-box strong{font-size:10px}.file-box span{font-size:25px;color:var(--pink)}
.full{width:100%}
.public-footer{
  margin-top:40px;padding:30px 6vw;display:flex;justify-content:space-between;align-items:center;gap:20px;
  color:#d5e2f5;background:var(--blue-deep)
}
.public-footer img{width:50px}
.footer-brand{display:flex;align-items:center;gap:11px}
.footer-brand strong{font-family:"Barlow Condensed";font-size:23px}
.public-footer p{font-size:8px;color:#91a8ca}

/* ADMIN */
.admin-shell{min-height:100vh;display:flex}
.admin-sidebar{
  width:260px;position:fixed;left:0;top:0;bottom:0;z-index:30;
  padding:24px 18px;display:flex;flex-direction:column;
  color:#fff;background:linear-gradient(180deg,#0a438c,#06316e 52%,#031d49);
  box-shadow:14px 0 40px rgba(3,31,73,.13)
}
.admin-brand{display:flex;align-items:center;gap:11px;padding:0 8px 22px;border-bottom:1px solid rgba(255,255,255,.10)}
.admin-brand img{width:49px;height:49px;object-fit:contain}
.admin-brand strong{display:block;font-family:"Barlow Condensed";font-size:25px}
.admin-brand span{display:block;color:#b9cdec;font-size:8px;letter-spacing:1.2px;margin-top:3px}
.admin-nav{display:grid;gap:7px;margin-top:25px}
.admin-nav a{
  min-height:48px;display:flex;align-items:center;gap:11px;padding:0 13px;border-radius:10px;
  color:#d9e5f7;font-size:9px;font-weight:800
}
.admin-nav a i{font-style:normal;color:#ff66b6;font-size:16px;width:21px;text-align:center}
.admin-nav a:hover,.admin-nav a.active{color:#fff;background:rgba(52,128,225,.27)}
.admin-bottom{margin-top:auto;padding:14px;border-top:1px solid rgba(255,255,255,.08)}
.admin-user{display:flex;align-items:center;gap:9px}
.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#4654c8,var(--pink));font-weight:900}
.admin-user strong{font-size:9px}.admin-user span{display:block;color:#9fb4d5;font-size:7px;margin-top:2px}
.logout{margin-top:10px;width:100%;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;border-radius:8px;padding:9px;font-size:8px;font-weight:800}
.admin-main{margin-left:260px;width:calc(100% - 260px);min-height:100vh}
.admin-top{
  height:83px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 28px;
  background:#fff;border-bottom:1px solid var(--line)
}
.admin-top small{display:block;color:var(--pink);font-size:7px;font-weight:900;letter-spacing:1.4px}
.admin-top h1{margin:3px 0 0;font-family:"Barlow Condensed";font-size:27px}
.admin-top .demo-pill{padding:7px 10px;border-radius:20px;background:#fff2f8;color:var(--pink);font-size:7px;font-weight:900}
.admin-content{padding:27px;max-width:1500px;margin:0 auto}
.admin-page-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:17px}
.admin-page-head small{color:var(--pink);font-size:7px;font-weight:900;letter-spacing:1.5px}
.admin-page-head h2{margin:4px 0 0;font-family:"Barlow Condensed";font-size:32px}
.admin-page-head p{margin:5px 0 0;color:var(--muted);font-size:9px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.stat{
  padding:18px;background:#fff;border:1px solid var(--line);border-radius:14px;
  box-shadow:0 8px 20px rgba(6,45,105,.04)
}
.stat span{display:block;color:#8792a5;font-size:7px;font-weight:900;letter-spacing:1px}
.stat strong{display:block;margin-top:7px;color:var(--blue);font-family:"Barlow Condensed";font-size:38px}
.stat.pink strong{color:var(--pink)}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:17px}
.panel{
  background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 10px 28px rgba(6,45,105,.05);overflow:hidden
}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 18px;border-bottom:1px solid #edf1f6}
.panel-head small{display:block;color:var(--pink);font-size:7px;font-weight:900}
.panel-head h3{margin:3px 0 0;font-family:"Barlow Condensed";font-size:23px}
.panel-body{padding:18px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 13px}.span-2{grid-column:1/-1}
.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:720px}
th,td{text-align:left;border-bottom:1px solid #edf1f6;padding:12px 13px;font-size:9px}
th{color:#8590a3;font-size:7px;letter-spacing:.6px}
td strong{font-size:9px}
.action{border:0;background:#edf3ff;color:var(--blue);padding:6px 8px;border-radius:6px;font-size:7px;font-weight:900}
.action.danger{background:#fff0f2;color:var(--danger)}
.admin-news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.admin-news-card{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff}
.admin-news-card img{width:100%;height:130px;object-fit:cover;background:#eef3fa}
.admin-news-card div{padding:12px}
.admin-news-card h4{margin:7px 0 5px;font-family:"Barlow Condensed";font-size:20px}
.admin-news-card p{margin:0;color:var(--muted);font-size:8px;line-height:1.5}
.coach-admin{display:grid;grid-template-columns:310px 1fr;gap:16px}
.coach-preview{
  overflow:hidden;border-radius:17px;color:#fff;
  background:linear-gradient(160deg,var(--blue),var(--blue-deep) 65%,var(--pink))
}
.coach-preview .photo{height:340px;display:grid;place-items:center;background:rgba(255,255,255,.04)}
.coach-preview .photo img{width:82%;height:90%;object-fit:contain}
.coach-preview .copy{padding:18px}
.coach-preview .copy small{color:#ff8bca;font-size:7px;font-weight:900}
.coach-preview .copy h3{margin:5px 0;font-family:"Barlow Condensed";font-size:28px}
.coach-preview .copy p{font-size:8px;color:#cbdaf0}
.admin-qr-preview{display:grid;place-items:center;min-height:270px;border-radius:15px;background:linear-gradient(145deg,#eef4ff,#fff4fa)}
.admin-qr-preview img{max-width:250px;max-height:250px;border-radius:12px}

/* LOGIN */
.login-page{
  min-height:100vh;display:grid;grid-template-columns:1fr 1fr;
  background:#eef3fa
}
.login-visual{
  position:relative;overflow:hidden;display:grid;place-items:center;padding:60px;color:#fff;
  background:
    radial-gradient(circle at 78% 25%,rgba(225,0,131,.55),transparent 30%),
    linear-gradient(135deg,#0a4b9d,#062d6b 60%,#35135c)
}
.login-visual:after{
  content:"";position:absolute;width:540px;height:540px;border-radius:50%;right:-220px;bottom:-220px;
  border:1px solid rgba(255,255,255,.11);box-shadow:0 0 0 70px rgba(255,255,255,.02),0 0 0 140px rgba(255,255,255,.01)
}
.login-visual-inner{position:relative;z-index:2;max-width:520px}
.login-visual img{width:155px;filter:drop-shadow(0 16px 20px rgba(0,0,0,.25))}
.login-visual h1{font-family:"Barlow Condensed";font-size:58px;margin:18px 0 0}
.login-visual h2{font-family:"Barlow Condensed";font-size:26px;color:#ff82c4;margin:3px 0 14px}
.login-visual p{font-size:10px;color:#d6e3f7;line-height:1.7}
.login-side{display:grid;place-items:center;padding:30px}
.login-card{width:min(430px,100%);padding:33px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.login-card small{color:var(--pink);font-size:8px;font-weight:900;letter-spacing:1.4px}
.login-card h2{margin:5px 0 5px;font-family:"Barlow Condensed";font-size:32px}
.login-card>p{color:var(--muted);font-size:9px;line-height:1.6;margin-bottom:22px}
.demo-note{padding:11px;border-radius:10px;background:#fff4f9;color:#9a3970;font-size:8px;line-height:1.55;margin-top:13px}

/* TOAST */
.toast{
  position:fixed;right:22px;bottom:22px;z-index:100;
  min-width:280px;max-width:380px;padding:14px 16px;border-radius:13px;
  color:#fff;background:#102650;box-shadow:0 18px 40px rgba(0,0,0,.22);
  opacity:0;transform:translateY(22px);pointer-events:none;transition:.25s
}
.toast.show{opacity:1;transform:translateY(0)}
.toast strong{display:block;font-size:10px}.toast span{display:block;margin-top:3px;color:#cbd8ed;font-size:8px}

@media(max-width:1000px){
  .grid-3,.admin-news-grid{grid-template-columns:repeat(2,1fr)}
  .pay-public,.coach-admin{grid-template-columns:1fr}
  .coach-public{grid-template-columns:300px 1fr}
  .stats{grid-template-columns:1fr 1fr}
}
@media(max-width:820px){
  .public-nav{
    position:absolute;top:76px;left:0;right:0;display:none;flex-direction:column;align-items:stretch;
    padding:13px;background:#fff;border-bottom:1px solid var(--line)
  }
  .public-nav.open{display:flex}.public-menu{display:grid;place-items:center}
  .public-hero{grid-template-columns:1fr;padding:40px 30px;min-height:500px}
  .hero-logo{position:absolute;right:20px;top:25px;opacity:.22}
  .hero-copy h1{font-size:60px}
  .coach-public{grid-template-columns:1fr}.coach-photo{min-height:300px}.coach-info{padding:30px}
  .admin-sidebar{transform:translateX(-100%)}.admin-main{margin-left:0;width:100%}
  .admin-grid{grid-template-columns:1fr}
  .login-page{grid-template-columns:1fr}.login-visual{display:none}
}
@media(max-width:570px){
  .grid-3,.admin-news-grid,.stats,.form-grid,.meta-grid{grid-template-columns:1fr}
  .span-2{grid-column:auto}
  .public-main{padding-left:14px;padding-right:14px}
  .public-header{padding:0 14px}.public-brand strong{font-size:21px}
  .public-hero{padding:34px 24px}.hero-copy h1{font-size:50px}
  .public-footer{flex-direction:column;text-align:center}
}


/* ===== CORRECCIÓN PÚBLICO ===== */
body.public-site{min-height:100vh;display:flex;flex-direction:column}
body.public-site .public-header{flex-shrink:0}
body.public-site .public-main{width:100%;flex:1 0 auto}
body.public-site .public-footer{margin-top:auto;flex-shrink:0}

/* ===== CARRUSEL ===== */
.club-carousel{
  position:relative;overflow:hidden;min-height:410px;border-radius:26px;
  color:#fff;background:#062d6b;box-shadow:0 24px 60px rgba(5,44,103,.17);
  touch-action:pan-y;outline:none
}
.carousel-track{
  display:flex;width:100%;min-height:410px;
  transition:transform .68s cubic-bezier(.22,.78,.22,1);will-change:transform
}
.carousel-slide{
  position:relative;min-width:100%;min-height:410px;
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);
  align-items:center;gap:30px;padding:50px 74px;overflow:hidden
}
.carousel-slide:before{
  content:"";position:absolute;right:-140px;bottom:-250px;width:600px;height:600px;border-radius:50%;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 0 0 65px rgba(255,255,255,.025),0 0 0 130px rgba(255,255,255,.012)
}
.slide-brand{
  background:radial-gradient(circle at 84% 19%,rgba(255,255,255,.13),transparent 22%),
             radial-gradient(circle at 93% 64%,rgba(225,0,131,.52),transparent 28%),
             linear-gradient(116deg,#0a4b9d 0%,#062d6b 56%,#bd096e 100%)
}
.slide-coach{
  background:radial-gradient(circle at 81% 30%,rgba(225,0,131,.42),transparent 28%),
             linear-gradient(120deg,#031d49 0%,#0a428b 58%,#44125d 100%)
}
.slide-news{
  background:radial-gradient(circle at 84% 22%,rgba(91,64,199,.52),transparent 28%),
             radial-gradient(circle at 93% 76%,rgba(225,0,131,.42),transparent 24%),
             linear-gradient(115deg,#0b4693 0%,#062c66 55%,#8d0968 100%)
}
.carousel-copy{position:relative;z-index:3;max-width:760px}
.carousel-copy h1{
  margin:18px 0 0;font-family:"Barlow Condensed",sans-serif;font-size:70px;
  line-height:.88;letter-spacing:1px
}
.carousel-copy h2{
  margin:8px 0 16px;font-family:"Barlow Condensed",sans-serif;
  color:#ff7fc2;font-size:30px
}
.carousel-copy p{max-width:700px;color:#dce8f8;font-size:11px;line-height:1.8}
.carousel-visual{position:relative;z-index:3;display:grid;place-items:center;min-height:270px}
.carousel-visual img{
  width:245px;height:245px;object-fit:contain;
  filter:drop-shadow(0 24px 25px rgba(0,0,0,.28))
}
.carousel-news-visual img.publication-photo{
  width:min(360px,100%);height:260px;object-fit:cover;border-radius:18px;
  border:1px solid rgba(255,255,255,.22)
}
.carousel-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:520px;margin-top:18px}
.carousel-meta>div{padding:11px 13px;border-radius:10px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06)}
.carousel-meta span{display:block;color:#a8bddc;font-size:7px;font-weight:900;letter-spacing:.7px}
.carousel-meta strong{display:block;margin-top:4px;font-size:9px}
.carousel-arrow{
  position:absolute;top:50%;z-index:15;width:44px;height:44px;transform:translateY(-50%);
  display:grid;place-items:center;border:1px solid rgba(255,255,255,.26);border-radius:50%;
  color:#fff;background:rgba(2,24,61,.55);backdrop-filter:blur(8px);
  box-shadow:0 10px 22px rgba(0,0,0,.15);font:700 30px/1 Arial,sans-serif;
  transition:.2s ease
}
.carousel-arrow:hover{background:rgba(225,0,131,.92);transform:translateY(-50%) scale(1.06)}
.carousel-arrow:active{transform:translateY(-50%) scale(.95)}
.carousel-prev{left:16px}.carousel-next{right:16px}
.carousel-bottom{
  position:absolute;left:50%;bottom:15px;z-index:16;transform:translateX(-50%);
  display:flex;align-items:center;gap:11px;padding:7px 10px;border-radius:999px;
  background:rgba(2,23,57,.48);backdrop-filter:blur(10px)
}
.carousel-dots{display:flex;gap:7px}
.carousel-dot{
  width:9px;height:9px;padding:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.42);transition:.25s ease
}
.carousel-dot.active{width:24px;border-radius:999px;background:#ff48aa}
.carousel-progress{width:58px;height:3px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.20)}
.carousel-progress span{display:block;width:0;height:100%;border-radius:inherit;background:#fff}
.carousel-progress span.running{animation:carouselProgress 6.5s linear forwards}
@keyframes carouselProgress{from{width:0}to{width:100%}}

/* ===== ADMIN: MENÚ DESLIZABLE SOLO AQUÍ ===== */
.admin-sidebar{transition:transform .34s cubic-bezier(.22,.78,.22,1),box-shadow .34s ease;will-change:transform}
.admin-main{transition:margin-left .34s cubic-bezier(.22,.78,.22,1),width .34s cubic-bezier(.22,.78,.22,1)}
.admin-title-wrap{display:flex;align-items:center;gap:12px}
.admin-menu-btn{
  width:39px;height:39px;display:grid;place-items:center;flex:0 0 39px;border:0;border-radius:9px;
  background:#eef3f9;color:var(--blue);font-size:20px;transition:.2s ease
}
.admin-menu-btn:hover{background:#e2ebf8}
.admin-overlay{display:none}
.admin-content{animation:adminWindowIn .38s cubic-bezier(.22,.78,.22,1)}
@keyframes adminWindowIn{
  from{opacity:.25;transform:translateX(34px)}
  to{opacity:1;transform:translateX(0)}
}
@media(min-width:821px){
  body.admin-sidebar-collapsed .admin-sidebar{transform:translateX(-100%);box-shadow:none}
  body.admin-sidebar-collapsed .admin-main{margin-left:0;width:100%}
}
@media(max-width:820px){
  .admin-sidebar{transform:translateX(-104%);z-index:80}
  body.admin-sidebar-open .admin-sidebar{transform:translateX(0)}
  .admin-main{margin-left:0;width:100%}
  .admin-overlay{
    position:fixed;inset:0;z-index:70;display:block;opacity:0;visibility:hidden;
    background:rgba(1,19,47,.46);transition:.28s ease
  }
  body.admin-sidebar-open .admin-overlay{opacity:1;visibility:visible}
  .carousel-slide{grid-template-columns:1fr;min-height:510px;padding:42px 58px 68px}
  .carousel-copy h1{font-size:54px}
  .carousel-visual{position:absolute;right:28px;top:40px;opacity:.22}
  .carousel-visual img{width:230px;height:230px}
}
@media(max-width:570px){
  .club-carousel,.carousel-track,.carousel-slide{min-height:530px}
  .carousel-slide{padding:36px 48px 78px}
  .carousel-copy h1{font-size:46px}
  .carousel-copy h2{font-size:25px}
  .carousel-meta{grid-template-columns:1fr}
  .carousel-prev{left:8px}.carousel-next{right:8px}
}


/* =========================================================
   LOGO DEL CARRUSEL: SIEMPRE SIN RECUADRO
========================================================= */

.brand-logo-visual,
.brand-logo-visual::before,
.brand-logo-visual::after{
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}

.brand-logo-visual .brand-floating-logo{
  display:block !important;
  width:300px !important;
  height:300px !important;
  max-width:100% !important;
  object-fit:contain !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  padding:0 !important;
  box-shadow:none !important;
  filter:drop-shadow(0 24px 25px rgba(0,0,0,.28)) !important;
}

/* =========================================================
   FOTO ENTRENADOR
========================================================= */

.coach-photo,
.coach-preview .photo,
.coach-carousel-visual{
  position:relative;
}

.coach-real-photo{
  display:block;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

.carousel-visual .coach-real-photo{
  width:270px !important;
  height:300px !important;
  object-fit:cover !important;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 18px 36px rgba(0,0,0,.20);
  filter:none !important;
}

.coach-photo-placeholder{
  width:100%;
  height:100%;
  min-height:inherit;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:11px;
  text-align:center;
  color:#a9bddb;
  background:
    radial-gradient(circle at 50% 35%,rgba(255,255,255,.10),transparent 35%),
    linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}

.coach-photo-placeholder .coach-person-icon{
  width:78px;
  height:78px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.17);
  color:#ff6fbb;
  background:rgba(255,255,255,.07);
  font-size:34px;
}

.coach-photo-placeholder strong{
  font-size:8px;
  letter-spacing:1.4px;
}

.carousel-visual .coach-photo-placeholder{
  width:270px;
  height:300px;
  min-height:300px;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.22);
  background:rgba(255,255,255,.055);
}

.coach-preview .photo .coach-photo-placeholder{
  min-height:340px;
}

.coach-preview .photo .coach-real-photo{
  height:340px !important;
  object-fit:cover !important;
}

.coach-photo .coach-real-photo{
  min-height:420px;
  object-fit:cover !important;
}

.photo-help{
  margin:7px 0 0;
  color:#8a95a7;
  font-size:7px;
  line-height:1.5;
}

.remove-coach-photo{
  margin-top:-4px;
  margin-bottom:12px;
}

.hidden{
  display:none !important;
}

@media(max-width:820px){
  .brand-logo-visual .brand-floating-logo{
    width:230px !important;
    height:230px !important;
  }

  .carousel-visual .coach-photo-placeholder,
  .carousel-visual .coach-real-photo{
    width:220px !important;
    height:250px !important;
    min-height:250px;
  }
}


/* =========================================================
   VISOR DE IMÁGENES - NOTICIAS Y COMUNICADOS
========================================================= */

.news-img img{
  cursor:zoom-in;
  transition:transform .25s ease, filter .25s ease;
}

.news-img:hover img{
  transform:scale(1.025);
  filter:brightness(.94);
}

.news-image-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  visibility:hidden;
  background:rgba(2,14,36,.88);
  backdrop-filter:blur(8px);
  transition:opacity .24s ease, visibility .24s ease;
}

.news-image-modal.open{
  opacity:1;
  visibility:visible;
}

.news-image-dialog{
  position:relative;
  width:min(1050px,94vw);
  max-height:90vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  background:#081a3a;
  box-shadow:0 28px 70px rgba(0,0,0,.48);
  transform:scale(.94) translateY(12px);
  transition:transform .25s cubic-bezier(.22,.78,.22,1);
}

.news-image-modal.open .news-image-dialog{
  transform:scale(1) translateY(0);
}

.news-image-view{
  position:relative;
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:auto;
  background:
    radial-gradient(circle at 50% 35%,rgba(255,255,255,.055),transparent 32%),
    #04132d;
}

.news-image-view img{
  display:block;
  max-width:100%;
  max-height:78vh;
  width:auto;
  height:auto;
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none;
}

.news-image-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:5;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  color:#fff;
  background:rgba(3,24,58,.76);
  backdrop-filter:blur(7px);
  font-size:22px;
  font-weight:700;
  line-height:1;
  transition:.2s ease;
}

.news-image-close:hover{
  background:var(--pink);
  transform:scale(1.06);
}

.news-image-caption{
  display:none;
  padding:13px 17px;
  color:#d7e3f4;
  background:#071a3a;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:9px;
  line-height:1.5;
}

.news-image-caption.visible{
  display:block;
}

body.image-modal-open{
  overflow:hidden;
}

@media(max-width:570px){

  .news-image-modal{
    padding:12px;
  }

  .news-image-dialog{
    width:100%;
    max-height:92vh;
    border-radius:14px;
  }

  .news-image-close{
    top:10px;
    right:10px;
    width:38px;
    height:38px;
  }

  .news-image-view img{
    max-height:82vh;
  }
}


/* =========================================================
   RESTAURAR MOVIMIENTO DEL LOGO PRINCIPAL DEL CARRUSEL
========================================================= */

.brand-logo-visual .brand-floating-logo{
  animation:maranataLogoFloat 4s ease-in-out infinite !important;
  transform-origin:center center;
  will-change:transform;
}

@keyframes maranataLogoFloat{
  0%{
    transform:translateY(0) rotate(0deg);
  }
  50%{
    transform:translateY(-12px) rotate(-1deg);
  }
  100%{
    transform:translateY(0) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce){
  .brand-logo-visual .brand-floating-logo{
    animation:none !important;
  }
}


/* =========================================================
   CORRECCIÓN DE ALINEACIÓN DEL TEXTO EN BOTONES
========================================================= */

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-danger,
.admin-access,
.logout,
.action{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  vertical-align:middle !important;
  line-height:1 !important;
  text-align:center !important;
}

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-danger{
  min-height:41px;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary,
.hero-actions .btn-outline{
  height:41px;
}

.section-title .btn-outline{
  min-height:41px;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

.admin-menu-btn,
.carousel-arrow,
.news-image-close{
  display:grid !important;
  place-items:center !important;
  line-height:1 !important;
}

.public-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1.1;
}

button{
  vertical-align:middle;
}


/* =========================================================
   REDES SOCIALES - FOOTER PÚBLICO
========================================================= */
.footer-social{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.footer-social-title{
  color:#9db3d3;
  font-size:7px;
  font-weight:900;
  letter-spacing:1.4px;
}
.social-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
}
.social-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 8px 18px rgba(0,0,0,.12);
  transition:transform .22s ease,background .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.social-icon svg{
  width:18px;
  height:18px;
  display:block;
}
.social-icon:hover{
  transform:translateY(-3px) scale(1.05);
  background:linear-gradient(135deg,var(--blue),var(--pink));
  border-color:rgba(255,255,255,.32);
  box-shadow:0 12px 24px rgba(0,0,0,.20);
}
.social-icon:active{
  transform:translateY(0) scale(.96);
}
.social-icon:focus-visible{
  outline:2px solid #ff68b7;
  outline-offset:3px;
}
@media(max-width:700px){
  .public-footer{
    flex-direction:column;
    text-align:center;
  }
}


/* =========================================================
   CAMBIO DE ICONO: PEÓN -> ICONO DE PERSONA
========================================================= */

.coach-person-icon{
  width:78px;
  height:78px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.17);
  background:rgba(255,255,255,.07);
  font-size:0 !important;
  color:transparent !important;
  position:relative;
  overflow:hidden;
}

.coach-person-icon::before{
  content:"";
  width:44px;
  height:44px;
  display:block;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6fbb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='7' r='4.1'/><path d='M4.8 20c0-4.1 3.2-7 7.2-7s7.2 2.9 7.2 7'/></svg>");
}

.coach-photo-placeholder .coach-person-icon,
.coach-preview .coach-person-icon{
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.carousel-visual .coach-photo-placeholder .coach-person-icon{
  width:90px;
  height:90px;
}

.carousel-visual .coach-photo-placeholder .coach-person-icon::before{
  width:50px;
  height:50px;
}


/* =========================================================
   ICONO JUGADORES - PERSONA
========================================================= */

.admin-nav .nav-person-icon{
  width:21px;
  height:21px;
  display:grid;
  place-items:center;
  flex:0 0 21px;
  color:#ff66b6;
}

.admin-nav .nav-person-icon svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* =========================================================
   FOOTER PÚBLICO - REDES SOCIALES BIEN POSICIONADAS
========================================================= */

.public-footer{
  display:grid !important;
  grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr) !important;
  align-items:center !important;
  gap:30px !important;
  width:100%;
}

.public-footer .footer-brand{
  justify-self:start;
  margin:0;
}

.public-footer .footer-social{
  justify-self:center;
  align-self:center;
  margin:0;
  min-width:170px;
}

.public-footer > p{
  justify-self:end;
  text-align:right;
  margin:0;
  max-width:310px;
}

.footer-social-title{
  margin-bottom:1px;
}

.social-links{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  min-height:42px;
}

.social-icon{
  width:40px !important;
  height:40px !important;
  flex:0 0 40px;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  margin:0 !important;
  line-height:1 !important;
}

.social-icon svg{
  width:19px !important;
  height:19px !important;
  display:block !important;
  margin:auto !important;
}

@media(max-width:800px){

  .public-footer{
    grid-template-columns:1fr !important;
    justify-items:center !important;
    gap:18px !important;
    text-align:center !important;
  }

  .public-footer .footer-brand,
  .public-footer .footer-social,
  .public-footer > p{
    justify-self:center !important;
  }

  .public-footer > p{
    text-align:center !important;
  }

}


/* =========================================================
   AJUSTE FINAL: REDES EN HORIZONTAL
========================================================= */

.public-footer .footer-social{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  gap:0 !important;
  min-width:auto !important;
  margin:0 !important;
}

.public-footer .social-links{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  margin:0 !important;
  padding:0 !important;
}

.public-footer .social-icon{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  flex:0 0 42px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  margin:0 !important;
  color:#ffffff !important;
  border:1px solid rgba(255,255,255,.18) !important;
  background:linear-gradient(145deg,#0a4b9d,#d5097c) !important;
  box-shadow:0 9px 20px rgba(0,0,0,.16) !important;
}

.public-footer .social-icon svg{
  width:20px !important;
  height:20px !important;
  display:block !important;
  margin:0 !important;
  fill:currentColor !important;
}

.public-footer .social-icon:hover{
  transform:translateY(-3px) scale(1.07) !important;
  background:linear-gradient(145deg,#1763bd,#f0098f) !important;
  box-shadow:0 13px 28px rgba(0,0,0,.24) !important;
}

/* =========================================================
   ICONO PERSONA - COLORES MARANATA AZUL + FUCSIA
========================================================= */

/* Ícono Jugadores del menú administrativo */
.admin-nav .nav-person-icon{
  width:22px !important;
  height:22px !important;
  display:grid !important;
  place-items:center !important;
  flex:0 0 22px !important;
  color:#ff59ad !important;
  border-radius:7px;
  background:rgba(255,89,173,.08);
}

.admin-nav .nav-person-icon svg{
  width:18px !important;
  height:18px !important;
  fill:none !important;
  stroke:#ff59ad !important;
  stroke-width:1.9 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

/* Contenedor de persona cuando todavía no existe foto */
.coach-person-icon{
  width:82px !important;
  height:82px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:50% !important;
  border:2px solid rgba(255,86,170,.58) !important;
  background:
    radial-gradient(circle at 35% 25%,rgba(255,255,255,.17),transparent 28%),
    linear-gradient(145deg,#0a4b9d,#092f6d) !important;
  box-shadow:
    0 12px 26px rgba(0,20,58,.24),
    inset 0 0 0 1px rgba(255,255,255,.08) !important;
  font-size:0 !important;
  color:transparent !important;
  overflow:hidden !important;
}

/* Persona dibujada en fucsia, nunca negra */
.coach-person-icon::before{
  content:"" !important;
  width:48px !important;
  height:48px !important;
  display:block !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:contain !important;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff62b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='7' r='4.1'/><path d='M4.8 20c0-4.1 3.2-7 7.2-7s7.2 2.9 7.2 7'/></svg>") !important;
}

.carousel-visual .coach-photo-placeholder .coach-person-icon{
  width:94px !important;
  height:94px !important;
}

.carousel-visual .coach-photo-placeholder .coach-person-icon::before{
  width:54px !important;
  height:54px !important;
}

/* Adaptación móvil: sigue horizontal */
@media(max-width:800px){

  .public-footer .footer-social,
  .public-footer .social-links{
    flex-direction:row !important;
  }

  .public-footer .social-links{
    gap:12px !important;
  }

}


/* =========================================================
   CORRECCIÓN FINAL: REDES SIEMPRE EN HORIZONTAL
========================================================= */

.footer-social{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  width:auto !important;
}

.footer-social-title{
  display:none !important;
}

.social-links{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  width:auto !important;
}

.social-links a,
.social-icon{
  display:inline-grid !important;
  place-items:center !important;
}

.public-footer .footer-social,
.public-footer .social-links{
  flex-direction:row !important;
}

@media (max-width: 900px){
  .footer-social,
  .social-links,
  .public-footer .footer-social,
  .public-footer .social-links{
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    justify-content:center !important;
    align-items:center !important;
  }
}


/* =========================================================
   ICONO ENTRENADOR - SIN PIEZAS DE AJEDREZ
========================================================= */

.admin-nav .nav-coach-icon{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  flex:0 0 22px;
  border-radius:7px;
  color:#ff59ad;
  background:rgba(255,89,173,.08);
}

.admin-nav .nav-coach-icon svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.admin-nav a.active .nav-coach-icon{
  color:#ffffff;
  background:linear-gradient(135deg,#1458aa,#d5097c);
}


/* =========================================================
   REDES SOCIALES - HORIZONTAL DEFINITIVO
========================================================= */

.footer-social{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  width:auto !important;
  min-width:auto !important;
}

.footer-social-title{
  display:none !important;
}

.social-links{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
}

.social-links .social-icon{
  display:inline-grid !important;
  place-items:center !important;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  flex:0 0 42px !important;
  margin:0 !important;
  padding:0 !important;
}

.social-links .social-icon svg{
  width:20px !important;
  height:20px !important;
  display:block !important;
  margin:0 auto !important;
}

.public-footer .footer-social,
.public-footer .social-links{
  flex-direction:row !important;
  flex-wrap:nowrap !important;
}

@media (max-width: 900px){
  .footer-social,
  .social-links,
  .public-footer .footer-social,
  .public-footer .social-links{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:center !important;
  }
}

.login-error{margin:0 0 14px;padding:10px 12px;border-radius:9px;background:#fff0f4;border:1px solid #f3b7c9;color:#a61b49;font-size:12px;font-weight:700}
