/* ═══════════════════════════════════════════════════
   BLINQ — SEO local / Google Maps (/seo-local)
   Estilos propios de la página. Los componentes base (secciones, columnas,
   filas, proceso, FAQ, nota) vienen de ui.css.

   El visual del hero es un OBJETO DE DEMO: un mapa estilizado con pines, la
   ficha de un negocio de ejemplo y una tarjeta de métricas del mes. No imita
   la interfaz ni el logo de Google. Va en claro y fijo (no cambia con el
   tema), como .mt-panel y .rx-win. Escala con unidades de contenedor (cqw).
   ═══════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   HERO · escenario
   ───────────────────────────────────── */
.gm { container-type: inline-size; }

.gm-stage {
    position: relative;
    padding: 4cqw 4cqw 25cqw;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-2);
    font-size: clamp(8px, 2.4cqw, 13.5px);
    line-height: 1.3;
}

/* El mapa (objeto de demo: lleva sombra de medio) */
.gm-map {
    position: relative;
    height: 58cqw;
    overflow: hidden;
    border-radius: 2cqw;
    background: #EEF0EA;
    box-shadow: 0 0 0 1px rgba(16, 14, 24, 0.08), var(--shadow-media);
    font-family: var(--font-body);
}

.gm-ground span { position: absolute; display: block; }

.gm-park {
    left: 5%;
    top: 60%;
    width: 22%;
    height: 32%;
    border-radius: 1.6cqw;
    background: #D2E7C6;
}

.gm-water {
    right: -9%;
    top: -16%;
    width: 34%;
    height: 46%;
    border-radius: 50%;
    background: #C8DEF3;
}

.gm-road { background: #FFFFFF; box-shadow: 0 0 0 1px #E1E3DD; }
.gm-road--a { left: -5%; top: 30%; width: 110%; height: 2.2cqw; transform: rotate(-4deg); }
.gm-road--b { left: -5%; top: 82%; width: 110%; height: 1.8cqw; transform: rotate(3deg); }
.gm-road--c { left: 30%; top: -10%; width: 2.2cqw; height: 120%; transform: rotate(9deg); }
.gm-road--d { left: 70%; top: -10%; width: 1.8cqw; height: 120%; transform: rotate(-7deg); }
.gm-road--e { left: 42%; top: 64%; width: 60%; height: 1.2cqw; transform: rotate(-24deg); }
.gm-road--main { left: -5%; top: 55%; width: 110%; height: 3cqw; background: #F6DE90; box-shadow: 0 0 0 1px #EACB6A; transform: rotate(-2deg); }

.gm-label { color: #7B8088; font-size: 0.72em; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.gm-label--street { left: 8%; top: 24%; transform: rotate(-4deg); }
.gm-label--park { left: 9%; top: 73%; color: #4F7A44; }

/* Barra de búsqueda de ejemplo (genérica, sin marca) */
.gm-search {
    position: absolute;
    left: 3cqw;
    top: 3cqw;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.4cqw;
    width: 52cqw;
    margin: 0;
    padding: 1.5cqw 2.6cqw;
    border-radius: 99px;   /* barra de búsqueda: objeto de demo, no un botón */
    background: #FFFFFF;
    color: #3C4043;
    box-shadow: 0 1px 3px rgba(16, 14, 24, 0.18);
}

.gm-search svg { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: #6B6878; stroke-width: 2; stroke-linecap: round; }

/* Pines */
.gm-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 1;
    width: 3.8cqw;
    transform: translate(-50%, -100%);
}

.gm-pin svg { display: block; width: 100%; height: auto; }
.gm-pin path { fill: #8C909A; }
.gm-pin circle { fill: #FFFFFF; }

.gm-pin--me { z-index: 2; width: 6.2cqw; }
.gm-pin--me path { fill: #9D00FF; }

.gm-pin--me b {
    position: absolute;
    left: 100%;
    top: 18%;
    margin-left: 1cqw;
    padding: 0.5cqw 1.3cqw;
    border-radius: 1cqw;
    background: #FFFFFF;
    color: #16141D;
    font-size: 0.82em;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(16, 14, 24, 0.2);
}

/* Ficha del negocio de ejemplo */
.gm-card {
    position: absolute;
    left: 4cqw;
    bottom: 4cqw;
    z-index: 3;
    display: grid;
    gap: 1cqw;
    width: 56cqw;
    padding: 3cqw 3.4cqw 3.2cqw;
    border-radius: 2cqw;
    background: #FFFFFF;
    color: #16141D;
    box-shadow: 0 0 0 1px rgba(16, 14, 24, 0.08), var(--shadow-media);
    font-family: var(--font-body);
}

.gm-card p { margin: 0; }
.gm-card__name { font-size: 1.32em; font-weight: 600; letter-spacing: -0.01em; }

.gm-card__rate { display: flex; align-items: center; gap: 1cqw; color: #6B6878; }
.gm-card__rate b { color: #16141D; font-weight: 600; }
.gm-stars { display: inline-flex; gap: 0.2cqw; }
.gm-stars svg { width: 1.05em; height: 1.05em; fill: #F2A60C; }
.gm-card__cat::before { content: "·"; margin-right: 1cqw; }

.gm-card__open { color: #6B6878; }
.gm-card__open b { color: #15803D; font-weight: 600; }

.gm-card__btns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4cqw;
    margin-top: 1.6cqw;
    padding-top: 2.2cqw;
    border-top: 1px solid #ECEBF1;
}

.gm-card__btns span {
    display: grid;
    justify-items: center;
    gap: 0.9cqw;
    color: #7A00C7;
    font-size: 0.84em;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.gm-card__btns i {
    display: grid;
    place-items: center;
    width: 7.6cqw;
    height: 7.6cqw;
    border: 1px solid #DCCBF2;
    border-radius: 50%;
}

.gm-card__btns svg { width: 3.4cqw; height: 3.4cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gm-card__btns .is-main i { border-color: #9D00FF; background: #9D00FF; color: #FFFFFF; }

/* Tarjeta flotante: métricas del mes (datos de ejemplo) */
.gm-month {
    position: absolute;
    right: 4cqw;
    bottom: 9cqw;
    z-index: 3;
    display: grid;
    gap: 1.1cqw;
    width: 33cqw;
    padding: 2.6cqw 2.8cqw 3cqw;
    border-radius: 2cqw;
    background: #FFFFFF;
    color: #16141D;
    box-shadow: 0 0 0 1px rgba(157, 0, 255, 0.35), 0 26px 48px -24px rgba(14, 11, 23, 0.55);
    font-family: var(--font-body);
}

.gm-month p { margin: 0; }

.gm-month .gm-month__k {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1cqw;
    margin-bottom: 0.6cqw;
    font-weight: 600;
}

.gm-month__k span {
    padding: 0.3cqw 1.1cqw;
    border-radius: 4px;
    background: #F4EEFC;
    color: #7A00C7;
    font: 500 0.74em var(--font-mono);
    letter-spacing: 0.02em;
}

.gm-month__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.2cqw;
    color: #6B6878;
    font-size: 0.9em;
}

.gm-month__row svg { width: 1.1em; height: 1.1em; fill: none; stroke: #7A00C7; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gm-month__row b { color: #16141D; font-size: 1.15em; font-weight: 600; font-variant-numeric: tabular-nums; }

.gm-month__bar {
    position: relative;
    display: block;
    height: 1.1cqw;
    border-radius: 2px;
    background: #EFE6FA;
}

.gm-month__bar::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--v);
    border-radius: inherit;
    background: #9D00FF;
}

/* Movimiento: los pines caen en orden y las tarjetas llegan al final */
@media (prefers-reduced-motion: no-preference) {
    .js .gm-pin { animation: gm-drop 0.45s ease var(--d, 0s) both; }
    .js .gm-card { animation: gm-in 0.5s ease 1.1s both; }
    .js .gm-month { animation: gm-in 0.5s ease 1.5s both; }
}

@keyframes gm-drop { from { opacity: 0; transform: translate(-50%, -150%); } }
@keyframes gm-in { from { opacity: 0; transform: translateY(8px); } }


/* ─────────────────────────────────────
   01 · Qué incluye: segunda fila de columnas
   ───────────────────────────────────── */
.gm-cols2 { margin-top: clamp(24px, 3vw, 40px); }

/* 03 · La nota de honestidad */
.gm-note { margin: clamp(40px, 4vw, 56px) 0 0; }

/* 04 · Aviso de marcas */
.gm-legal { margin: clamp(32px, 3vw, 48px) 0 0; }

@media (max-width: 599px) {
    .gm-stage { padding: 3.5cqw 3.5cqw 33cqw; font-size: clamp(8px, 2.9cqw, 13px); }
    .gm-map { height: 64cqw; }
    .gm-search { width: 62cqw; }
    .gm-card { left: 3.5cqw; bottom: 3.5cqw; width: 62cqw; }
    .gm-month { right: 3.5cqw; bottom: 14cqw; width: 36cqw; }
    .gm-cols2 { margin-top: 0; }
    .gm-cols2 > .col:first-child { border-top: 1px solid var(--line); padding-top: 28px; }
}
