/* ============================================================
   LONCURA RADIO FM - style.css (versión final)
   Estructura limpia, moderna y responsive
   Incluye: layout, noticias, reproductor, videos y PWA button
============================================================ */

/* ---------- RESET BÁSICO ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* ---------- ENCABEZADO ---------- */
header {
  text-align: center;
  padding: 25px 10px;
  background: linear-gradient(135deg, #111, #000);
  border-bottom: 2px solid #ff6600;
}

header img {
  max-width: 180px;
  margin-bottom: 10px;
}

header h1 {
  font-size: 1.8em;
  color: #ff6600;
  letter-spacing: 1px;
}

/* ---------- CONTENEDOR PRINCIPAL ---------- */
main {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* ---------- PLAYER ---------- */
audio#radioPlayer {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  outline: none;
  background: #111;
}

#player-container {
  text-align: center;
  margin-bottom: 30px;
}

/* ---------- SECCIÓN DE NOTICIAS ---------- */
.news-section {
  margin-bottom: 40px;
}

.news-section h2 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #ff6600;
  border-left: 5px solid #ff6600;
  padding-left: 10px;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.news-item {
  background: #111;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.3);
}

.news-item h3 {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 8px;
}

.news-item a {
  color: #ff8533;
  text-decoration: none;
}

.news-item a:hover {
  text-decoration: underline;
}

.news-item img {
  max-width: 100%;
  border-radius: 8px;
  margin: 10px 0;
}

/* ---------- VIDEOS PUBLICITARIOS ---------- */
#videos-publicitarios {
  margin-top: 60px;
}

#videos-publicitarios h2 {
  color: #ff6600;
  font-size: 1.6em;
  margin-bottom: 20px;
  text-align: center;
}

#videoContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

#videoContainer .news-item {
  background: #111;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(255, 102, 0, 0.2);
}

/* ---------- BOTÓN PWA ---------- */
.install-section {
  text-align: center;
  margin: 40px 0;
}

.install-btn {
  background: #ff6600;
  color: #fff;
  padding: 14px 22px;
  font-size: 1.1em;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
}

.install-btn:hover {
  background: #ff8533;
  transform: scale(1.05);
}

#iosHint {
  display: none;
  font-size: 0.9em;
  margin-top: 10px;
  color: #ddd;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  color: #888;
  font-size: 0.9em;
  padding: 25px 10px;
  background: #0a0a0a;
  border-top: 2px solid #ff6600;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.4em;
  }
  .news-item {
    padding: 12px;
  }
  .install-btn {
    font-size: 1em;
    padding: 12px 18px;
  }
}
