/* Globo «El mar de Chile y la alta mar», en el héroe de la portada (lado derecho, junto al titular).
   Se carga solo en index.html. Una sola familia de azules para las zonas marítimas; el borde turquesa
   marca el mar de Chile. */
:root {
  --g-altamar: #8cc3d4;
  --g-otros: #e6f2f5;
  --g-chile: #c4ebef;
  --g-borde-chile: #007d77;
  --g-tierra-chile: #f6d68a;
  --g-tierra: #efe6cf;
}

.heroe-globo { display: flex; flex-direction: column; justify-content: center; gap: 1rem; min-width: 0; }

.globo-marco { position: relative; width: 100%; max-width: min(560px, 64vh); margin-inline: auto; }
.globo-marco canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; cursor: grab; touch-action: pan-y pinch-zoom; border-radius: 50%; }
.globo-marco canvas:active { cursor: grabbing; }
.globo-marco canvas:focus-visible { outline-offset: 6px; border-radius: 50%; }
.globo-cargando { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: .85rem; color: var(--tinta-suave); }

.globo-leyenda { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.globo-leyenda button {
  width: 100%; height: 100%; display: flex; align-items: center; gap: .6rem; text-align: left;
  font: 600 .92rem/1.25 var(--titular); color: var(--tinta);
  background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: .55rem .75rem; cursor: pointer;
}
.globo-leyenda button:hover { border-color: var(--g-borde-chile); }
.globo-leyenda button[aria-pressed="true"] { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.globo-muestra { flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 1px solid var(--linea); }
.globo-muestra-chile { background: var(--g-chile); border: 2px solid var(--g-borde-chile); }
.globo-muestra-otros { background: var(--g-otros); }
.globo-muestra-altamar { background: var(--g-altamar); }
.globo-muestra-valpo { background: #fff; border: 2px solid var(--g-borde-chile); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px var(--g-borde-chile); }

.globo-info { min-height: 7.4rem; border-left: 3px solid var(--g-borde-chile); padding: .15rem 0 .15rem 1rem; }
.globo-info h3 { font-size: 1.08rem; margin: 0 0 .3rem; }
.globo-info p { margin: 0; font-size: .95rem; line-height: 1.58; text-align: justify; hyphens: auto; color: var(--tinta); }

.globo-pie { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.globo-nota { font-size: .8rem; line-height: 1.5; color: var(--tinta-suave); }
.globo-nota summary { cursor: pointer; font-family: var(--mono); font-size: .78rem; padding-block: .6rem; }
.globo-nota p { margin: .2rem 0 0; text-align: justify; hyphens: auto; }
.heroe-globo .heroe-redes { position: static; padding: 0; background: none; border-radius: 0; gap: .6rem; flex: none; }
.globo-ayuda { font-family: var(--mono); font-size: .76rem; color: var(--tinta-suave); margin: 0; }

/* Tableta y teléfono: el globo primero (se ve al abrir), luego el titular y después la leyenda y su explicación */
@media (max-width: 960px) {
  .heroe-globo { display: contents; }
  .heroe .globo-marco { order: 1; max-width: min(420px, 52vh); }
  .heroe .heroe-texto { order: 2; padding-block: 0.5rem 0; }
  .heroe .globo-leyenda { order: 3; }
  .heroe .globo-info { order: 4; }
  .heroe .globo-pie { order: 5; }
  .heroe .globo-ayuda { order: 6; }
}
@media (max-width: 420px) {
  .globo-leyenda button { font-size: .86rem; padding: .5rem .6rem; gap: .45rem; }
}
@media print { .heroe-globo { display: none; } }
