/* ============================================
   SITE.CSS ¡ª Estilos publicos del sistema
   Web publica: portada, articulos, categorias,
   artistas, busqueda, etc.
   NO tocar desde otros modulos.
   ============================================ */

/* Variables globales */
:root{
  --accent:    #ff2d6f;
  --accent-2:  #19e3a3;
  --accent-3:  #7c5cff;
  --bg:        #0c0b10;
  --panel:     #15131c;
  --panel-2:   #1f1c28;
  --line:      #2a2733;
  --text:      #e8e3ef;
  --muted:     #9088a3;
  --display:   'Anton', sans-serif;
  --sans:      'Sora', system-ui, sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* Contenedor principal */
.wrap{
  max-width:1280px;
  margin:0 auto;
  padding:0 20px;
}

/* ---- CABECERA ---- */
.masthead{
  background:var(--panel);
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:200;
}
.masthead .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  height:64px;
}
.brand{
  display:flex;align-items:center;gap:10px;
  flex-shrink:0;
}
.mark{
  width:38px;height:38px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--accent),var(--accent-3));
  display:flex;align-items:center;justify-content:center;
  font-family:var(--display);font-size:22px;color:#fff;
  flex-shrink:0;
}
.brand h1{
  font-family:var(--display);
  font-size:22px;
  letter-spacing:.04em;
  white-space:nowrap;
}
.actions{display:flex;align-items:center;gap:10px}
.search{
  display:flex;align-items:center;
  background:var(--panel-2);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 14px;gap:8px;
}
.search input{
  background:transparent;border:0;outline:none;
  color:var(--text);font-family:var(--sans);
  font-size:13.5px;width:140px;
}
.search input::placeholder{color:var(--muted)}
.btn{
  border:0;cursor:pointer;
  border-radius:999px;
  padding:8px 18px;
  background:linear-gradient(135deg,var(--accent),var(--accent-3));
  color:#fff;
  font-family:var(--sans);font-weight:700;font-size:12.5px;
  text-transform:uppercase;letter-spacing:.04em;
  white-space:nowrap;
}

/* ---- NAVEGACION ---- */
.mainnav{
  background:var(--panel);
  border-bottom:2px solid var(--line);
}
.mainnav .wrap{
  display:flex;
  align-items:center;
  gap:2px;
  overflow-x:auto;
  scrollbar-width:none;
  padding-top:0;padding-bottom:0;
  height:46px;
}
.mainnav .wrap::-webkit-scrollbar{display:none}
.mainnav a{
  font-size:12.5px;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;
  color:var(--muted);
  padding:0 10px;
  height:46px;
  display:inline-flex;align-items:center;
  border-bottom:2px solid transparent;
  margin-bottom:-2px;
  white-space:nowrap;
  transition:color .18s,border-color .18s;
  flex-shrink:0;
}
.mainnav a:hover{color:var(--text)}
.mainnav a.active{
  color:var(--accent);
  border-bottom-color:var(--accent);
}

/* ---- LAYOUT PRINCIPAL ---- */
.layout{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:28px;
  max-width:1280px;
  margin:24px auto;
  padding:0 20px;
  align-items:start;
}
@media(max-width:960px){
  .layout{grid-template-columns:1fr}
}

/* ---- HERO (noticia destacada) ---- */
.vhero{
  display:block;
  border-radius:16px;
  overflow:hidden;
  margin-bottom:24px;
  position:relative;
}
.vhero .frame{
  aspect-ratio:16/7;
  background-size:cover;
  background-position:center;
  position:relative;
}
.vhero .ovl{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.85) 0%,transparent 60%);
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:24px;
}
.vhero .badge{
  display:inline-block;
  background:var(--accent);
  color:#fff;font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;
  padding:4px 10px;border-radius:6px;
  margin-bottom:10px;width:fit-content;
}
.vhero h3{
  font-family:var(--display);
  font-size:clamp(22px,3.5vw,36px);
  line-height:1.1;
  color:#fff;
  margin-bottom:8px;
}
.vhero .meta{
  display:flex;align-items:center;gap:8px;
  font-size:13px;color:rgba(255,255,255,.7);
}
.vhero .play{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:56px;height:56px;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(4px);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
.vhero .play::after{
  content:'';
  border-style:solid;
  border-width:10px 0 10px 18px;
  border-color:transparent transparent transparent #fff;
  margin-left:4px;
}

/* ---- TITULOS DE SECCION ---- */
.section-title{
  font-family:var(--display);
  font-size:22px;letter-spacing:.03em;
  margin-bottom:14px;
  display:flex;align-items:center;gap:10px;
}
.bar{
  display:inline-block;
  width:4px;height:22px;
  background:var(--accent);
  border-radius:2px;
  flex-shrink:0;
}

/* ---- GRID DE VIDEOS ---- */
.vgrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;
  margin-bottom:28px;
}
.vcard{
  display:flex;flex-direction:column;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  transition:transform .18s,border-color .2s;
}
.vcard:hover{transform:translateY(-3px);border-color:var(--accent)}
.vcard .thumb{
  aspect-ratio:16/9;
  background-size:cover;background-position:center;
  position:relative;
  background-color:var(--panel-2);
}
.vcard .body{padding:10px 12px 12px}
.vcard .kicker{
  font-size:10.5px;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;
  color:var(--accent);display:block;margin-bottom:4px;
}
.vcard h4{font-size:14px;font-weight:700;line-height:1.25}
.vcard h5{font-size:13px;font-weight:700;line-height:1.25}
.vcard .sub{
  font-size:11.5px;color:var(--muted);
  margin-top:6px;
}
.miniplay{
  position:absolute;
  bottom:8px;right:8px;
  width:28px;height:28px;
  background:rgba(0,0,0,.6);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
.miniplay::after{
  content:'';
  border-style:solid;
  border-width:5px 0 5px 9px;
  border-color:transparent transparent transparent #fff;
  margin-left:2px;
}
.dur{
  position:absolute;
  bottom:6px;left:8px;
  background:rgba(0,0,0,.7);
  color:#fff;font-size:10.5px;font-weight:700;
  padding:2px 5px;border-radius:4px;
}

/* ---- GRID DE NOTICIAS 3 COL ---- */
.grid3{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:18px;
  margin-bottom:28px;
}
.ncard{
  display:flex;flex-direction:column;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;overflow:hidden;
  transition:transform .18s,border-color .2s;
}
.ncard:hover{transform:translateY(-3px);border-color:var(--accent-3)}
.ncard .thumb{
  aspect-ratio:16/9;
  background-size:cover;background-position:center;
  background-color:var(--panel-2);
}
.ncard .body{padding:12px 14px 14px}
.ncard .kicker{
  font-size:10.5px;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;
  color:var(--accent-3);display:block;margin-bottom:5px;
}
.ncard h4{font-size:14.5px;font-weight:700;line-height:1.25;margin-bottom:5px}
.ncard p{font-size:13px;color:var(--muted);line-height:1.45}
.dot{
  width:3px;height:3px;
  background:currentColor;
  border-radius:50%;
  display:inline-block;
  opacity:.5;
}

/* ---- BARRA LATERAL ---- */
aside{}
.widget{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  margin-bottom:20px;
}
.widget.sticky{position:sticky;top:80px}
.widget h3{
  font-family:var(--display);
  font-size:16px;letter-spacing:.04em;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}

/* Lista "Lo mas reproducido" */
.chart{list-style:none}
.chart li{
  display:flex;align-items:flex-start;gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.chart li:last-child{border-bottom:0}
.pos{
  font-family:var(--display);
  font-size:22px;color:var(--accent);
  line-height:1;flex-shrink:0;width:24px;
  text-align:center;
}
.chart h4{font-size:13px;font-weight:600;line-height:1.3}

/* Boletin */
.news-letter p{font-size:13px;color:var(--muted);margin-bottom:10px}
.field{display:flex;gap:6px}
.field input{
  flex:1;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:8px;
  padding:9px 12px;
  color:var(--text);
  font-size:13px;
  font-family:var(--sans);
  outline:none;
}
.field input:focus{border-color:var(--accent)}
.field button{
  border:0;cursor:pointer;
  border-radius:8px;
  padding:9px 14px;
  background:var(--accent);
  color:#fff;font-family:var(--sans);
  font-weight:700;font-size:12.5px;
  white-space:nowrap;
}

/* ---- PAGINA DE ARTICULO ---- */
.a-kicker{
  display:inline-block;
  font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.1em;
  color:var(--accent);margin-bottom:10px;
}
.title{
  font-family:var(--display);
  font-size:clamp(28px,5vw,48px);
  line-height:1.05;
  letter-spacing:.02em;
  margin-bottom:12px;
}
.standfirst{
  font-size:17px;color:#cdc7d8;
  line-height:1.5;margin-bottom:14px;
}
.byline{
  display:flex;align-items:center;
  flex-wrap:wrap;gap:8px;
  font-size:13px;color:var(--muted);
  margin-bottom:18px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.stats{margin-left:auto;font-size:12px}
.player{
  border-radius:12px;overflow:hidden;
  margin-bottom:20px;background:var(--panel-2);
}
.player iframe{
  width:100%;aspect-ratio:16/9;border:0;display:block;
}
.player .frame{
  aspect-ratio:16/9;
  background-size:cover;background-position:center;
}
.player video{width:100%;display:block}
.share{
  display:flex;align-items:center;gap:10px;
  margin-bottom:18px;
  font-size:13px;color:var(--muted);
}
.share a{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;
  background:var(--panel-2);
  border:1px solid var(--line);
  border-radius:8px;
  font-size:13px;font-weight:700;
  transition:.18s;
}
.share a:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.article-body{
  font-size:16px;line-height:1.7;
  color:#ddd8e8;
  margin-bottom:24px;
}
.article-body h2{
  font-family:var(--display);
  font-size:22px;margin:22px 0 10px;
}
.article-body h3{font-size:18px;margin:18px 0 8px}
.article-body p{margin-bottom:14px}
.article-body ul,.article-body ol{
  margin:0 0 14px 22px;
}
.article-body blockquote{
  border-left:4px solid var(--accent);
  padding:10px 16px;
  background:var(--panel);
  border-radius:0 8px 8px 0;
  margin:14px 0;
  font-style:italic;
  color:#cdc7d8;
}
.article-body img{
  border-radius:10px;margin:14px 0;width:100%;
}
.related{margin-top:28px}
.related h2{
  font-family:var(--display);
  font-size:20px;margin-bottom:14px;
  display:flex;align-items:center;gap:10px;
}

/* ---- PIE DE PAGINA ---- */
.sitefoot{
  background:var(--panel);
  border-top:1px solid var(--line);
  margin-top:40px;
  padding:28px 0 20px;
}
.sitefoot-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
@media(max-width:600px){.sitefoot-cols{grid-template-columns:1fr}}
.sitefoot-brand{
  font-family:var(--display);
  font-size:20px;letter-spacing:.04em;
  margin-bottom:8px;
}
.sitefoot p{font-size:13px;color:var(--muted);line-height:1.5}
.sitefoot a{color:var(--muted);text-decoration:underline}
.sitefoot a:hover{color:var(--text)}
.sitefoot-legal{
  text-align:right;
}
@media(max-width:600px){.sitefoot-legal{text-align:left}}

/* ============================================
   MENU DE NAVEGACION MEJORADO
   - Boton hamburguesa en movil
   - Desplegable "Mas" en escritorio
   ============================================ */

/* Boton hamburguesa (solo movil) */
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:space-between;
  width:28px;height:20px;
  background:transparent;border:0;
  cursor:pointer;padding:0;
  flex-shrink:0;
}
.nav-toggle span{
  display:block;
  height:2px;
  background:var(--text);
  border-radius:2px;
  transition:transform .25s, opacity .2s;
}
.nav-toggle.active span:nth-child(1){transform:translateY(9px) rotate(45deg)}
.nav-toggle.active span:nth-child(2){opacity:0}
.nav-toggle.active span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}

/* Desplegable "Mas" en escritorio */
.mn-mas{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.mn-mas-btn{
  background:transparent;
  border:0;
  cursor:pointer;
  font-family:var(--sans);
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  padding:0 4px;
  display:flex;align-items:center;gap:4px;
  transition:color .18s;
}
.mn-mas-btn:hover{color:var(--text)}
.mn-flecha{
  font-size:10px;
  transition:transform .2s;
}
.mn-mas-panel.open ~ * .mn-flecha,
.mn-mas-btn[aria-expanded="true"] .mn-flecha{
  transform:rotate(180deg);
}
.mn-mas-panel{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  transform:translateX(-50%);
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 0;
  min-width:220px;
  z-index:100;
  box-shadow:0 16px 40px rgba(0,0,0,.5);
}
.mn-mas-panel.open{display:block}
.mn-mas-panel a{
  display:block;
  padding:10px 18px;
  font-size:13.5px;
  color:var(--text);
  font-weight:600;
  transition:background .15s, color .15s;
  white-space:nowrap;
}
.mn-mas-panel a:hover{
  background:var(--panel-2);
  color:var(--accent);
}

/* ---- MOVIL ---- */
@media(max-width:768px){
  .nav-toggle{display:flex}
  .mainnav{
    position:fixed;
    top:0;left:0;
    width:80%;max-width:320px;
    height:100vh;
    background:var(--panel);
    border-right:1px solid var(--line);
    z-index:999;
    transform:translateX(-100%);
    transition:transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y:auto;
    padding:70px 0 30px;
    box-shadow:4px 0 24px rgba(0,0,0,.5);
  }
  .mainnav.open{transform:translateX(0)}
  .mainnav .wrap{
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:0;
  }
  .mainnav a{
    display:block;
    width:100%;
    padding:14px 22px;
    font-size:15px;
    border-bottom:1px solid var(--line);
  }
  .mainnav a:last-child{border-bottom:0}
  .mn-mas{display:block;width:100%}
  .mn-mas-btn{display:none}
  .mn-mas-panel{
    display:block !important;
    position:static;
    transform:none;
    background:transparent;
    border:0;
    box-shadow:none;
    padding:0;
    min-width:0;
    border-radius:0;
  }
  .mn-mas-panel a{
    padding:14px 22px 14px 32px;
    font-size:14px;
    color:var(--muted);
    border-bottom:1px solid var(--line);
  }
  .mn-mas-panel a:hover{color:var(--accent);background:transparent}
}