/* ═══════════════════════════════════════════════════════════════════════════
   GelatoMaps · interfaz de app — MÓVIL PRIMERO (19-nov-2026)
   ───────────────────────────────────────────────────────────────────────────
   Una sola hoja para el panel del heladero (owner.html → body.ga-owner) y el
   perfil del usuario (mi-perfil.html → body.ga-perfil).
   Patrones que la gente ya trae aprendidos de las apps que usa cada día:
   portada con foto y medallón, contadores, un botón principal, filas con
   icono y flecha, pestañas con icono, barra inferior. Marca: rosa del
   cucurucho, tinta azul marino, fondo crema.
   Reglas de la casa: anchos en %, sin emojis, objetivos táctiles de 44 px o más,
   texto de lectura de 16-17 px. El escritorio es la misma columna, centrada.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --ga-rosa: #E8447C;          /* el rosa del cucurucho: iconos, acentos, progreso */
  --ga-accion: #D9336B;        /* único color de acción · 4,5:1 con texto blanco */
  --ga-accion-osc: #B3235A;
  --ga-rosa-suave: #FDECF2;
  --ga-rosa-linea: #F6C3D4;
  --ga-tinta: #0B1F38;
  --ga-gris: #5A6472;          /* texto secundario · 6:1 sobre blanco */
  --ga-gris-2: #8B94A1;
  --ga-linea: #EFEAE5;
  --ga-fondo: #FAF7F4;
  --ga-relleno: #F5F1ED;
  --ga-oro: #A16207;
  --ga-oro-suave: #FBF1DC;
  --ga-verde: #168A5C;
  --ga-verde-suave: #E7F6EF;
  --ga-radio: 22px;
  --ga-sombra: 0 1px 2px rgba(11, 31, 56, .05), 0 8px 24px rgba(11, 31, 56, .07);
  --ga-barra: 64px;
}

/* ─────────────────────────────────────────────────────────────────────────
   1 · PIEZAS COMUNES
   ───────────────────────────────────────────────────────────────────────── */
.ga-ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--ga-rosa-suave); color: var(--ga-accion);
}
.ga-ico svg { width: 24px; height: 24px; }
.ga-ico.azul   { background: #E8F1FE; color: #2563EB; }
.ga-ico.morado { background: #F1EBFE; color: #7C3AED; }
.ga-ico.oro    { background: var(--ga-oro-suave); color: var(--ga-oro); }
.ga-ico.verde  { background: var(--ga-verde-suave); color: var(--ga-verde); }
.ga-ico.gris   { background: #EEF0F3; color: #4B5563; }
.ga-ico.rojo   { background: #FDECEC; color: #C62828; }

.ga-fila-txt { flex: 1; min-width: 0; text-align: left; }
.ga-fila-txt b { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--ga-tinta); }
.ga-fila-txt small { display: block; font-size: 14.5px; font-weight: 400; color: var(--ga-gris); line-height: 1.3; margin-top: 2px; }
.ga-flecha { flex: none; width: 20px; height: 20px; color: #C3C8D0; }

.ga-seccion {
  font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ga-gris); margin: 26px 4px 10px;
}

/* ─────────────────────────────────────────────────────────────────────────
   2 · PANEL DEL HELADERO (owner.html)
   La capa «gmsCapa» reparte las tarjetas de siempre en pantallas; aquí solo
   se viste. Los id y las llamadas no cambian.
   ───────────────────────────────────────────────────────────────────────── */
body.ga-owner { background: var(--ga-fondo); }
body.ga-owner.gms-on .owner-header { display: none; }
body.ga-owner.gms-on .mobile-tabbar { display: none !important; }   /* manda la barra del panel */

.ga-owner .owner-main.gms {
  max-width: 560px; margin: 0 auto;
  padding: 0 16px calc(var(--ga-barra) + 36px + env(safe-area-inset-bottom));
  font-size: 17px; line-height: 1.5; color: var(--ga-tinta);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
.gms [hidden], .gms[hidden] { display: none !important; }
.gms :focus-visible { outline: 3px solid var(--ga-rosa); outline-offset: 3px; border-radius: 10px; }
.gms a { -webkit-tap-highlight-color: transparent; }

/* ── Portada ── */
.ga-portada {
  position: relative; height: 216px; margin: 0 -16px; overflow: hidden;
  background: linear-gradient(135deg, #F7A8C2 0%, #E8447C 52%, #B3235A 100%);
}
.ga-portada::before {            /* sin foto: el cucurucho de la marca, grande y suave */
  content: ''; position: absolute; right: -18px; bottom: -46px; width: 190px; height: 300px;
  background: url('/icons/markers/cone-pink-ui.png') center / contain no-repeat;
  opacity: .28; transform: rotate(14deg); filter: saturate(.6) brightness(1.6);
}
.ga-portada-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ga-portada.con-foto::before { display: none; }
.ga-portada.con-foto::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 31, 56, .30) 0%, rgba(11, 31, 56, 0) 34%, rgba(11, 31, 56, 0) 58%, rgba(11, 31, 56, .34) 100%);
}
.ga-portada-logo {
  position: absolute; left: 14px; top: calc(12px + env(safe-area-inset-top)); z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ga-tinta);
  font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
}
.ga-portada-logo img { height: 24px; width: auto; display: block; }

/* ── Identidad: medallón de bolas, nombre, nivel, cifras y botones ── */
.ga-id {
  position: relative; z-index: 3; margin-top: -40px; padding: 56px 18px 18px;
  background: #fff; border-radius: 26px; box-shadow: var(--ga-sombra); text-align: center;
}
.ga-medalla {
  position: absolute; left: 50%; top: -46px; transform: translateX(-50%);
  width: 92px; height: 92px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(11, 31, 56, .16);
}
.ga-medalla .gms-emblema { width: auto; height: 68px; display: block; }
.gms-saludo {
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ga-accion); margin: 0 0 4px;
}
.ga-id h1 {
  font-family: 'Playfair Display', Georgia, serif; font-size: 27px; line-height: 1.15; font-weight: 700;
  margin: 0; overflow-wrap: anywhere; color: var(--ga-tinta);
}
.ga-id h1:focus { outline: none; }
.ga-id .shop-city { font-size: 16px; color: var(--ga-gris); margin: 4px 0 0; }
.gms .state-badge { display: inline-block; font-size: 14px; margin-top: 8px; }
.gms .state-badge.reclamado, .gms .state-badge.premium_activo,
.gms .state-badge.verificado_editorial, .gms .state-badge.artesanal_validado { display: none; }

.gms-nivel { margin: 12px 0 0; }
.gms-nivel-pastilla {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%;
  padding: 8px 15px; border-radius: 999px; background: var(--ga-relleno);
  font-size: 15.5px; line-height: 1.3; color: var(--ga-tinta); text-align: left;
}
.gms-nivel-pastilla strong { font-weight: 800; }
.ga-bolitas { display: inline-flex; gap: 4px; flex: none; }
.ga-bolitas i { width: 11px; height: 11px; border-radius: 50%; display: block; border: 2px solid var(--ga-rosa); background: transparent; }
.ga-bolitas i.on { background: var(--ga-rosa); }
.gms-nivel-nota {
  font-size: 15px; color: #7A4A06; background: #FFF6E5; border-radius: 14px;
  padding: 10px 14px; margin: 10px 0 0; text-align: left; line-height: 1.4;
}

.ga-cifras {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--ga-linea);
}
.ga-cifra { padding: 0 6px; min-width: 0; }
.ga-cifra + .ga-cifra { border-left: 1px solid var(--ga-linea); }
.ga-cifra b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ga-tinta); }
.ga-cifra span { display: block; font-size: 13.5px; color: var(--ga-gris); margin-top: 3px; line-height: 1.25; }

.ga-botones { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }

/* ── Botones ── */
.gms-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 12px 18px;
  background: var(--ga-accion); color: #fff; font-family: inherit;
  font-size: 17px !important; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
  border: 0; border-radius: 16px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(217, 51, 107, .26);
  transition: transform .12s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.gms-btn:hover { background: var(--ga-accion-osc); }
.gms-btn:active { transform: scale(.98); }
.gms-btn svg { width: 20px; height: 20px; flex: none; }
.gms-enlace-grande, .ga-btn-2 {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 12px 18px; margin: 0 0 12px;
  background: var(--ga-relleno); color: var(--ga-tinta); font-family: inherit;
  font-size: 17px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
  border: 0; border-radius: 16px; cursor: pointer;
  transition: transform .12s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ga-btn-2 { margin: 0; }
.gms-enlace-grande:hover, .ga-btn-2:hover { background: #EDE7E1; }
.gms-enlace-grande:active, .ga-btn-2:active { transform: scale(.98); }
.ga-btn-2 svg { width: 21px; height: 21px; flex: none; }

/* ── Tu siguiente paso ── */
.gms-paso {
  background: #fff; border-radius: var(--ga-radio); box-shadow: var(--ga-sombra);
  padding: 18px; margin: 16px 0 0;
}
.gms-paso-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.gms-paso-rotulo {
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ga-accion); margin: 0;
}
.gms-paso-cuenta { font-size: 14px; font-weight: 600; color: var(--ga-gris); margin: 0; white-space: nowrap; }
.gms-puntos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 0 0 14px; }
.gms-puntos i { display: block; height: 5px; border-radius: 99px; background: var(--ga-linea); }
.gms-puntos i.hecho { background: var(--ga-rosa); }
.gms-paso h2 { font-family: inherit; font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 6px; color: var(--ga-tinta); }
.gms-paso #gmsPasoTexto { font-size: 16px; color: var(--ga-gris); margin: 0; }
.gms-paso .gms-btn { margin-top: 14px; }
.gms-paso-hecho { display: none; }
html[data-gms-paso="todo"] .gms-paso-cuerpo { display: flex; align-items: center; gap: 14px; }
html[data-gms-paso="todo"] .gms-paso-hecho {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ga-verde-suave); color: var(--ga-verde);
}
html[data-gms-paso="todo"] .gms-paso-hecho svg { width: 26px; height: 26px; }
html[data-gms-paso="todo"] .gms-puntos i.hecho { background: var(--ga-verde); }
html[data-gms-paso="todo"] .gms-paso-rotulo { color: var(--ga-verde); }

/* ── Filas del inicio (antes, la rejilla de seis botones) ── */
.gms-rejilla, .ga-lista {
  display: block; background: #fff; border-radius: var(--ga-radio);
  box-shadow: var(--ga-sombra); overflow: hidden; margin: 0;
}
.gms-boton, .ga-fila {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 72px; padding: 12px 14px 12px 16px;
  background: #fff; border: 0; color: var(--ga-tinta); font-family: inherit; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gms-boton + .gms-boton::before, .ga-fila + .ga-fila::before {
  content: ''; position: absolute; left: 74px; right: 0; top: 0; border-top: 1px solid var(--ga-linea);
}
.gms-boton:active, .ga-fila:active { background: var(--ga-relleno); }
.gms-ayuda { margin-top: 16px; }

/* ── Barra inferior del panel ── */
.gms-barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--ga-linea); padding-bottom: env(safe-area-inset-bottom);
}
.gms-barra-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--ga-barra); }
.gms-barra button {
  -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ga-gris-2); font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.1;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.gms-barra button svg { width: 26px; height: 26px; }
.gms-barra button[aria-current="page"] { color: var(--ga-accion); }
.gms-barra button[aria-current="page"] svg { stroke-width: 2.4; }

/* ── Cabecera de pantalla: «‹ Volver al inicio» ── */
.gms-volver {
  position: sticky; top: 0; z-index: 90; margin: 0 -16px;
  padding: calc(6px + env(safe-area-inset-top)) 8px 6px;
  background: rgba(250, 247, 244, .93); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.gms-volver-btn {
  display: inline-flex; align-items: center; gap: 2px; min-height: 46px; padding: 0 14px 0 4px;
  background: none; border: 0; border-radius: 12px; color: var(--ga-accion);
  font-family: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gms-volver-btn svg { width: 26px; height: 26px; flex: none; }
.gms-volver-btn:active { background: var(--ga-rosa-suave); }

/* ── Pantallas ── */
.gms-titulo {
  font-family: 'Playfair Display', Georgia, serif; font-size: 31px; line-height: 1.12; font-weight: 700;
  margin: 6px 2px 8px; outline: none; color: var(--ga-tinta);
}
.gms-entrada { font-size: 16px; color: var(--ga-gris); margin: 0 2px 16px; }
.gms-pantalla p { margin-bottom: 12px; }
.gms-pantalla .section-card > p:last-child { margin-bottom: 0; }
.gms-suave { color: var(--ga-gris); }
.gms-nota {
  background: #FFF6E5; color: #5C3A05; border-radius: 16px;
  padding: 13px 16px; margin: 0 0 16px; font-size: 15.5px; line-height: 1.45;
}
.gms-nota a, .gms-entrada a, .gms-lista a, .gms-pantalla p > a { color: var(--ga-accion-osc); font-weight: 700; }
.gms-fila { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.gms-bolas-txt { font-size: 19px !important; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.gms-foto { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 300px; object-fit: cover; border-radius: 16px; margin-bottom: 14px; }

/* lista con vistos (cómo se consigue la tercera bola) */
.gms-lista { list-style: none; margin: 0 0 16px; padding: 0; }
.gms-lista li { position: relative; padding-left: 32px; margin-bottom: 10px; font-size: 16px; line-height: 1.45; }
.gms-lista li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--ga-rosa-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9336B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* plegables: filas con flecha */
.gms-plegado { background: #fff; border-radius: 18px; box-shadow: var(--ga-sombra); margin: 0 0 10px; overflow: hidden; }
.gms-plegado > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 12px 16px; font-size: 17px; font-weight: 700; color: var(--ga-tinta);
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.gms-plegado > summary::-webkit-details-marker { display: none; }
.gms-plegado > summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2.5px solid #B4BAC3; border-bottom: 2.5px solid #B4BAC3;
  transform: rotate(-45deg); transition: transform .18s ease;
}
.gms-plegado[open] > summary::after { transform: rotate(45deg); }
.gms-plegado[open] > summary { border-bottom: 1px solid var(--ga-linea); }
.gms-plegado-cuerpo { padding: 14px 16px 16px; font-size: 16px; }
.gms-plegado-cuerpo > p { margin: 0 0 12px; }
.gms-plegado .section-card { border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0; animation: none; background: none; }
/* un plegable dentro de una tarjeta (Mis datos) no lleva sombra propia */
.ext-profile-section .gms-plegado, .section-card .gms-plegado { box-shadow: none; background: var(--ga-relleno); }
.ext-profile-section .gms-plegado[open], .section-card .gms-plegado[open] { background: #fff; outline: 1.5px solid var(--ga-linea); }

/* aviso de «Guardado» (y de error) */
.gms-aviso {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--ga-barra) + 14px + env(safe-area-inset-bottom));
  z-index: 950; max-width: 480px; margin: 0 auto; padding: 14px 18px; border-radius: 16px;
  background: var(--ga-tinta); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.35;
  text-align: center; box-shadow: 0 12px 32px rgba(11, 31, 56, .32);
}
.gms-aviso.mal { background: #B42318; }

/* ── Las tarjetas de siempre, vestidas ── */
.gms-pantalla .section-card, .gms-pantalla .ext-profile-section {
  background: #fff; border: 0; border-radius: var(--ga-radio); box-shadow: var(--ga-sombra);
  padding: 18px; margin: 0 0 14px;
}
.gms-pantalla .section-card h3 {
  font-family: inherit; font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25;
  margin: 0 0 10px; color: var(--ga-tinta);
}
.gms-pantalla .section-card p, .gms-pantalla .section-card li { font-size: 16px; line-height: 1.5; }
.gms-pantalla button, .gms-pantalla input, .gms-pantalla textarea, .gms-pantalla select {
  font-family: inherit; font-size: 17px !important; min-height: 54px;
}
.gms button { white-space: normal; height: auto; line-height: 1.3; }
.gms-pantalla textarea { min-height: 120px; }

/* formularios */
.gms-pantalla .ext-field-group { margin-bottom: 16px; }
.gms-pantalla .ext-field-group label {
  display: block; font-size: 15px; font-weight: 700; color: var(--ga-tinta);
  text-transform: none; letter-spacing: 0; margin-bottom: 7px;
}
.gms-pantalla .ext-field-group input, .gms-pantalla .ext-field-group textarea, .gms-pantalla .ext-field-group select,
#fmCertForm input {
  width: 100%; padding: 14px; background: var(--ga-relleno); color: var(--ga-tinta);
  border: 1.5px solid transparent !important; border-radius: 14px !important; outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.gms-pantalla .ext-field-group input::placeholder, .gms-pantalla .ext-field-group textarea::placeholder { color: #9AA1AC; }
.gms-pantalla .ext-field-group input:focus, .gms-pantalla .ext-field-group textarea:focus, .gms-pantalla .ext-field-group select:focus,
#fmCertForm input:focus {
  background: #fff; border-color: var(--ga-rosa) !important; box-shadow: 0 0 0 4px rgba(232, 68, 124, .14);
}
.gms-pantalla .ext-field-row { display: grid; grid-template-columns: 1fr; gap: 0; }

/* casillas tipo pastilla (el marcado se ve con un visto; no depende de :has) */
.gms-pantalla .ext-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gms-pantalla .ext-chip { position: relative; padding: 0; border: none; background: none; border-radius: 999px; margin: 0; }
.gms-pantalla .ext-chip:has(input:checked) { background: none; border: none; }
.gms-pantalla .ext-chip input { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; }
.gms-pantalla .ext-chip > span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px;
  font-size: 16px; font-weight: 500; color: var(--ga-tinta); background: var(--ga-relleno);
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
}
.gms-pantalla .ext-chip input:checked + span {
  background: var(--ga-rosa-suave); border-color: var(--ga-rosa); color: var(--ga-accion-osc); font-weight: 700;
}
.gms-pantalla .ext-chip input:checked + span::before { content: '\2713\00a0'; }
.gms-pantalla .ext-chip input:focus-visible + span { outline: 3px solid var(--ga-rosa); outline-offset: 3px; }
#extProfileStatus { font-size: 16px !important; font-weight: 700; margin-top: 12px !important; }

/* sabores */
.gms-pantalla .catalog-header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gms-pantalla .catalog-header-row h3 { margin: 0; }
.gms-pantalla .catalog-count-badge {
  flex: none; font-size: 14px; font-weight: 700; color: var(--ga-accion-osc); background: var(--ga-rosa-suave);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.gms-pantalla .catalog-filters {
  display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 0 -18px 14px; padding: 2px 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gms-pantalla .catalog-filters::-webkit-scrollbar { display: none; }
.gms-pantalla .catalog-filter-btn {
  flex: none; min-height: 42px !important; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--ga-linea); background: #fff; color: var(--ga-tinta);
  font-size: 15.5px !important; font-weight: 600; white-space: nowrap;
}
.gms-pantalla .catalog-filter-btn.active, .gms-pantalla .catalog-filter-btn:hover {
  background: var(--ga-tinta); border-color: var(--ga-tinta); color: #fff;
}
.gms-pantalla .catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gms-pantalla .catalog-tile {
  padding: 12px 6px 10px; border-radius: 18px; border: 1.5px solid var(--ga-linea); background: #fff;
  min-height: 118px; gap: 8px; justify-content: flex-start;
}
.gms-pantalla .catalog-tile:hover { border-color: var(--ga-rosa-linea); }
.gms-pantalla .catalog-tile.in-carta { border: 2px solid var(--ga-rosa); background: var(--ga-rosa-suave); }
.gms-pantalla .catalog-tile img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; background: var(--ga-relleno); }
.gms-pantalla .catalog-tile-name { font-size: 14.5px; font-weight: 600; line-height: 1.2; max-width: none; color: var(--ga-tinta); }
.gms-pantalla .catalog-tile-check {
  width: 24px; height: 24px; font-size: 14px; background: var(--ga-accion); top: 7px; right: 7px;
  box-shadow: 0 0 0 2.5px #fff;
}
.gms-pantalla .catalog-tile-spinner { width: 20px; height: 20px; }
.gms-pantalla .sabor-name { font-size: 16px; font-weight: 600; }
.gms-pantalla .sabor-votes { font-size: 15px; color: var(--ga-gris); }
.gms-pantalla .sabor-bar-wrap { height: 10px; border-radius: 99px; background: var(--ga-relleno); }
.gms-pantalla .sabor-bar { background: var(--ga-rosa); border-radius: 99px; }
.gms-pantalla .sabores-empty { font-size: 16px; color: var(--ga-gris); text-align: left; }

/* opiniones y visitas */
.gms-pantalla .rating-stars { font-size: 24px; color: #F2A60C; letter-spacing: 2px; }
.gms-pantalla .rating-count { font-size: 16px; font-weight: 600; color: var(--ga-tinta); margin-left: 6px; }
#webOpinionesList > div { padding: 14px 0 !important; border-bottom: 1px solid var(--ga-linea) !important; }
#webOpinionesList > div:last-child { border-bottom: 0 !important; padding-bottom: 0 !important; }
#webOpinionesList > div > div { flex-wrap: wrap; gap: 8px !important; margin-bottom: 6px !important; }
#webOpinionesList > div > div > span:nth-child(1) {       /* la nota */
  order: 3; margin-left: auto; font-size: 14px !important; font-weight: 800 !important;
  padding: 4px 10px !important; background: var(--ga-relleno) !important;
}
#webOpinionesList > div > div > span:nth-child(2) { font-size: 16px !important; font-weight: 700 !important; color: var(--ga-tinta) !important; }
#webOpinionesList > div > div > span:nth-child(3) { order: 2; margin-left: 0 !important; font-size: 14px !important; color: var(--ga-gris-2) !important; }
#webOpinionesList > div > p { font-size: 16px !important; color: #3C4654 !important; line-height: 1.45 !important; }

.gms-pantalla .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
.gms-pantalla .stat-card {
  border: 0 !important; border-radius: 18px; padding: 14px; background: var(--ga-relleno); box-shadow: none; animation: none;
}
.gms-pantalla .stat-card.teal { background: #E8F1FE; }
.gms-pantalla .stat-card.navy { background: var(--ga-rosa-suave); }
.gms-pantalla .stat-card.gold { background: var(--ga-oro-suave); }
.gms-pantalla .stat-card::before, .gms-pantalla .stat-card::after { display: none !important; }
.gms-pantalla .stat-card.gold .stat-value { animation: none; }
.gms-pantalla .stat-label { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ga-tinta); font-weight: 700; }
.gms-pantalla .stat-value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ga-tinta) !important; line-height: 1.15; margin: 4px 0 2px; }
.gms-pantalla .stat-sub { font-size: 13.5px; color: var(--ga-gris); line-height: 1.3; }

/* tercera bola */
#classCard .gms-fila { background: var(--ga-oro-suave); border-radius: 18px; padding: 14px 16px; }
#classCard #classEmblem { width: 60px !important; }
#fmCard #fmStateBox > button#fmVincBtn, #fmCard #fmStateBox > a {
  background: var(--ga-accion) !important; color: #fff !important; min-height: 54px !important;
  font-size: 17px !important; font-weight: 700 !important; border-radius: 16px !important; padding: 12px 16px !important;
  display: flex !important; align-items: center; justify-content: center; text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(217, 51, 107, .26); border: 0 !important; width: 100%;
}
#gmsFmAlt > button {
  display: block; width: 100%; background: var(--ga-relleno) !important; color: var(--ga-tinta) !important;
  border: 0 !important; border-radius: 16px; padding: 12px 14px !important;
  margin: 0 0 12px !important; text-decoration: none !important; font-weight: 700;
}
/* los cuatro pasos: una línea de seguimiento, como la de un pedido */
#fmConexionBox > div:first-child > div { font-size: 16px !important; font-weight: 800 !important; }
#fmConexionBox > div:first-child > span { font-size: 13.5px !important; background: var(--ga-relleno) !important; padding: 5px 12px !important; }
#fmConexionBox ol { gap: 0 !important; margin-top: 6px !important; }
#fmConexionBox ol li {
  position: relative; background: none !important; border: 0 !important; border-radius: 0 !important;
  padding: 0 0 18px 0 !important; gap: 14px !important; align-items: flex-start !important;
}
#fmConexionBox ol li:last-child { padding-bottom: 4px !important; }
#fmConexionBox ol li::before {
  content: ''; position: absolute; left: 14px; top: 30px; bottom: 0; border-left: 2px solid var(--ga-linea);
}
#fmConexionBox ol li:last-child::before { display: none; }
#fmConexionBox ol li > span {
  position: relative; z-index: 1; flex: 0 0 30px !important; height: 30px !important;
  font-size: 15px !important; font-weight: 800 !important;
}
#fmConexionBox ol li > span[style*="#10B981"], #fmConexionBox ol li > span[style*="rgb(16, 185, 129)"] { background: var(--ga-verde) !important; }
#fmConexionBox ol li > span[style*="#9CA3AF"], #fmConexionBox ol li > span[style*="rgb(156, 163, 175)"] {
  background: #fff !important; color: var(--ga-gris) !important; box-shadow: inset 0 0 0 2px #CBD0D8;
}
#fmConexionBox ol li > div { padding-top: 3px; }
#fmConexionBox ol li > div > div:first-child { font-size: 16px !important; font-weight: 700 !important; }
#fmConexionBox ol li > div > div + div { font-size: 14.5px !important; color: var(--ga-gris) !important; }
#fmConexionBox > div:last-of-type {
  background: #FFF6E5 !important; border: 0 !important; border-radius: 16px !important; color: #5C3A05 !important;
  font-size: 15.5px !important; padding: 13px 16px !important;
}
#fmConexionBox > a { color: var(--ga-accion-osc) !important; font-size: 16px !important; font-weight: 700 !important; margin-top: 12px !important; }
#fmCertBtn { background: var(--ga-tinta) !important; border-radius: 14px !important; padding: 0 22px !important; }

/* textos para compartir · texto de presentación · ciudades */
#shareKitContent button, #aiBriefSection button {
  min-height: 50px; padding: 0 22px !important; border-radius: 14px !important;
  background: var(--ga-accion) !important; color: #fff !important; border: 0 !important; font-weight: 700;
}
#aiBriefSection button.gms-sec { background: var(--ga-relleno) !important; color: var(--ga-tinta) !important; }
#shareKitContent pre { font-size: 15.5px !important; overflow-wrap: anywhere; max-width: 100%; white-space: pre-wrap; }
#shareKitContent > div { min-width: 0; max-width: 100%; }
#shareKitContent button { display: inline-flex; align-items: center; justify-content: center; width: auto; max-width: 100%; }
.gms-plegado-cuerpo, .gms-plegado .section-card { min-width: 0; max-width: 100%; }

/* HeladoPro está en pausa: su bloque no se enseña */
#provRoiSection { display: none !important; }

/* Letra mínima: las tarjetas de siempre llevan tamaños de 9 a 14 px escritos en
   línea (en el HTML o desde el JS). Dentro de una pantalla suben a 15,5 px. */
.gms-pantalla [style*="font-size:9px"], .gms-pantalla [style*="font-size: 9px"],
.gms-pantalla [style*="font-size:10px"], .gms-pantalla [style*="font-size: 10px"],
.gms-pantalla [style*="font-size:11px"], .gms-pantalla [style*="font-size: 11px"],
.gms-pantalla [style*="font-size:11.5px"], .gms-pantalla [style*="font-size: 11.5px"],
.gms-pantalla [style*="font-size:12px"], .gms-pantalla [style*="font-size: 12px"],
.gms-pantalla [style*="font-size:12.5px"], .gms-pantalla [style*="font-size: 12.5px"],
.gms-pantalla [style*="font-size:13px"], .gms-pantalla [style*="font-size: 13px"],
.gms-pantalla [style*="font-size:14px"], .gms-pantalla [style*="font-size: 14px"] {
  font-size: 15.5px !important; line-height: 1.45 !important;
}
/* gris claro (#9CA3AF, 2,5:1) → gris legible */
.gms-pantalla [style*="color:#9CA3AF"], .gms-pantalla [style*="color:#9ca3af"],
.gms-pantalla [style*="color: rgb(156, 163, 175)"] { color: var(--ga-gris) !important; }
#arranqueList a > span:first-child { width: 28px !important; height: 28px !important; }
#arranqueList a { min-height: 54px !important; }

/* avisos de la página (reclamación en revisión…) */
.ga-owner .gms .notice { border-radius: 16px; border: 0; padding: 13px 16px; margin: 14px 0 0; font-size: 15.5px; }

/* ── Entrar, cargar y «sin heladería»: misma casa ── */
.ga-owner .loading-wrap { color: var(--ga-gris); }
.ga-owner .auth-gate {
  max-width: 420px; margin: 9vh auto 0; padding: 30px 22px; background: #fff;
  border-radius: 26px; box-shadow: var(--ga-sombra); text-align: center;
}
.ga-owner .auth-gate h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; color: var(--ga-tinta); margin-bottom: 8px; }
.ga-owner .auth-gate p { font-size: 16px; color: var(--ga-gris); line-height: 1.5; }
.ga-owner .auth-gate .btn-primary {
  display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 18px;
  background: var(--ga-accion); color: #fff; font-size: 17px; font-weight: 700; border-radius: 16px;
  text-decoration: none; box-shadow: 0 6px 16px rgba(217, 51, 107, .26); border: 0;
}
.ga-owner .auth-gate .btn-secondary { display: inline-block; margin-top: 14px; font-size: 16px; color: var(--ga-accion-osc); font-weight: 600; }
@media (max-width: 480px) { .ga-owner .auth-gate { margin: 6vh 16px 0; } }

/* ── Pantallas estrechas y anchas ── */
@media (max-width: 359px) {
  .ga-id h1 { font-size: 24px; }
  .ga-cifra b { font-size: 19px; }
  .gms-pantalla .catalog-grid { gap: 8px; }
  .gms-pantalla .catalog-tile img { width: 54px; height: 54px; }
  .ga-btn-2 span { display: none; }
}
@media (min-width: 600px) {
  .ga-owner .owner-main.gms { padding-top: 20px; }
  .ga-portada { margin: 0; border-radius: 26px; height: 250px; }
  .gms-volver { margin: 0; border-radius: 16px; }
  .gms-barra-in { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gms-btn, .gms-enlace-grande, .ga-btn-2, .gms-plegado > summary::after { transition: none; }
}

/* nivel: pastilla con bolitas y, debajo, el nombre del nivel */
#gmsNivel { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.gms-nivel-sep { display: none; }
.gms-nivel-etq { font-size: 15.5px; color: var(--ga-gris); line-height: 1.3; }

/* La página de siempre animaba el contenedor con transform: eso convierte a
   <main> en el marco de lo «fixed» y la barra inferior se iba al final de la
   página. Dentro del panel, el contenedor no se anima. */
.ga-owner .owner-main.gms { animation: none !important; transform: none !important; filter: none; }
.ga-owner .owner-main.gms .section-card, .ga-owner .owner-main.gms .stats-grid { animation: none; }
.gms-titulo:focus, .gms-titulo:focus-visible { outline: none; }
.gms-pantalla .catalog-tile img { border-radius: 50% !important; }
.gms .gms-titulo:focus-visible, .gms #shopName:focus-visible { outline: none !important; box-shadow: none !important; }

/* plegables con icono (filas tipo ajustes) */
.gms-plegado > summary { justify-content: flex-start; gap: 14px; min-height: 68px; }
.gms-plegado > summary .ga-sum-txt { flex: 1; min-width: 0; }
.gms-plegado > summary:not(:has(.ga-ico)) { min-height: 58px; }
.ext-profile-section .gms-plegado > summary .ga-ico { width: 38px; height: 38px; border-radius: 12px; background: #fff; }
.ext-profile-section .gms-plegado > summary .ga-ico svg { width: 21px; height: 21px; }
.ext-profile-section .gms-plegado > summary { min-height: 60px; }

/* ── Mis fotos: subir, ver y quitar sin salir del panel (owner-fotos.js) ── */
.gmx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 14px; }
.gmx-grid:empty { display: none; }
.gmx-foto { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--ga-relleno); }
.gmx-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gms-pantalla .gmx-quitar {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(11, 31, 56, .72); color: #fff; font-size: 20px !important; line-height: 1; cursor: pointer;
}
.gmx-subir { cursor: pointer; }
.gmx-msg { margin: 10px 0 0 !important; font-size: 15.5px; min-height: 1.2em; }

/* ── Selector de idioma (gm-idioma.js) ── */
.gmi-selector { margin: 18px 0 12px; padding: 14px 16px 16px; background: #fff; border-radius: var(--ga-radio); box-shadow: var(--ga-sombra); }
.gmi-rotulo { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ga-gris); margin: 0 0 10px !important; }
.gmi-fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gmi-fila button {
  min-height: 46px !important; padding: 0 6px; border: 1.5px solid transparent; border-radius: 14px; background: var(--ga-relleno);
  color: var(--ga-tinta); font-family: inherit; font-size: 15.5px !important; font-weight: 600; cursor: pointer;
}
.gmi-fila button[aria-pressed="true"] { background: var(--ga-rosa-suave); border-color: var(--ga-rosa); color: var(--ga-accion-osc); font-weight: 800; }
