/* Revisión gratis de posición en Google Maps (public/landing/revision.js).
   Usa las variables de landing.css (con valores de respaldo) y solo clases rg-*. */

#revision-gratis[hidden] { display: none; }
.rg-contenedor { margin-top: 44px; max-width: 760px; }
.rg-caja { background: #fff; border-radius: 26px; padding: 30px; box-shadow: var(--sombra-lg, 0 24px 60px rgba(0, 0, 0, .13)); border: 1px solid rgba(0, 0, 0, .05); text-align: left; }
.rg-caja h3 { font-size: 22px; letter-spacing: -.02em; outline: none; }
.rg-caja h4 { font-size: 16px; margin: 0 0 10px; }
.rg-sub { color: var(--texto-2, #6e6e73); margin-top: 6px; }
.rg-nota { margin-top: 20px; font-size: 13px; color: var(--texto-3, #86868b); }

.rg-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; margin-top: 22px; align-items: end; position: relative; }
.rg-form-una { grid-template-columns: 1fr auto; }
.rg-campo label { display: block; font-size: 13px; font-weight: 600; color: var(--texto-2, #6e6e73); margin-bottom: 6px; }
.rg-campo input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .12);
  font: inherit; font-size: 16px; color: var(--texto, #1d1d1f); background: #fff;
  transition: border-color .2s var(--curva, ease), box-shadow .2s var(--curva, ease);
}
.rg-campo input:focus { outline: none; border-color: var(--azul, #0071e3); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.rg-trampa { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.rg-error { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 59, 48, .08); color: #b3261e; font-size: 15px; }
.rg-enlace { background: none; border: 0; padding: 0; color: var(--azul, #0071e3); font: inherit; font-size: 15px; cursor: pointer; margin-top: 14px; }
.rg-enlace:hover { text-decoration: underline; }

.rg-opciones { display: grid; gap: 10px; margin-top: 20px; }
.rg-opcion { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 16px; background: var(--gris, #f5f5f7); }
.rg-opcion > div { min-width: 0; }
.rg-opcion b { display: block; overflow-wrap: anywhere; }
.rg-opcion span { display: block; color: var(--texto-2, #6e6e73); font-size: 14px; overflow-wrap: anywhere; }
.rg-opcion small { color: var(--texto-3, #86868b); font-size: 13px; }

.rg-progreso { height: 8px; border-radius: 99px; background: #e8e8ed; overflow: hidden; margin-top: 18px; }
.rg-progreso > div { height: 100%; background: linear-gradient(90deg, var(--amarillo, #fbca41), #f5983a); border-radius: 99px; transition: width .4s var(--curva, ease); }

.rg-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.rg-cifra { background: var(--gris, #f5f5f7); border-radius: 18px; padding: 16px 18px; }
.rg-cifra b { display: block; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.rg-cifra span { color: var(--texto-2, #6e6e73); font-size: 14px; }

.rg-mapa { display: grid; justify-items: center; gap: 14px; padding: 22px; border-radius: 20px; background: var(--gris, #f5f5f7); }
.rg-cuadricula { display: grid; gap: 10px; width: min(100%, 330px); }
.rg-punto {
  aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); position: relative;
}
.rg-punto b { font-size: 22px; letter-spacing: -.02em; line-height: 1; }
.rg-punto small { font-size: 10px; line-height: 1.1; margin-top: 3px; opacity: .92; text-align: center; padding: 0 6px; }
.rg-centro { outline: 3px solid var(--carbon, #1d1d1f); outline-offset: 3px; }
.rg-top, .rg-leyenda .rg-top { background: #248a3d; }
.rg-medio, .rg-leyenda .rg-medio { background: #f5a623; }
.rg-bajo, .rg-leyenda .rg-bajo { background: #f07a3a; }
.rg-fuera, .rg-leyenda .rg-fuera { background: #e5484d; }
.rg-sin-dato { background: #c7c7cc; }
.rg-leyenda { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 13px; color: var(--texto-2, #6e6e73); }
.rg-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.rg-leyenda i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.rg-leyenda .rg-escala { color: var(--texto-3, #86868b); }

.rg-competidores { margin-top: 22px; }
.rg-competidor { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borde, rgba(0, 0, 0, .08)); font-size: 15px; }
.rg-competidor:last-child { border-bottom: 0; }
.rg-competidor span { min-width: 0; overflow-wrap: anywhere; }
.rg-competidor small { color: var(--texto-3, #86868b); white-space: nowrap; }

.rg-cta { margin-top: 24px; padding: 24px; border-radius: 20px; background: var(--carbon, #1d1d1f); color: #fff; }
.rg-cta b { font-size: 20px; letter-spacing: -.02em; }
.rg-cta p { color: rgba(255, 255, 255, .78); margin-top: 6px; }
.rg-cta .acciones { margin-top: 18px; }
.rg-cta .boton-primario { background: #fff; color: var(--carbon, #1d1d1f); }
.rg-cta .boton-secundario { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.rg-acciones-centro { margin-top: 18px; }

@media (max-width: 640px) {
  .rg-contenedor { margin-top: 32px; }
  .rg-caja { padding: 22px 18px; border-radius: 22px; }
  .rg-form, .rg-form-una { grid-template-columns: 1fr; }
  .rg-form .boton { width: 100%; }
  .rg-cifras { gap: 8px; }
  .rg-cifra { padding: 12px; border-radius: 14px; }
  .rg-cifra b { font-size: 20px; }
  .rg-cifra span { display: block; font-size: 12px; line-height: 1.3; margin-top: 2px; }
  .rg-opcion { flex-direction: column; align-items: stretch; }
  .rg-mapa { padding: 16px; }
  .rg-punto b { font-size: 18px; }
  .rg-competidor { flex-direction: column; gap: 2px; }
  .rg-cta .acciones .boton { width: 100%; }
}
