/* archivos/common.css */
/* ===== VARIABLES Y TEMA ===== */
:root {
/*  --bg-color: #000000; */
  --text-color: #111111;
  --card-bg: #f8f9fa;
  --card-border: #e0e0e0;
  --card-hover: #e9ecef;
  --title-color: #0d47a1;
  --meta-color: #666666;
  --switch-bg: rgba(255, 255, 255, 0.9);
  --switch-border: #ddd;
  --overlay-bg: rgba(0, 0, 0, 0.92);
  --overlay-text: #ffffff;
  --live-color: #ff4444;
  --live-bg: rgba(255, 68, 68, 0.1);
  --accent-color: #2196F3;
  --success-color: #4CAF50;
  --warning-color: #ff9800;
  --error-color: #f44336;
}

.dark-mode {
  --bg-color: #111111;
  --text-color: #ffffff;
  --card-bg: #1a1a1a;
  --card-border: #333333;
  --card-hover: #2a2a2a;
  --title-color: #90caf9;
  --meta-color: #aaaaaa;
  --switch-bg: rgba(0, 0, 0, 0.85);
  --switch-border: #222222;
  --overlay-bg: rgba(0, 0, 0, 0.97);
  --overlay-text: #ffffff;
  --live-color: #ff6b6b;
  --live-bg: rgba(255, 107, 107, 0.15);
}

/* ===== RESET Y BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  line-height: 1.6;
}

/* ===== HEADER COMÚN ===== */
.common-header {
  background: linear-gradient(135deg, var(--title-color) 0%, #1e88e5 100%);
  color: white;
  padding: 15px 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}

.site-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.logo-icon {
  font-size: 1.8rem;
}

.navigation {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ===== CONTROLES ===== */
.controls-container {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

.control-group {
  background: var(--switch-bg);
  border: 1px solid var(--switch-border);
  border-radius: 8px;
  padding: 6px 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  min-width: 110px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.theme-toggle label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-color);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #888;
  transition: .4s;
  border-radius: 18px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #2196F3;
}

input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

.language-select {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--switch-border);
  border-radius: 6px;
  padding: 5px 8px;
  width: 100%;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ===== CONTENIDO ===== */
.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 15px;
  min-height: calc(100vh - 180px);
}

/* ===== FOOTER COMÚN ===== */
.common-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  padding: 25px 0;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--meta-color);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--title-color);
}

.copyright {
  color: var(--meta-color);
  font-size: 0.8rem;
  text-align: center;
  width: 100%;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--card-border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
  }
  
  .navigation {
    justify-content: center;
  }
  
  .controls-container {
    top: 10px;
    right: 10px;
    flex-direction: column;
  }
  
  .control-group {
    min-width: 100px;
    padding: 5px 8px;
  }
  
  .site-logo h1 {
    font-size: 1.3rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}