/* ===== Speedy · menú móvil y tablet (patrón Tigo) — solo hasta 921 px, el corte móvil de Astra ===== */
.spm-bar, .spm, .spm-scrim { display: none; }
@media (max-width: 921px) {
	:root { --spm-blue: #0b45ff; --spm-navy: #000129; --spm-ease: cubic-bezier(0.32, 0.72, 0, 1); --spm-out: cubic-bezier(0.23, 1, 0.32, 1); }

	/* barra cerrada: hamburguesa + logo a la izquierda, ayuda a la derecha */
	.ast-mobile-header-wrap .ast-primary-header-bar > .site-primary-header-wrap > .ast-builder-grid-row,
	.ast-mobile-header-wrap .ast-builder-grid-row { display: none !important; }
	.ast-mobile-header-content, #ast-mobile-site-navigation { display: none !important; }
	/* barra de un solo tono: la cabecera de Astra toma el mismo azul y pierde su margen lateral */
	.ast-mobile-header-wrap .ast-primary-header-bar { background: var(--spm-blue) !important; background-color: var(--spm-blue) !important; padding-left: 0 !important; padding-right: 0 !important; border: 0 !important; }
	.spm-bar { display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 10px 0 8px; background: var(--spm-blue); font-family: "Inter", system-ui, sans-serif; }
	.spm-logo { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; }
	.spm-logo .site-branding { padding: 0 !important; margin: 0 !important; }
	.spm-logo img { height: 28px !important; width: auto !important; max-width: none !important; max-height: none !important; display: block; object-fit: contain; }
	@media (min-width: 600px) { .spm-logo img { height: 32px !important; } }

	.spm-ic { appearance: none; -webkit-appearance: none; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color 160ms ease, transform 160ms var(--spm-out); }
	.spm-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	.spm-ic svg .f { fill: currentColor; stroke: none; }
	.spm-ic:active { transform: scale(0.94); }
	.spm-ic:focus-visible, .spm-pill:focus-visible, .spm-cbtn:focus-visible, .spm a:focus-visible { outline: 2px solid #38aae9; outline-offset: 2px; }
	/* hamburguesa, X y ?: sin fondo en ningún estado (el tema pinta los <button>); se funden con el azul de la barra */
	.spm-ic, .spm-ic:hover, .spm-ic:focus, .spm-ic:active, .spm-ic:focus-visible { background: transparent !important; background-color: transparent !important; box-shadow: none !important; border: 0 !important; color: #fff !important; }
	.spm-ic:focus:not(:focus-visible) { outline: none; }

	/* fondo oscurecido */
	.spm-scrim { display: block; position: fixed; inset: 0; z-index: 99998; background: rgba(0,1,41,0.5); opacity: 0; transition: opacity 260ms ease; -webkit-tap-highlight-color: transparent; }
	.spm-scrim[hidden] { display: none; }
	html.spm-open .spm-scrim { opacity: 1; }

	/* panel lateral */
	.spm { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 99999; width: min(86vw, 420px); background: #fff; font-family: "Inter", system-ui, sans-serif; box-shadow: 18px 0 40px -18px rgba(0,1,41,0.45); transform: translateX(-100%); transition: transform 360ms var(--spm-ease); }
	.spm[hidden] { display: none; }
	html.spm-open .spm { transform: translateX(0); }
	body.admin-bar .spm { top: 46px; }
	html.spm-open, html.spm-open body { overflow: hidden; }

	.spm-top { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; height: 60px; padding: 0 8px 0 10px; background: var(--spm-blue); }
	.spm-top .spm-close { margin-left: auto; }

	/* país y provincias */
	.spm-country { position: relative; }
	.spm-cbtn { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: #fff; font: 500 14px/1 "Inter", system-ui, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
	.spm-cbtn > svg:last-child { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--spm-out); }
	.spm-cbtn[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
	.spm-cbtn, .spm-cbtn:hover, .spm-cbtn:focus, .spm-cbtn:active { background: transparent !important; box-shadow: none !important; color: #fff !important; }
	.spm-flag { width: 22px; height: 15px; border-radius: 3px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(255,255,255,0.5); }
	.spm-plist { position: absolute; z-index: 3; top: calc(100% + 6px); left: 0; min-width: 200px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0,1,41,0.4), 0 0 0 1px rgba(0,1,41,0.06); transform-origin: top left; opacity: 1; transform: scale(1); transition: opacity 160ms ease-out, transform 180ms var(--spm-out); }
	.spm-plist[hidden] { display: block; visibility: hidden; opacity: 0; transform: scale(0.96); pointer-events: none; }
	.spm-plist a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--spm-navy); font-size: 15px; font-weight: 500; text-decoration: none; }
	.spm-pin { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--spm-blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
	.spm-plist a.is-sel { color: var(--spm-blue); font-weight: 600; background: #eef3ff; }
	@media (hover: hover) { .spm-plist a:hover { background: #f2f5fb; } }

	/* cuerpo */
	.spm-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 28px; }
	.spm-search { position: relative; display: flex; align-items: center; margin: 0 0 14px; }
	.spm-search input[type="search"] { width: 100%; height: 48px; margin: 0; padding: 0 48px 0 18px !important; border: 1px solid #c9d1e1 !important; border-radius: 999px !important; background: #fff !important; color: var(--spm-navy) !important; font: 400 16px/1 "Inter", system-ui, sans-serif !important; box-shadow: none !important; outline: none; -webkit-appearance: none; appearance: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
	.spm-search input::placeholder { color: #8a93a8; }
	.spm-search input:focus { border-color: var(--spm-blue) !important; box-shadow: 0 0 0 3px rgba(11,69,255,0.15) !important; }
	.spm-search button { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #4b5570; cursor: pointer; }
	.spm-search button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }

	.spm-list, .spm-sub ul { list-style: none; margin: 0; padding: 0; }
	.spm-home a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--spm-navy); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; }
	.spm-item { margin: 0 0 8px; border-radius: 14px; background: var(--spm-blue); overflow: hidden; }
	.spm-pill { appearance: none; -webkit-appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 50px; margin: 0; padding: 0 14px 0 16px; border: 0; border-radius: 0; background: transparent; color: #fff !important; font: 500 16px/1.2 "Inter", system-ui, sans-serif; letter-spacing: 0.02em; text-transform: uppercase; text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 160ms ease; }
	.spm-pill svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--spm-out); }
	.spm-pill[aria-expanded="true"] svg { transform: rotate(180deg); }
	.spm-pill:active { background: rgba(0,1,41,0.18); }
	@media (hover: hover) { .spm-pill:hover { background: rgba(0,1,41,0.12); } }
	.spm-pill.is-current { box-shadow: inset 4px 0 0 #ffc000; }

	/* acordeón: grid 0fr → 1fr */
	.spm-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--spm-ease); }
	.spm-sub > ul { min-height: 0; overflow: hidden; }
	.spm-acc.is-open .spm-sub { grid-template-rows: 1fr; }
	.spm-sub ul { padding: 0; }
	.spm-sub li:last-child a { margin-bottom: 8px; }
	.spm-sub a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; color: rgba(255,255,255,0.92) !important; font-size: 15.5px; font-weight: 400; text-decoration: none; }
	.spm-sub a.is-current { color: #fff !important; font-weight: 600; }
	.spm-sub a:active { background: rgba(0,1,41,0.18); }
	@media (hover: hover) { .spm-sub a:hover { background: rgba(0,1,41,0.12); } }

	@media (prefers-reduced-motion: reduce) {
		.spm, .spm-scrim, .spm-sub, .spm-plist, .spm-pill svg, .spm-cbtn > svg:last-child { transition: none !important; }
	}
}

