/* Suacia: estilo marino, todo redondeado, con olas y burbujas */
:root {
  --azul: #005BAC;
  --azul-osc: #00305C;
  --amarillo: #FFCD00;
  --amarillo-claro: #FFF3B8;
  --cielo: #E6F3FF;
  --naranja: #E4572E;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #fff;
  background: var(--azul);
  /* puntitos como burbujas de mar */
  background-image: radial-gradient(rgba(255, 205, 0, .18) 2px, transparent 2.5px);
  background-size: 28px 28px;
}

h1, h2, h3, .logo, .boton { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 6vw, 2.7rem); margin: 0 0 1rem; color: var(--amarillo); }
h3 { margin: .2rem 0; font-size: 1.3rem; }
strong { color: var(--amarillo); 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(--amarillo); color: var(--azul-osc);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .15);
}
.logo { display: flex; align-items: center; gap: .5rem; color: var(--azul); text-decoration: none; font-size: 1.6rem; }
.mini-bandera { width: 34px; height: 34px; border-radius: 8px; }
.menu-boton {
  display: none; font: inherit; font-weight: 800; font-size: 1rem;
  background: var(--azul); color: #fff; border: 0; border-radius: 999px; padding: .4rem 1rem; cursor: pointer;
}
.menu { display: flex; flex-wrap: wrap; gap: .3rem; }
.menu a {
  color: var(--azul-osc); text-decoration: none; font-weight: 800; padding: .3rem .8rem; border-radius: 999px;
}
.menu a:hover, .menu a:focus-visible { background: var(--azul); color: #fff; }

/* ---------- Secciones ---------- */
main { max-width: 980px; margin: 0 auto; padding: 0 1.2rem; }
section { margin: 2.2rem 0; padding: 1.8rem; border-radius: 32px; background: var(--azul-osc); }
section.clara { background: var(--cielo); color: var(--azul-osc); }
section.clara h2 { color: var(--azul); }
section.clara strong { color: var(--azul); }
.intro { font-size: 1.25rem; margin-top: 0; }

/* ---------- Portada ---------- */
.portada {
  position: relative; overflow: hidden; text-align: center;
  padding: 2rem 1.5rem 4.5rem; background: var(--azul-osc);
}
.bandera {
  width: min(70vw, 300px); border-radius: 20px;
  box-shadow: 0 0 0 6px var(--amarillo), 0 14px 30px rgba(0, 0, 0, .35);
  animation: flota 3.5s ease-in-out infinite;
}
@keyframes flota { 50% { transform: translateY(-10px) rotate(1.5deg); } }
.portada h1 { font-size: clamp(3rem, 14vw, 5.5rem); line-height: 1; margin: 0; color: var(--amarillo); }
.chiquito { margin: 1rem 0 0; font-size: 1.3rem; font-weight: 800; }
.lema { font-size: 1.3rem; font-weight: 800; margin: .6rem auto; max-width: 30ch; }
.autor { margin: 0 0 1.2rem; }
.ola { position: absolute; left: 0; bottom: 0; width: 100%; height: 50px; fill: #4FB3E8; }

.boton {
  display: inline-block; text-decoration: none; cursor: pointer; font-size: 1.15rem;
  background: var(--amarillo); color: var(--azul-osc); border: 0;
  padding: .75rem 1.5rem; border-radius: 999px;
  box-shadow: 0 5px 0 #C79F00; transition: transform .15s, box-shadow .15s;
}
.boton:hover, .boton:focus-visible { transform: translateY(2px); box-shadow: 0 3px 0 #C79F00; }

/* ---------- Línea de tiempo (pasos numerados) ---------- */
.linea { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.linea li {
  display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start;
  background: #fff; border-radius: 24px; padding: 1rem;
}
.linea li:not(:last-child) { position: relative; }
.linea li:not(:last-child)::after {
  content: "⬇"; position: absolute; left: 30px; bottom: -1.25rem; color: var(--azul); font-size: 1.1rem;
}
.paso {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--azul); color: var(--amarillo); font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.6rem;
}
.cuando { display: inline-block; background: var(--amarillo); color: var(--azul-osc); font-weight: 800; padding: 0 .7rem; border-radius: 999px; font-size: .95rem; }
.linea p { margin: .2rem 0 0; }
.destacado { background: var(--amarillo) !important; }
.destacado .paso { background: var(--naranja); color: #fff; }
.destacado .cuando { background: var(--azul); color: #fff; font-size: 1.3rem; }

/* ---------- Datos (burbujas) ---------- */
.burbujas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.burbuja {
  text-align: center; padding: 1.2rem .8rem; border-radius: 28px;
  background: var(--azul); border: 3px solid var(--amarillo);
}
.burbuja:nth-child(even) { background: var(--amarillo); color: var(--azul-osc); border-color: #fff; }
.burbuja:nth-child(even) .dato { color: var(--azul); }
.burbuja p { margin: .2rem 0; }
.icono { font-size: 2.3rem; display: block; }
.icono.grande { font-size: 4.5rem; line-height: 1.2; }
.dato { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--amarillo); line-height: 1.25; }

.proximamente {
  display: flex; gap: .8rem; align-items: center;
  margin-top: 1.2rem; padding: .8rem 1.1rem;
  border: 3px dashed var(--amarillo); border-radius: 22px; background: rgba(255, 255, 255, .08);
}
.clara .proximamente { border-color: var(--azul); background: #fff; }
.proximamente span { font-size: 1.8rem; }
.proximamente p { margin: 0; }

/* ---------- Comida ---------- */
.platos { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.plato {
  width: 190px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: #fff; border: 10px solid var(--amarillo); box-shadow: 0 8px 0 rgba(0, 0, 0, .1);
  transition: transform .3s;
}
.plato:hover { transform: rotate(10deg); }
.mas { font-family: "Fredoka", sans-serif; font-size: 3rem; font-weight: 700; color: var(--azul); }

/* ---------- Fútbol ---------- */
.vitrina { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; min-height: 3rem; }
.vitrina .copa {
  display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 50%;
  background: var(--amarillo); font-size: 1.8rem;
  animation: aparece .4s ease-out both;
}
@keyframes aparece { from { transform: scale(0) rotate(-90deg); } to { transform: scale(1); } }
.vitrina .final { width: 100%; font-family: "Fredoka", sans-serif; font-size: 1.6rem; color: var(--amarillo); margin: .3rem 0 0; }

/* ---------- Mapa ---------- */
.mapa-caja { margin: 0; }
.mapa-caja svg { width: 100%; height: auto; border-radius: 24px; border: 5px solid var(--azul); }
.mapa-caja figcaption { font-size: .95rem; margin-top: .4rem; }
.mapa-pais { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 16px; fill: var(--azul-osc); letter-spacing: 1px; }
.mapa-pais.otro { font-size: 24px; fill: var(--azul); opacity: .75; }
.mapa-capital { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 13px; fill: var(--naranja); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.mapa-ciudad { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 12px; fill: var(--azul-osc); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.mapa-mar { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 14px; fill: #fff; }

/* ---------- Países hermanos ---------- */
.dos-banderas { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.dos-banderas svg { width: 120px; height: 120px; border-radius: 16px; box-shadow: 0 0 0 4px var(--amarillo); }
.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: rgba(255, 255, 255, .1); margin: .5rem 0; padding: .6rem 1.1rem; border-radius: 999px; }
.cortalona {
  display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center;
  margin: 1.2rem 0; padding: 1rem 1.2rem; border-radius: 28px; background: var(--cielo); color: var(--azul-osc);
}
.cortalona strong { color: var(--azul); }
.cortalona svg { width: 100%; }
.cortalona p { margin: .3rem 0; }

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

/* ---------- Celular ---------- */
@media (max-width: 720px) {
  body { font-size: 1.06rem; }
  main { padding: 0 .8rem; }
  section { padding: 1.2rem; margin: 1.5rem 0; border-radius: 24px; }
  .menu-boton { display: block; }
  .menu { display: none; width: 100%; flex-direction: column; padding-bottom: .4rem; }
  .menu.abierto { display: flex; }
  .menu a { padding: .55rem 1rem; background: rgba(0, 91, 172, .08); }
  .linea li { grid-template-columns: 44px 1fr; gap: .7rem; }
  .paso { width: 44px; height: 44px; font-size: 1.3rem; }
  .linea li:not(:last-child)::after { left: 26px; }
  .plato { width: 140px; }
  .icono.grande { font-size: 3.4rem; }
  .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; }
}
