/* adriangleez.com — ajustes para móvil */
html, body { overflow-x: clip; }
img, video { max-width: 100%; }

@media (max-width: 640px) {
  /* Home · cifras: separar filas para que la línea dorada no pise el texto */
  [data-stats="1"] { row-gap: 54px !important; }

  /* Home · retrato */
  .ag-hero-foto { min-height: 400px !important; }

  /* Home · el grupo en 2 columnas */
  .ag-grupo-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .ag-grupo-grid > * { border-radius: 14px !important; }
  .ag-grupo-grid > * > span:nth-last-child(3) { left: 12px !important; top: 12px !important; font-size: 8px !important; letter-spacing: .14em !important; }
  .ag-grupo-grid > * > span:nth-last-child(2) { left: 8px !important; right: 8px !important; bottom: 12px !important; }
  .ag-grupo-grid > * > span:nth-last-child(2) img { height: 42px !important; max-width: 92px !important; margin-bottom: 6px !important; }
  .ag-grupo-grid > * > span:nth-last-child(2) > span { font-size: 8px !important; letter-spacing: .12em !important; }
  .ag-grupo-grid > :not(:last-child) > span:last-child { display: none !important; }
  .ag-grupo-grid > :last-child { padding: 16px !important; grid-column: 1 / -1; aspect-ratio: auto !important; min-height: 120px; }
  .ag-grupo-grid > :last-child > span:last-child > span:first-child { font-size: 19px !important; }

  /* Home · redes en 2 columnas */
  .ag-redes { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px !important; align-items: stretch !important; }
  .ag-redes > a { max-width: none !important; margin-top: 0 !important; min-height: 0 !important; }
  .ag-redes > a > span:first-child { height: 44px !important; }
  .ag-redes > a > span:nth-child(2) { padding: 14px 12px 16px !important; }
  .ag-redes > a > span:nth-child(2) > span:nth-child(2) { font-size: 13px !important; line-height: 1.45 !important; margin-top: 8px !important; }
  .ag-redes > a > span:nth-child(3) { padding: 12px 10px 14px !important; }
  .ag-redes > a > span:last-child[aria-hidden] { display: none !important; }

  /* Club · cabecera */
  .ag-club-volver .ag-txt { display: none; }
  .ag-club-volver::before { content: "←"; font-size: 20px; letter-spacing: 0; }
  .ag-club-logo { height: 30px !important; }
  .ag-club-cta { display: none !important; }
  .ag-club-flotante { white-space: nowrap !important; padding: 13px 22px !important; font-size: 12.5px !important; bottom: 16px !important; }

  /* Club · empresas y medios en 2 columnas */
  .ag-club-empresas, .ag-club-medios { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .ag-club-empresas > * { padding: 14px 12px !important; gap: 8px !important; border-radius: 16px !important; }
  .ag-club-empresas img { max-height: 38px !important; }
  .ag-club-empresas > * > div:first-child { padding: 10px !important; min-height: 0 !important; height: 64px !important; }
  .ag-club-empresas h3 { font-size: 15px !important; }
  .ag-club-empresas p { font-size: 12.5px !important; line-height: 1.4 !important; }
  .ag-club-empresas span { font-size: 10.5px !important; padding: 4px 8px !important; }
  .ag-club-medios > * { padding: 14px 10px !important; min-height: 0 !important; }
  .ag-club-medios > * > div { height: 44px !important; }
  .ag-club-medios img { max-height: 34px !important; }
  .ag-club-medios span { font-size: 12px !important; }

  /* Formularios: evitar zoom de iOS y cajas cómodas al dedo */
  input, select, textarea { font-size: 16px !important; }
  button, a { -webkit-tap-highlight-color: rgba(211,162,84,.2); }
}
