:root{--navy:#2B6CB0;--blue:#5BA3E0;--sky:#7EC8F0;--green:#54b948;--lime:#a8d52a;--orange:#f6a800;--light:#E8F4FC;--text:#2c3e50;--muted:#5a6a7a;--white:#fff;--thumb-news:130px;--thumb-video:150px;--thumb-mini:90px}
*{box-sizing:border-box} body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--light);color:var(--text)}
button,input,select{font:inherit}.top{background:var(--navy);color:white;display:flex;align-items:center;padding:14px 4%;gap:35px;position:sticky;top:0;z-index:20}
.logo{display:flex;align-items:center;gap:12px;min-width:280px}.shield{width:48px;height:58px;border:2px solid #fff;border-radius:12px 12px 22px 22px;display:grid;place-items:center;font-size:25px}.logo b{display:block;font-size:18px}.logo small{color:#cbd8e8}
nav{display:flex;gap:25px;flex:1;justify-content:center}nav a{color:#fff;text-decoration:none;font-size:14px;padding:15px 0;border-bottom:3px solid transparent}nav a:hover{border-color:#6bc34a}
.hero{min-height:420px;background:url('https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1800&q=80') center/cover;display:flex;align-items:center;color:#fff;padding:50px 7%}.hero h1{font-size:52px;margin:0 0 5px}.hero h2{font-size:28px;margin:0 0 15px}.hero p{max-width:650px;font-size:18px;line-height:1.6}.btn{border:0;border-radius:5px;padding:12px 22px;cursor:pointer;font-weight:bold}.primary{background:var(--green);color:#fff}.outline{background:transparent;color:#fff;border:2px solid #fff;margin-left:10px}
.container{max-width:1250px;margin:auto;padding:30px 22px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-title h2{margin:0;font-size:21px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 3px 14px #2B6CB015}.card img{width:100%;height:var(--thumb-news);object-fit:cover;background:#e8f0fa;display:block}.card-body{padding:16px}.tag{display:inline-block;background:var(--green);color:#fff;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:bold}.card h3{margin:12px 0 8px}.muted{color:var(--muted);font-size:13px;line-height:1.5}
.two{display:grid;grid-template-columns:2fr 1fr;gap:25px}.radio{background:linear-gradient(145deg,#2B6CB0,#3d8fd4);color:#fff;border-radius:16px;padding:22px;box-shadow:0 5px 20px #2B6CB020}.live{background:#e73827;display:inline-block;padding:6px 9px;border-radius:5px;font-size:12px;font-weight:bold}.song{font-size:25px;margin:18px 0 3px}.progress{height:6px;background:#ffffff33;border-radius:5px;margin:25px 0}.progress span{display:block;width:62%;height:100%;background:#fff;border-radius:5px}.radio .btn{width:100%;background:#5BA3E0;color:#fff}
.deps{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.dep{background:#fff;border:1px solid #e5ebf2;padding:18px 8px;text-align:center;border-radius:9px;cursor:pointer}.dep:hover{transform:translateY(-2px);box-shadow:0 5px 15px #0001}.icon{font-size:27px;display:block;margin-bottom:7px}
.videos{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.video{position:relative}.video img{height:var(--thumb-video);width:100%;object-fit:cover}.play{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:50px;height:50px;border-radius:50%;background:#ffffffdd;display:grid;place-items:center;color:#3d8fd4;font-size:22px}
.schedule{background:#fff;border-radius:12px;overflow:hidden}.schedule table{width:100%;border-collapse:collapse}.schedule th,.schedule td{padding:12px;border-bottom:1px solid #edf0f5;text-align:left;font-size:14px}.schedule th{background:#E8F4FC}
footer{background:var(--navy);color:#fff;padding:35px 6%;margin-top:20px;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:25px}footer a{display:block;color:#cbd8e8;text-decoration:none;margin:9px 0;font-size:14px}
.modal{display:none;position:fixed;inset:0;background:#0008;z-index:50;align-items:center;justify-content:center}.modal.show{display:flex}.modal-box{background:#fff;width:min(520px,92%);border-radius:12px;padding:25px}.modal-box input,.modal-box select{width:100%;padding:12px;margin:7px 0 15px;border:1px solid #ccd6e2;border-radius:5px}
.admin{display:none;background:#fff;max-width:1250px;margin:25px auto;border-radius:14px;overflow:hidden;box-shadow:0 5px 25px #0002}.admin.show{display:grid;grid-template-columns:220px 1fr}.side{background:#2470b8;color:#fff;padding:20px}.side button{width:100%;text-align:left;background:transparent;border:0;color:#fff;padding:12px;border-radius:6px;cursor:pointer}.side button:hover{background:#3d8fd4}.dash{padding:25px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{padding:18px;background:#E8F4FC;border-radius:8px}.stat b{font-size:25px;display:block}.pending{margin-top:20px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}.pending div{padding:14px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center}.smallbtn{padding:7px 10px;border:0;border-radius:4px;cursor:pointer}.review{background:#3d8fd4;color:#fff}.approve{background:#2ca85a;color:#fff}

.hero{position:relative;overflow:hidden;background:#2B6CB0;min-height:460px;padding:0 7%;display:flex;align-items:center}
.hero::before{content:"";position:absolute;inset:0;background:none;opacity:0;z-index:1;pointer-events:none}
.hero-content{position:relative;z-index:3;max-width:760px;padding:55px 0}
.hero-kicker{display:inline-block;background:#2ca85a;color:#fff;padding:7px 13px;border-radius:20px;font-size:12px;font-weight:bold;letter-spacing:.5px;margin-bottom:15px}
.hero h1,.hero h2,.hero p{transition:opacity .35s ease}
.hero h1{font-size:54px;margin:0 0 5px}.hero h2{font-size:30px;margin:0 0 16px}.hero p{max-width:650px;font-size:18px;line-height:1.6}
.hero-arrow{position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:45px;height:45px;border-radius:50%;border:2px solid #fff;background:#2B6CB088;color:#fff;font-size:36px;line-height:30px;cursor:pointer}
.hero-arrow.left{left:25px}.hero-arrow.right{right:25px}
.hero-dots{position:absolute;z-index:4;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:8px}
.hero-dot{width:10px;height:10px;border-radius:50%;background:#fff9;cursor:pointer;border:1px solid #fff}
.hero-dot.active{background:#2ca85a;transform:scale(1.2)}
.hero-slide-image{position:absolute;inset:0;z-index:0;background-position:center;background-size:cover;background-repeat:no-repeat;background-color:#2B6CB0;transition:opacity .45s ease}


.news-grid{display:grid!important;grid-template-columns:repeat(3,1fr);gap:20px}
.news-card{background:#fff;border:1px solid #e0e4e9;border-radius:0;overflow:hidden;position:relative;min-height:385px}
.news-image{height:205px;position:relative;background:#ddd;overflow:hidden}
.news-image img{width:100%;height:100%;object-fit:cover}
.news-date{position:absolute;left:0;top:16px;background:#5BA3E0;color:#fff;width:70px;height:62px;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:bold;font-size:12px;line-height:1.25}
.news-date.yellow{background:#f3bb08}.news-date.green{background:#a5cd45}
.news-content{padding:16px 17px 18px}.news-content h3{margin:0 0 12px;color:#2B6CB0;font-size:18px;text-transform:uppercase;line-height:1.15}
.news-content p{margin:0;color:#555;font-size:14px;line-height:1.45}
.news-more{display:block;text-align:center;margin-top:16px;color:#e5162f;text-decoration:none;font-size:14px;font-weight:bold}
.news-more:hover{text-decoration:underline}
@media(max-width:900px){.news-grid{grid-template-columns:1fr!important}}

@media(max-width:900px){nav{display:none}.two,.grid,.videos{grid-template-columns:1fr}.deps{grid-template-columns:repeat(2,1fr)}footer{grid-template-columns:1fr 1fr}.stats{grid-template-columns:1fr 1fr}.admin.show{grid-template-columns:1fr}.side{display:none}.hero h1{font-size:38px}}

.school-logo{width:70px;height:70px;object-fit:contain;background:#fff;border-radius:12px;padding:4px;box-shadow:0 2px 8px #0002}
.top{background:linear-gradient(90deg,#2B6CB0,#5BA3E0);box-shadow:0 3px 15px #2B6CB033}
.logo{min-width:330px}
.logo small{display:block;color:#e6f6ff;margin-top:3px}
.hero{background:#2B6CB0;min-height:480px}
.hero::after{content:"";position:absolute;right:0;bottom:-70px;width:340px;height:340px;background:#54b948;border-radius:50% 0 0 0;opacity:0;z-index:0;display:none}
.hero-content{max-width:800px}
.hero-kicker{background:#54b948}
.hero h1{font-weight:800;text-shadow:0 2px 16px rgba(0,0,0,.75),0 1px 4px rgba(0,0,0,.6),0 0 2px rgba(0,0,0,.5)}
.hero h2{color:#aee8ff}
.hero-arrow{background:#5BA3E0cc;border-color:#fff}
.hero-dots .hero-dot.active{background:#54b948}
.section-title h2{color:#2B6CB0}
.news-date{background:#5BA3E0}
.news-date.yellow{background:#f6a800}.news-date.green{background:#54b948}
.news-content h3{color:#2B6CB0}
.news-more{color:#5BA3E0}
.radio{background:linear-gradient(145deg,#2B6CB0,#5BA3E0)}
.radio .btn{background:#54b948}
.dep{border-top:4px solid #5BA3E0}
.dep:nth-child(3n){border-top-color:#54b948}.dep:nth-child(3n+2){border-top-color:#f6a800}
footer{background:#2B6CB0;border-top:7px solid #54b948}
.btn.primary{background:#54b948}.btn.primary:hover{background:#449f3c}
.pending{border-top:4px solid #5BA3E0}
@media(max-width:1100px){.hero-content{max-width:650px}}
@media(max-width:700px){.logo{min-width:auto}.school-logo{width:50px;height:50px}.hero{min-height:430px}}


.radio-brand{display:flex;align-items:center;gap:12px;padding:12px 0 16px}
.radio-brand strong{display:block;font-size:17px}.radio-brand small{display:block;color:#cfe9ff;margin-top:4px}
.radio-orb{width:48px;height:48px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:24px}
.zeno-frame{height:165px;background:#fff;border-radius:10px;overflow:hidden;margin:5px 0 12px;border:2px solid #ffffff44}
.zeno-frame iframe{width:100%;height:100%;border:0}
.radio-link{display:flex!important;justify-content:center;text-decoration:none;background:#54b948!important;color:#fff!important}
.radio-info{margin-top:14px;padding:12px;background:#ffffff14;border-radius:8px}
.radio-info b,.radio-info span{display:block}.radio-info span{font-size:12px;color:#dcefff;margin-top:4px}


/* Caja del reproductor Zeno */
.radio-case{
  background:linear-gradient(160deg,#1e5a96,#2B6CB0 50%,#2470b8);
  border-radius:14px;
  padding:12px;
  border:2px solid #ffffff33;
  box-shadow:0 8px 28px #0005, inset 0 1px 0 #fff2;
  margin:8px 0 14px;
}
.radio-case-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  padding:0 4px;
}
.radio-case-label{
  background:#e73827;
  color:#fff;
  font-size:11px;
  font-weight:bold;
  padding:4px 10px;
  border-radius:4px;
  letter-spacing:.5px;
}
.radio-case-eq{
  display:flex;
  align-items:flex-end;
  gap:3px;
  height:18px;
}
.radio-case-eq i{
  display:block;
  width:4px;
  background:#54b948;
  border-radius:2px;
  animation:eq 1s ease-in-out infinite alternate;
}
.radio-case-eq i:nth-child(1){height:6px;animation-delay:0s}
.radio-case-eq i:nth-child(2){height:12px;animation-delay:.15s}
.radio-case-eq i:nth-child(3){height:18px;animation-delay:.3s}
.radio-case-eq i:nth-child(4){height:10px;animation-delay:.45s}
.radio-case-eq i:nth-child(5){height:14px;animation-delay:.6s}
@keyframes eq{
  from{transform:scaleY(.4)}
  to{transform:scaleY(1)}
}
.radio-case .zeno-frame{
  height:220px;
  background:#000;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #ffffff22;
  margin:0;
}
.radio-case .zeno-frame iframe{
  width:100%;
  height:100%;
  border:0;
}
.radio-case-bottom{margin-top:12px}
.radio-case-bottom .radio-link{
  width:100%;
  display:block;
  text-align:center;
}


/* Reproductor nativo en la caja de radio */
.native-player{
  display:flex;
  align-items:center;
  gap:14px;
  background:#ffffff12;
  border-radius:12px;
  padding:14px 16px;
  margin-bottom:12px;
  border:1px solid #ffffff22;
}
.play-btn{
  width:56px;height:56px;border-radius:50%;
  border:0;background:#54b948;color:#fff;
  font-size:22px;cursor:pointer;flex-shrink:0;
  box-shadow:0 4px 14px #54b94866;
  transition:transform .15s, background .15s;
}
.play-btn:hover{transform:scale(1.06);background:#449f3c}
.play-btn.playing{background:#e73827;box-shadow:0 4px 14px #e7382766}
.native-info{flex:1;min-width:0}
.native-info strong{display:block;color:#fff;font-size:15px}
.native-info span{display:block;color:#cfe9ff;font-size:12px;margin-top:3px}
.vol-slider{
  width:80px;accent-color:#54b948;cursor:pointer;
}
.radio-case-eq.active i{animation-play-state:running}
.radio-case-eq i{animation-play-state:paused}


/* marca OFB escudo */
:root{
  --navy:#2B6CB0;
  --blue:#5BA3E0;
  --sky:#16a9df;
  --green:#54b948;
  --lime:#a8d52a;
  --orange:#f6a800;
}
.school-logo{border:2px solid #e8f0fa}
.footer-logo{width:56px;height:56px;object-fit:contain;background:#fff;border-radius:10px;padding:3px;margin-bottom:8px}


.dep-ico{font-size:28px;line-height:1;display:block;margin-bottom:6px}

/* Mascota tortuga – solo flota (suave) */
.mascot{
  position:absolute;
  z-index:3;
  right:5%;
  bottom:0;
  height:400px;
  width:auto;
  max-width:280px;
  object-fit:contain;
  object-position:bottom;
  background:transparent !important;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.35));
  pointer-events:none;
  user-select:none;
  animation: mascot-float 3s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes mascot-float{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@media(max-width:1100px){
  .mascot{ right:2%; height:320px; max-width:220px; }
}
@media(max-width:700px){
  .mascot{ display:none; }
}


/* Miniaturas configurables */
.thumb-mini{width:100%;height:var(--thumb-mini);object-fit:cover;display:block}
.thumbs-deps{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}


/* Reproductor embebido de videos */
.video-embed{position:relative;width:100%;padding-top:56.25%;background:#000}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.mini-video-card{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 10px #2B6CB015}
.mini-video-frame{position:relative;width:100%;padding-top:56.25%;background:#111}
.mini-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.mini-video-meta{padding:8px 9px}
.mini-video-meta b{font-size:12px;line-height:1.3;display:block}
.mini-video-meta .muted{font-size:11px}


/* Click-to-play YouTube (miniatura + podcast) */
.yt-player{position:relative;width:100%;padding-top:56.25%;background:#0b1220;cursor:pointer;overflow:hidden}
.yt-player .yt-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.yt-player .yt-play-btn{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:52px;height:52px;border-radius:50%;border:0;cursor:pointer;
  background:#e73827;color:#fff;font-size:20px;line-height:1;
  box-shadow:0 4px 16px #0006;z-index:2;
}
.yt-player-mini .yt-play-btn{width:36px;height:36px;font-size:14px}
.yt-player.is-playing{cursor:default}
.yt-player.is-playing .yt-play-btn,.yt-player.is-playing .yt-poster{display:none}
.mini-video-card .yt-player-mini{border-radius:0}


/* Programación + Playlist */
.prog-playlist{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}
.prog-subtitle{margin:0;padding:14px 16px 8px;font-size:16px;color:var(--navy)}
.playlist-box{background:#fff;border-radius:12px;overflow:hidden}
.playlist-list{list-style:none;margin:0;padding:0 0 12px}
.playlist-item{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid #edf0f5;flex-wrap:wrap}
.playlist-item:last-child{border-bottom:0}
.playlist-num{width:26px;height:26px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:bold;flex-shrink:0}
.playlist-info{flex:1;min-width:120px;font-size:14px}
.playlist-audio{width:100%;max-width:220px;height:32px}
@media(max-width:900px){.prog-playlist{grid-template-columns:1fr}}


/* Perfil rector / coordinadores en hoja de dependencia */
.perfil-dep-grid{display:grid;grid-template-columns:200px 1fr;gap:0;min-height:180px}
.perfil-dep-foto{background:#E8F4FC}
.perfil-dep-foto img{width:100%;height:100%;min-height:220px;object-fit:cover;display:block}
.perfil-dep-placeholder{min-height:220px;display:grid;place-items:center;font-size:64px;background:linear-gradient(145deg,#E8F4FC,#d0e8f8)}
.perfil-dep-info{padding:22px 26px}
.perfil-dep-nombre{margin:0 0 4px;font-size:22px;color:var(--navy)}
.perfil-dep-cargo{margin:0 0 14px;color:var(--blue);font-weight:bold;font-size:14px}
.perfil-dep-bio{font-size:15px;line-height:1.65;color:#333}
@media(max-width:700px){.perfil-dep-grid{grid-template-columns:1fr}.perfil-dep-foto img,.perfil-dep-placeholder{min-height:200px}}


/* Contacto + documentos */
.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:18px;align-items:stretch}
.map-wrap{min-height:280px}
.docs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.doc-card{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #e0e4e9;border-radius:12px;padding:14px 16px;text-decoration:none;color:inherit;box-shadow:0 2px 10px #2B6CB012;transition:transform .15s ease,box-shadow .15s ease}
.doc-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px #2B6CB022}
.doc-ico{font-size:28px;line-height:1}
.doc-card b{display:block;font-size:14px;margin-bottom:4px;color:var(--navy)}
.doc-card small{display:block;font-size:12px}
.doc-action{color:var(--blue)!important;margin-top:6px;font-weight:bold}
@media(max-width:900px){.contact-grid{grid-template-columns:1fr}}


/* Reproductor dentro de Programación y Playlist */
.radio-inline{max-width:100%;border-radius:16px}
.radio-inline-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.radio-inline .radio-case{margin-top:8px}
.radio-inline .zeno-frame{height:180px}
@media(max-width:700px){.radio-inline .zeno-frame{height:160px}}


/* ========== RESPONSIVE / MÓVIL ========== */
.nav-toggle{
  display:none;
  background:transparent;
  border:2px solid #fff;
  color:#fff;
  width:44px;height:44px;
  border-radius:10px;
  font-size:22px;
  cursor:pointer;
  flex-shrink:0;
  line-height:1;
}
.nav-toggle:hover{background:#ffffff22}
.top-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}

@media (max-width: 980px){
  .top{
    flex-wrap:wrap;
    gap:12px;
    padding:12px 4%;
  }
  .logo{min-width:0;flex:1}
  .logo b{font-size:15px}
  .logo small{font-size:11px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center}
  nav{
    display:none;
    width:100%;
    order:10;
    flex-direction:column;
    gap:0;
    background:#1e4f8c;
    border-radius:12px;
    padding:8px;
    margin-top:4px;
  }
  nav.open{display:flex}
  nav a{
    padding:12px 14px;
    border-bottom:1px solid #ffffff22;
    border-radius:8px;
  }
  nav a:last-child{border-bottom:0}
  nav a:hover{background:#ffffff15;border-color:transparent}
  .hero{
    min-height:360px;
    padding:36px 5%;
  }
  .hero h1{font-size:34px}
  .hero h2{font-size:20px}
  .hero p{font-size:15px}
  .hero .btn{display:inline-block;margin:6px 8px 6px 0}
  .hero .outline{margin-left:0}
  .hero-arrow{width:38px;height:38px;font-size:28px}
  .hero-arrow.left{left:10px}
  .hero-arrow.right{right:10px}
  .grid{grid-template-columns:1fr 1fr}
  .two{grid-template-columns:1fr}
  .deps{grid-template-columns:repeat(2,1fr)}
  .videos{grid-template-columns:1fr 1fr}
  footer{grid-template-columns:1fr 1fr}
  .stats{grid-template-columns:1fr 1fr}
  .container{padding:22px 16px}
}

@media (max-width: 640px){
  .top{padding:10px 3%}
  .school-logo{width:44px;height:44px}
  .logo b{font-size:13px;line-height:1.25}
  .logo br{display:none}
  .hero{min-height:320px;padding:28px 4%}
  .hero h1{font-size:26px}
  .hero h2{font-size:17px}
  .hero p{font-size:14px;line-height:1.45}
  .hero-kicker{font-size:11px;padding:5px 10px}
  .hero-content{padding:30px 0}
  .mascot{display:none}
  .grid,.videos,.deps{grid-template-columns:1fr}
  footer{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr}
  .section-title{flex-direction:column;align-items:flex-start;gap:8px}
  .section-title h2{font-size:18px}
  .card img{height:180px}
  .table-admin{display:block;overflow-x:auto;width:100%}
  .form-card{padding:16px}
  .form-card input,.form-card textarea,.form-card select{max-width:100%}
  .btn{padding:10px 16px;font-size:14px}
  .login-box{width:92%;max-width:360px;margin:auto}
  .playlist-audio{max-width:100%}
  .docs-grid{grid-template-columns:1fr}
  .radio-inline .zeno-frame{height:140px}
}

/* Admin panel responsive */
@media (max-width: 900px){
  .admin-wrap{
    grid-template-columns:1fr !important;
  }
  .side{
    position:relative;
    width:100%;
    max-height:none;
    display:block;
  }
  .side h3{margin-bottom:8px}
  .side a{
    display:inline-block;
    margin:4px 4px 4px 0;
    padding:8px 12px;
    font-size:13px;
  }
  .dash{padding:16px 12px}
  .stats{grid-template-columns:1fr 1fr}
}

@media (max-width: 640px){
  .admin-wrap .stats{grid-template-columns:1fr}
  .table-admin th,.table-admin td{font-size:12px;padding:8px 6px}
  .smallbtn{display:inline-block;margin:2px 0}
}

/* Imágenes y media fluidos */
img,video,iframe{max-width:100%;height:auto}
.hero-slide-image{background-size:cover;background-position:center}
audio{max-width:100%}


@media (min-width: 981px){
  .top{display:flex;align-items:center;gap:20px}
  .top-actions{order:3}
  nav#mainNav, .top > nav{display:flex !important;order:2}
  .nav-toggle{display:none !important}
}

/* ========== Centrado y responsivo reforzado ========== */
html{scroll-behavior:smooth}
body{overflow-x:hidden}
.container,
.section-title,
.two,
.grid,
.deps,
.videos,
.news-grid,
.prog-playlist,
.contact-grid{
  width:100%;
  max-width:1250px;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}
.container{padding-left:clamp(14px,4vw,28px);padding-right:clamp(14px,4vw,28px)}
.top{
  max-width:100%;
  margin:0 auto;
  justify-content:space-between;
  flex-wrap:wrap;
  box-sizing:border-box;
}
.top > .logo{flex-shrink:0}
.top-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
nav#mainNav{
  flex:1;
  justify-content:center;
  flex-wrap:wrap;
}
.hero{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.hero-content{
  width:100%;
  max-width:800px;
  margin:0;
  box-sizing:border-box;
}
.hero .btn{margin-top:6px}
footer{
  max-width:100%;
  box-sizing:border-box;
}
footer > *{min-width:0}
.card,.news-card,.dep,.video,.radio,.playlist-box,.schedule{min-width:0}
.two > *,.grid > *,.deps > *,.videos > *{min-width:0}

/* Tablet */
@media (max-width: 1100px){
  .deps{grid-template-columns:repeat(4,1fr)}
  .hero-content{max-width:92%}
  .mascot{max-width:200px;height:auto;right:2%}
}

@media (max-width: 980px){
  .top{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    padding:12px 4%;
  }
  .logo{min-width:0;flex:1}
  .top-actions{order:2;margin-left:auto}
  nav#mainNav{
    display:none;
    order:3;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:rgba(0,0,0,.12);
    border-radius:10px;
    padding:6px;
    margin-top:4px;
  }
  nav#mainNav.open,
  nav#mainNav.show{
    display:flex !important;
  }
  nav#mainNav a{
    padding:12px 14px;
    border-bottom:1px solid rgba(255,255,255,.15);
    border-radius:6px;
    text-align:left;
  }
  nav#mainNav a:last-child{border-bottom:0}
  .nav-toggle{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:42px;height:42px;
    border:1px solid rgba(255,255,255,.5);
    background:transparent;
    color:#fff;
    border-radius:8px;
    font-size:22px;
    cursor:pointer;
  }
  .two{grid-template-columns:1fr}
  .grid,.news-grid,.videos{grid-template-columns:repeat(2,1fr)}
  .deps{grid-template-columns:repeat(3,1fr)}
  .contact-grid{grid-template-columns:1fr}
  footer{grid-template-columns:1fr 1fr;gap:18px}
  .hero{min-height:380px;padding:40px 5%}
  .hero h1{font-size:36px}
  .hero h2{font-size:22px}
  .mascot{display:none}
}

@media (max-width: 640px){
  .grid,.news-grid,.videos,.deps{grid-template-columns:1fr}
  footer{grid-template-columns:1fr}
  .hero{min-height:300px;padding:32px 4%}
  .hero h1{font-size:28px;line-height:1.15}
  .hero h2{font-size:18px}
  .hero p{font-size:14px;max-width:100%}
  .hero-content{max-width:100%}
  .hero-arrow{width:36px;height:36px;font-size:26px}
  .hero-arrow.left{left:8px}
  .hero-arrow.right{right:8px}
  .section-title{flex-wrap:wrap}
  .native-player{flex-wrap:wrap}
  .vol-slider{width:100%;max-width:160px}
  .login-box,.modal-box{width:92%;max-width:400px;margin-left:auto;margin-right:auto}
}

/* Centrar modal de login */
.modal{align-items:center;justify-content:center;padding:16px}
.modal-box{margin:auto}


/* full poster contain */
.card.card-noticia .card-img-wrap{
  height:auto;
  min-height:180px;
  max-height:420px;
  background:#f5f7fa;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  cursor:zoom-in;
  position:relative;
}
.card.card-noticia .card-img-wrap img{
  height:auto !important;
  max-height:420px;
  width:100%;
  object-fit:contain !important;
  object-position:center center !important;
  transition:transform .35s ease;
  background:#f5f7fa;
}
.card.card-noticia:hover .card-img-wrap img{
  transform:scale(1.05);
}

.lb-overlay{display:none;position:fixed;inset:0;background:rgba(15,30,50,.88);z-index:9999;align-items:center;justify-content:center;padding:20px;cursor:zoom-out}
.lb-overlay.show{display:flex}
.lb-overlay img{max-width:min(920px,96vw);max-height:90vh;object-fit:contain;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.45);background:#fff}
.lb-close{position:fixed;top:16px;right:20px;background:#fff;color:#2D6EB1;border:0;border-radius:50%;width:40px;height:40px;font-size:22px;cursor:pointer;z-index:10000;box-shadow:0 4px 12px rgba(0,0,0,.2)}


/* dep iconos visibles */
.dep-ico{
  font-size:32px !important;
  line-height:1.2 !important;
  display:block !important;
  margin-bottom:8px !important;
  font-family: "Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif !important;
}


/* WhatsApp canal flotante */
.wa-float{
  position:fixed;
  right:18px;
  bottom:22px;
  z-index:99999;
  display:flex;
  align-items:center;
  gap:10px;
  background:#25D366;
  color:#fff !important;
  text-decoration:none !important;
  padding:10px 16px 10px 12px;
  border-radius:50px;
  box-shadow:0 8px 24px rgba(37,211,102,.45);
  font-family:Arial,Helvetica,sans-serif;
  transition:transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover{
  transform:translateY(-3px) scale(1.03);
  box-shadow:0 12px 28px rgba(37,211,102,.55);
  color:#fff !important;
}
.wa-float-icon{
  width:42px;height:42px;
  border-radius:50%;
  background:#1ebe57;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.wa-float-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
  padding-right:4px;
}
.wa-float-text strong{font-size:14px;font-weight:bold}
.wa-float-text small{font-size:11px;opacity:.95}
@media(max-width:600px){
  .wa-float{right:12px;bottom:14px;padding:8px 12px 8px 8px}
  .wa-float-text strong{font-size:13px}
  .wa-float-icon{width:38px;height:38px}
}


/* Actualización de matrículas */
.matriculas-block .matriculas-card{
  border:2px solid #cfe3f5;
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(135deg,#f0f7fc 0%,#ffffff 55%);
  box-shadow:0 6px 20px rgba(45,110,177,.08);
}
.matriculas-inner{
  display:flex;
  gap:22px;
  align-items:flex-start;
  padding:26px 28px;
}
.matriculas-ico{
  font-size:42px;
  line-height:1;
  flex-shrink:0;
  width:64px;height:64px;
  display:flex;align-items:center;justify-content:center;
  background:#e8f3fb;
  border-radius:14px;
}
.matriculas-body h3{
  margin:0 0 10px;
  color:var(--navy,#2D6EB1);
  font-size:20px;
}
.matriculas-body p{
  margin:0 0 16px;
  color:#445;
  line-height:1.55;
  font-size:15px;
}
.matriculas-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
@media(max-width:600px){
  .matriculas-inner{flex-direction:column;padding:20px}
  .matriculas-ico{width:52px;height:52px;font-size:32px}
}


/* Embed encuesta matrículas (Google Forms) */
.matriculas-embed-wrap{
  margin-top:8px;
  padding:0 22px 22px;
  border-top:1px solid #d9e8f5;
}
.matriculas-embed-title{
  margin:18px 0 12px;
  color:var(--navy,#2D6EB1);
  font-size:16px;
}
.matriculas-embed{
  border-radius:12px;
  overflow:hidden;
  border:1px solid #cfe0f0;
  background:#fff;
  min-height:400px;
}
.matriculas-embed iframe{
  display:block;
  width:100%;
  min-height:720px;
  border:0;
}
@media(max-width:600px){
  .matriculas-embed-wrap{padding:0 12px 16px}
  .matriculas-embed iframe{min-height:560px}
}


/* Copyright y crédito de desarrollo */
.footer-copy{
  background:#1a4a7a;
  color:#d6e8f8;
  font-size:13px;
  padding:14px 22px;
  border-top:1px solid rgba(255,255,255,.12);
}
.footer-copy-inner{
  max-width:1250px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  justify-content:space-between;
  align-items:center;
}
.footer-dev{
  opacity:.95;
}
@media(max-width:600px){
  .footer-copy-inner{flex-direction:column;text-align:center;gap:6px}
}

/* =========================================================
   MÓVIL REFORZADO – OFB (teléfonos y tablets)
   ========================================================= */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
img,video,iframe,table{max-width:100%}
iframe{width:100%}

/* Menú hamburguesa más usable */
.nav-toggle{
  min-width:44px;min-height:44px;
  touch-action:manipulation;
}

@media (max-width: 980px){
  .top{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    padding:12px 4% !important;
  }
  .logo{flex:1;min-width:0}
  .logo b{font-size:14px !important;line-height:1.25}
  .logo small{font-size:11px;opacity:.9}
  .top-actions{order:2;margin-left:auto}
  .nav-toggle{display:inline-flex !important;order:3}

  nav#mainNav,
  .top > nav{
    display:none;
    width:100%;
    order:20;
    flex-direction:column;
    gap:4px;
    background:#1a4a82;
    border-radius:12px;
    padding:10px;
    margin:0;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
  }
  nav#mainNav.open,
  nav#mainNav.show,
  .top > nav.open,
  .top > nav.show{
    display:flex !important;
  }
  nav#mainNav a,
  .top > nav a{
    display:block;
    width:100%;
    padding:14px 16px !important;
    font-size:15px;
    border-radius:8px;
    border-bottom:0 !important;
    box-sizing:border-box;
  }
  nav#mainNav a:active,
  .top > nav a:active{background:rgba(255,255,255,.18)}

  .hero{min-height:340px;padding:32px 5% !important}
  .hero h1{font-size:clamp(26px,7vw,36px) !important;line-height:1.15}
  .hero h2{font-size:clamp(16px,4.5vw,22px) !important}
  .hero p{font-size:14px !important;max-width:100%}
  .hero .btn{
    display:inline-block;
    margin:6px 8px 6px 0 !important;
    padding:12px 18px;
  }
  .mascot{display:none !important}

  .container{padding:20px 14px !important}
  .grid,.news-grid,.videos{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px}
  .deps{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .two,.contact-grid,.prog-playlist{grid-template-columns:1fr !important}
  footer{grid-template-columns:1fr 1fr !important;gap:16px;padding:28px 4%}

  .wa-float{
    right:12px;bottom:12px;
    padding:10px 12px;
    max-width:calc(100vw - 24px);
  }
  .wa-float-text small{display:none}
}

@media (max-width: 640px){
  .school-logo{width:42px !important;height:42px !important}
  .logo b{font-size:13px !important}
  .logo br{display:none}

  .hero{min-height:280px;padding:24px 4% !important}
  .hero-content{padding:20px 0 !important;max-width:100%}
  .hero h1{font-size:24px !important}
  .hero h2{font-size:16px !important}
  .hero .btn{width:100%;text-align:center;margin:6px 0 !important;box-sizing:border-box}
  .hero-arrow{width:36px;height:36px;font-size:22px}
  .hero-arrow.left{left:6px}
  .hero-arrow.right{right:6px}

  .grid,.news-grid,.videos,.deps,
  .galeria-grid{grid-template-columns:1fr !important}
  footer{grid-template-columns:1fr !important}
  .section-title{flex-direction:column;align-items:flex-start;gap:8px}
  .section-title h2{font-size:18px}

  .card img{height:200px !important;object-fit:cover}
  .dep-card,.area-card{min-height:auto}

  .radio-inline .zeno-frame,
  .cassette-player iframe,
  #radio iframe{height:150px !important;max-width:100%}

  .table-admin,table{display:block;overflow-x:auto;width:100%;-webkit-overflow-scrolling:touch}

  .form-card input,
  .form-card textarea,
  .form-card select,
  .login-box input{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box;
    font-size:16px !important; /* evita zoom iOS */
  }

  .admin-wrap{grid-template-columns:1fr !important}
  .side{position:relative !important;height:auto !important;max-height:none}

  .footer-copy-inner{
    flex-direction:column;
    text-align:center;
    gap:6px;
    font-size:12px;
  }

  .wa-float{border-radius:50px;padding:12px}
  .wa-float-text{display:none}
}

@media (max-width: 400px){
  .hero h1{font-size:22px !important}
  .container{padding:16px 12px !important}
}

/* Tablets en horizontal */
@media (min-width: 641px) and (max-width: 980px){
  .grid,.news-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .deps{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}

/* =========================================================
   OFB · CAPA MODERNA (UI 2026) – sobre el sistema existente
   ========================================================= */
:root{
  --ofb-radius:16px;
  --ofb-shadow:0 10px 30px rgba(20,60,100,.10);
  --ofb-shadow-hover:0 16px 40px rgba(20,60,100,.16);
  --ofb-ease:cubic-bezier(.22,.61,.36,1);
  --bg-page:#f4f8fc;
  --bg-card:#ffffff;
  --text-main:#1a2b3c;
  --text-muted:#5a6b7d;
  --header-bg:#2D6EB1;
  --header-text:#fff;
}
html.theme-dark{
  --bg-page:#0f1720;
  --bg-card:#1a2430;
  --text-main:#e8eef5;
  --text-muted:#9aabbc;
  --header-bg:#15202b;
  --header-text:#e8eef5;
  --ofb-shadow:0 10px 30px rgba(0,0,0,.35);
  --ofb-shadow-hover:0 16px 40px rgba(0,0,0,.45);
}
html.theme-dark body{background:var(--bg-page);color:var(--text-main)}
html.theme-dark .card,
html.theme-dark .dep-card,
html.theme-dark .form-card,
html.theme-dark .radio-inline,
html.theme-dark .contact-grid > div,
html.theme-dark .login-box{
  background:var(--bg-card)!important;
  color:var(--text-main);
  border-color:#2a3a4a!important;
}
html.theme-dark .muted{color:var(--text-muted)!important}
html.theme-dark .top{background:var(--header-bg)!important}
html.theme-dark footer{background:#0b1218!important;color:#c5d0dc}
html.theme-dark .section-title h2{color:var(--text-main)}
html.theme-dark .pill-row span,
html.theme-dark .pills span{background:#243040!important;color:#d0dbe8!important}

body{
  background:var(--bg-page);
  color:var(--text-main);
  transition:background .35s var(--ofb-ease),color .35s var(--ofb-ease);
}

/* Header más limpio */
.top{
  backdrop-filter:saturate(1.2) blur(8px);
  box-shadow:0 4px 20px rgba(15,40,80,.12);
  transition:background .35s var(--ofb-ease),box-shadow .35s var(--ofb-ease);
}
.top a{transition:opacity .2s,transform .2s var(--ofb-ease),background .2s}
.top a:hover{opacity:.95;transform:translateY(-1px)}

/* Botón tema */
.theme-toggle{
  border:1px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.12);
  color:#fff;
  width:42px;height:42px;
  border-radius:12px;
  cursor:pointer;
  font-size:18px;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .2s,transform .2s;
  flex-shrink:0;
}
.theme-toggle:hover{background:rgba(255,255,255,.22);transform:scale(1.05)}
html.theme-dark .theme-toggle{border-color:rgba(255,255,255,.25)}

/* Hero cinematográfico */
.hero{
  position:relative;
  overflow:hidden;
  border-radius:0 0 24px 24px;
}
.hero-slide-image{
  transform:scale(1.04);
  transition:transform 6s var(--ofb-ease),opacity .6s ease;
  will-change:transform;
}
.hero.is-animating .hero-slide-image{transform:scale(1.12)}
.hero::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(120deg,rgba(8,24,48,.72) 0%,rgba(8,24,48,.35) 45%,rgba(8,24,48,.15) 100%);
  pointer-events:none;
  z-index:1;
}
.hero-content{position:relative;z-index:2}
.hero-content > *{
  animation:ofbFadeUp .7s var(--ofb-ease) both;
}
.hero-content h1{animation-delay:.05s}
.hero-content h2{animation-delay:.12s}
.hero-content p{animation-delay:.18s}
.hero-content .btn{animation-delay:.24s}
@keyframes ofbFadeUp{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:translateY(0)}
}
.hero .btn{
  transition:transform .2s var(--ofb-ease),box-shadow .2s,background .2s;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.hero .btn:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.22)}
.hero-dot{transition:transform .2s,background .2s}
.hero-dot.active{transform:scale(1.25)}

/* Tarjetas modernas */
.card,.dep-card,.area-card{
  border-radius:var(--ofb-radius)!important;
  box-shadow:var(--ofb-shadow)!important;
  border:1px solid rgba(45,110,177,.08);
  transition:transform .35s var(--ofb-ease),box-shadow .35s var(--ofb-ease),border-color .25s;
  overflow:hidden;
  background:var(--bg-card);
}
.card:hover,.dep-card:hover,.area-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--ofb-shadow-hover)!important;
  border-color:rgba(45,110,177,.22);
}
.card img{
  transition:transform .6s var(--ofb-ease);
}
.card:hover img{transform:scale(1.05)}

/* Reveal al scroll */
.ofb-reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s var(--ofb-ease),transform .7s var(--ofb-ease);
}
.ofb-reveal.is-visible{
  opacity:1;
  transform:none;
}

/* Sección títulos */
.section-title h2{
  letter-spacing:-.02em;
  position:relative;
}
.section-title a{
  transition:color .2s,transform .2s;
}
.section-title a:hover{transform:translateX(3px)}

/* Botones generales */
.btn.primary{
  transition:transform .2s var(--ofb-ease),box-shadow .2s,filter .2s;
}
.btn.primary:hover{filter:brightness(1.05);transform:translateY(-1px)}

/* Radio / multimedia más premium */
.radio-inline,.cassette-player{
  border-radius:20px!important;
  box-shadow:var(--ofb-shadow);
  overflow:hidden;
}

/* WhatsApp flotante */
.wa-float{
  transition:transform .25s var(--ofb-ease),box-shadow .25s;
  box-shadow:0 10px 28px rgba(18,140,80,.35);
}
.wa-float:hover{transform:translateY(-3px) scale(1.03)}

/* Preferencia de menos movimiento */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
  .ofb-reveal{opacity:1;transform:none}
}


/* =========================================================
   NOTICIAS PREMIUM
   ========================================================= */
.news-premium{
  display:flex;
  flex-direction:column;
  padding:0 !important;
  background:var(--bg-card, #fff);
  border-radius:18px !important;
  overflow:hidden;
  border:1px solid rgba(45,110,177,.10);
  box-shadow:0 12px 32px rgba(20,60,100,.10) !important;
  transition:transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s;
}
.news-premium:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 44px rgba(20,60,100,.16) !important;
}
.news-premium-link{
  display:block;
  color:inherit;
  text-decoration:none;
  flex:1;
}
.news-premium-media{
  position:relative;
  height:200px;
  overflow:hidden;
  background:#d9e6f2;
}
.news-premium-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .7s cubic-bezier(.22,.61,.36,1);
}
.news-premium:hover .news-premium-media img{
  transform:scale(1.08);
}
.news-premium-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent 40%, rgba(10,24,40,.55) 100%);
  pointer-events:none;
}
.news-premium-tag{
  position:absolute;
  left:12px;
  bottom:12px;
  z-index:2;
  margin:0;
  backdrop-filter:blur(6px);
  background:rgba(45,110,177,.92) !important;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
}
.news-premium-body{
  padding:16px 18px 18px !important;
}
.news-premium-body h3{
  margin:0 0 8px;
  font-size:17px;
  line-height:1.35;
  letter-spacing:-.01em;
  color:var(--text-main, #1a2b3c);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.6em;
}
.news-premium-excerpt{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0 0 12px;
  font-size:13px;
  line-height:1.5;
  min-height:3.9em;
}
.news-premium-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid rgba(45,110,177,.08);
  padding-top:10px;
}
.news-premium-meta small{
  color:var(--text-muted, #5a6b7d);
  font-size:12px;
}
.news-premium-more{
  font-size:12px;
  font-weight:700;
  color:#2D6EB1;
  letter-spacing:.02em;
  transition:transform .25s, color .25s;
}
.news-premium:hover .news-premium-more{
  transform:translateX(4px);
  color:#1e5a9a;
}
.news-premium-extra{
  padding:0 18px 16px;
}
.news-premium-extra .btn-enlace{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  color:#2D6EB1;
  text-decoration:none;
  padding:6px 10px;
  border-radius:8px;
  background:rgba(45,110,177,.08);
}
html.theme-dark .news-premium{
  border-color:#2a3a4a;
  box-shadow:0 12px 32px rgba(0,0,0,.35) !important;
}
html.theme-dark .news-premium-body h3{color:var(--text-main)}
html.theme-dark .news-premium-meta{
  border-top-color:#2a3a4a;
}
html.theme-dark .news-premium-more{color:#7eb6f0}

#noticias .grid,
.noticias-premium-grid{
  gap:20px !important;
}

@media (max-width:640px){
  .news-premium-media{height:180px}
  .news-premium-body h3{font-size:16px;min-height:0}
  .news-premium-excerpt{min-height:0}
}

/* =========================================================
   FOTOS DE NOTICIAS COMPLETAS (sin recortar)
   ========================================================= */
.news-premium-media,
.card.card-noticia .card-img-wrap{
  height:auto !important;
  min-height:180px;
  max-height:none !important;
  background:#eef4fa !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.news-premium-media img,
.card.card-noticia .card-img-wrap img,
.card.card-noticia.news-premium img{
  width:100% !important;
  height:auto !important;
  max-height:420px !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:#eef4fa;
}
.news-premium:hover .news-premium-media img{
  transform:scale(1.02) !important; /* zoom suave sin recortar tanto */
}
.news-premium-shade{
  background:linear-gradient(180deg, transparent 55%, rgba(10,24,40,.35) 100%) !important;
}

/* Página de detalle: imagen completa */
.noticia-detalle .hero-img{
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
  background:#eef4fa;
}

@media (max-width:640px){
  .news-premium-media img,
  .card.card-noticia .card-img-wrap img{
    max-height:320px !important;
  }
}

/* =========================================================
   MULTIMEDIA MODERNA (sin tablas rígidas)
   ========================================================= */
.prog-card-list{display:flex;flex-direction:column;gap:10px}
.prog-card{
  display:grid;
  grid-template-columns:110px 1fr auto;
  gap:12px;
  align-items:center;
  padding:14px 16px;
  border-radius:14px;
  background:var(--bg-card,#fff);
  border:1px solid rgba(45,110,177,.12);
  box-shadow:0 6px 18px rgba(20,60,100,.06);
  transition:transform .25s, box-shadow .25s;
}
.prog-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(20,60,100,.10)}
.prog-card.is-live{
  border-color:rgba(220,50,50,.35);
  background:linear-gradient(135deg,rgba(220,50,50,.06),var(--bg-card,#fff));
}
.prog-card-time{
  font-weight:800;
  font-size:15px;
  color:#2D6EB1;
  letter-spacing:.02em;
}
.prog-card-sep{opacity:.5;margin:0 2px}
.prog-card-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.prog-card-body b{font-size:15px;color:var(--text-main,#1a2b3c)}
.prog-card-body .muted{font-size:12px;line-height:1.4}
.badge-live{
  display:inline-block;
  background:#e53935;
  color:#fff;
  font-size:11px;
  font-weight:800;
  padding:5px 10px;
  border-radius:999px;
  letter-spacing:.04em;
  animation:livePulse 1.6s ease-in-out infinite;
}
.badge-soon{
  font-size:12px;
  color:#5a6b7d;
  font-weight:600;
}
@keyframes livePulse{
  0%,100%{box-shadow:0 0 0 0 rgba(229,57,53,.45)}
  50%{box-shadow:0 0 0 8px rgba(229,57,53,0)}
}
.prog-empty{padding:16px}

.playlist-item-modern{
  display:grid !important;
  grid-template-columns:36px 1fr;
  grid-template-rows:auto auto;
  gap:6px 12px;
  padding:14px !important;
  border-radius:14px;
  background:var(--bg-card,#fff);
  border:1px solid rgba(45,110,177,.10);
  margin-bottom:10px;
  align-items:center;
  transition:border-color .2s, background .2s;
}
.playlist-item-modern.is-playing{
  border-color:#2D6EB1;
  background:rgba(45,110,177,.06);
}
.playlist-item-modern .playlist-num{
  grid-row:1 / span 2;
  width:36px;height:36px;
  border-radius:50%;
  background:#2D6EB1;
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:13px;
}
.playlist-item-modern .playlist-info{
  display:flex;flex-direction:column;gap:2px;
}
.playlist-item-modern .playlist-audio{
  grid-column:2;
  width:100% !important;
  max-width:100% !important;
  height:36px;
  border-radius:8px;
}

/* Video player más claro */
.yt-player{
  border-radius:14px;
  overflow:hidden;
  background:#0b1520;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
.yt-player .yt-play-btn{
  width:64px;height:64px;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  color:#2D6EB1;
  font-size:28px;
  display:grid;place-items:center;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  transition:transform .2s;
}
.yt-player:hover .yt-play-btn{transform:scale(1.08)}
.card.video .card-body{
  padding:12px 14px !important;
}

.media-modern .schedule{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}

@media (max-width:700px){
  .prog-card{
    grid-template-columns:1fr;
    gap:8px;
  }
  .prog-card-status{justify-self:start}
}
html.theme-dark .prog-card,
html.theme-dark .playlist-item-modern{
  background:var(--bg-card);
  border-color:#2a3a4a;
}
html.theme-dark .prog-card-body b{color:var(--text-main)}
