/* ═══════════════════════════════════════════
   MZ Online — style.css
   Paleta: verde teal + azul, fondo mint suave
═══════════════════════════════════════════ */
:root {
  --bg:       #F0F6F4;
  --bg2:      #FFFFFF;
  --bg3:      #E3EDE9;
  --teal:     #0D7C6B;
  --teal2:    #12A08D;
  --teal3:    #C8EBE5;
  --blue:     #1A6FAF;
  --blue2:    #2589D0;
  --mint:     #E8F7F4;
  --ink:      #162220;
  --ink2:     #3A4A47;
  --ink3:     #7A9490;
  --border:   #D4E5E0;
  --white:    #FFFFFF;
  --gold:     #E8A020;
  --danger:   #C0392B;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }

/* ── TOPBAR ── */
.topbar {
  background: var(--teal);
  color: rgba(255,255,255,.7);
  font-size: 11.5px;
  padding: 7px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar strong { color: white; }
.topbar-r { display: flex; gap: 16px; }
.topbar-r a { color: rgba(255,255,255,.6); transition: color .2s; }
.topbar-r a:hover { color: white; }

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(13,124,107,.06);
}
.hdr-main {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 13px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: white; letter-spacing: -.5px;
}
.logo-text strong { font-size: 19px; font-weight: 800; color: var(--ink); display: block; letter-spacing: -.3px; }
.logo-text span   { font-size: 10.5px; color: var(--ink3); letter-spacing: 2px; text-transform: uppercase; }

.search-wrap {
  flex: 1; max-width: 320px;
  display: flex; align-items: center; gap: 9px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 30px; padding: 9px 16px;
  transition: border-color .2s;
}
.search-wrap:focus-within { border-color: var(--teal); }
.search-wrap svg { width: 14px; height: 14px; stroke: var(--ink3); flex-shrink: 0; fill: none; }
.search-wrap input {
  border: none; background: transparent;
  font-size: 13px; color: var(--ink); outline: none; flex: 1;
  font-family: inherit;
}
.search-wrap input::placeholder { color: var(--ink3); }

.btn-live {
  display: flex; align-items: center; gap: 9px;
  background: var(--teal); color: white;
  border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background .2s, transform .15s;
}
.btn-live:hover { background: var(--teal2); transform: scale(1.02); }

nav { border-top: 1px solid var(--border); background: var(--white); }
.nav-i {
  max-width: 1200px; margin: 0 auto;
  padding: 0 40px; display: flex; overflow-x: auto;
}
.nav-i::-webkit-scrollbar { display: none; }
.nav-i a {
  padding: 12px 17px; font-size: 13px; font-weight: 600;
  color: var(--ink3); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-i a:hover, .nav-i a.active { color: var(--ink); border-bottom-color: var(--teal); }

/* ── RADIO HERO ── */
.radio-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  padding: 22px 40px;
}
.radio-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.radio-art {
  width: 54px; height: 54px; background: rgba(255,255,255,.15);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0; border: 1px solid rgba(255,255,255,.2);
}
.radio-info h2 { font-size: 17px; font-weight: 800; color: white; }
.radio-info p  { font-size: 12px; color: rgba(255,255,255,.7); }
.on-air {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: 3px 10px;
  font-size: 10.5px; font-weight: 700; color: white;
  letter-spacing: 1px; margin-top: 5px;
}
.ldot { width: 7px; height: 7px; background: white; border-radius: 50%; animation: blink 1.3s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.player { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.pbtn {
  width: 46px; height: 46px; border-radius: 50%;
  background: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s; flex-shrink: 0;
}
.pbtn:hover { transform: scale(1.08); }
.pbtn svg { width: 17px; height: 17px; fill: var(--teal); margin-left: 2px; }
.pinfo { min-width: 160px; }
.pnow { font-size: 11px; color: rgba(255,255,255,.7); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .7px; }
.pbar { height: 3px; background: rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; }
.pfill { height: 100%; background: rgba(255,255,255,.85); border-radius: 4px; width: 35%; animation: panim 12s linear infinite; }
@keyframes panim { 0%{width:5%} 100%{width:92%} }
.pvol { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); }
.pvol svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.pvol input {
  -webkit-appearance: none; width: 65px; height: 3px;
  background: rgba(255,255,255,.25); border-radius: 4px; outline: none;
}
.pvol input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px;
  background: white; border-radius: 50%;
}

/* ── TICKER ── */
.ticker {
  background: var(--mint); border-top: 2px solid var(--teal3);
  border-bottom: 1px solid var(--border);
  padding: 8px 0; overflow: hidden; position: relative;
}
.tlbl {
  position: absolute; top:0; left:0; bottom:0;
  background: var(--teal); padding: 0 14px;
  font-size: 10.5px; font-weight: 800; color: white;
  letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; z-index: 2;
}
.twrap { display: flex; animation: ta 30s linear infinite; width: max-content; padding-left: 90px; }
.twrap span { color: var(--ink2); font-size: 13px; padding: 0 32px; white-space: nowrap; }
.twrap span::after { content: "✦"; padding-left: 32px; color: var(--teal3); }
@keyframes ta { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── LAYOUT ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 34px 40px; display: grid; grid-template-columns: 1fr 300px; gap: 36px; }

/* ── SECTION HEAD ── */
.sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sec-h h2 { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.sec-h::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.sec-pill { background: var(--teal); color: white; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px; letter-spacing: .5px; text-transform: uppercase; margin-left: auto; }

/* ── CARDS NOTICIAS ── */
.grid-noticias { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 38px; }
.card-hero {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr;
  border-radius: 16px; overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  cursor: pointer; transition: box-shadow .25s, transform .2s;
}
.card-hero:hover, .card:hover { box-shadow: 0 6px 28px rgba(13,124,107,.13); transform: translateY(-3px); }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  cursor: pointer; transition: box-shadow .25s, transform .2s;
}
.card-img { height: 180px; overflow: hidden; position: relative; }
.card-hero .card-img { height: 100%; min-height: 240px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-img .no-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--teal3), #b8e8df);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; color: var(--teal);
}
.card:hover .card-img img, .card-hero:hover .card-img img { transform: scale(1.04); }

.card-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--teal); color: white;
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
}
.card-body { padding: 18px; }
.card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.card-hero .card-body h3 { font-size: 21px; }
.card-body p { font-size: 13px; color: var(--ink2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 9px; align-items: center; margin-top: 12px; }
.card-meta time { font-size: 11.5px; color: var(--ink3); }
.card-meta .sep { width: 3px; height: 3px; background: var(--border); border-radius: 50%; }
.card-meta .cat { font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; }
.leer-mas { font-size: 12.5px; font-weight: 700; color: var(--teal); margin-top: 12px; display: inline-block; }

/* ── PROGRAMAS ── */
.prog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 38px; }
.prog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  border-left: 4px solid var(--pc, var(--teal));
}
.prog-card:hover { box-shadow: 0 5px 20px rgba(13,124,107,.1); transform: translateY(-2px); }
.prog-icon { font-size: 24px; margin-bottom: 10px; }
.prog-card h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }
.prog-card p  { font-size: 12.5px; color: var(--ink3); line-height: 1.45; }
.prog-time    { font-size: 11px; font-weight: 700; color: var(--pc, var(--teal)); margin-top: 10px; }

/* ── PAGINACION ── */
.paginacion { display: flex; gap: 8px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.paginacion a, .paginacion span {
  padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--white); border: 1px solid var(--border); color: var(--ink2);
  transition: background .2s, color .2s;
}
.paginacion a:hover { background: var(--teal); color: white; border-color: var(--teal); }
.paginacion span.active { background: var(--teal); color: white; border-color: var(--teal); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sbox { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.sbox-h {
  padding: 12px 16px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; color: var(--ink);
}
.sbox-h .bar { width: 3px; height: 14px; background: var(--teal); border-radius: 2px; }

.sn-item {
  display: flex; gap: 11px; padding: 13px 16px;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background .15s; text-decoration: none; color: inherit;
}
.sn-item:last-child { border-bottom: none; }
.sn-item:hover { background: var(--mint); }
.sn-thumb { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.sn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sn-thumb .no-img { width: 100%; height: 100%; background: linear-gradient(135deg, var(--teal3), #b8e8df); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sn-body h5 { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sn-body time { font-size: 11px; color: var(--ink3); margin-top: 3px; display: block; }

.social-wrap { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.soc-btn {
  display: flex; align-items: center; gap: 7px; padding: 9px 11px;
  border-radius: 9px; font-size: 12.5px; font-weight: 600;
  border: none; cursor: pointer; transition: opacity .2s, transform .15s;
  font-family: inherit;
}
.soc-btn:hover { opacity: .85; transform: scale(1.02); }
.soc-btn svg { width: 15px; height: 15px; fill: currentColor; }
.soc-btn.ig { background: #f3e9ff; color: #7B2FBE; }
.soc-btn.yt { background: #ffe9e9; color: #CC0000; }
.soc-btn.fb { background: #e9f0ff; color: #1877F2; }
.soc-btn.tw { background: #f0f4f0; color: #333; }
.soc-btn.tk { background: #e9f9f9; color: #010101; }

.newsletter-box { padding: 16px; }
.newsletter-box p { font-size: 13px; color: var(--ink3); margin-bottom: 12px; line-height: 1.5; }
.input-row { display: flex; gap: 8px; }
.input-row input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 13px; font-size: 13px; color: var(--ink);
  font-family: inherit; outline: none; transition: border-color .2s;
}
.input-row input:focus { border-color: var(--teal); }
.input-row input::placeholder { color: var(--ink3); }
.btn-sub {
  background: var(--teal); color: white; border: none;
  border-radius: 8px; padding: 9px 14px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.btn-sub:hover { background: var(--teal2); }

/* ── PÁGINA NOTICIA ── */
.noticia-wrap { max-width: 1200px; margin: 0 auto; padding: 36px 40px; display: grid; grid-template-columns: 1fr 300px; gap: 36px; }
.noticia-header { margin-bottom: 24px; }
.noticia-cat { display: inline-block; background: var(--teal); color: white; font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.noticia-titulo { font-size: 30px; font-weight: 800; line-height: 1.25; margin-bottom: 14px; letter-spacing: -.5px; }
.noticia-copete { font-size: 17px; color: var(--ink2); line-height: 1.6; margin-bottom: 18px; font-weight: 400; border-left: 3px solid var(--teal); padding-left: 16px; }
.noticia-meta { display: flex; gap: 16px; align-items: center; font-size: 12.5px; color: var(--ink3); padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.noticia-imagen { border-radius: 14px; overflow: hidden; margin-bottom: 28px; max-height: 420px; }
.noticia-imagen img { width: 100%; height: 420px; object-fit: cover; }
.noticia-contenido { font-size: 16px; line-height: 1.8; color: var(--ink2); }
.noticia-contenido p { margin-bottom: 18px; }
.noticia-contenido h2 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; color: var(--ink); }
.noticia-contenido h3 { font-size: 19px; font-weight: 700; margin: 24px 0 10px; color: var(--ink); }
.noticia-contenido strong { color: var(--ink); }
.noticia-contenido a { color: var(--teal); text-decoration: underline; }

/* ── BUSCADOR ── */
.buscador-form { display: flex; gap: 10px; margin-bottom: 28px; }
.buscador-form input {
  flex: 1; background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 18px; font-size: 15px; color: var(--ink);
  font-family: inherit; outline: none; transition: border-color .2s;
}
.buscador-form input:focus { border-color: var(--teal); }
.buscador-form button {
  background: var(--teal); color: white; border: none; border-radius: 10px;
  padding: 12px 22px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .2s;
}
.buscador-form button:hover { background: var(--teal2); }
.sin-resultados { text-align: center; padding: 60px 20px; color: var(--ink3); }
.sin-resultados h3 { font-size: 20px; margin-bottom: 10px; color: var(--ink); }

/* ── WHATSAPP ── */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 52px; height: 52px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45); cursor: pointer;
  transition: transform .2s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 27px; height: 27px; fill: white; }

/* ── FOOTER ── */
footer { background: var(--ink); color: #6a8a84; margin-top: 16px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 34px 40px 18px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .logo-text strong { color: white; }
.footer-brand .logo-text span { color: #4a6a64; }
.footer-brand p { font-size: 13px; color: #4a6a64; margin-top: 10px; line-height: 1.6; max-width: 260px; }
.footer-col h5 { font-size: 10.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #4a6a64; margin-bottom: 13px; }
.footer-col a { display: block; font-size: 13px; color: #5a7a74; margin-bottom: 7px; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 14px 40px; border-top: 1px solid #1e3430; display: flex; justify-content: space-between; font-size: 12px; color: #3a5a54; }

/* ── RESPONSIVE ── */
@media(max-width:900px) {
  .wrap,.noticia-wrap { grid-template-columns: 1fr; padding: 20px 18px; }
  .grid-noticias { grid-template-columns: 1fr; }
  .card-hero { grid-template-columns: 1fr; }
  .prog-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hdr-main { padding: 13px 18px; }
  .radio-hero { padding: 18px; }
  .nav-i { padding: 0 18px; }
  .topbar { padding: 7px 18px; }
}
@media(max-width:500px) {
  .prog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .search-wrap { display: none; }
  .pvol { display: none; }
  .noticia-titulo { font-size: 24px; }
}

/* ── ANIMACION ENTRADA ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
.card, .card-hero, .prog-card { animation: fadeUp .4s ease both; }
