/* =========================================================
   Portada: héroe, mapa de islas, accesos y "cómo jugar".
   ========================================================= */

/* ---------- héroe ---------- */
.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 30px 34px;
  overflow: hidden;
  --head: var(--blue);
}
.hero-card h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); line-height: 1; margin: 14px 0 16px; --stroke: 9px; }
.hero-card .intro {
  font-size: 1.12rem;
  max-width: 50ch;
  background: var(--paper);
  border: var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero-art .mascot { width: min(330px, 100%); filter: drop-shadow(0 8px 0 rgba(26, 26, 26, .28)); }
.hero-art .speech {
  position: absolute;
  top: 6px;
  left: 0;
  font: 600 1.05rem/1.3 var(--font-head);
  background: var(--paper);
  border: var(--border);
  border-radius: 18px;
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
  z-index: 1;
}
.hero-art .speech::after {
  content: "";
  position: absolute;
  bottom: -13px;
  right: 34px;
  width: 20px;
  height: 20px;
  background: var(--paper);
  border-right: var(--border);
  border-bottom: var(--border);
  transform: rotate(45deg);
}
.hero-art .spark { position: absolute; width: 38px; height: 38px; animation: twinkle 2s ease-in-out infinite; }
.hero-art .spark.s1 { top: 20%; right: 4%; }
.hero-art .spark.s2 { bottom: 16%; left: 6%; width: 28px; height: 28px; animation-delay: .7s; }
@keyframes twinkle { 50% { transform: scale(.7) rotate(20deg); } }
@media (max-width: 760px) {
  .hero-card { grid-template-columns: 1fr; padding: 22px 20px; }
  .hero-art { min-height: 0; order: -1; }
  .hero-art .mascot { width: 200px; }
}

/* ---------- mapa ---------- */
.map-card .card-body { padding: 0; background: #BDE5FF; }
.map { width: 100%; height: auto; display: block; }
.map .route { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1 20; }
.map .route-in { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 20; }
.map .wave { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .8; }
.isle { cursor: pointer; outline: none; }
.isle .land { transform-box: fill-box; transform-origin: center; transition: transform .25s; }
.isle:hover .land, .isle:focus-visible .land { transform: translateY(-10px); }
.isle:focus-visible .ground { stroke: var(--yellow); }
.isle .shadow { fill: var(--ink); }
.isle .shore { fill: #FFE29A; stroke: var(--ink); stroke-width: 5; }
.isle .ground { fill: var(--wc); stroke: var(--ink); stroke-width: 5; }
.isle .iname {
  font: 400 38px var(--font-display);
  text-anchor: middle;
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 9px;
  paint-order: stroke fill;
  stroke-linejoin: round;
}
.isle .badge-bg { fill: var(--paper); stroke: var(--ink); stroke-width: 3.5; }
.isle .istars { font: 600 21px var(--font-head); text-anchor: middle; fill: var(--ink); }
.map .rise { animation: rise .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.map .rise:nth-of-type(2) { animation-delay: .15s; }
.map .rise:nth-of-type(3) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- accesos ---------- */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.door { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .15s; }
.door:hover { transform: translateY(-4px); }
.door .card-body { display: flex; gap: 14px; align-items: center; flex: 1; }
.door .card-body p { margin: 0; flex: 1; }
.door .go-arrow { width: 46px; height: 34px; }

/* ---------- cómo jugar ---------- */
.steps { display: flex; align-items: stretch; gap: 8px; }
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--sky);
  border: var(--border);
  border-radius: 16px;
}
.step-top { display: flex; align-items: center; gap: 10px; }
.step p { margin: 0; }
.steps .flow-arrow { align-self: center; }
.steps .a1 { color: var(--blue); }
.steps .a2 { color: var(--yellow); }
@media (max-width: 760px) {
  .steps { flex-direction: column; }
  .steps .flow-arrow { transform: rotate(90deg); }
}
