/* Variables de color */
:root {
    --primary-color: #007BFF;
    --secondary-color: #0056b3;
    --accent-color: #22c55e;
    --background: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #374151;
    --footer-bg: #343a40;
    --footer-text: #ffffff;
    --cookie-bg: rgba(0, 0, 0, 0.8);
    --cookie-text: #ffffff;
  }
  
  /* Reset y estilos base */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
  }
  
  /* Barra de navegación */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
  }
  
  .navbar .nav-left {
    display: flex;
    flex-direction: column;
  }
  
  .navbar .nav-left h1 {
    margin: 0;
    font-size: 1.5rem;
  }
  
  .navbar .nav-left h2 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: normal;
  }
  
  .navbar .menu-toggle {
    display: none;
    cursor: pointer;
  }
  
  .navbar .nav-links {
    display: flex;
    gap: 1rem;
  }
  
  .navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .navbar .nav-links a:hover,
  .navbar .nav-links a.active {
    background-color: var(--secondary-color);
  }
  
  .navbar .nav-right img {
    width: 50px;
    height: 50px;
  }
  
  /* Contenedor principal */
  .container {
    padding: 100px 20px 20px 20px; /* Espacio para la navbar fija */
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Secciones */
  .section {
    display: none;
  }
  
  .section.active {
    display: block;
  }
  
  /* Estilos TV */
  .channel {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 15px;
  }
  
  .channel h2 {
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  
  /* Reloj boliviano */
  .time-display-container {
    background-color: #000;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: inline-block;
    text-align: center;
  }
  
  .time-legend {
    color: #fff;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  .time-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
  }
  
  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
  }
  
  .video-container iframe,
  .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .social-links a {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.3s;
  }
  
  .social-links a:hover {
    color: var(--accent-color);
  }
  
  /* Espacios publicitarios */
  .ad-space {
    background: #f0f8ff;
    border: 2px dashed #007BFF;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
  }
  
   .ad-space.has-content {
    background: transparent;
    border: none;
    padding: 10px 0;
  }
  
  .ad-space:empty::before {
    content: "📢 Espacio publicitario disponible";
  }
  
 
  
  .ad-content {
    width: 100%;
  }
  
  /* Estilos Radios */
  .radio-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(21, 128, 61, 0.1);
    margin: 1.5rem 0;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(21, 128, 61, 0.1);
  }
  
  .radio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(21, 128, 61, 0.15);
    border-color: var(--accent-color);
  }
  
  .radio-info h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 600;
  }
  
  .radio-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
  }
  
  .player-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  audio {
    width: 100%;
    height: 40px;
    border-radius: 8px;
  }
  
  audio::-webkit-media-controls-panel {
    background: #f1f5f9;
  }
  
  .radio-card button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .radio-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21, 128, 61, 0.3);
    background: var(--secondary-color);
  }
  
  .radio-card button:active {
    transform: translateY(0);
  }
  
  /* Estilos Periódicos */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    overflow: hidden;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .card-content {
    padding: 15px;
  }
  
  .card h2 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.25rem;
  }
  
  .card-iframe {
    width: 100%;
    height: 400px;
    border: none;
  }
  
  .visit-btn {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
  }
  
  .visit-btn:hover {
    background-color: var(--secondary-color);
  }
  
  /* Estilos Mensajes */
  .messages-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .contact-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
  }
  
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  .form-group textarea {
    height: 120px;
    resize: vertical;
  }
  
  .contact-form button,
  .admin-container button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .contact-form button:hover,
  .admin-container button:hover {
    background: var(--secondary-color);
  }
  
  .messages-list {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .message-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
  }
  
  .message-item:last-child {
    border-bottom: none;
  }
  
  .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .message-author {
    font-weight: 600;
    color: var(--primary-color);
  }
  
  .message-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  .message-content {
    color: var(--text-primary);
    line-height: 1.5;
  }
  
  /* Estilos Admin */
  .admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
  }
  
  .tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
  }
  
  .tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
  }
  
  .admin-tab {
    display: none;
  }
  
  .admin-tab.active {
    display: block;
  }
  
  .admin-messages,
  .admin-ads,
  .admin-stats {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .ad-form {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
  }
  
  .stat-card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
  }
  
  .stat-card p {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
  }
  
  .admin-message-item {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .admin-message-content {
    flex: 1;
  }
  
  .admin-message-actions {
    display: flex;
    gap: 10px;
  }
  
  .delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
  }
  
  .delete-btn:hover {
    background: #c82333;
  }
  
  /* Banner de Cookies */
  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cookie-bg);
    color: var(--cookie-text);
    padding: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
  }
  
  .cookie-content {
    max-width: 800px;
    text-align: center;
  }
  
  .cookie-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .cookie-button:hover {
    background-color: var(--secondary-color);
  }
  
  .cookie-link {
    color: #ffc107;
    text-decoration: underline;
    margin-left: 10px;
  }
  
  /* Notificaciones */
  .notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    transform: translateX(400px);
    transition: transform 0.3s ease;
  }
  
  .notification.show {
    transform: translateX(0);
  }
  
  .notification.success {
    background: var(--accent-color);
  }
  
  .notification.error {
    background: #dc3545;
  }
  
  .loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
  }
  
  /* Pie de página */
  footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem;
    text-align: center;
  }
  
  .footer-columns {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer-column h3 {
    margin-bottom: 1rem;
  }
  
  .footer-column a {
    color: #ffc107;
    text-decoration: none;
  }
  
  .footer-column a:hover {
    text-decoration: underline;
  }
  
  .footer-bottom h3 {
    margin-top: 1rem;
    font-size: 1rem;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .navbar .nav-links {
      flex-direction: column;
      background-color: var(--primary-color);
      position: absolute;
      top: 60px;
      right: 0;
      width: 200px;
      display: none;
    }
  
    .navbar .nav-links a {
      padding: 1rem;
      border-bottom: 1px solid var(--secondary-color);
    }
  
    .navbar .nav-links.active {
      display: flex;
    }
  
    .navbar .menu-toggle {
      display: block;
    }
  
    .radio-card {
      grid-template-columns: 1fr;
      padding: 1.25rem;
    }
  
    .radio-card button {
      width: 100%;
    }
  
    .card-iframe {
      height: 300px;
    }
  
    .stats-grid {
      grid-template-columns: 1fr;
    }
  
    .admin-tabs {
      flex-wrap: wrap;
    }
  
    .notification {
      right: 10px;
      left: 10px;
      transform: translateY(-100px);
    }
  
    .notification.show {
      transform: translateY(0);
    }
  }
  
  @media (min-width: 769px) {
    .navbar .menu-toggle {
      display: none;
    }
  }
  
  /* AGREGA ESTOS ESTILOS AL FINAL DE TU css/styles.css */

.ad-form textarea {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 15px;
  resize: vertical;
  min-height: 200px;
}

.ad-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.ad-submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.ad-submit-btn:hover {
  background: var(--secondary-color);
}

.ad-form {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

#currentAds h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}