/* Landing de Apptonomia — menú simple por módulos.
   Lo común está en assets/css/ (tokens, base, components). */

.idioma-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espacio);
  justify-content: center;
}

.btn-lang {
  min-height: var(--boton-min);
  min-width: 64px;
  padding: 0 var(--espacio);
  font-family: var(--fuente);
  font-size: var(--texto-base);
  font-weight: 700;
  color: var(--color-texto);
  background: var(--color-superficie);
  border: 3px solid var(--color-borde);
  border-radius: var(--radio);
  cursor: pointer;
}

.btn-lang:hover { border-color: var(--color-foco); }

.btn-lang[aria-pressed="true"] {
  border-color: var(--color-foco);
  background: var(--mod-coordinacion-suave);
}

/* Anclas de módulo: acceso directo a cada sección sin hacer scroll
   por las ~49 tarjetas. Enlaces normales (funcionan con teclado y
   sin JS); el scroll suave global de assets/css/base.css ya respeta
   prefers-reduced-motion. */
.anclas-modulo {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espacio);
  justify-content: center;
  padding: var(--espacio) 0;
}

.ancla-modulo {
  display: flex;
  align-items: center;
  min-height: var(--boton-min);
  padding: 8px var(--espacio);
  font-family: var(--fuente);
  font-size: var(--texto-pequeno);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-texto);
  background: var(--color-superficie);
  border: 3px solid var(--acento);
  border-radius: var(--radio);
}

.ancla-modulo:hover,
.ancla-modulo:focus-visible {
  background: var(--acento);
  color: #FFFFFF;
}

/* Shortcuts a las apps hermanas (servicios independientes, mismo equipo) */
.anclas-hermanas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espacio);
  justify-content: center;
  padding: 0 0 var(--espacio);
}

.ancla-hermana {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--boton-min);
  padding: 8px var(--espacio);
  font-family: var(--fuente);
  font-size: var(--texto-pequeno);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-texto);
  background: var(--color-superficie);
  border: 3px dashed var(--color-borde);
  border-radius: var(--radio);
}

.ancla-hermana:hover,
.ancla-hermana:focus-visible {
  border-color: var(--mod-coordinacion);
}

.cabecera {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--espacio-grande) 0;
}

.logo { margin: 0 auto; }

.cabecera h1 { color: var(--color-texto); }

.saludo {
  font-size: var(--texto-grande);
  font-weight: 700;
}

.centrado-fila { justify-content: center; }

.modulos { gap: 40px; margin-top: var(--espacio); }

/* Cada módulo define --acento y --acento-suave en su style="" */
.modulo h2 {
  color: var(--acento);
  border-left: 8px solid var(--acento);
  padding-left: 12px;
  margin-bottom: var(--espacio);
}

.tarjeta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 170px;
  padding: var(--espacio-grande);
  background: var(--color-superficie);
  border: 3px solid var(--acento-suave);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  text-decoration: none;
  text-align: center;
  color: var(--color-texto);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tarjeta:hover {
  transform: scale(1.03);
  border-color: var(--acento);
}

.tarjeta .picto { font-size: 60px; }

.tarjeta .nombre {
  font-size: var(--texto-base);
  font-weight: 800;
  color: var(--acento);
}

.tarjeta .detalle {
  font-size: var(--texto-pequeno);
  color: var(--color-texto-suave);
}

/* Compact suite header: branding and controls share one row. */
header.suite-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
  padding-block: 8px;
  margin-bottom: 0;
  text-align: left;
}
.suite-header .suite-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
}
.suite-header .suite-brand > img,
.suite-header .hero-mark { width: 44px; height: 44px; flex: 0 0 44px; margin: 0; }
.suite-header .hero-mark img { width: 100%; height: 100%; }
.suite-header .suite-brand-copy { min-width: 0; }
.suite-header .suite-brand-copy h1,
.suite-header .suite-brand-copy .logo,
.suite-header .brand {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--mod-coordinacion);
  font-size: 28px;
  line-height: 1.1;
  text-align: left;
}
.suite-header .suite-attribution {
  position: static;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: normal;
  color: inherit;
}
.suite-attribution a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 0.15em; }
.suite-attribution a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.suite-header .suite-controls,
.suite-header .suite-controls [role="group"] { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; margin: 0; }
.suite-header .suite-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.2;
  border-width: 2px;
  white-space: nowrap;
}
.suite-header .locale-short { display: none; }
.suite-header .suite-details {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.suite-header .suite-details .fila { justify-content: flex-start; min-width: 0; flex: 1; margin: 0; gap: 8px; }
.suite-header .saludo,
.suite-header .tagline { font-weight: 400; color: var(--color-texto-suave); margin: 0; max-width: none; font-size: 18px; line-height: 1.35; text-align: left; }
.suite-header .stars { min-height: 0; background: var(--accent-2-soft, #F7EFDD); border-radius: 999px; flex: 0 0 auto; margin: 0; padding: 2px 8px; font-size: 18px; line-height: 1.3; white-space: nowrap; }
@media (max-width: 650px) {
  header.suite-header { gap: 6px 8px; padding-block: 8px; margin-bottom: 0; }
  .suite-header .suite-brand { gap: 8px; }
  .suite-header .suite-brand > img,
  .suite-header .hero-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .suite-header .suite-brand-copy h1,
  .suite-header .suite-brand-copy .logo,
  .suite-header .brand { font-size: 22px; }
  .suite-header .locale-full { display: none; }
  .suite-header .locale-short { display: inline; }
  .suite-header .suite-controls button { padding-inline: 6px; }
  .suite-header .saludo,
  .suite-header .tagline { font-size: 16px; }
}


/* Match Memofun's top inset without changing activity containers. */
.container.suite-home { padding-top: 0; }
.suite-header + .anclas-modulo { padding-top: 8px; }
@media (max-width: 650px) {
  .container.suite-home { padding-inline: 12px; }
}
