/* Bieloafa: estilo deportivo, bloques gruesos y franjas como la bandera */
:root {
  --azul: #005BAC;
  --azul-osc: #003C73;
  --amarillo: #FFCD00;
  --crema: #FFF8D6;
  --rojo: #D7263D;
  --sombra: 6px 6px 0 var(--azul-osc);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--azul-osc);
  background: var(--crema);
  /* franjas azules a los costados, como la bandera */
  background-image:
    linear-gradient(90deg, var(--azul) 0 14px, transparent 14px calc(100% - 14px), var(--azul) calc(100% - 14px));
}

h1, h2, h3, .logo, .boton { font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-weight: 400; }
h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0 0 1rem; color: var(--azul); text-transform: uppercase; }
h3 { margin: .2rem 0; font-size: 1.25rem; }
strong { color: var(--azul); font-weight: 800; }

/* ---------- Barra de arriba ---------- */
.barra {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .5rem; padding: .6rem 1.2rem;
  background: var(--azul); color: #fff;
  border-bottom: 5px solid var(--amarillo);
}
.logo { display: flex; align-items: center; gap: .5rem; color: var(--amarillo); text-decoration: none; font-size: 1.4rem; letter-spacing: .05em; }
.mini-bandera { width: 32px; height: 32px; border: 2px solid #fff; }
.menu-boton {
  display: none; font: inherit; font-weight: 800; font-size: 1rem;
  background: var(--amarillo); color: var(--azul-osc); border: 0; border-radius: 8px; padding: .4rem .9rem; cursor: pointer;
}
.menu { display: flex; flex-wrap: wrap; gap: .3rem; }
.menu a {
  color: #fff; text-decoration: none; font-weight: 800; padding: .3rem .7rem; border-radius: 8px;
}
.menu a:hover, .menu a:focus-visible { background: var(--amarillo); color: var(--azul-osc); }

/* ---------- Secciones ---------- */
main { max-width: 1000px; margin: 0 auto; padding: 0 1.6rem; }
section {
  margin: 2.5rem 0; padding: 1.6rem;
  background: #fff; border: 4px solid var(--azul); border-radius: 14px; box-shadow: var(--sombra);
}
.intro { font-size: 1.25rem; margin-top: 0; }
.ayuda { margin: .5rem 0; font-size: 1rem; }

/* ---------- Portada ---------- */
.portada {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: center;
  background: var(--amarillo);
}
.bandera { width: 100%; max-width: 380px; justify-self: center; border: 5px solid var(--azul-osc); box-shadow: var(--sombra); animation: flamea 4s ease-in-out infinite; }
@keyframes flamea { 50% { transform: rotate(-2deg) scale(1.02); } }
.portada h1 { font-size: clamp(2.6rem, 11vw, 5rem); line-height: 1; margin: 0; color: var(--azul); }
.chiquito { margin: 0; font-size: 1.4rem; font-weight: 800; }
.lema { font-size: 1.4rem; font-weight: 800; margin: .6rem 0; }
.autor { margin: 0 0 1.2rem; }

.boton {
  display: inline-block; text-decoration: none;
  background: var(--azul); color: var(--amarillo);
  padding: .8rem 1.3rem; border-radius: 12px; border: 3px solid var(--azul-osc);
  box-shadow: 4px 4px 0 var(--azul-osc); transition: transform .15s;
}
.boton:hover, .boton:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--azul-osc); }

/* ---------- Línea de tiempo ---------- */
.linea { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 6px solid var(--amarillo); }
.linea li { position: relative; margin-bottom: 1.4rem; }
.linea li::before {
  content: ""; position: absolute; left: calc(-1.6rem - 14px); top: .35rem;
  width: 22px; height: 22px; border-radius: 50%; background: var(--azul); border: 4px solid var(--amarillo);
}
.cuando {
  display: inline-block; background: var(--azul); color: #fff; font-weight: 800;
  padding: .1rem .7rem; border-radius: 999px; font-size: .95rem;
}
.hito { background: var(--crema); border-radius: 10px; padding: .6rem 1rem; margin-top: .4rem; }
.hito p { margin: .2rem 0 0; }
.destacado .cuando { background: var(--rojo); font-size: 1.3rem; }
.destacado .hito { background: var(--amarillo); }

/* ---------- Tarjetas ---------- */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.tarjetas.dos { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tarjeta {
  background: var(--crema); border: 3px solid var(--azul); border-radius: 12px;
  padding: 1rem; text-align: center;
}
.tarjeta p { margin: .2rem 0; }
.icono { font-size: 2.2rem; display: block; }
.icono.grande { font-size: 4.5rem; line-height: 1.2; }
.dato { font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 1.35rem; color: var(--azul); overflow-wrap: anywhere; }
.cuenta { margin-top: .5rem !important; font-weight: 800; color: var(--rojo); }
.comida { background: var(--amarillo); transition: transform .2s; }
.comida:hover { transform: rotate(-3deg) scale(1.04); }

.proximamente {
  display: flex; gap: .8rem; align-items: center;
  margin-top: 1.2rem; padding: .8rem 1rem;
  border: 3px dashed var(--azul); border-radius: 12px; background: #EAF2FB;
}
.proximamente span { font-size: 1.8rem; }
.proximamente p { margin: 0; }

/* ---------- Fútbol ---------- */
.copas { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; max-width: 520px; }
.copa {
  font-size: clamp(1.8rem, 8vw, 2.6rem); line-height: 1; padding: .3rem 0;
  background: var(--crema); border: 3px solid var(--azul); border-radius: 10px; cursor: pointer;
  filter: grayscale(1); opacity: .45; transition: transform .2s, filter .2s, opacity .2s;
}
.copa.ganada { filter: none; opacity: 1; background: var(--amarillo); transform: scale(1.08) rotate(-4deg); }
.contador { font-family: "Archivo Black", sans-serif; font-size: 1.6rem; color: var(--azul); margin: .6rem 0 0; }

/* ---------- Mapa ---------- */
.mapa-caja { margin: 0; }
.mapa-caja svg { width: 100%; height: auto; border: 4px solid var(--azul); border-radius: 12px; background: #E9F3EA; }
.mapa-caja figcaption { font-size: .95rem; margin-top: .4rem; }
.mapa-pais { font-family: "Archivo Black", sans-serif; font-size: 26px; fill: var(--azul); letter-spacing: 2px; }
.mapa-pais.chico { font-size: 13px; fill: var(--azul-osc); }
.mapa-capital { font-family: "Archivo Black", sans-serif; font-size: 18px; fill: var(--rojo); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.mapa-ciudad { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 10px; fill: var(--azul-osc); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.mapa-mar { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 13px; fill: #fff; }

/* ---------- Países hermanos ---------- */
.hermanos { background: linear-gradient(135deg, #fff 0 60%, var(--crema)); }
.dos-banderas { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.dos-banderas svg { width: 120px; height: 120px; border: 4px solid var(--azul-osc); }
.corazon { font-size: 2.5rem; animation: late 1.2s ease-in-out infinite; }
@keyframes late { 50% { transform: scale(1.25); } }
.lista { list-style: none; padding: 0; }
.lista li { background: var(--crema); margin: .5rem 0; padding: .6rem 1rem; border-radius: 10px; border-left: 8px solid var(--amarillo); }
.cortalona {
  display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center;
  margin: 1.2rem 0; padding: 1rem; border: 3px solid var(--azul); border-radius: 12px; background: #fff;
}
.cortalona svg { width: 100%; }
.cortalona p { margin: .3rem 0; }
.boton-hermano { margin-top: .5rem; font-size: 1.05rem; }

footer { text-align: center; padding: 1.5rem 1rem 2.5rem; font-weight: 800; }

/* ---------- Celular ---------- */
@media (max-width: 720px) {
  body { font-size: 1.06rem; background-image: linear-gradient(90deg, var(--azul) 0 6px, transparent 6px calc(100% - 6px), var(--azul) calc(100% - 6px)); }
  main { padding: 0 1rem; }
  section { padding: 1.1rem; margin: 1.6rem 0; }
  .menu-boton { display: block; }
  .menu { display: none; width: 100%; flex-direction: column; padding-bottom: .4rem; }
  .menu.abierto { display: flex; }
  .menu a { padding: .6rem .8rem; background: rgba(255, 255, 255, .08); }
  .portada { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .bandera { max-width: 260px; }
  .copas { grid-template-columns: repeat(4, 1fr); }
  .cortalona { grid-template-columns: 1fr; text-align: center; }
  .cortalona svg { max-width: 160px; margin: 0 auto; }
  .dos-banderas svg { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Los creadores ---------- */
.creadores { margin: 1.2rem auto; max-width: 420px; text-align: center; }
.creadores img { width: 100%; height: auto; border: 4px solid var(--azul); border-radius: 12px; box-shadow: var(--sombra); transform: rotate(-1.5deg); }
.creadores figcaption { margin-top: .8rem; }

/* ---------- Dibujo original de Bruno ---------- */
.dibujo-bruno { margin: 1.4rem auto 0; max-width: 260px; text-align: center; }
.dibujo-bruno img { width: 100%; height: auto; transform: rotate(2deg); filter: drop-shadow(4px 4px 0 var(--azul-osc)); }
.dibujo-bruno figcaption { font-weight: 800; margin-top: .4rem; }
.mapa-norte text { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 13px; fill: #fff; paint-order: stroke; stroke: #003C73; stroke-width: 3px; }
