/* JEAR TÉCNICA · tienda. Built from the approved draft (canvas «JEAR Tienda · borrador»). */
/* Web fonts served from this site (sitio/fonts, SIL Open Font License 1.1, licences beside them): no request to a
   third party. Variable files from Google Fonts, latin and latin-ext only; one file covers every weight we use. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/outfit-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/outfit-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/instrument-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/instrument-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #101613; --ink-2: #3a423e; --muted: #5f6a65; --line: #e3e7e4; --line-2: #c9d1cc; --soft: #eef1ef;
  --paper: #f6f7f5; --white: #ffffff; --green: #17803f; --green-deep: #0b6e33; --green-soft: #e4f3ea; --green-tint: #f0f7f2;
  --dot: #21a458; --night: #04120b; --night-2: #b8c4be; --amber: #7a4a00; --amber-soft: #fff1dc;
  --display: "Outfit", -apple-system, "Segoe UI", sans-serif; --text: "Instrument Sans", -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max: 1280px; --gut: max(20px, env(safe-area-inset-left, 0px)); --gut-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(33,164,88,0.5); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); flex: none; }
.lab { font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--green); color: #fff; font-weight: 600; font-size: 15.5px; cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.btn:hover { background: var(--green-deep); color: #fff; }
.btn.ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #26302b; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn[disabled] { opacity: .55; cursor: default; }
.lnk { font-weight: 600; color: var(--green-deep); }
.lnk:hover { text-decoration: underline; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--white); font: 500 13.5px var(--mono); cursor: pointer; }
.chip .c { color: var(--muted); font-size: 11px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on .c { color: rgba(255,255,255,.7); }
.chip[disabled] { opacity: .4; cursor: default; }
.tag { display: inline-block; font: 500 12px var(--mono); background: var(--green-soft); color: var(--green-deep); border-radius: 6px; padding: 3px 7px; }
.tag.amber { background: var(--amber-soft); color: var(--amber); }

/* utility bar + header */
.util { background: var(--night); color: #e9efeb; font-size: 13px; }
.util .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.util a { color: #e9efeb; }
.util a:hover { color: #fff; text-decoration: underline; }
.util .langs { display: flex; gap: 10px; }
.util .langs b { color: #fff; }
.util .langs a { color: var(--night-2); }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: #fff; z-index: 31; }
.hdr-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.logo img { width: 84px; height: auto; }
.catbtn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.catbtn svg { width: 18px; height: 18px; }
.srch { flex: 1 1 380px; min-width: 0; position: relative; }
.srch-box { display: flex; align-items: center; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.srch-box:focus-within { border: 2px solid var(--green); box-shadow: 0 0 0 4px rgba(33,164,88,.16); }
.srch-box svg { width: 20px; height: 20px; margin-left: 14px; flex: none; color: var(--muted); }
.srch-box input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 16px; padding: 0 12px; background: transparent; }
.srch-box input::-webkit-search-cancel-button { display: none; }
.srch-box .go { height: 40px; margin-right: 3px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--green); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.sugg { position: absolute; left: 0; right: 0; top: 56px; z-index: 40; background: #fff; border: 1px solid #d5dbd7; border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(4,18,11,.35); padding: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 4px 16px; max-height: min(70vh, 560px); overflow: auto; }
.sugg .grp { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sugg .gh { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 4px; }
.sugg a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; min-width: 0; }
.sugg a:hover, .sugg a.act { background: var(--green-tint); color: var(--ink); }
.sugg a img, .sugg a .ph { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; flex: none; }
.sugg a .t { display: flex; flex-direction: column; min-width: 0; }
.sugg a .t b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg a .t span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg a .n { margin-left: auto; font: 400 13px var(--mono); color: var(--muted); flex: none; }
.sugg .all { grid-column: 1 / -1; justify-content: center; font-weight: 600; color: var(--green-deep); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; }
.sugg .none { grid-column: 1 / -1; padding: 12px 8px; color: var(--ink-2); font-size: 14.5px; }
.hlink { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 10px; font-weight: 600; font-size: 15px; }
.hlink svg { width: 18px; height: 18px; }
.contpill { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border: 1px solid #d5dbd7; border-radius: 12px; font-weight: 600; font-size: 15px; }
.contpill svg { width: 22px; height: 18px; }
.contpill .st { display: flex; flex-direction: column; line-height: 1.15; }
.contpill .st small { font: 400 12px var(--mono); color: var(--muted); }
.contpill.full .st small { color: var(--green-deep); }
.destpill { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid #d5dbd7; border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; }
.destpill svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.destpill .st { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.destpill .st small { font: 400 12px var(--mono); color: var(--muted); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.destpill.full { border-color: var(--green); background: var(--green-tint); }
.destpill.full svg, .destpill.full .st small { color: var(--green-deep); }
.destbox { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 140px); overflow: auto; box-shadow: 0 30px 60px -30px rgba(4,18,11,.35); }
.destbox .wrap { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; padding-bottom: 22px; }
.destbox .dh { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.destbox .dh b { font: 600 19px var(--display); }
.destbox .x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--soft); font-size: 22px; cursor: pointer; }
.destbox .seg { align-self: flex-start; flex-wrap: wrap; }
.dports { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 8px; }
.dports button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font-size: 15px; color: var(--ink); }
.dports button span { font-size: 13px; color: var(--muted); }
.dports button:hover { border-color: var(--green); }
.dports button.on { border: 2px solid var(--green); background: var(--green-tint); padding: 9px 11px; }
.dgh { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dgh.warn { color: #a3271a; }
.dports button.truck { border-color: #6b5bd6; background: #f3f1fd; }
.dports button.truck span { color: #4b3fb0; }
.dports button.consulta { border-style: dashed; border-color: #e0b4ab; background: #fffaf8; }
.dports button.consulta span { color: #9a2a1b; }
.aviso-dest { display: block; border-radius: 12px; padding: 10px 12px; font-size: 14.5px; background: #fff8e8; color: #7a4f00; }
.dnota { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 90ch; }
.dnota button { border: 0; background: none; padding: 0; font: inherit; color: var(--green-deep); text-decoration: underline; cursor: pointer; }
.tag.no-ue, .noue { background: #fff1ee; color: #9a2a1b; }
.noue { display: block; border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }
.mega { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 140px); overflow: auto; box-shadow: 0 30px 60px -30px rgba(4,18,11,.35); }
.mega .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 22px 28px; padding-top: 22px; padding-bottom: 26px; }
.mega h3 { font-size: 17px; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mega h3 span { font: 400 12.5px var(--mono); color: var(--muted); }
.mega ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mega li a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14.5px; }
.mega li a span { color: var(--muted); font-size: 13px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .util .hide-m { display: none; }
  .hdr-row { gap: 10px; }
  .logo img { width: 66px; }
  .catbtn, .hlink { display: none; }
  .burger { display: inline-flex; }
  .destpill { margin-left: auto; height: 44px; padding: 0 10px; gap: 6px; }
  .destpill .st > span { display: none; }
  .destpill .st small { max-width: 11ch; font-size: 12.5px; }
  .destpill:not(.full) .st { display: none; }
  .contpill { height: 44px; padding: 0 12px; gap: 8px; }
  .contpill .st > span { display: none; }
  .srch { order: 5; flex: 1 1 100%; }
  .srch-box .go { display: none; }
  .sugg { top: 54px; grid-template-columns: minmax(0, 1fr); }
}

/* sections */
.sec { padding-top: 56px; padding-bottom: 56px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-h h2 { font-size: clamp(26px, 3vw, 32px); }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 18px; }
.crumbs a { color: var(--ink-2); }

/* home */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.03em; margin-top: 20px; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin-top: 20px; text-wrap: pretty; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .ctas .btn { min-height: 52px; padding: 0 24px; }
.cbox { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px -40px rgba(4,18,11,.45); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cbox-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cbox-h b { font: 600 20px var(--display); }
.badge { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--green-deep); background: var(--green-soft); padding: 4px 8px; border-radius: 999px; }
.bar20 { height: 64px; border: 2px solid var(--ink); border-radius: 4px; display: flex; overflow: hidden; background: repeating-linear-gradient(90deg, #fff 0 13px, var(--soft) 13px 14px); }
.bar20 span { display: block; height: 100%; }
.mini-lines { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mini-lines > div { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--soft); font-size: 14px; }
.mini-lines > div:last-child { border-bottom: 0; }
.mini-lines img { width: 40px; height: 40px; object-fit: contain; }
.mini-lines .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.famgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(228px, 100%), 1fr)); gap: 16px; }
.fam { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.fam .pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--soft); background: #fff; }
.fam .pics img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; }
.fam .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.fam .tt { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fam .tt b { font: 600 19px var(--display); }
.fam .tt span, .fam .sub a span:last-child { font: 400 13px var(--mono); color: var(--muted); flex: none; }
.fam .sub { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.fam .sub a { display: flex; justify-content: space-between; gap: 8px; }
.fam .sub a:hover { text-decoration: underline; }
.sergrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.sercard { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.sercard img { width: 104px; height: 104px; object-fit: contain; }
.sercard .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sercard .t b { font: 600 20px var(--display); }
.sercard .t small { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; }
.sercard .t span { font-size: 14px; color: var(--ink-2); }
.dark { background: var(--night); color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); border-top: 1px solid rgba(255,255,255,.16); }
.steps li { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.steps li i { font: 500 13px var(--mono); font-style: normal; color: #6fd39a; }
.steps li b { font: 600 21px var(--display); }
.steps li span { color: var(--night-2); font-size: 15px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.trust > div { background: var(--paper); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.trust b { font: 600 17px var(--display); }
.trust span { font-size: 14.5px; color: var(--ink-2); }
.ports { display: flex; flex-wrap: wrap; gap: 8px; }
.ports span { border: 1px solid #d5dbd7; border-radius: 999px; padding: 6px 12px; font-size: 14px; }

/* category */
.cat-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 14px 0 22px; }
.cat-top h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.025em; }
.cat-top p { margin-top: 6px; color: var(--ink-2); }
.seg { display: flex; background: var(--soft); border-radius: 10px; padding: 3px; }
.seg button { border: 0; border-radius: 8px; height: 38px; padding: 0 14px; background: transparent; font-weight: 500; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); font-weight: 600; color: var(--ink); }
.sel { height: 42px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; font-weight: 500; font-size: 14px; background: #fff; }
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-bottom: 64px; }
.facets { flex: 1 1 250px; max-width: 290px; display: flex; flex-direction: column; gap: 22px; }
.facets fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.facets legend { font: 600 15px var(--display); margin-bottom: 8px; padding: 0; }
.facets .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.facets label { display: flex; gap: 10px; align-items: center; font-size: 14.5px; cursor: pointer; }
.facets label input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; flex: none; }
.facets label .v { flex: 1; min-width: 0; }
.facets label .c { color: var(--muted); font-size: 13px; }
.facets label.off { color: var(--muted); cursor: default; }
.facets .more { border: 0; background: none; padding: 0; font-weight: 600; font-size: 13.5px; color: var(--green-deep); cursor: pointer; align-self: flex-start; }
.applied { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.applied .ap { display: inline-flex; gap: 8px; align-items: center; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 13.5px; }
.applied .ap button { border: 0; background: rgba(255,255,255,.16); color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.res { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
/* «picked», not «sel»: .sel is the drop-down style (fixed height), and the clash squashed a ticked card on top of the next one. */
.res.picked { border: 2px solid var(--green); padding: 15px; }
.res img, .res .ph { width: 120px; height: 120px; object-fit: contain; }
.res .t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.res .nm { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.res .nm b { font: 600 21px var(--display); }
.res .nm .n { font-size: 14px; color: var(--ink-2); }
.res .at { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.res .at b { font: 500 14px var(--mono); color: var(--ink); }
.res .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
.res .act { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 170px; }
.res .act label { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; }
.res .act label input { accent-color: var(--green); width: 18px; height: 18px; }
.price { display: flex; flex-direction: column; line-height: 1.25; }
.price .from { font-size: 13px; color: var(--muted); }
.price b { font: 600 20px var(--display); }
.price small { font-size: 13px; color: var(--muted); }
.price.ask b { font-size: 16px; color: var(--ink-2); }
.rrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.rrow img, .rrow .ph { width: 64px; height: 64px; object-fit: contain; }
.rrow .t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rrow .t b { font-weight: 600; }
.rrow .t span { font: 400 12.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.compare { margin-top: 18px; background: var(--paper); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.tblwrap { overflow-x: auto; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; }
table.cmp th, table.cmp td { text-align: left; padding: 9px 12px; border-top: 1px solid #dfe5e1; vertical-align: top; }
table.cmp thead th { border-top: 0; font: 600 16px var(--display); }
table.cmp td.k { color: var(--muted); padding-left: 0; }
table.cmp td.v { font-family: var(--mono); font-size: 13.5px; }
.empty { padding: 40px 0; color: var(--ink-2); }
.ph { display: grid; place-items: center; background: var(--paper); border-radius: 10px; color: var(--muted); font: 400 11px var(--mono); text-align: center; padding: 6px; }
@media (max-width: 860px) {
  .facets { max-width: none; flex-basis: 100%; }
  .facets.collapsed fieldset { display: none; }
  .res { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .res img, .res .ph { width: 84px; height: 84px; }
  .res .act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; min-width: 0; }
  .rrow { grid-template-columns: 56px minmax(0, 1fr); }
  .rrow img, .rrow .ph { width: 56px; height: 56px; }
  .rrow > :nth-child(3), .rrow > :nth-child(4) { grid-column: 2; }
}
.ftoggle { display: none; }
@media (max-width: 860px) { .ftoggle { display: inline-flex; } }

/* series */
.s-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 32px 56px; margin-top: 18px; align-items: start; }
.gal { border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff; overflow: hidden; }
.gal img { width: 66%; height: auto; max-height: 92%; object-fit: contain; }
.docs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.docs a, .docs span { display: inline-flex; gap: 8px; align-items: center; border: 1px solid #d5dbd7; border-radius: 10px; padding: 10px 14px; font-size: 14.5px; font-weight: 500; }
.docs span { border-style: dashed; color: var(--muted); font-weight: 400; }
.s-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.s-info h1 { font-size: clamp(32px, 4vw, 44px); margin-top: 6px; }
.s-info .lead { font-size: 18px; color: var(--ink-2); margin-top: 10px; }
.kv4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kv4 > div { padding: 14px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.kv4 > div:nth-child(odd) { border-right: 1px solid var(--line); }
.kv4 > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv4 span { font-size: 13px; color: var(--muted); display: block; }
.kv4 b { font: 600 21px var(--display); display: block; }
.kv4 b.m { font: 500 15.5px var(--mono); }
.kv4 small { font-size: 13px; color: var(--ink-2); display: block; }
.lead-box { background: var(--paper); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.lead-box .g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 14px; }
.lead-box .g3 > div { background: #fff; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.lead-box .g3 span { color: var(--muted); display: block; }
.lead-box .g3 b { font: 500 14px var(--mono); }
.certs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.certs span { border: 1px dashed var(--line-2); border-radius: 999px; padding: 6px 12px; color: var(--muted); }
.chooser { margin-top: 48px; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.chooser-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.chooser-h h2 { font-size: 28px; }
.chooser-h p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.tabs { display: flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.tabs button { height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; }
table.grid { border-collapse: separate; border-spacing: 4px; width: 100%; }
table.grid th { font: 500 13px var(--mono); color: var(--ink-2); padding: 4px 2px; white-space: nowrap; }
table.grid th.rh { text-align: left; font-weight: 600; padding: 4px 8px; }
table.grid td { padding: 0; }
table.grid button { width: 100%; min-width: 46px; height: 44px; border-radius: 9px; border: 1px solid #d5dbd7; background: #fff; cursor: pointer; font: 600 14px var(--mono); }
table.grid button.near { background: #eef6f1; }
table.grid button.on { background: var(--green); border-color: var(--green); color: #fff; }
table.grid button:disabled { background: transparent; border-style: dashed; border-color: var(--soft); cursor: default; }
.axes { display: flex; flex-direction: column; gap: 14px; }
.axes .ax { display: flex; flex-direction: column; gap: 8px; }
.axes .ax b { font: 600 15px var(--display); }
.axes .ax div { display: flex; flex-wrap: wrap; gap: 6px; }
.vtable { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.vtable th { text-align: left; font: 500 12px var(--mono); color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vtable td { padding: 8px 10px; border-bottom: 1px solid var(--soft); }
.vtable tr { cursor: pointer; }
.vtable tr:hover td { background: var(--green-tint); }
.vtable tr.on td { background: var(--green-soft); }
.vtable td.m { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.pick { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; align-items: center; background: var(--green-tint); border-radius: 16px; padding: 18px 20px; }
.pick .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick .who b { font: 600 21px var(--display); overflow-wrap: anywhere; }
.pick .who span { font: 400 13.5px var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.pick .buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pick .note { grid-column: 1 / -1; font-size: 14.5px; color: var(--green-deep); }
.step { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; height: 50px; }
.step button { width: 44px; height: 48px; border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.step input { width: 92px; border: 0; text-align: center; font: 500 16px var(--mono); background: transparent; -moz-appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step .u { font: 400 13px var(--mono); color: var(--muted); padding-right: 10px; }
.s-bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 32px 56px; margin-top: 48px; padding-bottom: 72px; }
.s-bottom h2 { font-size: 24px; margin-bottom: 12px; }
table.spec { border-collapse: collapse; width: 100%; font-size: 15px; }
table.spec th { text-align: left; font-weight: 400; color: var(--muted); padding: 10px 12px 10px 0; width: 42%; vertical-align: top; }
table.spec td { padding: 10px 0; font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
table.spec tr { border-top: 1px solid var(--line); }
table.spec tr:last-child { border-bottom: 1px solid var(--line); }
.desc { color: var(--ink-2); font-size: 15px; margin-top: 14px; white-space: pre-line; }
.rel { display: flex; flex-direction: column; gap: 10px; }
.rel a { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.rel img, .rel .ph { width: 72px; height: 72px; object-fit: contain; }
.rel a span { font-size: 14px; color: var(--muted); }
.rel a em { font-style: normal; color: var(--green-deep); font-weight: 600; }
@media (max-width: 700px) {
  .chooser { padding: 16px; border-radius: 16px; }
  .lead-box .g3 { grid-template-columns: minmax(0, 1fr); }
  .kv4 b { font-size: 18px; }
  .pick .buy { justify-content: stretch; }
  .pick .buy .btn { flex: 1; }
}

/* container */
.fillbox { margin-top: 24px; background: var(--night); color: #fff; border-radius: 22px; padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.fillbox .h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.fillbox .h b { font: 600 24px var(--display); }
.fillbox .h span { font: 400 14px var(--mono); color: var(--night-2); }
.cbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 84px; gap: 16px; align-items: center; }
.cbar > span:first-child { color: var(--night-2); }
.cbar.on > span:first-child { color: #fff; font-weight: 600; }
.cbar .fr { height: 34px; display: flex; overflow: hidden; border-radius: 3px; border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.cbar.on .fr { border-color: #fff; }
.cbar .fr span { display: block; height: 100%; }
.cbar .p { font: 500 16px var(--mono); text-align: right; }
.fillbox small { font-size: 13.5px; color: var(--night-2); }
.c-layout { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; align-items: flex-start; padding-bottom: 72px; }
.c-lines { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; }
.cl { display: grid; grid-template-columns: 14px 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cl .sw { width: 12px; height: 12px; border-radius: 3px; }
.cl img, .cl .ph { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--soft); border-radius: 10px; }
.cl .t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl .t b { font-weight: 600; }
.cl .t .r { font: 400 12.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.cl .t .n { font-size: 13px; color: var(--ink-2); }
.cl .t .n.w { color: var(--amber); }
.cl .q { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.cl .q .step { height: 42px; border-radius: 10px; }
.cl .q .step button { width: 38px; height: 40px; font-size: 20px; }
.cl .q .step input { width: 70px; font-size: 14px; }
.cl .q .vol { min-width: 70px; text-align: right; font: 400 13px var(--mono); color: var(--ink-2); }
.cl .q .rm { border: 0; background: none; color: var(--muted); font-size: 20px; width: 36px; height: 36px; cursor: pointer; border-radius: 8px; }
.cl .q .rm:hover { background: var(--soft); color: var(--ink); }
.paste { margin-top: 22px; border: 1px dashed var(--line-2); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 140px; }
.paste label { font: 600 17px var(--display); }
.paste textarea { font: 400 14px var(--mono); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; resize: vertical; min-height: 92px; }
.paste .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.paste .msg { font-size: 14px; }
.paste .msg.bad { color: #b42318; }
.paste .msg.ok { color: var(--green-deep); }
.c-side { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.sumbox { border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sumbox b.h { font: 600 20px var(--display); }
.sumbox .row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--soft); font-size: 15px; }
.sumbox .row span:last-child { font-family: var(--mono); text-align: right; white-space: nowrap; }
.sumbox .row span:first-child { min-width: 0; }
.sumbox .warn { font-size: 13px; color: var(--amber); }
.sumbox .fine { font-size: 13px; color: var(--muted); }
.paybox { background: var(--paper); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.paybox b { font: 600 16px var(--display); }
.c-empty { padding: 40px 0 72px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (max-width: 700px) {
  .fillbox { padding: 18px; border-radius: 18px; }
  .cbar { grid-template-columns: minmax(0, 1fr) 70px; gap: 6px 10px; }
  .cbar > span:first-child { grid-column: 1 / -1; }
  .cl { grid-template-columns: 10px 52px minmax(0, 1fr); }
  .cl img, .cl .ph { width: 52px; height: 52px; }
  .cl .q { grid-column: 2 / -1; justify-content: space-between; }
  .c-side { max-width: none; }
}

/* request */
.rq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 32px 48px; align-items: start; padding-top: 32px; padding-bottom: 72px; }
.rq h1 { font-size: clamp(32px, 4vw, 38px); }
.rq form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; background: var(--paper); border-radius: 18px; padding: 22px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.fld.wide { grid-column: 1 / -1; }
.fld input, .fld select, .fld textarea { height: 48px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font-size: 16px; font-weight: 400; background: #fff; width: 100%; }
.fld textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(33,164,88,.2); }
.rq .send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.rq .send small { font-size: 13px; color: var(--muted); max-width: 44ch; }
.rq .send small a { text-decoration: underline; color: var(--ink-2); }
.alert { grid-column: 1 / -1; padding: 10px 12px; border-radius: 10px; background: #fde8e7; color: #b42318; font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 18px; }
.tl li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); margin: 5px 7px 0; box-sizing: border-box; }
.tl li.done::before { background: var(--green); border-color: var(--green); }
.tl li.next::before { border-color: var(--green); }
.tl li span { color: var(--ink-2); font-size: 15px; }
.okhead { display: flex; gap: 14px; align-items: center; }
.okhead .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.okhead h2 { font-size: 30px; }
.listbox { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.listbox b { font: 600 16px var(--display); }

/* footer */
.foot { background: var(--night); color: var(--night-2); font-size: 14px; }
.foot .wrap { padding-top: 40px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.foot img { width: 96px; height: auto; }
.foot nav { display: flex; gap: 10px 18px; flex-wrap: wrap; }
.foot a { color: #e9efeb; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .base { width: 100%; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font: 400 12px var(--mono); }

/* toast */
/* Centred with auto margins, not left:50% + translate: that also capped the width at half the screen and squeezed the text into a column on phones. */
.toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: max-content; max-width: min(620px, calc(100vw - 32px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); display: flex; gap: 14px; align-items: center; }
.toast .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast a { color: #8fe0b0; font-weight: 600; white-space: nowrap; }

/* ===================== pedido escrito (opción A del borrador) ===================== */
.hlink.pe-link { padding: 0 16px; border-radius: 12px; background: var(--green-soft); color: var(--green-deep); border-color: transparent; font-weight: 600; }
.hlink.pe-link:hover { background: #d3ecdc; color: var(--green-deep); }
.pe-entrada { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr)); gap: 36px 56px; align-items: start; padding-top: 44px; padding-bottom: 64px; }
.pe-izq { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pe-izq h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.03; letter-spacing: -0.03em; }
.pe-izq .lead { font-size: 18px; color: var(--ink-2); max-width: 56ch; }
.pe-lab { font: 600 15px var(--display); margin-top: 4px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.pe-lab button { border: 0; background: none; padding: 0; color: var(--green-deep); font: 600 14px var(--text); cursor: pointer; }
.pe-lab button:hover { text-decoration: underline; }
.pe-caja { border: 2px solid var(--green); border-radius: 18px; box-shadow: 0 0 0 5px rgba(33,164,88,.14); background: var(--white); overflow: hidden; }
.pe-caja textarea { width: 100%; border: 0; outline: none; resize: vertical; min-height: 230px; padding: 18px 20px; font: 400 17px/1.6 var(--text); background: transparent; display: block; }
.pe-caja textarea::placeholder { color: #8a948f; }
.pe-adj { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.pe-adj span { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13.5px; max-width: 100%; }
.pe-adj span b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.pe-adj button { border: 0; background: var(--white); border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 15px; line-height: 1; }
.pe-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--soft); background: var(--paper); }
.pe-herr { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-h { display: inline-flex; gap: 6px; align-items: center; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font: 500 14px var(--text); cursor: pointer; color: var(--ink); }
.pe-h:hover { border-color: var(--ink); }
.pe-h svg { width: 16px; height: 16px; }
.pe-h.on { background: #fde8e6; border-color: #e5a29b; color: #8c2219; }
.pe-msg { border-radius: 14px; padding: 14px 16px; font-size: 15px; background: var(--amber-soft); color: var(--amber); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pe-msg.bad { background: #fde8e6; color: #8c2219; }
.pe-entiende { display: flex; flex-direction: column; gap: 8px; }
.pe-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; min-height: 32px; }
.pe-chips span { background: var(--paper); border-radius: 999px; padding: 6px 12px; }
.pe-chips span.k { background: var(--green-soft); color: var(--green-deep); font-weight: 600; }
.pe-chips span.w { background: var(--amber-soft); color: var(--amber); }
.pe-chips .vacio { color: var(--muted); background: none; padding: 6px 0; }
.pe-der { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pe-noche { background: var(--night); color: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pe-noche .tt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pe-noche .tt b { font: 600 20px var(--display); }
.pe-noche .sub { color: var(--night-2); font-size: 15px; }
.pe-noche ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.pe-noche li { display: flex; gap: 10px; }
.pe-noche li::before { content: "●"; color: #6fd39a; flex: none; }
.pe-noche a, .pe-noche .lk { color: #8fe0b0; font-weight: 600; font-size: 14.5px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-family: var(--text); }
.pe-noche a:hover, .pe-noche .lk:hover { color: #b6f0cd; text-decoration: underline; }
.pe-noche form { display: flex; flex-direction: column; gap: 8px; }
.pe-noche input { height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; padding: 0 14px; font-size: 15px; }
.pe-noche input::placeholder { color: #93a39b; }
.pe-noche input:focus { outline: none; border-color: #6fd39a; }
.pe-noche .btn { background: #21a458; }
.pe-noche .ok { background: rgba(111,211,154,.12); border: 1px solid rgba(111,211,154,.35); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.pe-badge { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #6fd39a; border: 1px solid rgba(111,211,154,.4); padding: 3px 8px; border-radius: 999px; }
.pe-formas { border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pe-formas b { font: 600 18px var(--display); }
.pe-formas button { text-align: left; font: 400 13.5px var(--mono); background: var(--paper); border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--ink-2); }
.pe-formas button:hover { border-color: var(--line-2); color: var(--ink); }
.pe-formas small { font-size: 13.5px; color: var(--muted); }

/* armando */
.pe-armando { max-width: 640px; margin: 56px auto 80px; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 60px -36px rgba(16,22,19,.35); }
.pe-armando h1 { font-size: 30px; }
.pe-pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.pe-pasos li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); animation: pe-in .25s ease-out; }
.pe-pasos li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.pe-pasos li.now { color: var(--ink); font-weight: 600; }
.pe-pasos li.now::before { background: var(--dot); box-shadow: 0 0 0 0 rgba(33,164,88,.5); animation: pe-pulso 1.2s infinite; }
@keyframes pe-pulso { 0% { box-shadow: 0 0 0 0 rgba(33,164,88,.55); } 100% { box-shadow: 0 0 0 10px rgba(33,164,88,0); } }
@keyframes pe-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pe-tiempo { font: 500 13px var(--mono); color: var(--muted); }

/* la hoja */
.pe-hoja { padding-top: 32px; padding-bottom: 140px; display: flex; flex-direction: column; gap: 22px; }
.pe-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pe-top h1 { font-size: clamp(32px, 4.4vw, 44px); margin-top: 6px; }
.pe-cuenta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.pe-cuenta span { border-radius: 999px; padding: 6px 12px; background: var(--paper); }
.pe-cuenta .ok { background: var(--green-soft); color: var(--green-deep); font-weight: 600; }
.pe-cuenta .ask { background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.pe-cuerpo { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.pe-escrito { background: var(--paper); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 16px; }
.pe-escrito ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pe-escrito li { display: flex; gap: 8px; }
.pe-escrito li span:first-child { font: 500 12px var(--mono); color: var(--muted); padding-top: 2px; min-width: 18px; }
.pe-escrito li.fuera { text-decoration: line-through; color: var(--muted); }
.pe-escrito button { border: 0; background: none; padding: 0; text-align: left; color: var(--green-deep); font: 600 14px var(--text); cursor: pointer; }
.pe-lineas { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pe-nota { border-radius: 14px; background: var(--green-tint); padding: 12px 16px; font-size: 15px; }
.pe-nota.sim { background: var(--amber-soft); color: var(--amber); }
.pe-l { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--white); display: flex; flex-direction: column; gap: 12px; }
.pe-l.ask { border-color: #f2dfb8; }
.pe-l.no { border-color: #f2c9c4; }
.pe-fila { display: grid; grid-template-columns: 22px 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.pe-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); color: #fff; background: var(--green); }
.pe-l.ask .pe-n { background: #b26a00; }
.pe-l.no .pe-n { background: #b0392c; }
.pe-fila img, .pe-fila .ph { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--paper); }
.pe-fila .ph { display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.pe-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pe-t b { font-size: 15.5px; }
.pe-t b a:hover { text-decoration: underline; }
.pe-t .r { font: 400 12.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.pe-t .y { font-size: 13.5px; color: var(--ink-2); }
.pe-t .y.w { color: var(--amber); }
.pe-q { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; }
.pe-q .qb { font: 600 15px var(--mono); border: 1px dashed transparent; background: none; padding: 2px 4px; border-radius: 6px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.pe-q .qb:hover { border-color: var(--line-2); }
.pe-q input { width: 120px; height: 36px; border: 1px solid var(--green); border-radius: 8px; padding: 0 10px; font: 500 14px var(--mono); text-align: right; }
.pe-q .pr { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.pe-q .pr.ask { color: var(--amber); }
.pe-tag { font: 600 11.5px var(--text); border-radius: 999px; padding: 2px 9px; background: var(--green-soft); color: var(--green-deep); }
.pe-l.ask .pe-tag { background: var(--amber-soft); color: var(--amber); }
.pe-l.no .pe-tag { background: #fde8e6; color: #8c2219; }
.pe-preg { background: #fffaf2; border: 1px solid #f2dfb8; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.pe-preg .ops { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-op { min-height: 40px; padding: 8px 14px; border-radius: 10px; cursor: pointer; text-align: left; font: 500 14px var(--text); border: 1px solid #d9c79f; background: var(--white); color: var(--ink); }
.pe-op:hover { border-color: var(--ink); }
.pe-op.on { background: var(--green); border-color: var(--green); color: #fff; }
.pe-op small { display: block; font-weight: 400; opacity: .8; }
.pe-acc { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; padding-left: 36px; }
.pe-acc button, .pe-acc a { border: 0; background: none; padding: 0; color: var(--ink-2); font: 600 13.5px var(--text); cursor: pointer; }
.pe-acc button:hover, .pe-acc a:hover { color: var(--green-deep); text-decoration: underline; }
.pe-alt { border-top: 1px solid var(--soft); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pe-alt .h { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pe-alt .a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; font-size: 14px; padding: 4px 0; }
.pe-alt .a img, .pe-alt .a .ph { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--paper); }
.pe-alt .a .ph { display: grid; place-items: center; font-size: 10px; color: var(--muted); }
.pe-alt .a span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.pe-alt .a small { color: var(--muted); font: 400 12px var(--mono); }
.pe-quitada { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px dashed var(--line-2); border-radius: 14px; padding: 10px 16px; font-size: 14px; color: var(--muted); }
.pe-quitada button { border: 0; background: none; color: var(--green-deep); font: 600 14px var(--text); cursor: pointer; }
.pe-mas { border: 1px dashed var(--line-2); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pe-mas > button { border: 0; background: none; padding: 0; text-align: left; font: 600 15px var(--text); color: var(--green-deep); cursor: pointer; }
.pe-mas form { display: flex; gap: 8px; flex-wrap: wrap; }
.pe-mas input { flex: 1 1 260px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; font-size: 15px; }
.pe-mas input:focus { outline: none; border-color: var(--green); }
.pe-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.pe-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-top: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
.pe-bar .tot { display: flex; flex-direction: column; gap: 2px; }
.pe-bar .tot b { font: 500 20px var(--mono); }
.pe-bar .tot small { font-size: 13px; color: var(--amber); }
.pe-bar .acc { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pe-aprendido { background: var(--night); color: #fff; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.pe-aprendido ul { margin: 0; padding-left: 18px; color: var(--night-2); font-size: 14.5px; }
.pe-aprendido a { color: #8fe0b0; font-weight: 600; }

/* mi cuenta: lo que JEAR sabe de ti */
.mc { padding-top: 36px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 22px; }
.mc-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.mc-top h1 { font-size: clamp(32px, 4.4vw, 44px); margin: 6px 0; }
.mc-top p { color: var(--ink-2); font-size: 17px; max-width: 64ch; }
.mc-top .acc { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-top .acc .rojo { color: #a12a1f; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 18px; }
.mc-sec { border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mc-sec > b { font: 600 20px var(--display); }
.mc-d { background: var(--paper); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.mc-d .f { font-size: 13.5px; color: var(--muted); }
.mc-d .acc { display: flex; gap: 14px; font-size: 13.5px; }
.mc-d .acc button { border: 0; background: none; padding: 0; font: 600 13.5px var(--text); color: var(--green-deep); cursor: pointer; }
.mc-d .acc button.g { color: var(--muted); }
.mc-d textarea { width: 100%; border: 1px solid var(--green); border-radius: 10px; padding: 8px 10px; font: 400 15px var(--text); resize: vertical; }
.mc-vacio { color: var(--muted); font-size: 14.5px; }
.mc-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.mc-datos label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.mc-datos input, .mc-datos select { height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font-size: 15px; color: var(--ink); background: var(--white); }
.mc-dic { display: flex; flex-direction: column; font-size: 15px; }
.mc-dic div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mc-dic div:last-child { border-bottom: 0; }
.mc-dic span { color: #d3dcd7; }
.mc-trampa { background: rgba(178,106,0,.18); border: 1px solid rgba(255,190,90,.4); border-radius: 14px; padding: 14px; font-size: 15px; }
.mc-trampa b { color: #ffcf8a; }
.mc-nunca { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; }
.mc-nunca li { display: flex; gap: 12px; }
.mc-nunca li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-top: 7px; flex: none; }
.mc-nunca li.no::before { background: #a12a1f; }

@media (max-width: 860px) {
  .pe-cuerpo { grid-template-columns: minmax(0, 1fr); }
  .pe-escrito { position: static; }
  .pe-escrito ol { max-height: 180px; overflow: auto; }
}
@media (max-width: 560px) {
  .pe-entrada { padding-top: 28px; gap: 28px; }
  .pe-caja textarea { min-height: 200px; font-size: 16px; padding: 14px 16px; }
  .pe-barra .btn { width: 100%; }
  .pe-fila { grid-template-columns: 22px 52px minmax(0, 1fr); }
  .pe-fila img, .pe-fila .ph { width: 52px; height: 52px; }
  .pe-q { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; width: 100%; text-align: left; }
  .pe-acc { padding-left: 0; }
  .pe-alt .a { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .pe-alt .a .pr { display: none; }
  .pe-bar .wrap { flex-wrap: nowrap; gap: 12px; padding-top: 10px; }
  .pe-bar .tot { min-width: 0; }
  .pe-bar .tot > span { display: none; }
  .pe-bar .tot b { font-size: 17px; }
  .pe-bar .tot small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pe-bar .acc { flex: none; }
  .pe-bar .acc .btn { min-height: 46px; padding: 0 16px; }
  .pe-bar #pe-aprendido { display: none; }
  .pe-armando { margin-top: 28px; padding: 20px; }
}

/* ===================== estado del pedido (opción A) y mis pedidos ===================== */
.mc-tabs { display: flex; gap: 4px; background: var(--paper); border-radius: 12px; padding: 4px; align-self: flex-start; font-size: 14.5px; flex-wrap: wrap; }
.mc-tabs a { padding: 8px 14px; border-radius: 9px; color: var(--ink-2); }
.mc-tabs a[aria-current="page"] { background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; color: var(--ink); }
.mp-sec { display: flex; flex-direction: column; gap: 12px; }
.mp-p { border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) auto; gap: 22px; align-items: center; color: var(--ink); }
.mp-p:hover { border-color: var(--line-2); color: var(--ink); }
.mp-p.toca { border: 2px solid var(--green); padding: 17px 21px; }
.mp-p.fin { background: var(--paper); }
.mp-p .i { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mp-p .r { font: 500 13px var(--mono); color: var(--muted); }
.mp-p .i b { font: 600 21px var(--display); }
.mp-p .d { font-size: 14.5px; color: var(--ink-2); }
.mp-p .m { display: flex; flex-direction: column; gap: 6px; }
.mp-p .t { font-size: 13.5px; color: #b26a00; font-weight: 600; }
.mp-barra { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.mp-barra span { height: 6px; border-radius: 3px; background: var(--line); }
.mp-barra span.h { background: var(--green); }
.mp-barra span.a { background: var(--dot); box-shadow: 0 0 0 3px rgba(33,164,88,.2); }
#estado, #mis-pedidos { padding-top: 28px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.ep-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ep-top h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.05; letter-spacing: -0.03em; margin: 6px 0; }
.ep-top p { font-size: 18px; color: var(--ink-2); max-width: 70ch; }
.ep-top .ac { font-size: 13.5px; color: var(--muted); }
.ep-pasos { border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; overflow-x: auto; }
.ep-pasos ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(96px, 1fr)); }
.ep-pasos li { position: relative; display: flex; flex-direction: column; gap: 6px; padding-right: 8px; }
.ep-pasos .pt { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: #fff; border: 2px solid var(--line-2); box-sizing: border-box; position: relative; z-index: 1; }
.ep-pasos .ln { position: absolute; left: 22px; right: 0; top: 10px; height: 3px; background: var(--line); }
.ep-pasos li.hecho .pt { background: var(--green); border-color: var(--green); }
.ep-pasos li.hecho .ln { background: var(--green); }
.ep-pasos li.ahora .pt { border: 6px solid var(--dot); box-shadow: 0 0 0 5px rgba(33,164,88,.18); }
.ep-pasos li.ahora .ln { background: repeating-linear-gradient(90deg, #a7dcbc 0 6px, transparent 6px 11px); }
.ep-pasos li.no_aplica { opacity: .55; }
.ep-pasos b { font-size: 14.5px; }
.ep-pasos li.ahora b, .ep-pasos li.ahora span:last-child { color: var(--green-deep); }
.ep-pasos li span:last-child { font-size: 13px; color: var(--muted); }
.ep-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.ep-cuerpo .izq, .ep-cuerpo .der { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ep-mapa { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ep-mapa .m { background: #eef4f3; aspect-ratio: 1200 / 520; }
.ep-mapa .m svg { display: block; width: 100%; height: 100%; }
.ep-mapa .ley { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 18px; border-top: 1px solid var(--soft); font-size: 13.5px; color: var(--ink-2); align-items: center; }
.ep-mapa .ley span { display: inline-flex; gap: 8px; align-items: center; }
.ep-mapa .ley i { display: inline-block; width: 22px; height: 3px; background: var(--green); }
.ep-mapa .ley i.r { height: 0; background: none; border-top: 2px dashed #6fb88c; }
.ep-mapa .ley i.z { height: 10px; border-radius: 5px; background: rgba(33,164,88,.25); }
.ep-mapa .ley .b { margin-left: auto; color: var(--muted); }
.ep-envios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.ep-envios article { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ep-envios .h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ep-envios .h b { font: 600 19px var(--display); }
.ep-envios .tg { font: 600 12px var(--text); background: var(--green-soft); color: var(--green-deep); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ep-envios .tg.transbordo, .ep-envios .tg.llegando, .ep-envios .tg.por_salir { background: var(--amber-soft); color: var(--amber); }
.ep-envios .rt { font-size: 14.5px; color: var(--ink-2); }
.ep-envios dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.ep-envios dt { color: var(--muted); }
.ep-envios dd { margin: 0; }
.ep-envios .mono { font-family: var(--mono); font-size: 13px; }
.ep-envios .bs { font-size: 12.5px; color: var(--muted); }
.ep-hist { border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; }
.ep-hist .t, .ep-docs .t, .ep-tuyo .t { font: 600 19px var(--display); margin-bottom: 8px; }
.ep-hist > div { display: grid; grid-template-columns: 70px 14px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--soft); font-size: 14.5px; }
.ep-hist > div:last-child { border-bottom: 0; }
.ep-hist .f { color: var(--muted); font-size: 13.5px; }
.ep-hist .pt { width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-top: 6px; }
.ep-hist .pt.n { background: var(--dot); box-shadow: 0 0 0 4px rgba(33,164,88,.18); }
.ep-toca { background: #fff8ec; border: 1px solid #f0d9ae; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ep-toca .lab { color: var(--amber); }
.ep-toca > b { font: 600 20px/1.25 var(--display); }
.ep-toca > span:not(.lab) { font-size: 14.5px; color: var(--ink-2); }
.ep-agente { display: flex; flex-direction: column; gap: 8px; }
.ep-agente label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.ep-agente input { height: 42px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font-size: 15px; background: var(--white); color: var(--ink); }
.ep-docs, .ep-tuyo { border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.ep-docs > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--soft); font-size: 14px; align-items: center; }
.ep-docs > div:last-of-type { border-bottom: 0; }
.ep-docs button { border: 0; background: none; color: var(--green-deep); font: 600 14px var(--text); cursor: pointer; padding: 0; }
.ep-docs .n { color: var(--muted); font-size: 13px; text-align: right; }
.ep-tuyo dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0 0 8px; }
.ep-tuyo dt { color: var(--muted); }
.ep-tuyo dd { margin: 0; }
.ep-tuyo .lnk { font-size: 14.5px; padding: 3px 0; }
@media (max-width: 960px) {
  .ep-cuerpo { grid-template-columns: minmax(0, 1fr); }
  .mp-p { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mp-p .btn { justify-self: start; }
}
@media (max-width: 560px) {
  .ep-pasos { padding: 16px; }
  .ep-pasos ol { grid-template-columns: repeat(8, 1fr); }
  .ep-pasos li b, .ep-pasos li span:last-child { display: none; }
  .ep-pasos li.ahora b { display: block; position: absolute; top: 30px; left: 0; white-space: nowrap; font-size: 13px; }
  .ep-pasos { padding-bottom: 40px; }
  .ep-mapa .m { aspect-ratio: 720 / 440; }
  .ep-mapa .ley .b { margin-left: 0; }
  .ep-hist > div { grid-template-columns: 56px 12px 1fr; gap: 10px; }
}

/* ---------- 01-11-2026 · home: one-line history strip under the hero (draft inicio B, strip only) ---------- */
.since { border-bottom: 1px solid var(--line); background: #fff; }
.since .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; padding-top: 14px; padding-bottom: 14px; font-size: 14.5px; color: var(--ink-2); }
.since b { font: 600 15px var(--display); color: var(--ink); }
.since .sep { width: 28px; height: 1px; background: var(--line-2); }
@media (max-width: 860px) { .since .sep { display: none; } }

/* ---------- 01-11-2026 · country pages (paises.html, importar-a-*.html; draft país A) ---------- */
.pais .est { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--mono); letter-spacing: .02em; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pais .est::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pais .est.ok { background: var(--green-soft); color: var(--green-deep); }
.pais .est.cons { background: var(--amber-soft); color: var(--amber); }
.pais .est.no { background: var(--soft); color: var(--muted); }
.pais .src { font-size: 12.5px; color: var(--muted); }
.pais .src a { text-decoration: underline; text-underline-offset: 2px; }
.pais .ptop { background: var(--paper); border-bottom: 1px solid var(--line); }
.pais .ptop .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px 56px; padding-top: 8px; padding-bottom: 48px; align-items: start; }
.pais .ptop h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.04; letter-spacing: -.03em; margin-top: 18px; }
.pais .ptop .lead { font-size: 18px; color: var(--ink-2); max-width: 54ch; margin-top: 16px; }
.pais .ptop .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pais .ptop .ports { margin-top: 22px; }
.pais .ptop > .wrap > h1 { margin-top: 8px; }
.pais .ptop > .wrap > .lead { padding-bottom: 40px; }
.pais .pbox { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.pais .pbox h2 { font-size: 19px; margin-bottom: 4px; }
.pais .pbox .sub { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.pais .famlist { list-style: none; margin: 0; padding: 0; }
.pais .famlist li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.pais .famlist li:first-child { border-top: 0; }
.pais .famlist b { font-weight: 600; font-size: 15.5px; }
.pais .famlist .c { font-size: 13px; color: var(--muted); margin-left: 8px; }
.pais .famlist small { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; max-width: 46ch; }
.pais .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; }
.pais .certrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pais .certrow b { font: 500 14px var(--mono); }
.pais .note { background: var(--paper); border-radius: 16px; padding: 22px 24px; align-self: start; }
.pais .note h3 { font-size: 20px; margin-bottom: 8px; }
.pais .note p { color: var(--ink-2); font-size: 15px; margin-bottom: 12px; max-width: 62ch; }
.pais .tar { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0 12px; }
.pais .tar th { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line-2); }
.pais .tar td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pais .tar .r { text-align: right; white-space: nowrap; }
.pais .endcta { border-top: 1px solid var(--line); }
.pais .endcta .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 36px; }
.pais .endcta b { font: 600 22px var(--display); }
.pais .preg { margin-bottom: 32px; }
.pais .preg h2 { font-size: clamp(22px, 2.6vw, 26px); margin-bottom: 12px; }
.pais .plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.pais .plist a { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pais .plist a:hover { border-color: var(--green); }
.pais .plist b { font-weight: 600; font-size: 15.5px; }
.pais .plist span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) {
  .pais .ptop .grid, .pais .two { grid-template-columns: minmax(0, 1fr); }
  .pais .certrow { grid-template-columns: minmax(0, 1fr) auto; }
  .pais .certrow b { grid-column: 1 / -1; }
  .pais .famlist .c { display: block; margin-left: 0; }
  .pais .tar { font-size: 13.5px; }
  .pais .tar th:nth-child(2), .pais .tar td:nth-child(2) { display: none; }
}

/* ---------- 01-11-2026 · order page, option A: map + one card per shipment with its 7 milestones (when Gestión sends «hitos») ---------- */
.ep-mapa .ley i.mar { width: 12px; height: 12px; border-radius: 50%; background: #17803f; box-shadow: 0 0 0 3px rgba(33,164,88,.2); }
.ep-mapa .ley i.pto { width: 12px; height: 12px; border-radius: 50%; background: none; border: 2.5px solid #17803f; box-sizing: border-box; }
.ep-mapa .ley i.fab { width: 12px; height: 12px; border-radius: 50%; background: none; border: 2px dashed #8a9a92; box-sizing: border-box; }
.ep-mapa .ley.a .b { flex-basis: 100%; margin-left: 0; font-size: 12.5px; }
.bz-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 12.5px var(--text); flex: none; box-sizing: border-box; }
.bz-num.mar { background: #17803f; color: #fff; }
.bz-num.puerto { border: 2.5px solid #17803f; color: #17803f; }
.bz-num.fabrica { border: 2px dashed #8a9a92; color: #5d6b64; }
.bz-num.llegado { background: var(--ink); color: #fff; }
.bz-tg { font: 600 12px var(--text); border-radius: 999px; padding: 3px 10px; white-space: nowrap; background: var(--green-soft); color: var(--green-deep); }
.bz-tg.toca { background: var(--amber-soft); color: var(--amber); }
.bz-tg.fabrica, .bz-tg.puerto { background: var(--soft); color: var(--ink-2); }
.bz-toca .acc { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.a-env { display: flex; flex-direction: column; gap: 14px; }
.a-e { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.a-e.toca { border: 2px solid #e9b860; padding: 17px; }
.a-e .h { display: flex; gap: 10px; align-items: center; }
.a-e .h b { font: 600 18px var(--display); }
.a-e .h .bz-tg { margin-left: auto; }
.a-e .rt { font-size: 14px; color: var(--muted); margin-top: -6px; padding-left: 34px; }
.a-e .g { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.a-e .g b { font: 600 24px var(--display); }
.a-e .g span { color: var(--ink-2); font-size: 15px; }
.a-e .ah { font-size: 14.5px; color: var(--ink-2); }
.a-e .bs { font-size: 12.5px; color: var(--muted); }
.a-tr { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.a-tr li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-right: 6px; }
.a-tr .pt { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); box-sizing: border-box; position: relative; z-index: 1; display: grid; place-items: center; color: #fff; font-size: 11px; }
.a-tr .ln { position: absolute; left: 18px; right: 0; top: 8px; height: 3px; background: var(--line); }
.a-tr li.hecho .pt { background: var(--green); border-color: var(--green); }
.a-tr li.hecho .ln { background: var(--green); }
.a-tr li.ahora .pt { border: 5px solid var(--dot); box-shadow: 0 0 0 4px rgba(33,164,88,.18); }
.a-tr li.toca .pt { border: 5px solid #d58b0a; box-shadow: 0 0 0 4px rgba(213,139,10,.18); }
.a-tr b { font-size: 13px; font-weight: 600; }
.a-tr span:last-child { font-size: 12px; color: var(--muted); }
.a-tr li.ahora b, .a-tr li.ahora span:last-child { color: var(--green-deep); }
.a-tr li.toca b, .a-tr li.toca span:last-child { color: var(--amber); }
.a-e dl { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; margin: 0; }
.a-e dl div { display: flex; gap: 6px; }
.a-e dt { color: var(--muted); }
.a-e dd { margin: 0; }
.a-e .mono { font-family: var(--mono); font-size: 13px; }
.a-bar { display: none; }
@media (max-width: 960px) {
  .ep-cuerpo.envA .izq, .ep-cuerpo.envA .der { display: contents; }
  .ep-cuerpo.envA .ep-toca { order: -1; }
  .ep-cuerpo.envA .ep-hist { order: 4; }
  .ep-cuerpo.envA .ep-docs { order: 5; }
  .ep-cuerpo.envA .ep-tuyo { order: 6; }
}
@media (max-width: 620px) {
  .a-tr { display: none; }
  .a-bar { display: flex; flex-direction: column; gap: 6px; }
  .a-bar .s { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .a-bar .s span { height: 6px; border-radius: 3px; background: var(--line); }
  .a-bar .s span.hecho { background: var(--green); }
  .a-bar .s span.ahora { background: var(--dot); box-shadow: 0 0 0 3px rgba(33,164,88,.2); }
  .a-bar .s span.toca { background: #d58b0a; box-shadow: 0 0 0 3px rgba(213,139,10,.2); }
  .a-bar .t { font-size: 13.5px; color: var(--ink-2); }
  .a-e .g b { font-size: 21px; }
}
@media (max-width: 560px) { #estado.envA { gap: 16px; } #estado.envA .ep-top h1 { font-size: 30px; } #estado.envA .ep-top p { font-size: 16px; } }

/* ---------- 01-11-2026 · container page, freight option A: one line per shipment, «desde» in the summary ---------- */
.flA { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; border-top: 1px dashed rgba(255,255,255,.22); padding-top: 12px; font-size: 15px; }
.flA .k { color: var(--night-2); }
.flA .v { font: 500 16px var(--mono); color: #fff; }
.flA small { flex-basis: 100%; font-size: 13px; color: var(--night-2); }
.flA.no .v { font: 400 15px var(--text); color: #fff; }
/* at 390 px the port drop-down's longest option widened the summary box past the screen (page scrolled sideways) */
@media (max-width: 600px) { .c-side { min-width: 0; } .c-side .sel { width: 100%; min-width: 0; } }
