/* Configurador de maquetas · identidad COORYC (cooryc.com).
   Todo cuelga de .mm-root para no chocar con el resto de la web.
   Idea del diseño: el mapa es el protagonista. Arriba, una franja en tinta con las curvas de nivel reales
   del Aneto; el mapa y la hoja de pedido se apoyan sobre ella. Debajo, todo en papel claro y sin adornos. */
.mm-root {
  --mm-bg: #f4f6ff;            /* papel */
  --mm-card: #fff;
  --mm-ink: #0a1033;           /* tinta */
  --mm-muted: #4f5b7a;
  --mm-line: #d5dbf0;
  --mm-line-strong: #8a94b8;   /* bordes de controles: 3:1 sobre blanco */
  --mm-accent: #0145fd;        /* azul COORYC */
  --mm-accent-dark: #0037d6;
  --mm-tint: #e8edff;          /* azul muy claro: selección */
  --mm-violet: #784eff;
  --mm-sky: #15b1f9;
  --mm-warn: #c4262b;
  --mm-ok: #0b7a3b;
  --mm-r: 14px;
  --mm-r-lg: 28px;
  --mm-max: 1240px;
  --mm-band: 600px;            /* alto de la franja oscura */
  --mm-shadow: 0 2px 10px rgba(10, 16, 51, .16);
  --mm-shadow-lg: 0 10px 30px rgba(10, 16, 51, .22);
  --mm-lift: 0 0 0 1px rgba(10, 16, 51, .06), 0 34px 70px -30px rgba(4, 9, 40, .6);
  --mm-fast: .15s ease-out;
  font: 400 16px/1.5 Archivo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--mm-ink);
  background: var(--mm-bg);
  -webkit-text-size-adjust: 100%;
}
.mm-root *, .mm-root *::before, .mm-root *::after { box-sizing: border-box; }
.mm-root [hidden] { display: none !important; }
/* :where() no suma especificidad: así los colores de cada botón mandan sobre este reinicio */
.mm-root :where(input, select, textarea, button) { font: inherit; color: inherit; max-width: 100%; min-width: 0; }
.mm-root :where(button, summary, label, [role=option]) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mm-root :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; }
.mm-root :where(a) { color: var(--mm-accent); }
.mm-root :where(button, a, input, textarea, select, summary):focus-visible { outline: 3px solid var(--mm-accent); outline-offset: 2px; }
.mm-small { font-size: 13px; }
.mm-muted { color: var(--mm-muted); }
.mm-help { display: block; font-size: 13.5px; font-weight: 400; line-height: 1.45; color: var(--mm-muted); margin-top: 8px; }
.mm-error { font-size: 14px; font-weight: 600; color: var(--mm-warn); margin-top: 10px; }
.mm-ic { flex: none; }
.mm-wrap { max-width: var(--mm-max); margin: 0 auto; padding: 0 24px; }

/* ── Cabecera de la web (igual que cooryc.com) ── */
.mm-top { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid var(--mm-line); }
.mm-top-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 68px; }
.mm-logo { display: block; line-height: 0; border-radius: 6px; }
.mm-logo img { height: 30px; width: auto; }
.mm-top ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.mm-top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--mm-ink); font-size: 15.5px; font-weight: 600; text-decoration: none; transition: color var(--mm-fast), background var(--mm-fast); }
.mm-top nav a:hover { color: var(--mm-accent); }
.mm-top nav a[aria-current] { background: var(--mm-tint); color: var(--mm-accent); }
@media (max-width: 860px) { .mm-nav-wide { display: none; } }
@media (max-width: 720px) { .mm-wrap { padding: 0 16px; } }
@media (max-width: 480px) { .mm-nav-mid { display: none; } .mm-top-bar { min-height: 60px; } .mm-logo img { height: 26px; } }

/* ── Franja oscura con las curvas de nivel ── */
.mm-main { position: relative; }
.mm-band { position: absolute; inset: 0 0 auto; height: var(--mm-band); overflow: hidden; border-radius: 0 0 36px 36px;
  background:
    radial-gradient(70% 95% at 96% -12%, rgba(120, 78, 255, .8) 0%, rgba(120, 78, 255, 0) 62%),
    radial-gradient(62% 85% at -6% 112%, rgba(1, 69, 253, .78) 0%, rgba(1, 69, 253, 0) 60%),
    var(--mm-ink); }
.mm-band::after { content: ""; position: absolute; inset: 0; background: url("../img/curvas.svg?v=20261119130238") 50% 35% / cover no-repeat; opacity: .2; }

/* ── Estructura: título sobre la franja, escenario fijo a la izquierda, hoja de pedido a la derecha ── */
.mm-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "head head" "stage side";
  gap: 28px 40px; max-width: var(--mm-max); margin: 0 auto; padding: 44px 24px 80px; align-items: start; }
.mm-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 56px; color: #fff; }
.mm-title { flex: 0 1 auto; max-width: 10.5em; font-size: clamp(38px, 5vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.mm-sub { flex: 1 1 320px; max-width: 28em; font-size: 18px; line-height: 1.55; color: #d6ddfb; }
.mm-stagecol { grid-area: stage; position: sticky; top: 16px; min-width: 0; }
.mm-side { grid-area: side; display: grid; gap: 16px; min-width: 0; }
@media (max-width: 900px) {
  .mm-root { --mm-band: 500px; --mm-r-lg: 22px; }
  .mm-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "side"; gap: 28px; padding: 32px 16px 56px; }
  .mm-band { border-radius: 0 0 24px 24px; }
  .mm-stagecol { position: static; }
  .mm-sub { font-size: 17px; }
}

/* ── Escenario ── */
.mm-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; background: var(--mm-ink); border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; box-shadow: var(--mm-shadow); }
.mm-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 999px; background: none; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background var(--mm-fast), color var(--mm-fast); }
.mm-tabs button:hover:not(.on) { background: rgba(255, 255, 255, .14); }
.mm-tabs button.on { background: #fff; color: var(--mm-ink); }
.mm-tabs button:focus-visible { outline-color: var(--mm-violet); outline-offset: -4px; }
@media (max-width: 900px) { .mm-tabs { display: flex; } .mm-tabs button { flex: 1; } }
.mm-stage { position: relative; aspect-ratio: 1; min-height: 300px; max-height: max(400px, calc(100vh - 346px)); max-height: max(400px, calc(100dvh - 346px)); /* cabe entera en la primera pantalla */ width: 100%; border-radius: var(--mm-r-lg); overflow: hidden; background: #dfe5fb;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 36px 70px -30px rgba(4, 9, 40, .75); }
.mm-mapwrap, #mm-map, #mm-3d, #mm-canvas { position: absolute; inset: 0; }
#mm-3d { background: radial-gradient(120% 90% at 50% 18%, #fff 0%, #eef1ff 55%, #d9e0fa 100%); }
#mm-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; }

/* Ficha bajo el mapa: zona real → tu maqueta → escala */
.mm-readout { display: flex; margin-top: 18px; }
.mm-readout div { padding: 0 28px; border-left: 1px solid var(--mm-line); }
.mm-readout div:first-child { padding-left: 4px; border-left: 0; }
.mm-readout dt { font-size: 13.5px; color: var(--mm-muted); }
.mm-readout dd { margin-top: 2px; font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) { .mm-readout div { flex: 1; padding: 0 12px; } .mm-readout dd { font-size: 19px; } }
.mm-hint { color: var(--mm-muted); font-size: 14px; margin-top: 12px; max-width: 62ch; }
.mm-warn { color: var(--mm-warn); font-size: 14px; font-weight: 600; margin-top: 10px; }
.mm-warn:empty { display: none; }

.mm-searchbox { position: absolute; top: 14px; left: 14px; right: 64px; z-index: 6; max-width: 420px; }
#mm-search { width: 100%; min-height: 48px; padding: 10px 18px 10px 46px; border-radius: 999px; border: 0; font-size: 16px; box-shadow: var(--mm-shadow-lg);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230145fd' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 16px 50% / 19px no-repeat; }
#mm-search::placeholder { color: var(--mm-muted); opacity: 1; }
#mm-results { list-style: none; margin-top: 8px; padding: 6px; background: #fff; border-radius: 18px; box-shadow: var(--mm-shadow-lg); max-height: 272px; overflow: auto; overscroll-behavior: contain; }
#mm-results li { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px; font-size: 14.5px; line-height: 1.3; border-radius: 12px; }
#mm-results [role=option] { cursor: pointer; }
#mm-results [role=option]:hover, #mm-results [aria-selected=true] { background: var(--mm-tint); }
#mm-results .mm-ic { color: var(--mm-accent); }
#mm-results span { min-width: 0; }
#mm-results b { display: block; font-weight: 600; overflow-wrap: anywhere; }
#mm-results small { color: var(--mm-muted); font-size: 13px; }
.mm-res-note { color: var(--mm-muted); }

/* Controles sobre el mapa */
.mm-mapbtns { position: absolute; left: 14px; bottom: 14px; z-index: 5; display: flex; gap: 6px; }
.mm-mapinfo { position: absolute; left: 14px; bottom: 64px; z-index: 5; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: var(--mm-shadow); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.mm-front-legend { display: inline-flex; align-items: center; gap: 8px; }
.mm-front-legend::before { content: ""; width: 20px; height: 5px; border-radius: 3px; background: var(--mm-accent); }
.mm-viewbtns { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.mm-mapwrap .maplibregl-ctrl-attrib { font-size: 11px; max-width: calc(100% - 240px); }
.mm-mapwrap .maplibregl-ctrl-top-right { top: 4px; right: 4px; }
.mm-mapwrap .maplibregl-ctrl-group { border-radius: 14px; overflow: hidden; box-shadow: var(--mm-shadow); }
.mm-mapwrap .maplibregl-ctrl-group button { width: 38px; height: 38px; }
.mm-drop-hint { display: none; }
.mm-mapwrap.drop .mm-drop-hint { display: grid; place-items: center; position: absolute; inset: 0; z-index: 10; background: rgba(10, 16, 51, .66); color: #fff; font-size: 20px; font-weight: 600; }

#mm-loading { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 12px; background: rgba(244, 246, 255, .88); font-size: 15px; font-weight: 600; }
.mm-spinner { width: 34px; height: 34px; border: 3px solid var(--mm-line); border-top-color: var(--mm-accent); border-radius: 50%; animation: mm-spin .8s linear infinite; }
@keyframes mm-spin { to { transform: rotate(360deg); } }

/* ── Hoja de pedido: una sola pieza con los cuatro pasos ── */
.mm-panel { padding: 4px 28px 8px; background: var(--mm-card); border-radius: var(--mm-r-lg); box-shadow: var(--mm-lift); min-width: 0; }
.mm-step { padding-bottom: 26px; border-top: 1px solid var(--mm-line); min-width: 0; }
.mm-panel > .mm-step:first-child { border-top: 0; }
.mm-step > summary, .mm-step-title { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 16px 0; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.mm-step > summary { list-style: none; cursor: pointer; border-radius: 12px; }
.mm-step > summary::-webkit-details-marker { display: none; }
.mm-step > summary::after { content: ""; margin: 0 6px 0 auto; width: 9px; height: 9px; border: solid var(--mm-muted); border-width: 0 2px 2px 0; transform: rotate(-135deg); transition: transform var(--mm-fast); }
.mm-step:not([open]) > summary::after { transform: rotate(45deg); }
details.mm-step:not([open]) { padding-bottom: 0; }
.mm-n { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--mm-tint); color: var(--mm-accent); font-size: 15px; font-weight: 800; letter-spacing: 0; }
.mm-lead { color: var(--mm-muted); font-size: 15px; margin-bottom: 16px; }
.mm-field { margin-bottom: 24px; min-width: 0; }
.mm-step > .mm-field:last-child, .mm-rows > .mm-field:last-child { margin-bottom: 0; }
.mm-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.mm-label b { font-size: 14px; font-weight: 400; color: var(--mm-muted); }
.mm-label .mm-val { font-weight: 600; color: var(--mm-accent); font-variant-numeric: tabular-nums; }
/* Colores: nombre a la izquierda, muestras a la derecha (en pantallas estrechas, debajo) */
.mm-colors { display: grid; gap: 14px; }
.mm-color { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.mm-color .mm-label { display: grid; gap: 0; margin: 0; }
.mm-lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mm-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.mm-cols-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 14px; }
.mm-span { grid-column: 1 / -1; }
@media (max-width: 480px) { .mm-panel { padding: 2px 18px 6px; } .mm-cols:not(.mm-cols-21) { grid-template-columns: minmax(0, 1fr); } }

/* ── Controles ── */
.mm-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mm-size { position: relative; display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 10px 12px; text-align: left; border-radius: 16px; border: 1.6px solid var(--mm-line); background: var(--mm-card); cursor: pointer; transition: border-color var(--mm-fast), background var(--mm-fast), transform var(--mm-fast); }
/* Cuadrado a escala con los colores elegidos: montaña (relleno) y marco (borde) */
.mm-size-fig { display: grid; place-items: center; flex: none; width: 56px; height: 56px; }
.mm-size-fig i { display: block; width: calc(var(--s) * 46px); aspect-ratio: 1; border-radius: 3px; background: var(--mm-model, #4b4d50); box-shadow: 0 0 0 3px var(--mm-frame, #6f4a33), 0 0 0 4px rgba(10, 16, 51, .16), 0 6px 10px rgba(10, 16, 51, .18); transition: background var(--mm-fast), box-shadow var(--mm-fast); }
.mm-size-txt { display: grid; min-width: 0; }
.mm-size-name { font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.mm-size-dim { font-size: 13.5px; color: var(--mm-muted); }
.mm-size-price { margin-top: 2px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mm-size:hover { border-color: var(--mm-line-strong); }
.mm-size:active { transform: scale(.985); }
.mm-size.on { border-color: var(--mm-accent); background: var(--mm-tint); box-shadow: inset 0 0 0 1px var(--mm-accent); }
.mm-size.on::after { content: ""; position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 3px var(--mm-card);
  background: var(--mm-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") 50% / 12px no-repeat; }
/* En móvil la tarjeta va en vertical: los cuadrados se apoyan en la misma línea y se comparan mejor */
@media (max-width: 480px) {
  .mm-size { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px 14px; }
  .mm-size-fig { place-items: end start; height: 52px; padding: 0 0 4px 4px; }
}

.mm-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.mm-swatch { position: relative; width: 40px; height: 40px; padding: 0; border-radius: 12px; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--mm-line-strong); cursor: pointer; transition: transform var(--mm-fast), box-shadow var(--mm-fast); }
.mm-swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 14px; } /* zona táctil de 44 px */
.mm-swatch:hover { transform: translateY(-2px); }
.mm-swatch.on { box-shadow: 0 0 0 2.5px var(--mm-accent); }
/* Lado que queda delante: el elegido lleva la misma barra azul que el frente en el mapa */
.mm-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--mm-bg); }
.mm-seg button { min-height: 46px; padding: 6px 4px; border: 0; border-radius: 12px; background: none; font-size: 15px; font-weight: 600; cursor: pointer; transition: background var(--mm-fast), color var(--mm-fast); }
.mm-seg button:hover:not(.on) { background: rgba(255, 255, 255, .7); }
.mm-seg button.on { background: var(--mm-card); color: var(--mm-accent); box-shadow: 0 1px 4px rgba(10, 16, 51, .2), inset 0 -4px 0 var(--mm-accent); }
.mm-range { display: block; width: 100%; height: 32px; margin: 0; accent-color: var(--mm-accent); cursor: pointer; }
.mm-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 6px; font-size: 15px; cursor: pointer; }
.mm-check input { width: 20px; height: 20px; flex: none; accent-color: var(--mm-accent); cursor: pointer; }
.mm-check.mm-small { font-size: 14.5px; }
.mm-extra { margin-left: auto; color: var(--mm-muted); font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm-lbl { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14.5px; font-weight: 600; min-width: 0; }
.mm-lbl .mm-muted { font-size: 13.5px; font-weight: 400; font-variant-numeric: tabular-nums; }
.mm-lbl .mm-help { margin-top: 0; }
.mm-opt { font-weight: 400; color: var(--mm-muted); }
.mm-req { margin: -8px 0 16px; }
.mm-input { width: 100%; min-height: 48px; padding: 12px 14px; font-size: 16px; font-weight: 400; background: var(--mm-card); border: 1px solid var(--mm-line-strong); border-radius: 12px; transition: border-color var(--mm-fast), box-shadow var(--mm-fast); }
.mm-input::placeholder { color: #6b7694; opacity: 1; }
.mm-input:hover { border-color: var(--mm-muted); }
textarea.mm-input { resize: vertical; }
.mm-root .mm-input:focus { outline: 0; border-color: var(--mm-accent); box-shadow: 0 0 0 3px rgba(1, 69, 253, .25); }
.mm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.mm-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 1.6px solid var(--mm-ink); background: none; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background var(--mm-fast), border-color var(--mm-fast), color var(--mm-fast), transform var(--mm-fast); }
.mm-btn:active { transform: scale(.985); }
.mm-btn-block { width: 100%; }
.mm-btn-primary { background: var(--mm-accent); border-color: var(--mm-accent); color: #fff; }
.mm-btn-primary:hover { background: var(--mm-violet); border-color: var(--mm-violet); }
.mm-btn-outline:hover { background: var(--mm-ink); color: #fff; }
.mm-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .96); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: var(--mm-shadow); transition: background var(--mm-fast), color var(--mm-fast); }
.mm-chip:hover { background: #fff; color: var(--mm-accent); }
.mm-chip[aria-pressed=true] { background: var(--mm-ink); color: #fff; }
.mm-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--mm-accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.mm-link:hover { text-decoration: underline; }
.mm-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mm-center { align-items: center; }

.mm-gpx { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 8px; border-radius: 16px; background: var(--mm-tint); }
.mm-gpx-main { display: flex; gap: 10px; align-items: center; min-width: 0; }
.mm-gpx-main svg { color: var(--mm-accent); flex: none; }
.mm-gpx-main div { min-width: 0; }
.mm-gpx-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-gpx-main small { color: var(--mm-muted); font-size: 13px; }
.mm-gpx-actions { display: flex; gap: 8px; flex: none; }

/* ── Paso 4: datos, resumen y envío ── */
.mm-summary { margin: 8px 0 12px; padding: 16px 18px; border-radius: 18px; background: var(--mm-bg); }
.mm-summary ul { list-style: none; display: grid; gap: 6px; margin-bottom: 14px; padding: 0 0 14px; border-bottom: 1px solid var(--mm-line); font-size: 15px; }
.mm-summary li { display: flex; justify-content: space-between; gap: 12px; }
.mm-summary li b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mm-total-num { font-size: 15px; font-weight: 600; text-align: right; }
.mm-total-num b { margin-left: 8px; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mm-est-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--mm-muted); }
.mm-total-num.mm-est-busy b { opacity: .45; transition: opacity .2s; }
.mm-est-note { margin: 12px 0 0; }
.mm-qty { display: inline-flex; align-items: center; flex: none; border: 1.6px solid var(--mm-line-strong); border-radius: 999px; background: var(--mm-card); }
.mm-qty button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 20px; cursor: pointer; }
.mm-qty button:hover { background: var(--mm-tint); }
.mm-qty span { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.mm-form .mm-btn-primary { min-height: 58px; margin: 8px 0 0; font-size: 17px; }
.mm-nopay { margin-top: 12px; text-align: center; }
.mm-done { padding: 36px 28px; text-align: center; outline: 0; }
.mm-done h2 { margin-bottom: 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.mm-done p { margin-bottom: 10px; }
.mm-done-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: var(--mm-ok); color: #fff; }
.mm-done .mm-btn { margin-top: 8px; }

/* ── Cómo funciona ── */
.mm-how { position: relative; padding: 88px 0; background: var(--mm-card); border-top: 1px solid var(--mm-line); }
.mm-how h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
.mm-how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; padding: 0; list-style: none; counter-reset: paso; }
.mm-how-steps li { padding: 0 32px; border-left: 1px solid var(--mm-line); counter-increment: paso; }
.mm-how-steps li:first-child { padding-left: 0; border-left: 0; }
.mm-how-steps li:last-child { padding-right: 0; }
.mm-how-steps li::before { content: counter(paso); display: block; margin-bottom: 16px; color: var(--mm-accent); font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.mm-how-steps h3 { margin-bottom: 8px; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.mm-how-steps p { color: var(--mm-muted); }
.mm-incl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px 56px; margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--mm-line); }
.mm-incl h3 { font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.mm-incl ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; padding: 0; list-style: none; }
.mm-incl li { padding-left: 16px; border-left: 3px solid var(--mm-sky); color: var(--mm-muted); }
.mm-incl li b { color: var(--mm-ink); font-weight: 600; }
@media (max-width: 760px) {
  .mm-how { padding: 56px 0; }
  .mm-how-steps { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .mm-how-steps li, .mm-how-steps li:first-child, .mm-how-steps li:last-child { padding: 24px 0; border-left: 0; border-top: 1px solid var(--mm-line); }
  .mm-how-steps li:first-child { padding-top: 0; border-top: 0; }
  .mm-how-steps li::before { font-size: 38px; margin-bottom: 10px; }
  .mm-incl { grid-template-columns: minmax(0, 1fr); margin-top: 16px; padding-top: 40px; }
  .mm-incl ul { grid-template-columns: minmax(0, 1fr); }
}

/* ── Pie (igual que cooryc.com) ── */
.mm-foot { padding: 32px 0; background: var(--mm-card); border-top: 1px solid var(--mm-line); font-size: 15px; color: var(--mm-muted); }
.mm-foot .mm-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.mm-foot img { display: block; height: 24px; width: auto; }
.mm-foot ul { display: flex; gap: 6px 20px; flex-wrap: wrap; padding: 0; list-style: none; }
.mm-foot a { color: inherit; }
.mm-foot a:hover { color: var(--mm-accent); }
@media (max-width: 900px) { .mm-foot { padding-bottom: calc(104px + env(safe-area-inset-bottom)); } }

/* Barra inferior en móvil: qué llevas elegido y acceso a la vista 3D cuando el mapa queda fuera de pantalla */
.mm-mbar { display: none; }
@media (max-width: 900px) {
  .mm-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--mm-line); box-shadow: 0 -6px 20px rgba(10, 16, 51, .12); }
  .mm-mbar-total { min-width: 0; font-size: 13.5px; color: var(--mm-muted); }
  .mm-mbar-total b { display: block; font-size: 18px; line-height: 1.2; font-weight: 800; color: var(--mm-ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mm-mbar .mm-btn { flex: none; min-height: 46px; padding: 10px 20px; }
}

#mm-progress { width: min(440px, calc(100% - 32px)); padding: 30px; border: 0; border-radius: var(--mm-r-lg); font: inherit; color: var(--mm-ink); box-shadow: var(--mm-shadow-lg); }
#mm-progress::backdrop { background: rgba(10, 16, 51, .6); }
#mm-progress h2 { margin-bottom: 8px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
#mm-progress p { margin-bottom: 10px; }
.mm-bar { height: 8px; margin: 14px 0; border-radius: 99px; background: var(--mm-line); overflow: hidden; }
.mm-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--mm-accent), var(--mm-violet)); transition: width .25s ease-out; }
#mm-progress .mm-btn { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .mm-root *, .mm-root *::before, .mm-root *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mm-spinner { animation-duration: 1.6s; }
}

/* ── Taller (uso interno) ── */
.mm-root[data-mode=taller] :is(.mm-how, .mm-top nav) { display: none; }
.mm-taller .mm-n { background: #ece6ff; color: var(--mm-violet); }
.mm-taller select { margin-left: 6px; padding: 6px; border-radius: 6px; border: 1px solid var(--mm-line-strong); }
.mm-taller select.mm-input { margin: 0; padding: 12px 14px; }
.mm-taller .mm-btn { margin-top: 6px; }
.mm-dem-list { display: grid; gap: 4px; margin-top: 8px; padding: 0; list-style: none; font-size: 13px; }
