* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #fff;
  color: #333;
}

header {
  background: #ff7a00;
  color: white;
  padding: 15px;
  text-align: center;
}

.switch-container button {
  padding: 8px 16px;
  margin: 5px;
  border-radius: 20px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.switch-container .activo {
  background: white;
  color: #ff7a00;
}

section {
  padding: 15px;
}

h2 {
  color: #ff7a00;
}

.tabla-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

th {
  background: #ff7a00;
  color: white;
}

.resultados {
  display: grid;
  gap: 10px;
}

.partido {
  background: #fff5eb;
  border-left: 5px solid #ff7a00;
  padding: 10px;
  border-radius: 6px;
}

.destacados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 15px;
}

.card {
  background: #fff5eb;
  border-left: 5px solid #ff7a00;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

footer {
  background: #f2f2f2;
  text-align: center;
  padding: 10px;
}

/* ===== NOTICIAS ===== */

.noticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.tarjeta-noticia {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.tarjeta-noticia:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.imagen-noticia {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
}

.imagen-noticia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff7a00;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: bold;
}

.contenido-noticia {
  padding: 18px;
}

.contenido-noticia h3 {
  margin: 0 0 10px 0;
  color: #ff7a00;
  font-size: 18px;
}

.contenido-noticia p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #333;
}

.fecha {
  font-size: 12px;
  color: #777;
}
