/*
Theme Name: Tema BER
Theme URI: https://barilocheredes.com.ar/
Author: Antigravity
Author URI: https://barilocheredes.com.ar/
Description: Tema premium, inmersivo y altamente visual para Bariloche En Redes. Totalmente responsive, optimizado para celulares y con soporte nativo para radio en vivo persistente y comentarios en cajas independientes.
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: tema-ber
*/

/* Variables y Tokens de Diseño */
:root {
  --color-bg: #f5f3ee;
  --color-ink: #1c1c1c;
  --color-sub: #5c5c5c;
  --color-card: #ffffff;
  --color-chip: #eef4f2;
  --color-line: #d1deda;
  --color-lake: #5a9fe1;
  --color-lake-soft: #eaf1fa;
  --color-terracotta: #d67e2a;
  --color-verde: #436d66;
  --font-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
}

/* Reset Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image: linear-gradient(rgba(245, 243, 238, 0.72), rgba(245, 243, 238, 0.72)), url('https://barilocheredes.com.ar/wp-content/uploads/2018/12/logo-ber-sin-fondo-solo-logo.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 1. Cabecera Sticky Unificada */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #eef4f2, #e2ece9);
  border-bottom: 2px solid var(--color-verde);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}
.header-logo {
  width: 129px;
  height: auto;
  object-fit: contain;
}
.header-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header-tagline {
  display: flex;
  flex-direction: column;
  color: var(--color-verde);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.tagline-main {
  font-size: 24px;
  font-weight: 600;
}
.tagline-sub {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Radio Control */
.radio-header-wrap {
  display: flex;
  align-items: center;
}
.radio-control {
  background: #1c1c1c;
  color: white;
  border-radius: 99px;
  padding: 6px 14px 6px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.radio-play-btn {
  width: 32px;
  height: 32px;
  background: #e65c00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radio-play-icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 2px;
}
.radio-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.radio-label { font-size: 10px; font-weight: 700; color: #a3a3a3; text-transform: uppercase; }
.radio-freq { font-size: 13px; font-weight: 800; color: #e65c00; line-height: 1; }

.sections-menu-btn {
  background: white;
  border: 1px solid var(--color-verde);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  color: var(--color-verde);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 2. Grid de Portada (Superior) */
.hero-grid-wrapper {
  display: grid;
  grid-template-columns: 1.52fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.carousel-area {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  aspect-ratio: 16 / 10;
}
.grid-side-area {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.side-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  display: block;
  aspect-ratio: 1.1 / 1;
}
.card-bg {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: top center;
  transition: transform 0.35s ease;
}
.side-card:hover .card-bg {
  transform: scale(1.05);
}
.card-content-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent);
  padding: 16px 12px;
  color: white;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.3;
}

/* 3. Hoja de Nota (Bloques Flotantes Independientes) */
.nota-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 32px 0;
}
.nota-block {
  background: var(--color-card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  margin-bottom: 24px;
}
.nota-block-transparent {
  background: transparent;
  padding: 0;
  box-shadow: none;
  margin-bottom: 24px;
}

.nota-tag {
  display: inline-block;
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.nota-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.nota-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.nota-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.nota-author-name { font-weight: 700; }
.nota-date { color: var(--color-sub); }

.nota-excerpt {
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-sub);
  margin-bottom: 24px;
}

.nota-hero-image-container {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
}
.nota-hero-image {
  height: 420px;
  background-size: cover;
  background-position: top center;
}
.nota-hero-caption {
  text-align: center;
  font-style: italic;
  font-size: 14px;
  color: var(--color-sub);
  padding: 10px 0;
}
.nota-body {
  font-family: var(--font-serif);
  font-size: 18.5px;
  line-height: 1.8;
}
.nota-body p { margin-bottom: 20px; }

/* 4. Responsive */
@media (max-width: 640px) {
  .header-top { gap: 4px; padding: 6px 0; }
  .header-logo { width: 58px; }
  .tagline-main { font-size: 15px; line-height: 1.2; }
  .tagline-sub { font-size: 13px; line-height: 1.15; }
  .radio-control { display: none !important; }
  .hero-grid-wrapper { grid-template-columns: 1fr; }
  .nota-container { grid-template-columns: 1fr; }
  .nota-title { font-size: 28px; }
  .nota-hero-image { height: 280px; }
}
