/* 
   FM CRISTAL 97.7 MHz - General Belgrano
   Clean, Single-Screen Viewport Fit, Rich Gradient Background
*/

:root {
  --bg-gradient: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.15) 0%, transparent 40%),
                 radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.14) 0%, transparent 40%),
                 radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.10) 0%, transparent 60%),
                 linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 35%, #e0e7ff 70%, #f1f5f9 100%);
  
  --card-bg: #ffffff;
  --card-border: rgba(226, 232, 240, 0.9);
  --card-shadow: 0 20px 45px -10px rgba(2, 132, 199, 0.18), 0 10px 25px -5px rgba(0, 0, 0, 0.06);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --primary-blue: #0284c7;
  --accent-live: #dc2626;
  
  --fb-color: #1877f2;
  --fb-hover: #1464cc;
  --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --ads-gradient: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition: all 0.25s ease-in-out;
}

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

html, body {
  height: 100%;
  width: 100%;
  background: var(--bg-gradient);
  background-attachment: fixed;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  overflow: hidden;
}

/* Master Viewport Container */
.page-container {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px 20px;
  overflow: hidden;
}

/* Contenedor Principal: Card con Fondo Blanco Puro */
.main-content-card {
  width: 100%;
  max-width: 1060px;
  max-height: 560px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  display: flex;
  overflow: hidden;
}

/* Costado Izquierdo: Reproductor de Radio y Acciones */
.col-radio {
  flex: 1.15;
  height: 100%;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border-right: 1px solid var(--card-border);
  overflow: hidden;
}

/* Header de Marca: Badges a la izquierda y Logo mayor a la derecha */
.card-brand-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 6px;
  gap: 14px;
}

/* Badges más chicos a la izquierda */
.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent-live);
  background: #ffe4e6;
  border: 1px solid #fecdd3;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.1);
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-live);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--accent-live);
  animation: pulse-ring 1.6s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.location-badge i {
  color: var(--primary-blue);
  font-size: 0.68rem;
}

/* Logo más grande a la derecha */
.card-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.card-logo {
  height: 105px;
  max-width: 250px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.06));
}

.card-logo:hover {
  transform: scale(1.03);
}

/* Título de Transmisión */
.radio-panel-title {
  margin: 4px 0 8px 0;
  text-align: left;
}

.radio-panel-title h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.radio-panel-title p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Reproductor de Radio */
.player-box {
  width: 100%;
  height: 118px;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 12px;
}

.player-box iframe {
  width: 100% !important;
  height: 118px !important;
  border: none !important;
  overflow: hidden !important;
  display: block;
  background: transparent !important;
}

/* Botones de Acción */
.actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-ads {
  background: var(--ads-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

.btn-ads:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
  color: #ffffff !important;
}

.social-buttons-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-fb {
  flex: 1;
  background: var(--fb-color);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
  font-size: 0.88rem;
  padding: 10px 12px;
}

.btn-fb:hover {
  background: var(--fb-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
  color: #ffffff !important;
}

.btn-ig {
  flex: 1;
  background: var(--ig-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.2);
  font-size: 0.88rem;
  padding: 10px 12px;
}

.btn-ig:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.35);
  color: #ffffff !important;
}

/* Costado Derecho: Facebook Amplio */
.col-facebook {
  width: 500px;
  min-width: 500px;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}

.fb-frame-wrapper {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
}

.fb-frame-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
}

/* Footer Section */
.site-footer {
  width: 100%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 10px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.site-footer a:hover {
  opacity: 0.8;
}

.site-footer img {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

/* ========================================================
   RESPONSIVIDAD
   ======================================================== */

@media (max-height: 720px) and (min-width: 992px) {
  .page-container {
    padding: 8px 16px;
  }
  .card-logo {
    height: 85px;
  }
  .main-content-card {
    max-height: 480px;
  }
  .col-radio {
    padding: 16px 20px;
  }
  .btn-action {
    padding: 9px 12px;
  }
}

/* Dispositivos Móviles y Tablets */
@media (max-width: 991px) {
  html, body {
    overflow-y: auto;
    height: auto;
    min-height: 100%;
  }

  .page-container {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 16px 12px;
    justify-content: flex-start;
  }

  .card-logo {
    height: 90px;
    max-width: 200px;
  }

  .main-content-card {
    flex-direction: column;
    max-height: none;
    margin: 10px 0;
  }

  .col-radio {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding: 20px 16px;
  }

  .col-facebook {
    width: 100%;
    min-width: auto;
    height: 480px;
    padding: 12px;
  }

  .site-footer {
    padding: 16px 0 10px 0;
  }
}

@media (max-width: 540px) {
  .card-brand-header {
    flex-direction: row;
    align-items: center;
  }

  .card-logo {
    height: 75px;
    max-width: 160px;
  }

  .col-facebook {
    height: 440px;
    padding: 8px;
  }

  .btn-action {
    font-size: 0.88rem;
    padding: 10px 12px;
  }
}
