/*
Theme Name: Imperio Guadalupe Oeste
Theme URI: https://www.lpmqtp.ar
Author: Daniel Otero
Description: Revista moderna albiceleste con logo propio, zona de radio en vivo y banner de cabecera full-bleed. Cero Elementor, cero scripts externos. Hecha a mano en Guadalupe Oeste.
Version: 3.4
License: GNU General Public License v2 or later
Text Domain: imperio
*/

:root {
  --celeste: #75AADB;
  --celeste-fuerte: #1B5FA8;
  --celeste-suave: #EAF3FB;
  --sol: #F6B40E;
  --sol-oscuro: #D99A00;
  --tinta: #10243E;
  --gris: #5E7188;
  --fondo: #F4F8FC;
  --blanco: #FFFFFF;
  --radio: 16px;
  --sombra: 0 8px 28px rgba(16, 36, 62, .10);
  --sombra-hover: 0 14px 38px rgba(16, 36, 62, .16);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family:"Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background:var(--fondo);
  color:var(--tinta);
  line-height:1.65;
}

::selection { background:var(--celeste); color:#fff; }

a { color:var(--celeste-fuerte); text-decoration:none; transition:color .2s; }
a:hover { color:var(--sol-oscuro); }
a:focus-visible { outline:3px solid var(--sol); outline-offset:2px; }

img { max-width:100%; }

/* ---------- BANNER REPUBLICA (MASTHEAD FULL-BLEED) ---------- */
.banner-republica {
  line-height: 0;
  width: 100%;
  max-width: 100%;
}
.banner-republica img {
  width: 100%;
  height: clamp(160px, 22vw, 360px);
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}

/* ---------- BARRA "AL AIRE": ZONA DE RADIO ---------- */
.radio-slot { background:var(--tinta); padding:14px 20px; display:flex; justify-content:center; }
.radio-slot .widget-radio { width:100%; max-width:1000px; margin:0 auto; background:transparent; box-shadow:none; padding:0; }
.radio-slot iframe { max-width:100%; border:0; display:block; margin:0 auto; }
.radio-slot audio { width:100%; }
.radio-placeholder { color:#B9D2EA; font-size:.85rem; text-align:center; padding:6px 0; }

/* ---------- CABECERA: VIDRIO CON FRANJA DE BANDERA ---------- */
.site-header { position:sticky; top:0; z-index:50; background:rgba(255,255,255,.86); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid #DCE8F4; }
.site-header::before { content:""; position:absolute; top:0; left:0; right:0; height:5px; background:linear-gradient(90deg, var(--celeste) 0 30%, #fff 30% 70%, var(--celeste) 70% 100%); }
.header-row { max-width:1200px; margin:0 auto; padding:12px 20px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }

.site-branding { display:flex; align-items:center; }
.site-branding .custom-logo { max-height:70px; width:auto; }
.site-title { font-size:1.5rem; font-weight:900; letter-spacing:.5px; }
.site-title a { color:var(--tinta); }
.site-title::after { content:""; display:block; width:44px; height:4px; border-radius:2px; background:var(--sol); margin-top:2px; }

.main-nav ul { list-style:none; display:flex; gap:8px; flex-wrap:wrap; }
.main-nav a { color:var(--tinta); font-weight:600; font-size:.85rem; text-transform:uppercase; letter-spacing:.6px; padding:8px 14px; border-radius:999px; transition:.25s; }
.main-nav a:hover { background:var(--celeste); color:#fff; }

/* ---------- LAYOUT ---------- */
.site-wrap { max-width:1200px; margin:34px auto; padding:0 20px; display:grid; grid-template-columns:1fr 320px; gap:32px; }

/* ---------- TARJETAS DE ENTRADAS ---------- */
.posts-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:26px; }
.post-card { background:var(--blanco); border-radius:var(--radio); box-shadow:var(--sombra); overflow:hidden; transition:transform .25s, box-shadow .25s; display:flex; flex-direction:column; }
.post-card:hover { transform:translateY(-5px); box-shadow:var(--sombra-hover); }
.post-card img { width:100%; height:190px; object-fit:cover; display:block; }
.post-card .inner { padding:20px 22px 24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.post-cat { align-self:flex-start; background:linear-gradient(135deg, var(--sol), var(--sol-oscuro)); color:var(--tinta); font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.8px; padding:4px 10px; border-radius:999px; }
.post-card h2 { font-size:1.15rem; line-height:1.35; font-weight:800; }
.post-card h2 a { color:var(--tinta); }
.post-card h2 a:hover { color:var(--celeste-fuerte); }
.post-meta { font-size:.72rem; color:var(--gris); text-transform:uppercase; letter-spacing:.8px; }
.post-card p { font-size:.92rem; color:#41556B; }
.post-card.destacada { grid-column:1 / -1; display:grid; grid-template-columns:1.15fr 1fr; }
.post-card.destacada img { height:100%; min-height:320px; }
.post-card.destacada h2 { font-size:1.9rem; }
.post-card.destacada .inner { padding:34px 36px; justify-content:center; gap:12px; }

.pagination { margin:30px 0 10px; display:flex; gap:12px; }
.pagination a { background:var(--blanco); border:1px solid #DCE8F4; border-radius:999px; padding:9px 20px; font-weight:700; font-size:.85rem; box-shadow:var(--sombra); }
.pagination a:hover { background:var(--celeste); color:#fff; border-color:var(--celeste); }

/* ---------- SIDEBAR DERECHA ---------- */
.site-sidebar .widget { background:var(--blanco); border-radius:var(--radio); box-shadow:var(--sombra); padding:22px; margin-bottom:26px; }
.site-sidebar .widget-title { font-size:.8rem; text-transform:uppercase; letter-spacing:1px; color:var(--celeste-fuerte); margin-bottom:14px; padding-bottom:8px; border-bottom:2px solid var(--celeste-suave); }
.site-sidebar .widget-title::before { content:""; display:inline-block; width:10px; height:10px; border-radius:50%; background:radial-gradient(circle at 35% 35%, #FFE08A, var(--sol)); margin-right:8px; }
.site-sidebar ul { list-style:none; }
.site-sidebar li { margin-bottom:9px; font-size:.88rem; }
.site-sidebar input, .site-sidebar select { width:100%; padding:10px 12px; border:1px solid #DCE8F4; border-radius:10px; font-size:.9rem; color:var(--tinta); background:var(--fondo); }
.site-sidebar input[type="submit"], .site-sidebar button { background:var(--celeste-fuerte); color:#fff; border:none; cursor:pointer; font-weight:700; }
.site-sidebar input[type="submit"]:hover, .site-sidebar button:hover { background:var(--sol-oscuro); }

/* ---------- ENTRADA COMPLETA Y PAGINAS ---------- */
.single-content { background:var(--blanco); border-radius:var(--radio); box-shadow:var(--sombra); padding:38px 42px; }
.single-content h1 { font-size:2rem; line-height:1.25; margin-bottom:6px; }
.single-content img { border-radius:12px; margin:14px 0; }
.entry p { margin-bottom:1.1em; color:#33475C; }

/* ---------- PIE ---------- */
.site-footer { background:linear-gradient(180deg, var(--tinta), #0B1B30); color:#B9D2EA; text-align:center; padding:26px 20px; font-size:.85rem; margin-top:50px; }
.site-footer a { color:var(--celeste); }
.footer-manifiesto { max-width: 760px; margin: 0 auto 14px; line-height: 1.8; letter-spacing: .015em; }
.footer-manifiesto strong { color: #F3E6C8; font-weight: 700; }
.footer-copyright { margin: 0; font-size: .78rem; opacity: .78; }
@media (max-width: 600px) {
  .site-footer { padding: 24px 16px; font-size: .9rem; }
  .footer-manifiesto { line-height: 1.7; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .site-wrap { grid-template-columns:1fr; }
  .posts-grid { grid-template-columns:1fr; }
  .post-card.destacada { grid-template-columns:1fr; }
  .post-card.destacada img { min-height:220px; }
  .header-row { padding:12px 16px; }
}

/* ---------- MANIFIESTO DE CABECERA ---------- */
.manifiesto-cabecera {
  width: 100%;
  padding: 18px clamp(14px, 3vw, 32px);
  text-align: center;
  color: var(--tinta);
  background: linear-gradient(135deg, #EAF3FB, #FFFFFF 52%, #F8EBC5);
  border-bottom: 1px solid #DCE8F4;
  overflow-wrap: anywhere;
}
.manifiesto-cabecera p { margin: 4px auto; max-width: 1000px; }
.manifiesto-cabecera .manifiesto-titulo { font-size: clamp(1.1rem, 2.4vw, 1.65rem); font-weight: 900; line-height: 1.3; }

/* ---------- AJUSTES RESPONSIVE GLOBALES ---------- */
html { width: 100%; max-width: 100%; overflow-x: clip; }
body { width: 100%; max-width: 100%; overflow-x: clip; }
.site-wrap, .site-wrap > *, .site-sidebar, .main-content, .single-content, .entry, .post-card, .post-card .inner { min-width: 0; }
.site-wrap { width: 100%; }
img, video, iframe, embed, object { max-width: 100%; }
iframe, video { height: auto; }
pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }
table { width: 100%; max-width: 100%; }

@media (max-width: 640px) {
  .banner-republica { margin: 0; }
  .banner-republica img { height: auto; min-height: 0; max-height: 230px; object-fit: contain; }
  .radio-slot { padding: 10px 12px; }
  .header-row { align-items: stretch; gap: 10px; padding: 12px; }
  .site-branding { justify-content: center; width: 100%; }
  .site-branding .custom-logo { max-width: min(100%, 300px); max-height: 64px; height: auto; }
  .main-nav { width: 100%; }
  .main-nav ul { justify-content: center; gap: 5px; }
  .main-nav a { display: block; padding: 8px 10px; font-size: .75rem; letter-spacing: .2px; }
  .site-wrap { margin: 18px auto; padding: 0 12px; gap: 20px; }
  .posts-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .post-card.destacada { display: flex; flex-direction: column; }
  .post-card.destacada img { width: 100%; height: auto; min-height: 0; max-height: 260px; object-fit: cover; }
  .post-card.destacada .inner, .post-card .inner { padding: 18px; }
  .post-card.destacada h2 { font-size: 1.45rem; }
  .single-content { padding: 22px 16px; }
  .single-content h1 { font-size: 1.55rem; overflow-wrap: anywhere; }
  .site-sidebar .widget { padding: 17px; }
  .pagination { flex-wrap: wrap; }
  .sfe-entry { overflow-x: auto; }
  .sfe-entry table { display: block; overflow-x: auto; }
}


/* ---------- MENU DE PAGINAS Y BOTON MOVIL ---------- */
.mobile-menu-toggle {
  display: none;
  border: 1px solid #DCE8F4;
  border-radius: 10px;
  background: #fff;
  color: var(--tinta);
  padding: 8px 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}
.nav-menu { min-width: 0; }
.nav-menu .menu, .nav-menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.nav-menu .page_item { list-style: none; }
.nav-menu a { display: block; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto; min-height: 44px; }
  .main-nav { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-menu { display: none; width: 100%; }
  .main-nav.is-open .nav-menu { display: block; }
  .nav-menu .menu, .nav-menu ul { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-menu li { width: 100%; }
  .nav-menu a { width: 100%; text-align: center; border-radius: 8px; background: #F4F8FC; padding: 11px 12px; }
  .nav-menu .children, .nav-menu .sub-menu { padding-left: 12px; }
}
/* ============================================================
   ZONA DE RADIO WINAMP REPUBLICANO — ESTILO RETRO-FUTURISTA
   ============================================================ */

.radio-winamp {
  background: linear-gradient(180deg, #080E18 0%, #0B1B30 50%, #080E18 100%);
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 2px solid #1B5FA8;
  border-bottom: 3px solid #F6B40E;
  position: relative;
  overflow: hidden;
}

.winamp-body {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: linear-gradient(145deg, #1a2a3e 0%, #0d1825 50%, #1a2a3e 100%);
  border-radius: 12px;
  border: 2px solid #2E77C0;
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.08),
    inset 0 -2px 4px rgba(0,0,0,0.4),
    0 8px 32px rgba(0,0,0,0.6),
    0 0 0 1px rgba(117,170,219,0.2);
  padding: 14px 18px;
  font-family: 'Consolas', 'Courier New', monospace;
}

.winamp-watermark {
  position: absolute;
  top: 8px;
  right: 12px;
  opacity: 0.15;
  pointer-events: none;
}

/* --- FILA SUPERIOR --- */
.winamp-top {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 10px;
}

/* DISPLAY LCD */
.winamp-display {
  flex: 1;
  background: #0a1a0a;
  border: 2px inset #1a3a1a;
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: inset 0 0 20px rgba(0,255,100,0.05), 0 0 8px rgba(0,0,0,0.5);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lcd-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  color: #4CAF50;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.led-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.led-green {
  background: #4CAF50;
  box-shadow: 0 0 6px #4CAF50, 0 0 12px #4CAF50;
  animation: blink-led 1.5s infinite;
}

@keyframes blink-led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.lcd-label {
  font-weight: 700;
  color: #75AADB;
}

.lcd-status {
  margin-left: auto;
  color: #F6B40E;
  font-weight: 700;
  animation: pulse-onair 2s infinite;
}

@keyframes pulse-onair {
  0%, 100% { opacity: 1; text-shadow: 0 0 4px #F6B40E; }
  50% { opacity: 0.6; text-shadow: 0 0 8px #F6B40E; }
}

.lcd-main {
  font-size: 0.85rem;
  color: #66FF99;
  text-shadow: 0 0 6px rgba(102,255,153,0.5);
  white-space: nowrap;
  overflow: hidden;
  padding: 4px 0;
}

.lcd-track {
  color: #F6B40E;
  margin-right: 6px;
}

.lcd-song {
  display: inline-block;
  animation: scroll-marquee 15s linear infinite;
}

@keyframes scroll-marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.lcd-footer {
  display: flex;
  gap: 12px;
  font-size: 0.55rem;
  color: #3a7a3a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CONTROLES */
.winamp-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.wa-btn {
  width: 44px;
  height: 36px;
  border: 2px outset #3a5a7a;
  border-radius: 4px;
  background: linear-gradient(180deg, #2a4a6a 0%, #1a2a3e 100%);
  color: #75AADB;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  font-family: inherit;
}

.wa-btn:hover {
  background: linear-gradient(180deg, #3a6a9a 0%, #2a4a6a 100%);
  color: #F6B40E;
  border-color: #F6B40E;
  box-shadow: 0 0 8px rgba(246,180,14,0.4);
}

.wa-btn:active {
  border-style: inset;
  transform: translateY(1px);
}

.wa-play.playing {
  background: linear-gradient(180deg, #1a4a2a 0%, #0a2a1a 100%);
  color: #4CAF50;
  border-color: #4CAF50;
  box-shadow: 0 0 10px rgba(76,175,80,0.5);
}

.wa-vol-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wa-vol-label {
  font-size: 0.55rem;
  color: #75AADB;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wa-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 6px;
  background: #0d1825;
  border: 1px inset #2E77C0;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.wa-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(180deg, #F6B40E, #D99A00);
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(246,180,14,0.6);
}

.wa-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: linear-gradient(180deg, #F6B40E, #D99A00);
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}

/* --- FILA INFERIOR --- */
.winamp-bottom {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

/* ECUALIZADOR */
.winamp-eq {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 50px;
  background: #0a1520;
  border: 1px inset #1a3a5a;
  border-radius: 4px;
  padding: 4px 6px;
}

.eq-bar {
  flex: 1;
  background: linear-gradient(0deg, #1B5FA8 0%, #75AADB 40%, #F6B40E 80%, #E63946 100%);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  animation: eq-dance 0.8s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  opacity: 0.7;
}

@keyframes eq-dance {
  0% { height: 15%; }
  25% { height: 60%; }
  50% { height: 30%; }
  75% { height: 85%; }
  100% { height: 45%; }
}

/* Estado pausado: barras bajas */
.winamp-paused .eq-bar {
  animation-play-state: paused;
  height: 8% !important;
  opacity: 0.3;
}

/* VU METER */
.winamp-vu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #0a1520;
  border: 1px inset #1a3a5a;
  border-radius: 4px;
  padding: 6px 10px;
}

.vu-leds {
  display: flex;
  gap: 3px;
}

.vu-led {
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: #1a2a3e;
  transition: all 0.2s;
}

.vu-low { border: 1px solid #2E77C0; }
.vu-mid { border: 1px solid #F6B40E; }
.vu-high { border: 1px solid #E63946; }
.vu-red { border: 1px solid #ff0000; }

.winamp-playing .vu-low:nth-child(-n+3) { background: #4CAF50; box-shadow: 0 0 4px #4CAF50; }
.winamp-playing .vu-mid { background: #F6B40E; box-shadow: 0 0 4px #F6B40E; }
.winamp-playing .vu-high { background: #E63946; box-shadow: 0 0 4px #E63946; animation: vu-flash 0.5s infinite alternate; }
.winamp-playing .vu-red { animation: vu-flash-red 0.3s infinite alternate; }

@keyframes vu-flash {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

@keyframes vu-flash-red {
  0% { opacity: 0; background: #1a2a3e; }
  100% { opacity: 1; background: #ff0000; box-shadow: 0 0 6px #ff0000; }
}

.vu-label {
  font-size: 0.5rem;
  color: #75AADB;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- PIE FRONTAL --- */
.winamp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #1a3a5a;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.foot-brand {
  color: #2E77C0;
}

.foot-tagline {
  color: #F6B40E;
  font-weight: 700;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .winamp-top {
    flex-direction: column;
  }
  .winamp-controls {
    flex-direction: row;
    min-width: auto;
    justify-content: space-around;
  }
  .winamp-bottom {
    flex-direction: column;
  }
  .winamp-vu {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .winamp-foot {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}
