/* Directorio de dojangs de Sin Fronteras (sobre /assets/sitio.css del sitio estatico: mismos colores, letras y botones) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dir .nav a[aria-current="page"] { color: var(--ink); } .dir .nav a[aria-current="page"]::after { transform: scaleX(1) skewX(-24deg); }
.pre { white-space: pre-line; }

/* portada del directorio */
.dir-hero { position: relative; overflow: hidden; padding: 64px 0 46px; }
.dir-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.h-dir { font: 700 clamp(48px, 6.4vw, 92px)/.88 var(--disp); font-style: italic; text-transform: uppercase; letter-spacing: -.012em; margin: 20px 0 18px; }
.h-dir span { display: inline-block; } .h-dir .g { color: var(--green); } .h-dir .r { color: var(--red); }
.dir-stats { display: flex; gap: 0; padding: 6px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.dir-stats div { padding: 16px 26px; display: grid; gap: 4px; text-align: center; } .dir-stats div + div { border-left: 1px solid var(--line); }
.dir-stats b { font: 700 44px/1 var(--disp); font-style: italic; color: var(--green); } .dir-stats div + div b { color: var(--red); }
.dir-stats span { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

/* buscador */
.dir-main { padding: 10px 0 40px; }
.dir-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.dir-search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 99px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.dir-search .ic { color: var(--muted); } .dir-search input { flex: 1; border: 0; background: transparent; font: 15px var(--font); padding: 14px 0; color: var(--ink); outline: none; }
.dir-search:focus-within { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--green); }
.dir-pais select { appearance: none; border: 0; font: 600 14px var(--font); color: var(--ink); padding: 14px 40px 14px 18px; border-radius: 99px; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b717b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line); max-width: 260px; }
.dir-count { font-size: 14px; color: var(--muted); font-weight: 600; }

/* mapa + lista */
.dir-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dir-map-wrap { position: sticky; top: 92px; padding: 7px; border-radius: 28px; background: rgba(12,14,17,.04); box-shadow: inset 0 0 0 1px var(--line); }
.dir-map { height: min(68vh, 620px); border-radius: 22px; overflow: hidden; z-index: 0; background: #e9ece9; }
.dir-list { display: grid; gap: 10px; align-content: start; }
.doj-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(12,14,17,.05), inset 0 0 0 1px var(--line); border-inline-start: 4px solid var(--green); transition: transform .45s var(--spring), box-shadow .3s; }
.doj-card:nth-child(3n+2) { border-inline-start-color: var(--ink); } .doj-card:nth-child(3n) { border-inline-start-color: var(--red); }
.doj-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(12,14,17,.35), inset 0 0 0 1px var(--line); }
.doj-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 4px; }
.doj-logo.ini { display: grid; place-items: center; padding: 0; font: 700 26px var(--disp); font-style: italic; color: #fff; background: linear-gradient(140deg, var(--green), #054d27); box-shadow: none; }
.doj-logo.xl { width: 120px; height: 120px; border-radius: 30px; padding: 8px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); } .doj-logo.xl.ini { font-size: 56px; padding: 0; }
.doj-t { display: grid; gap: 3px; min-width: 0; } .doj-t b { font-size: 17px; font-weight: 750; line-height: 1.2; }
.doj-t small { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 13.5px; } .doj-t small img { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; flex: none; }
.doj-t em { font-style: normal; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doj-go .arr { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .45s var(--spring); }
.doj-go .arr .ic { width: 15px; height: 15px; } .doj-card:hover .doj-go .arr { transform: translate(2px, -2px); }
.dir-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 40px 24px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.dir-empty b { font: 700 24px/1.05 var(--disp); font-style: italic; text-transform: uppercase; } .dir-empty p { margin: 0 0 6px; color: var(--ink-2); max-width: 38ch; }
.dir-empty img { width: 110px; filter: drop-shadow(0 12px 20px rgba(12,14,17,.15)); }
.dir-cta-s { padding-top: 70px; } .dir-cta .eagle { width: min(30%, 300px); }

/* marcadores del mapa (gota con los colores de la marca) */
.sf-pin span { display: block; width: 30px; height: 30px; margin: 2px 0 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--green);
  box-shadow: 0 6px 14px -4px rgba(12,14,17,.55), inset 0 0 0 3px #fff; transition: background .25s, transform .3s var(--spring); }
.sf-pin span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; }
.sf-pin.on span { background: var(--red); transform: rotate(-45deg) scale(1.18); }
.sf-pop { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; color: var(--ink) !important; text-decoration: none; min-width: 180px; }
.sf-pop img { grid-row: span 3; width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sf-pop b { font: 700 15px var(--font); } .sf-pop small { color: var(--muted); font-size: 12px; } .sf-pop em { font-style: normal; color: var(--green); font-weight: 700; font-size: 12.5px; }
.leaflet-container { font-family: var(--font); } .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(12,14,17,.45); }
.leaflet-control-attribution { font-size: 10.5px; }

/* perfil */
.dir-aviso { background: #fff6dd; border-bottom: 1px solid #f1d98a; color: #6b5300; font-weight: 600; font-size: 14.5px; padding: 12px 0; }
.doj-hero { position: relative; overflow: hidden; padding: 30px 0 46px; }
.doj-hero-in { position: relative; z-index: 1; }
.doj-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink-2); margin-bottom: 26px; } .doj-back:hover { color: var(--red); }
.doj-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.h-doj { font: 700 clamp(40px, 5.4vw, 72px)/.92 var(--disp); font-style: italic; text-transform: uppercase; letter-spacing: -.01em; margin: 14px 0 10px; text-wrap: balance; }
.doj-loc { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; color: var(--ink-2); font-weight: 600; }
.doj-loc img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.doj-body { padding: 10px 0 60px; }
.doj-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 22px; align-items: start; }
.doj-card-b { padding: 28px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); margin-bottom: 18px; }
.doj-desc { margin: 0; font-size: 17px; color: var(--ink-2); line-height: 1.7; }
.doj-dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: 22px; overflow: hidden; background: var(--line); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.doj-dl > div { background: var(--paper); padding: 20px 22px; } .doj-dl dt { font: 700 12.5px var(--disp); letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.doj-dl dd { margin: 0; font-size: 16px; font-weight: 600; } .grado { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 99px; background: #111; color: #fff; font-size: 12px; font-weight: 700; }
.doj-side { display: grid; gap: 18px; position: sticky; top: 92px; }
.doj-map-card { padding: 7px 7px 14px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); display: grid; gap: 12px; justify-items: center; }
.doj-map { width: 100%; height: 300px; border-radius: 20px; overflow: hidden; z-index: 0; background: #e9ece9; }
.doj-contact { padding: 26px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.doj-contact h2 { margin: 0; font: 700 26px var(--disp); font-style: italic; text-transform: uppercase; }
.doj-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .doj-contact li a { font-weight: 650; color: var(--ink-2); overflow-wrap: anywhere; } .doj-contact li a:hover { color: var(--red); }

/* entrar / registro */
.acc { position: relative; overflow: hidden; padding: 70px 0 90px; }
.acc-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
.acc-belt { width: 130px; margin-bottom: 18px; filter: drop-shadow(0 16px 26px rgba(12,14,17,.18)); }
.acc-f, .mio-f fieldset { display: grid; gap: 14px; padding: 32px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.acc-f label, .mio-f label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); } .acc-f small, .mio-f small { font-weight: 500; color: var(--muted); }
.acc-f input, .mio-f input:not([type=checkbox]):not([type=file]), .mio-f select, .mio-f textarea { font: 15px var(--font); padding: 13px 14px; border-radius: 12px; border: 0; background: #f4f5f4; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2); width: 100%; resize: vertical; }
.acc-f input:focus, .mio-f input:focus, .mio-f select:focus, .mio-f textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--green), 0 0 0 4px rgba(7,138,67,.12); }
.acc-f .btn { margin-top: 6px; } .acc-alt { margin: 0; text-align: center; color: var(--ink-2); font-size: 14.5px; } .acc-alt a { color: var(--green); font-weight: 700; } .acc-alt.small { font-size: 13px; }
.f-err, .f-ok { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; font-weight: 650; font-size: 14.5px; }
.f-err { background: rgba(225,6,31,.08); color: #a50418; box-shadow: inset 0 0 0 1px rgba(225,6,31,.18); } .f-ok { background: rgba(7,138,67,.09); color: #05622f; box-shadow: inset 0 0 0 1px rgba(7,138,67,.2); }
.acc-f .f-err { margin: 0; }

/* mi dojang */
.mio-head { padding: 44px 0 20px; } .mio-head-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.mio-body { padding: 10px 0 80px; } .mio-body .wrap { max-width: 980px; }
.mio-estado { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); margin-bottom: 14px; border-inline-start: 5px solid var(--muted); }
.mio-estado p { margin: 0; flex: 1 1 260px; color: var(--ink-2); font-weight: 600; }
.pill-e { padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #eee; }
.est-pendiente { border-inline-start-color: #e0a100; } .est-pendiente .pill-e { background: #fff3cf; color: #7a5600; }
.est-aprobado { border-inline-start-color: var(--green); } .est-aprobado .pill-e { background: rgba(7,138,67,.12); color: var(--green); }
.est-rechazado { border-inline-start-color: var(--red); } .est-rechazado .pill-e { background: rgba(225,6,31,.1); color: var(--red); }
.mio-nota { padding: 18px 20px; border-radius: 20px; background: #fffaf0; box-shadow: inset 0 0 0 1px #f0dfb3; margin-bottom: 14px; } .mio-nota p { margin: 6px 0 0; }
.mio-f { display: grid; gap: 18px; } .mio-f fieldset { margin: 0; min-width: 0; }
.mio-f legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font: 700 24px var(--disp); font-style: italic; text-transform: uppercase; }
.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; clear: both; } .fg2 .w { grid-column: 1 / -1; }
.logo-up { display: flex; gap: 16px; align-items: center; padding-top: 6px; } .logo-up .doj-logo { width: 72px; height: 72px; } .logo-up .doj-logo.ini { font-size: 32px; }
.logo-up > div { display: grid; gap: 6px; justify-items: start; } .logo-msg { font-size: 13px; font-weight: 700; } .logo-msg.ok { color: var(--green); } .logo-msg.bad { color: var(--red); }
.pick { display: grid; gap: 8px; } .pick-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.pick-map { height: 360px; border-radius: 18px; overflow: hidden; z-index: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: #e9ece9; }
.pick-map.falta { box-shadow: 0 0 0 3px rgba(225,6,31,.5); } .pick-map.ok { box-shadow: 0 0 0 2px rgba(7,138,67,.45); }
.chk { display: flex !important; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600 !important; }
.chk input { width: 20px; height: 20px; accent-color: var(--green); margin-top: 1px; flex: none; }
.mio-send { display: flex; justify-content: flex-end; }

/* campo de WhatsApp con lada (mismo componente que atrixscore.com) */
.tel-f { display: grid; gap: 6px; } .tel-f > label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.tel { position: relative; display: flex; border-radius: 12px; background: #f4f5f4; box-shadow: inset 0 0 0 1px var(--line-2); }
.tel:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--green), 0 0 0 4px rgba(7,138,67,.12); }
.tel-pais { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 12px; border: 0; background: transparent; color: var(--ink); font: 650 15px var(--font); cursor: pointer; border-right: 1px solid var(--line-2); flex: none; }
.tel-pais img, .tel-lista li img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.tel-chev { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; } .tel.abierto .tel-chev { transform: rotate(180deg); }
.mio-f .tel input[data-tel-num] { flex: 1; min-width: 0; background: transparent !important; box-shadow: none !important; }
.tel-lista { position: absolute; left: 0; top: calc(100% + 6px); z-index: 1000; width: min(320px, 92vw); max-height: 290px; overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px -18px rgba(12,14,17,.4), inset 0 0 0 1px var(--line-2); outline: none; }
.tel-lista li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.tel-lista li b { font-size: 13px; color: var(--muted); } .tel-lista li.on { background: rgba(7,138,67,.1); color: var(--ink); } .tel-lista li[aria-selected="true"] b { color: var(--green); }

@media (max-width: 1080px) {
  .dir-grid { grid-template-columns: 1fr; } .dir-map-wrap { position: relative; top: 0; } .dir-map { height: 420px; }
  .doj-grid { grid-template-columns: 1fr; } .doj-side { position: static; }
  .acc-in { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .dir-hero { padding: 40px 0 30px; } .dir-hero-in { grid-template-columns: 1fr; gap: 24px; }
  .dir-hero .brush.g { left: -74%; } .dir-hero .brush.r { right: -72%; } .doj-hero .brush, .acc .brush { opacity: .25; }
  .dir-pais, .dir-pais select { width: 100%; max-width: none; } .dir-map { height: 340px; }
  .doj-card { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 12px; gap: 12px; } .doj-logo { width: 48px; height: 48px; }
  .doj-dl { grid-template-columns: 1fr; } .doj-logo.xl { width: 92px; height: 92px; border-radius: 24px; }
  .acc-f, .mio-f fieldset { padding: 22px 18px; } .fg2 { grid-template-columns: 1fr; } .pick-map { height: 300px; }
  .mio-send .btn { width: 100%; } .dir-cta .eagle { width: 170px; }
}
.doj-dl > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mio-head .wrap { max-width: 980px; }
