/* === El Siete TV Base Styles === */
:root {
  --brand-red: #e40021;
  --brand-red-rgb: 228,0,33;
  --brand-dark: #1f1f21;
  --brand-mid: #2b2b2e;
  --brand-gray: #b5b5b8;
  --brand-light: #f5f5f7;
  --brand-white: #ffffff;
  --gradient-red-soft: linear-gradient(135deg, rgba(var(--brand-red-rgb),1) 0%, rgba(var(--brand-red-rgb),0.75) 50%, rgba(var(--brand-red-rgb),0.55) 100%);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-xl: 28px;
  --transition-fast: 140ms ease;
  --shadow-sm: 0 2px 4px rgba(0,0,0,.25);
  --shadow-md: 0 4px 14px rgba(0,0,0,.35);
  --shadow-glow: 0 0 0 1px rgba(var(--brand-red-rgb),0.4), 0 0 0 6px rgba(var(--brand-red-rgb),0.15);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  background: radial-gradient(circle at 20% 0%, #272729, #141415 65%) fixed;
  color: var(--brand-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--brand-dark);
  border-bottom: 2px solid rgba(var(--brand-red-rgb),0.8);
  position: sticky;
  top: 0; z-index: 40;
  gap: 1rem;
}
.branding { display: flex; align-items: center; gap: 1rem; }
.logo { height: 54px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.site-header h1 { font-size: 1.55rem; margin: 0; font-weight: 600; letter-spacing: .5px; }

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 50;
  order: 3;
  flex-shrink: 0;
}
.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--brand-light);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Navigation wrapper */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
  order: 2;
}

.main-nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.main-nav a {
  color: var(--brand-light); text-decoration: none; font-weight: 500; position: relative; padding: .35rem .6rem; border-radius: var(--radius-sm);
}
.main-nav a::after {
  content: ''; position: absolute; left: .6rem; right: .6rem; bottom: .2rem; height: 3px; border-radius: 2px; background: var(--brand-red); transform: scaleX(0); transition: transform var(--transition-fast);
}
.main-nav a:hover::after, .main-nav a:focus::after { transform: scaleX(1); }

/* Social icons */
.social-nav { display:flex; align-items:center; gap:.7rem; border-left: 1px solid #2a2a2c; padding-left: .9rem; }
.social-icon { display:inline-flex; align-items:center; justify-content:center; width: 30px; height: 30px; color: var(--brand-red); background: transparent; border-radius: 8px; transition: transform var(--transition-fast), filter var(--transition-fast), background var(--transition-fast); text-decoration: none; }
.social-icon:hover { filter: brightness(1.1); transform: translateY(-1px); background: rgba(228,0,33,0.08); }
.social-icon svg { display:block; }
.social-icon img { display:block; width:22px; height:22px; }

/* Sections */
main { max-width: 1400px; margin: 0 auto; padding: 1.5rem 1.2rem 3rem; }
.section-title { margin: 0 0 1rem; font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: .5px; position: relative; }
.section-title::before { content: ''; position: absolute; left: 0; bottom: -6px; width: 54px; height: 4px; background: var(--gradient-red-soft); border-radius: 4px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb { display:flex; align-items:center; gap:.5rem; color: var(--brand-gray); font-size: .85rem; margin: .6rem 0 1rem; }
.breadcrumb a { color: var(--brand-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .6; }

/* Cristo Redentor status badge (center top, subtle) */
.pass-status { display:flex; align-items:center; justify-content:center; min-width: 180px; order: 1; flex-grow: 1; }
.pass-status .label { font-size: .8rem; color: var(--brand-gray); margin-right: .5rem; }
.pass-badge { font-size: .78rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; letter-spacing: .3px; text-transform: uppercase; border: 1px solid transparent; }
.pass-badge.open { background: #133a1f; color: #54e182; border-color: #1f6b38; }
.pass-badge.closed { background: #3a1616; color: #ff9aa3; border-color: #6b1f28; }
.pass-badge.unknown { background: #2a2a2c; color: var(--brand-gray); border-color: #3a3a3d; }

/* Intro block */
.intro-section { background: #18181a; border: 1px solid #232325; border-radius: var(--radius-md); padding: .9rem 1rem; color: var(--brand-light); margin-bottom: 1.2rem; }
.intro-section p { margin: 0; line-height: 1.55; color: var(--brand-light); }

/* Player */
.player-section { margin-bottom: 3rem; }
.video-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-meta { margin-top: .75rem; font-size: .9rem; color: var(--brand-gray); }

/* Commercial ads (sidebars). Hidden by default; shown only when there's enough horizontal margin */
.ad-sidebar { display: none; position: fixed; top: 88px; bottom: 18px; width: 180px; gap: 12px; flex-direction: column; z-index: 20; }
.ad-sidebar.left { left: 16px; }
.ad-sidebar.right { right: 16px; }
.ad-slot { flex: 1 1 0; min-height: 120px; background: var(--brand-dark); border: 1px solid var(--brand-mid); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.ad-slot .ad-link { display: block; width: 100%; height: 100%; }
.ad-slot img, .ad-slot video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Inline ads (between YouTube playlists) */
.inline-ads { display: flex; gap: 14px; margin-top: 1.5rem; }
.inline-ads + .featured-section { margin-top: 1.5rem; }
.inline-ads .inline-ad-slot { flex: 1 1 0; height: clamp(70px, 10vw, 110px); min-height: 70px; }
.inline-ads.one .inline-ad-slot { flex: 1 1 100%; }
@media (max-width: 680px) {
  .inline-ads { flex-direction: column; }
}

/* When ads are active, make room on desktop so sidebars don't overlap content */
@media (min-width: 1100px) {
  body.has-side-ads { padding-left: 212px; padding-right: 212px; }
  body.has-side-ads .ad-sidebar { display: flex; }
}

/* Unmute button overlay */
.unmute-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  background: var(--gradient-red-soft);
  color: var(--brand-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: .55rem .85rem;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.unmute-btn:hover { filter: brightness(1.05); }

/* Buttons */
.btn { cursor: pointer; font-family: inherit; font-weight: 600; letter-spacing: .3px; border: none; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; font-size: .85rem; border-radius: var(--radius-sm); transition: background var(--transition-fast), transform var(--transition-fast); }
.btn-secondary { background: var(--brand-mid); color: var(--brand-light); }
.btn-secondary:hover { background: var(--brand-red); }
.btn:active { transform: translateY(1px); }
.btn-uno { background: linear-gradient(135deg, #08a2ff, #0b86ff); color: #fff; }
.btn-uno:hover { filter: brightness(1.05); }

/* News Grid */
.news-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); margin-top: .75rem; }
.news-card { background: linear-gradient(145deg,#222224,#181819); border: 1px solid #2f2f31; padding: 1rem .95rem 1.15rem; border-radius: var(--radius-md); position: relative; display: flex; flex-direction: column; gap: .55rem; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition-fast), transform var(--transition-fast); }
.news-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 18% 20%, rgba(var(--brand-red-rgb),0.18), transparent 60%); opacity: 0; transition: opacity var(--transition-fast); }
.news-card::before { pointer-events: none; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card:hover::before { opacity: 1; }
.news-card h3 { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.25; }
.news-card p { margin: 0; font-size: .75rem; line-height: 1.3; color: var(--brand-gray); }
.news-card button.more,
.news-card a.more { margin-top: auto; align-self: flex-start; font-size: .7rem; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; padding: .4rem .65rem; border-radius: var(--radius-xs); background: var(--brand-red); color: var(--brand-white); text-decoration: none; border: none; cursor: pointer; display: inline-block; }
.news-card button.more:hover,
.news-card a.more:hover { background: #c40018; }
.news-card button.more:focus-visible,
.news-card a.more:focus-visible { outline: 3px solid rgba(var(--brand-red-rgb),.5); outline-offset: 2px; }
/* News card with thumbnail */
.news-card.has-thumb { flex-direction: row; gap: .85rem; }
.news-thumb { flex-shrink: 0; width: 110px; height: 80px; border-radius: var(--radius-xs); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-text { display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 0; }
/* Article photos gallery */
.article-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.article-photos img { width: 100%; border-radius: var(--radius-sm); border: 1px solid #2a2a2c; transition: transform 150ms ease; }
.article-photos img:hover { transform: scale(1.03); }
.article-photo { margin: 1rem 0; }
.article-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid #2a2a2c; }
.article-photo figcaption { margin-top: .4rem; font-size: .92rem; color: #a7a7aa; line-height: 1.45; }
.news-expand { display: none; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed #343436; animation: expandIn var(--transition-fast) forwards; transform-origin: top center; }
.news-card.expanded .news-expand { display: block; }
.news-expand .close { display:inline-flex; margin-top:.6rem; background: var(--brand-mid); color: var(--brand-light); border: none; border-radius: var(--radius-xs); padding: .35rem .6rem; cursor: pointer; }
@keyframes expandIn { from { opacity: 0; transform: scaleY(0.98); } to { opacity: 1; transform: scaleY(1); } }
.featured-card a.more,
.featured-card button.more { font-size: .7rem; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; padding: .4rem .65rem; border-radius: var(--radius-xs); background: var(--brand-red); color: var(--brand-white); text-decoration: none; display: inline-block; margin-top: .5rem; border: none; cursor: pointer; }
.featured-card a.more:hover,
.featured-card button.more:hover { background: #c40018; }
.featured-card a.more:focus-visible,
.featured-card button.more:focus-visible { outline: 3px solid rgba(var(--brand-red-rgb),.5); outline-offset: 2px; }
/* Article Modal */
.article-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 1000; }
.article-modal[hidden] { display: none; }
.article-modal:not([hidden]) { display: flex; }
.article-modal-content { width: min(80vw, 1100px); max-height: 85vh; overflow: auto; background: #131315; border: 1px solid #2a2a2c; border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 1.2rem 1.2rem 1.4rem; position: relative; transform: none; transition: transform 220ms ease, opacity 220ms ease; }
.article-modal.opening .article-modal-content { 
  /* Variables seteadas desde JS: --from-x, --from-y, --from-sx, --from-sy */
  transform: translate(var(--from-x, 0), var(--from-y, 0)) scale(var(--from-sx, 0.92), var(--from-sy, 0.92));
  opacity: .6;
}
.article-modal-close { position: absolute; top: .4rem; right: .6rem; border: none; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.article-modal h2 { margin: 0 0 .5rem; font-size: 1.4rem; }
.article-modal-meta { color: var(--brand-gray); font-size: .85rem; margin-bottom: .6rem; }
.article-modal-body { color: var(--brand-light); line-height: 1.55; }
.article-modal-body p { margin: .6rem 0; }
.article-modal-body a { color: #9bdcff; }

/* Programacion placeholder */
.programacion-section { margin-top: 3.5rem; background: #18181a; padding: 1.25rem 1.25rem 2rem; border: 1px solid #232325; border-radius: var(--radius-md); }
.programacion-section p { margin: .4rem 0 0; color: var(--brand-gray); font-size: .85rem; }
/* Programming */
.prog-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.prog-list li { display: grid; grid-template-columns: 110px 1fr; gap: .6rem; align-items: start; background: #141416; border: 1px solid #2f2f31; border-radius: var(--radius-sm); padding: .5rem .6rem; }
.prog-hour { font-weight: 700; color: var(--brand-light); }
.prog-title { font-weight: 600; }
.prog-desc { grid-column: 2 / -1; color: var(--brand-gray); font-size: .85rem; }
.programa-extendido { margin-top: 1rem; }
.programa-extendido .prog-day { margin-top: 1rem; }
.programa-extendido .prog-day h3 { margin: .2rem 0 .4rem; font-size: 1rem; }

/* Highlight current program */
.prog-list li.now {
  border-color: var(--brand-red);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(145deg, #1c1c1f, #141416);
}
.prog-badge-now {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 10px;
  margin-right: .4rem;
}

/* Program modal */
.prog-list li.has-meta { cursor: pointer; transition: background .2s, box-shadow .2s; }
.prog-list li.has-meta:hover { background: #1c1c1f; box-shadow: 0 2px 8px rgba(228,0,33,.15); }
.program-modal-content { max-width: 640px; text-align: center; }
.program-modal-photo img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 16px; }
.program-modal-desc { text-align: left; color: var(--brand-light); line-height: 1.5; margin-bottom: 16px; }
.program-modal-desc p { margin: 0; }
.program-modal-conductors h3 { font-size: 1rem; margin: 0 0 10px; color: var(--brand-red); }
.conductors-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 16px; }
.conductor-card { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 90px; }
.conductor-card img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid #2f2f31; }
.conductor-card span { font-size: .8rem; font-weight: 600; color: var(--brand-light); text-align: center; }
.conductor-placeholder { width: 70px; height: 70px; border-radius: 50%; background: #2a2a2c; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.program-social-link { display: inline-flex; align-items: center; gap: 4px; background: #1e1e20; color: var(--brand-light); border: 1px solid #2f2f31; border-radius: 20px; padding: 6px 14px; font-size: .85rem; text-decoration: none; transition: background .2s; }
.program-social-link:hover { background: #2a2a2c; }

/* Featured videos grid */
.featured-section { margin-top: 3rem; }
.featured-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: .75rem; }
.featured-grid[hidden], [hidden].featured-grid { display: none !important; }
.featured-card { background: #19191b; border: 1px solid #2a2a2c; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.featured-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.featured-thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-info { padding: .7rem .8rem .9rem; }
.featured-title { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.2; }

/* Carousel (playlists) */
.carousel { position: relative; margin-top: .75rem; }
.carousel-track { display: flex; gap: 14px; overflow: hidden; scroll-behavior: smooth; }
.carousel-item { flex: 0 0 auto; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 999px; border: 1px solid #2a2a2c; background: rgba(25,25,27,.85); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.carousel-nav:hover { background: rgba(28,28,32,.95); }
.carousel-nav.prev { left: -6px; }
.carousel-nav.next { right: -6px; }
.carousel[hidden] { display: none; }

/* Footer */
.site-footer { text-align: center; padding: 2rem 1rem 3rem; font-size: .75rem; color: var(--brand-gray); }
.site-footer span { color: var(--brand-light); }
.footer-info { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 3rem; 
  max-width: 1200px; 
  margin: 0 auto 2rem; 
  text-align: left;
  padding: 2rem 1.5rem;
  border-top: 1px solid #2a2a2c;
  border-bottom: 1px solid #2a2a2c;
}
.footer-section h3 { 
  margin: 0 0 1rem; 
  font-size: .9rem; 
  font-weight: 700; 
  color: var(--brand-red); 
  letter-spacing: .5px;
  text-transform: uppercase;
}
.footer-section p { 
  margin: .5rem 0; 
  font-size: .85rem; 
  line-height: 1.6; 
  color: var(--brand-light);
}
.footer-section a { 
  color: var(--brand-red); 
  text-decoration: none;
}
.footer-section a:hover { 
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-logo {
  height: 61px;
  width: auto;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .footer-info { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Partners (paginas amigas) */
.partners-section { margin-top: 2rem; padding: 1rem 0 0; border-top: 1px solid #2a2a2c; }
.partners-section .section-header { margin-bottom: .3rem; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; align-items: center; }
.partners-grid a { display:flex; align-items:center; justify-content:center; background: #19191b; border: 1px solid #2a2a2c; border-radius: var(--radius-sm); padding: 10px; transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast); }
.partners-grid a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #1d1d20; }
.partners-grid img { width: 140px; height: 36px; display:block; object-fit: contain; }

/* UNO brand-like button */
.btn-uno-more { background: #e40021; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; border-radius: 9999px; padding: .4rem .9rem; border: none; text-decoration: none; display: inline-flex; align-items: center; box-shadow: 0 2px 8px rgba(228,0,33,.35); }
.btn-uno-more:hover { background: #c4001c; }
.friends-bar { display:flex; flex-wrap:nowrap; overflow-x:auto; gap: 10px; justify-content:center; align-items:center; margin-bottom: 1rem; }
.friends-bar a { display:inline-flex; align-items:center; justify-content:center; background:#161618; border:1px solid #232325; border-radius: 10px; padding: 4px 8px; height: 40px; flex: 0 0 auto; transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.friends-bar a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.friends-bar img { width: 88px; height: 28px; display:block; object-fit: contain; }

/* Utilities */
@media (max-width: 780px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-wrapper {
    position: fixed;
    top: 73px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 73px);
    background: linear-gradient(145deg, #1f1f21, #1a1a1c);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 2rem 0;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  
  .nav-wrapper.active {
    right: 0;
  }
  
  .main-nav {
    width: 100%;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .main-nav li {
    width: 100%;
    border-bottom: 1px solid #2a2a2c;
  }
  
  .main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 0;
  }
  
  .main-nav a::after {
    display: none;
  }
  
  .main-nav a:hover {
    background: rgba(228, 0, 33, 0.1);
  }
  
  .social-nav {
    border-left: none;
    border-top: 1px solid #2a2a2c;
    padding: 1.5rem 1.5rem 0;
    margin-top: 1rem;
    justify-content: center;
  }
  
  .logo { height: 46px; }
  .branding { order: 0; }
  .pass-status { order: 1; flex-grow: 0; margin: 0; }
  .mobile-menu-toggle { order: 2; }
  .nav-wrapper { order: 3; }
}
@media (max-width: 520px) {
  .nav-wrapper {
    width: 100%;
    right: -100%;
  }
  
  .site-header { 
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }
  
  .pass-status { 
    order: 3; 
    width: 100%; 
    justify-content: center; 
    margin-top: .4rem; 
  }
  
  .mobile-menu-toggle {
    order: 2;
  }
}

/* === Radio Player === */
.radio-section {
  padding: 1.5rem;
}
.radio-players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.radio-card {
  background: var(--brand-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.radio-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.radio-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
}
.radio-card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0,0,0,.3);
}
.radio-card-name {
  font-weight: 700;
  font-size: 1rem;
}
.radio-card-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--brand-light);
  opacity: .7;
}
.radio-card-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: radio-pulse 1.5s ease-in-out infinite;
}
@keyframes radio-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.radio-card-player {
  padding: 0 1rem .75rem;
}
.radio-card-player audio {
  width: 100%;
  height: 40px;
  border-radius: var(--radius-sm);
}
.radio-card-audios {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: .5rem 1rem .75rem;
}
.radio-card-audios summary {
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-gray);
  padding: .25rem 0;
  user-select: none;
}
.radio-audio-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .4rem;
}
.radio-audio-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .5rem;
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,.2);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.radio-audio-item:hover {
  background: rgba(var(--brand-red-rgb),.15);
}
.radio-audio-item .play-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--brand-light);
  opacity: .7;
}
.radio-audio-item.playing .play-icon {
  fill: var(--brand-red);
  opacity: 1;
}
.radio-audio-item .audio-title {
  font-size: .8rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-audio-player {
  width: 100%;
  margin-top: .4rem;
}
.radio-audio-player audio {
  width: 100%;
  height: 32px;
}

/* MAM (DiarioPlayer) playlists unified container */
.mam-playlists-wrapper { display: flex; flex-direction: column; gap: 20px; }
.mam-playlist-block { border-top: 1px solid var(--brand-mid); padding-top: 16px; }
.mam-playlist-block:first-of-type { border-top: none; padding-top: 0; }
.mam-playlist-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 10px; color: var(--brand-light); }
.mam-embed-wrapper { width: 100%; min-height: 450px; border-radius: var(--radius-md); background: var(--brand-dark, #1a1a2e); }
.mam-embed-inner { position: relative; width: 100%; overflow: hidden; }
.mam-embed-wrapper iframe { width: 100%; border: none; display: block; }
@media(max-width:768px){ .mam-embed-wrapper { min-height: 350px; } }
