    :root {
      --bg: #f5f2e8;
      --primary: #f27f0d;
      --text: #1c140d;
      --muted: #6b7280;
      --radius: 24px;
      --max: 520px;
      --confirm-pink: #e91e8c;
      --banner-blue: #2563eb;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      padding: 12px;
    }
    .wrap { max-width: var(--max); margin: 0 auto; }
    .hero {
      border-radius: var(--radius);
      overflow: hidden;
      min-height: 140px;
      background: linear-gradient(135deg, #d96e0a, #1c140d);
      margin-bottom: 20px;
      box-shadow: 0 4px 12px rgba(0,0,0,.08);
      padding: 20px;
      padding-top: 48px;
    }
    .badge {
      display: inline-block;
      background: var(--primary);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      padding: 6px 12px;
      border-radius: 999px;
    }
    .hero h1 { margin: 8px 0 6px; font-size: 20px; line-height: 1.25; color: #fff; }
    .hero .sub { margin: 0 0 12px; font-size: 14px; color: rgba(255,255,255,.92); line-height: 1.45; }
    .promo-pill {
      display: inline-block;
      background: rgba(255,255,255,.18);
      border: 1px solid rgba(255,255,255,.35);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      padding: 8px 12px;
      border-radius: 12px;
      margin-bottom: 10px;
      line-height: 1.35;
    }
    .counter-strip {
      margin-top: 4px;
      padding: 10px 12px;
      border-radius: 14px;
      background: rgba(0,0,0,.22);
      color: #fff;
      font-size: 14px;
      font-weight: 700;
      text-align: center;
    }
    .counter-strip span.num { font-size: 22px; font-weight: 800; color: #fde047; }
    .legal-check {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: flex-start;
      gap: 10px;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      font-size: 13px;
      color: var(--text);
      margin: 16px 0 4px;
      line-height: 1.45;
    }
    .legal-check input {
      margin-top: 4px;
      flex: 0 0 auto;
      flex-shrink: 0;
    }
    .legal-check span {
      flex: 1 1 auto;
      min-width: 0;
    }
    .card {
      background: #fff;
      border-radius: var(--radius);
      padding: 20px;
      box-shadow: 0 4px 12px rgba(0,0,0,.06);
    }
    label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
    /* No forzar ancho 100% en checkbox/radio: rompe filas tipo legal-check (texto a la derecha en columna fina). */
    input:not([type="checkbox"]):not([type="radio"]),
    select {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid rgba(0,0,0,.12);
      border-radius: 12px;
      font-size: 15px;
      margin-bottom: 14px;
    }
    input[type="checkbox"],
    input[type="radio"] {
      width: auto;
      margin-bottom: 0;
      padding: 0;
      border-radius: 4px;
      accent-color: var(--primary);
    }
    input:focus, select:focus {
      outline: 2px solid var(--primary);
      border-color: transparent;
    }
    .extra-branches-wrap { margin-bottom: 4px; }
    .extra-branches-intro p { margin: 0; }
    .extra-branch-card {
      border: 1px solid rgba(0,0,0,.1);
      border-radius: 14px;
      padding: 14px 14px 2px;
      margin-bottom: 12px;
      background: #fafaf8;
    }
    .extra-branch-title {
      font-size: 14px;
      font-weight: 800;
      margin: 0 0 10px;
      color: var(--text);
    }
    .extra-branch-card label { margin-top: 2px; }
    .extra-branch-card input { margin-bottom: 10px; }
    .btn-branch-map-toggle {
      width: 100%;
      padding: 12px 14px;
      margin-bottom: 10px;
      border-radius: 12px;
      border: 1px solid rgba(0,0,0,.12);
      background: #fff8f0;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      color: var(--text);
    }
    .btn-branch-map-toggle:hover { border-color: var(--primary); }
    .branch-map-wrap { margin-bottom: 4px; }
    .branch-map-stage {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      border-radius: 16px;
      overflow: hidden;
      background: #ddd;
      border: 1px solid rgba(0,0,0,.1);
      margin-bottom: 8px;
    }
    .branch-map-stage:fullscreen {
      border-radius: 0;
      min-height: 100vh;
      height: 100vh;
    }
    .branch-map-stage:fullscreen .branch-map-viewport-wrap {
      flex: 1;
      min-height: 0;
      height: auto;
    }
    .branch-map-fabs {
      position: absolute;
      right: 10px;
      top: 72px;
      z-index: 15;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .branch-map-fabs button {
      width: 44px;
      height: 44px;
      border-radius: 999px;
      border: none;
      background: #fff;
      box-shadow: 0 2px 10px rgba(0,0,0,.2);
      cursor: pointer;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .branch-map-viewport-wrap {
      position: relative;
      height: 220px;
      min-height: 200px;
      flex: 0 0 auto;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid rgba(0,0,0,.08);
      margin: 0;
      background: #e5e7eb;
    }
    .branch-map-canvas { width: 100%; height: 100%; z-index: 0; }
    .branch-map-wrap .branch-pin-layer {
      pointer-events: none;
      position: absolute;
      inset: 0;
      z-index: 5;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .branch-map-wrap .branch-pin-layer svg {
      width: 44px;
      height: 52px;
      filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
      margin-top: -26px;
    }
    .branch-map-search-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: stretch; }
    .branch-map-search-row input { flex: 1; margin-bottom: 0; min-width: 0; }
    .btn-branch-map-gps {
      flex: 0 0 48px;
      border-radius: 12px;
      border: 1px solid rgba(0,0,0,.12);
      background: #f9fafb;
      cursor: pointer;
      font-size: 18px;
    }
    .btn-branch-map-confirm {
      width: 100%;
      padding: 12px;
      border-radius: 12px;
      border: none;
      background: var(--confirm-pink);
      color: #fff;
      font-weight: 800;
      cursor: pointer;
      margin-bottom: 10px;
    }
    input.branch-address-readonly { background: #f3f4f6; color: #374151; }
    .map-hint {
      font-size: 12px;
      color: var(--muted);
      margin: -6px 0 10px;
      line-height: 1.4;
    }
    /* —— Mapa estilo Perfil / direcciones —— */
    .map-stage {
      position: relative;
      margin-bottom: 14px;
      border-radius: 16px;
      overflow: hidden;
      background: #ddd;
      border: 1px solid rgba(0,0,0,.1);
      display: flex;
      flex-direction: column;
      align-items: stretch;
    }
    .map-stage:fullscreen {
      border-radius: 0;
      min-height: 100vh;
      height: 100vh;
    }
    .map-viewport {
      position: relative;
      width: 100%;
      height: min(52vw, 320px);
      min-height: 240px;
      flex: 0 0 auto;
      z-index: 0;
    }
    .map-stage:fullscreen .map-viewport {
      flex: 1;
      min-height: 0;
      height: auto;
    }
    .map-canvas {
      width: 100%;
      height: 100%;
      z-index: 0;
    }
    .map-loading-state {
      position: absolute;
      inset: 0;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      text-align: center;
      color: #374151;
      background: linear-gradient(135deg, #eef2ff, #f8fafc);
      font-size: 13px;
      line-height: 1.4;
    }
    /* Un dedo: el mapa captura el gesto (no scroll de la página encima del mapa) */
    .map-viewport,
    .map-viewport .map-canvas,
    .map-viewport #map {
      touch-action: none;
    }
    .branch-map-viewport-wrap,
    .branch-map-viewport-wrap .branch-map-canvas {
      touch-action: none;
    }
    .map-block-wrap {
      overscroll-behavior: contain;
    }
    /* Capa cooperativa de Google (clase puede variar según versión del SDK) */
    #map .gm-style-pbc,
    .branch-map-canvas .gm-style-pbc,
    #map [class*="gm-style-pbc"],
    .branch-map-canvas [class*="gm-style-pbc"] {
      display: none !important;
      opacity: 0 !important;
      pointer-events: none !important;
      visibility: hidden !important;
    }
    .map-pin-layer {
      pointer-events: none;
      position: absolute;
      inset: 0;
      z-index: 5;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .map-pin-layer svg {
      width: 48px;
      height: 56px;
      filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
      margin-top: -28px;
    }
    .map-banner {
      position: absolute;
      left: 10px;
      right: 10px;
      top: 10px;
      z-index: 20;
      background: var(--banner-blue);
      border-radius: 16px;
      padding: 10px 12px 10px 10px;
      box-shadow: 0 4px 14px rgba(0,0,0,.2);
      color: #fff;
      font-size: 13px;
      line-height: 1.35;
    }
    .map-banner.hidden { display: none; }
    .map-banner-inner {
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }
    .map-banner-inner strong { display: block; font-size: 15px; margin-bottom: 4px; }
    .map-banner a {
      color: #fff;
      font-weight: 700;
      text-decoration: underline;
      cursor: pointer;
      border: none;
      background: none;
      font-size: inherit;
      padding: 0;
      margin-top: 8px;
      display: inline-block;
    }
    .map-banner-close {
      position: absolute;
      top: 8px;
      right: 8px;
      background: rgba(255,255,255,.2);
      border: none;
      color: #fff;
      width: 28px;
      height: 28px;
      border-radius: 999px;
      cursor: pointer;
      font-size: 18px;
      line-height: 1;
    }
    .map-fabs {
      position: absolute;
      right: 10px;
      top: 120px;
      z-index: 15;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .map-fabs button {
      width: 44px;
      height: 44px;
      border-radius: 999px;
      border: none;
      background: #fff;
      box-shadow: 0 2px 10px rgba(0,0,0,.2);
      cursor: pointer;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .map-fabs button.dark { background: rgba(0,0,0,.35); color: #fff; font-size: 16px; }
    .map-bottom-sheet {
      background: #fff;
      border-radius: 28px 28px 0 0;
      margin-top: -20px;
      position: relative;
      z-index: 10;
      box-shadow: 0 -6px 18px rgba(0,0,0,.12);
      padding: 12px 18px 16px;
      flex: 0 0 auto;
      width: 100%;
    }
    .sheet-handle {
      width: 40px;
      height: 4px;
      background: #d1d5db;
      border-radius: 2px;
      margin: 0 auto 14px;
    }
    .map-bottom-sheet h3 {
      margin: 0 0 12px;
      font-size: 18px;
      font-weight: 800;
      color: #111827;
    }
    .map-bottom-sheet .search-wrap {
      position: relative;
      margin-bottom: 14px;
    }
    .map-bottom-sheet .search-wrap input {
      margin-bottom: 0;
      padding-left: 40px;
      background: #e5e7eb;
      border: none;
    }
    .map-bottom-sheet .search-wrap .search-ico {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      opacity: .55;
      font-size: 18px;
      pointer-events: none;
    }
    .btn-confirm-map {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 28px;
      background: var(--confirm-pink);
      color: #fff;
      font-size: 17px;
      font-weight: 800;
      cursor: pointer;
      font-family: inherit;
    }
    .btn-confirm-map:disabled { opacity: .6; cursor: not-allowed; }
    .location-badge {
      display: none;
      font-size: 12px;
      color: #15803d;
      font-weight: 600;
      margin-bottom: 10px;
    }
    .location-badge.show { display: block; }
    .map-block-wrap.map-collapsed { display: none; }
    .map-reopen-row {
      display: none;
      margin: 0 0 14px;
      font-size: 14px;
    }
    .map-reopen-row.is-visible { display: block; }
    .map-reopen-btn {
      width: 100%;
      padding: 12px 14px;
      border: 1px dashed rgba(0,0,0,.2);
      border-radius: 12px;
      background: #fff;
      color: var(--primary);
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      font-family: inherit;
    }
    .map-reopen-btn:hover { background: #fff8f2; }
    button[type=submit] {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 12px;
      background: var(--primary);
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
    }
    button[type=submit]:disabled { opacity: .6; cursor: not-allowed; }
    .msg { margin-top: 12px; font-size: 14px; }
    .msg.err { color: #b91c1c; }
    a.nav { color: var(--primary); font-weight: 600; }
    .leaflet-container { font-family: inherit; }
    .founder-card-banner {
      background: linear-gradient(135deg, #fff7ed, #ffedd5);
      border: 1px solid #fdba74;
      border-radius: 16px;
      padding: 14px 16px;
      margin-bottom: 16px;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.45;
      color: #7c2d12;
    }
    .legal-details {
      margin: 12px 0 8px;
      padding: 12px 14px;
      border-radius: 14px;
      background: #f9fafb;
      border: 1px solid rgba(0,0,0,.08);
      font-size: 12px;
      line-height: 1.45;
      color: var(--text);
    }
    .legal-details summary {
      cursor: pointer;
      font-weight: 700;
      color: var(--primary);
    }
