/* ================== Tokens ================== */
:root {
  --navy-950: #151a0f;
  --navy-900: #222a17;
  --navy-800: #343f22;
  --navy-700: #4A5D23;
  --ink: #1d2215;
  --ink-2: #555c48;
  --ink-3: #868c78;
  --line: #e3e5d8;
  --bg: #ffffff;
  --bg-alt: #F5F1E6;
  --brand: #4A5D23; --accent: #C87B3A;
  --accent-600: #A8622A;
  --accent-50: #F8EEE3;
  --teal: #8fa548;
  --olive: #6b7a3a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(29, 34, 21, .06), 0 8px 24px rgba(29, 34, 21, .07);
  --shadow-lg: 0 20px 50px rgba(21, 26, 15, .3);
  --font: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Poppins", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.hidden, [hidden] { display: none !important; }
.center { text-align: center; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 32px); }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.fine { font-size: .8rem; color: var(--ink-3); }

/* ================== Buttons ================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(200, 123, 58, .35); }
.btn--accent:hover { background: var(--accent-600); }
.btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--sm { padding: .5rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; }

/* ================== Nav ================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(21, 26, 15, .06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 58px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { color: var(--brand); text-decoration: none; font-size: .92rem; font-weight: 600; }
.nav__links a:hover { color: var(--accent-600); }
.nav__links a.btn { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--brand); margin: 5px 0; transition: .2s; }

@media (max-width: 1320px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .5rem 16px 1rem;
    border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(21, 26, 15, .08);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav__links a.btn { margin-top: .75rem; border: 0; }
}

/* ================== Hero ================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, #556330 0%, transparent 60%), var(--navy-900);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero__bg {
  position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { width: 100%; text-wrap: balance; }
.hero .lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero__copy { width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero__cta { justify-content: center; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 4.4rem); margin-bottom: .4rem; line-height: 1.05; }
.hero .hl { color: var(--accent); }
.lead { font-size: 1.12rem; color: rgba(255,255,255,.78); max-width: 38em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 2.2rem; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 3.5rem; }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.hero__stats span { font-size: .85rem; color: rgba(255,255,255,.6); }

.hero__card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 1.6rem; backdrop-filter: blur(8px); box-shadow: var(--shadow-lg);
}
.route { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.route__pt { display: flex; gap: .6rem; align-items: center; }
.route__pt small { display: block; font-size: .7rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.route__pt strong { font-size: .92rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(143,165,72,.2); flex: none; }
.dot--accent { background: var(--accent); box-shadow: 0 0 0 4px rgba(200, 123, 58,.2); }
.route__line { flex: 1; text-align: center; min-width: 60px; }
.route__line svg { width: 100%; height: 24px; }
.route__line path { stroke: rgba(255,255,255,.35); stroke-dasharray: 4 4; stroke-width: 2; fill: none; animation: dash 1.2s linear infinite; }
.route__line circle { fill: var(--accent); }
.route__line small { font-size: .72rem; color: rgba(255,255,255,.55); }
@keyframes dash { to { stroke-dashoffset: -16; } }

.mini-steps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.mini-steps li { position: relative; padding: .55rem .8rem .55rem 2.2rem; border-radius: 10px; background: rgba(255,255,255,.04); font-size: .9rem; color: rgba(255,255,255,.6); }
.mini-steps li::before { content: ""; position: absolute; left: .8rem; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }
.mini-steps li.done { color: rgba(255,255,255,.85); }
.mini-steps li.done::before { background: var(--teal); border-color: var(--teal); }
.mini-steps li.active { color: #fff; background: rgba(200, 123, 58,.15); border: 1px solid rgba(200, 123, 58,.4); }
.mini-steps li.active::before { border-color: var(--accent); background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(200, 123, 58,.6); } 50% { box-shadow: 0 0 0 6px rgba(200, 123, 58,0); } }
.hero__card-note { font-size: .85rem; color: rgba(255,255,255,.6); margin: 0; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* ================== Sections ================== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy-900); color: #fff; }
.section__head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section__head p:last-child { color: var(--ink-2); font-size: 1.05rem; }

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3d9e6; }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.4rem; background: var(--accent-50); border-radius: 12px; margin-bottom: 1rem; }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.panel--dark { background: var(--navy-900); color: #fff; border-color: var(--navy-800); }

/* ================== Forms ================== */
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
legend { font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin-bottom: .8rem; padding: 0; }
legend small { color: var(--ink-3); font-weight: 500; font-family: var(--font); }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.fields--3 { grid-template-columns: repeat(3, 1fr); margin-bottom: .8rem; }
label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink-2); }
label > input, label > select, label > textarea { display: block; margin-top: .35rem; }
.fields label { display: flex; flex-direction: column; justify-content: flex-end; }
input[type="number"], input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 500 .95rem var(--font); color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 123, 58,.15); }
textarea { resize: vertical; }
.hint {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: var(--line); color: var(--ink-2); font-size: .7rem; cursor: help; vertical-align: 1px; margin-left: 2px;
}
@media (max-width: 480px) { .fields { grid-template-columns: 1fr 1fr; } .fields--3 { grid-template-columns: repeat(3, 1fr); } }

.switch { display: flex; flex-direction: row; align-items: center; gap: .7rem; cursor: pointer; font-size: .88rem; color: var(--ink); line-height: 1.35; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { flex: none; width: 40px; height: 22px; border-radius: 999px; background: #cfd5e1; position: relative; transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .switch__ui { background: var(--accent); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { box-shadow: 0 0 0 3px rgba(200, 123, 58,.3); }

/* ================== KPIs ================== */
.kpi small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: .2rem; }
.kpi strong { display: block; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.1; }
.kpi span { font-size: .82rem; color: var(--ink-3); }
.panel--dark .kpi small, .panel--dark .kpi span { color: rgba(255,255,255,.55); }
.kpi--accent strong { color: var(--accent); }

/* ================== Simulador ================== */
.sim { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: start; }
.sim__out { position: sticky; top: 84px; }
.sim__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.4rem; }
.sim__kpis .kpi:first-child { grid-column: 1 / -1; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sim__kpis .kpi:first-child strong { font-size: 2.3rem; }
.stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); margin-bottom: .8rem; }
.stack i { display: block; height: 100%; transition: width .4s ease; }
.legend { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .78rem; color: rgba(255,255,255,.7); }
.legend li { display: flex; align-items: center; gap: .35rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.breakdown { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 1rem; }
.breakdown td { padding: .42rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown td small { color: rgba(255,255,255,.45); }
.breakdown tr.sub td { color: rgba(255,255,255,.6); padding-left: .9rem; }
.breakdown tr.total td { font-weight: 700; border-bottom: 0; padding-top: .7rem; color: #fff; }
.breakdown tr.credit td { color: var(--teal); }
.breakdown tr.sep td { padding: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.sim__out .fine { color: rgba(255,255,255,.45); }
@media (max-width: 960px) {
  .sim { grid-template-columns: 1fr; }
  .sim__out { position: static; }
}

/* ================== Cubicaje ================== */
.cube { display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem; align-items: start; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-alt); border-radius: 10px; padding: 4px; gap: 4px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .55rem 0; border-radius: 8px; font-weight: 600; font-size: .88rem; color: var(--ink-2); transition: .15s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.cont-spec { font-size: .78rem; color: var(--ink-3); margin: .6rem 0 0; }
.presets { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.presets small { color: var(--ink-3); margin-right: .2rem; }
.presets button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .75rem; font: 500 .8rem var(--font); cursor: pointer; color: var(--ink-2); }
.presets button:hover { border-color: var(--accent); color: var(--accent); }

.viewer {
  position: relative; height: 440px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #45512a 0%, var(--navy-950) 75%);
  box-shadow: var(--shadow-lg); touch-action: none;
}
.viewer canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer__loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: .9rem; }
.viewer__tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.viewer__tools button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: .4rem .7rem; font: 500 .8rem var(--font); cursor: pointer; backdrop-filter: blur(6px); }
.viewer__tools button:hover { background: rgba(255,255,255,.2); }
.cube__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.2rem 0; }
.cube__stats .kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.cube__stats .kpi strong { font-size: 1.35rem; }
.bar { height: 6px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin-top: .45rem; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .5s ease; }
.bar i.warn { background: #ef4444; }
.cube__compare h4 { font-size: 1rem; margin-bottom: .8rem; }
.compare { width: 100%; border-collapse: collapse; font-size: .88rem; }
.compare th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: .4rem .4rem; border-bottom: 1px solid var(--line); }
.compare td { padding: .55rem .4rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.compare tr.sel td { background: var(--accent-50); font-weight: 600; }
.compare tr.best td:first-child::after { content: "Recomendado"; margin-left: .5rem; font-size: .68rem; background: var(--teal); color: #fff; padding: .1rem .45rem; border-radius: 999px; font-weight: 600; }
#lclNote { margin: .9rem 0 0; }
@media (max-width: 1000px) {
  .cube { grid-template-columns: 1fr; }
  .cube__stats { grid-template-columns: repeat(2, 1fr); }
  .viewer { height: 360px; }
}
@media (max-width: 520px) { .compare th:nth-child(3), .compare td:nth-child(3) { display: none; } }

/* ================== Incoterms ================== */
.inco__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: 1.2rem; }
.inco__tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .55rem .9rem;
  font: 700 .9rem var(--font-head); cursor: pointer; color: var(--ink-2); transition: .15s;
}
.inco__tabs button:hover { border-color: var(--accent); color: var(--accent); }
.inco__tabs button[aria-selected="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.inco__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.inco__head h3 { font-size: 1.8rem; margin: 0; color: var(--accent); }
.inco__head p { margin: 0; color: var(--ink-2); flex: 1; min-width: 240px; }
.inco__chain { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.inco__chain li {
  position: relative; border-radius: 10px; padding: .8rem .5rem; text-align: center; font-size: .76rem; font-weight: 500;
  min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  transition: background .3s, color .3s;
}
.inco__chain li .ic { font-size: 1.3rem; }
.inco__chain li.seller { background: var(--navy-800); color: #fff; }
.inco__chain li.buyer { background: var(--accent-50); color: var(--accent-600); border: 1px dashed rgba(200, 123, 58,.5); }
.inco__chain li.risk::after {
  content: ""; position: absolute; right: -5px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15); z-index: 1;
}
.inco__chain li.risk-before::before {
  content: ""; position: absolute; left: -5px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15); z-index: 1;
}
.inco__legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .8rem; color: var(--ink-2); margin-bottom: 1rem; }
.inco__legend span { display: flex; align-items: center; gap: .4rem; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw--seller { background: var(--navy-800); }
.sw--buyer { background: var(--accent-50); border: 1px dashed var(--accent); }
.sw--risk { background: #ef4444; width: 4px; }
.inco__tip { background: var(--bg-alt); border-left: 3px solid var(--accent); padding: .8rem 1rem; border-radius: 0 8px 8px 0; font-size: .9rem; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) {
  .inco__chain { grid-template-columns: repeat(3, 1fr); }
  .inco__chain li.risk::after { right: auto; left: 8px; right: 8px; top: auto; bottom: -5px; width: auto; height: 4px; }
  .inco__chain li.risk-before::before { left: 8px; right: 8px; top: -5px; bottom: auto; width: auto; height: 4px; }
}

/* ================== Timeline ================== */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; counter-reset: s; }
.timeline li { position: relative; padding-top: 2.6rem; }
.timeline li::before { content: ""; position: absolute; top: 15px; left: 34px; right: -1rem; height: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline span {
  position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-900); color: #fff; font: 700 .8rem var(--font-head);
}
.timeline h4 { font-size: 1rem; margin-bottom: .35rem; }
.timeline p { font-size: .85rem; color: var(--ink-2); margin: 0; }
@media (max-width: 1000px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 1.5rem 3.2rem; }
  .timeline li::before { top: 34px; bottom: 0; left: 15px; right: auto; width: 2px; height: auto; }
}

/* ================== FAQ ================== */
.faq__search input { padding: 1rem 1.2rem 1rem 2.8rem; border-radius: 999px; font-size: 1rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%237b869c' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 1.1rem center; }
.faq__cats { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 1rem 0 1.6rem; }
.faq__cats button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .9rem; font: 500 .82rem var(--font); cursor: pointer; color: var(--ink-2); }
.faq__cats button.on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary small { display: inline-block; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: var(--accent-50); padding: .1rem .45rem; border-radius: 4px; margin-right: .5rem; vertical-align: 2px; }
.faq .ans { padding: 0 1.2rem 1.1rem; color: var(--ink-2); font-size: .95rem; }
.faq .ans p:last-child, .faq .ans ul:last-child { margin-bottom: 0; }
.faq .ans ul { padding-left: 1.2rem; }
.faq mark { background: #F6E2CF; color: inherit; border-radius: 2px; }
.faq__empty { text-align: center; color: var(--ink-2); }

/* ================== Contacto ================== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact__info p { color: rgba(255,255,255,.7); font-size: 1.05rem; }
.contact__info .eyebrow { color: var(--accent); font-size: .78rem; }
.contact__list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .9rem; }
.contact__list li { display: flex; gap: .8rem; align-items: center; color: rgba(255,255,255,.85); }
.contact__list span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.07); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--accent); }
.contact__form { color: var(--ink); display: grid; gap: .9rem; }
.contact__form .fields { gap: .9rem; }
.simbox textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; background: var(--bg-alt); }
.form__status { margin: 0; font-size: .9rem; text-align: center; min-height: 1.2em; }
.form__status.ok { color: #6b8a2a; }
.form__status.err { color: #dc2626; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 2rem; } }

/* ================== Footer / WA ================== */
.footer { background: var(--navy-950); color: rgba(255,255,255,.6); padding: 1.6rem 0; font-size: .85rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer__brand { display: inline-flex; align-items: center; gap: .6rem; }
.footer__brand { flex-direction: column; align-items: flex-start; gap: .5rem; }
.footer__brand img { height: 64px; width: auto; opacity: .95; }
.footer__inner { align-items: center; }
.footer .fine { color: rgba(255,255,255,.4); }
.wa {
  position: fixed; right: 20px; bottom: 84px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,.4); transition: transform .2s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ================== Modo importar / exportar ================== */
html[data-mode="exp"] .only-imp,
html:not([data-mode="exp"]) .only-exp { display: none !important; }
.swap { animation: swapIn .35s ease both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.modesw { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; }
.modesw button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  font: 600 .95rem var(--font-head); padding: .6rem 1.3rem; transition: background .2s, color .2s, box-shadow .2s;
}
.modesw button span { margin-right: .25rem; }

.modesw--hero { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.modesw--hero button { color: rgba(255,255,255,.75); font-size: 1.02rem; padding: .7rem 1.6rem; }
.modesw--hero button:hover { color: #fff; }
.modesw--hero button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(200, 123, 58,.35); }

.modesw--nav { background: var(--bg-alt); border: 1px solid var(--line); margin-left: auto; margin-right: 1.6rem; }
.modesw--nav button { color: var(--brand); font-size: .84rem; padding: .38rem .9rem; }
.modesw--nav button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.hero__mode { margin-bottom: 1.6rem; }
.hero__mode small { display: block; color: rgba(255,255,255,.6); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }

input:disabled, select:disabled { opacity: .45; cursor: not-allowed; }
.breakdown tr.plus td:last-child { color: #b8d36a; }

@media (max-width: 1240px) {
  .nav__links { gap: 1.1rem; }
  .nav__links a { font-size: .88rem; }
  .modesw--nav { margin-right: 1rem; }
}
@media (max-width: 1320px) {
  .modesw--nav { margin-right: .5rem; }
}
@media (max-width: 480px) {
  .nav__inner { height: 68px; }
  .nav__links { top: 68px; }
  .brand img { height: 42px; }
  .modesw--nav button { font-size: .76rem; padding: .34rem .65rem; }
  .modesw--hero { display: flex; }
  .modesw--hero button { flex: 1; padding: .7rem .5rem; }
}

/* ================== Seguimiento ================== */
.track { padding: 1.6rem; }
.track__tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.track__tabs button {
  flex: 1; border: 0; background: transparent; cursor: pointer; padding: 1rem .8rem;
  font: 600 .98rem var(--font-head); color: var(--ink-3); border-bottom: 3px solid transparent; transition: .15s;
}
.track__tabs button:hover { color: var(--brand); }
.track__tabs button[aria-selected="true"] { color: var(--brand); background: #fff; border-bottom-color: var(--accent); }
.track__pane { padding: 1.5rem; }
.track__help { color: var(--ink-2); font-size: .92rem; margin: 0 0 1rem; }
.track__search { display: flex; gap: .6rem; }
.track__search input { flex: 1; min-width: 0; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.track__search input::placeholder { text-transform: none; letter-spacing: 0; }
.track__msg { font-size: .88rem; color: var(--ink-2); margin: .7rem 0 0; min-height: 1.2em; }
.track__msg.warn { color: #b4471c; }
.box__info { margin-top: 1rem; }
.box__info select { margin-top: .35rem; }
.track__box .fine { margin-top: 1.2rem; }

.op { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; animation: swapIn .35s ease both; }
.op__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.op__head h4 { margin: .35rem 0 .1rem; font-size: 1.15rem; }
.op__head small { color: var(--ink-3); }
.op__tag { display: inline-block; font: 700 .72rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600); background: var(--accent-50); padding: .25rem .55rem; border-radius: 6px; }
.op__canal { flex: none; font: 700 .8rem var(--font-head); color: #fff; background: var(--c); padding: .35rem .7rem; border-radius: 999px; text-transform: capitalize; }
.op__route { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0 .3rem; font-size: .92rem; }
.op__line { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.op__line i { display: block; height: 100%; background: linear-gradient(90deg, var(--olive), var(--accent)); border-radius: 99px; }
.op__where { margin: 1rem 0 0; font-size: 1.05rem; font-weight: 600; }
.op__where small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 500; margin-bottom: .15rem; }
.op__eta { font-weight: 600; color: var(--brand); margin: .6rem 0 0; }
.op__steps { list-style: none; padding: 0; margin: 1.1rem 0; display: grid; gap: .35rem; }
.op__steps li { position: relative; padding: .45rem .8rem .45rem 2.1rem; border-radius: 8px; font-size: .9rem; color: var(--ink-3); }
.op__steps li::before { content: ""; position: absolute; left: .8rem; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.op__steps li.done { color: var(--ink-2); }
.op__steps li.done::before { background: var(--olive); border-color: var(--olive); }
.op__steps li.now { color: var(--ink); font-weight: 600; background: var(--accent-50); }
.op__steps li.now::before { background: var(--accent); border-color: var(--accent); animation: pulse 1.8s infinite; }
.op__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem 1.2rem; margin: 0 0 1rem; }
.op__grid dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.op__grid dd { margin: .1rem 0 0; font-weight: 600; font-size: .92rem; word-break: break-word; }
.op__note { background: var(--bg-alt); border-left: 3px solid var(--accent); padding: .7rem .9rem; border-radius: 6px; font-size: .9rem; margin: 0; }
.op__note small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: .2rem; }
.op__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.op__foot small { color: var(--ink-3); }
.btn--ghost-dark { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.btn--ghost-dark:hover { background: var(--brand); color: #fff; }

@media (max-width: 480px) { .track__search { flex-direction: column; } }
@media (max-width: 600px) { .op__grid { gap: .7rem .8rem; } .op__grid dd { font-size: .84rem; } .op__grid dt { font-size: .66rem; } }

/* ================== Mapa de la portada ================== */
.hero__map { position: relative; width: 100%; max-width: 980px; margin: .8rem auto 1.8rem; display: flex; flex-direction: column; align-items: center; }
.wmap { display: block; width: 100%; height: auto; overflow: visible; }
.wmap__land { fill: rgba(255,255,255,.075); stroke: rgba(255,255,255,.14); stroke-width: .6; }
.wmap__arc { fill: none; stroke: rgba(200, 123, 58,.32); stroke-width: 1.3; stroke-dasharray: 3 6; transition: stroke .3s, stroke-width .3s; }
.wmap__arc.on { stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: none; filter: url(#mapGlow); }
.wmap__ship { fill: #f4c08f; opacity: .55; }
.wmap__ship.on { fill: #fff; opacity: 1; }
.wmap__pt { cursor: pointer; outline: none; }
.wmap__hit { fill: transparent; }
.wmap__ring { fill: rgba(184,211,106,.12); stroke: rgba(184,211,106,.5); stroke-width: 1; transition: .25s; }
.wmap__dot { fill: #b8d36a; transition: .25s; }
.wmap__pt.on .wmap__ring, .wmap__pt:focus-visible .wmap__ring { fill: rgba(200, 123, 58,.2); stroke: var(--accent); }
.wmap__pt.on .wmap__dot { fill: var(--accent); }
.wmap__label { font: 600 18px var(--font-head); fill: rgba(255,255,255,.6); pointer-events: none; transition: fill .25s; }
.wmap__pt.on .wmap__label { fill: #fff; }
.wmap__label--hub { fill: #fff; font-size: 19px; }
.wmap__hubdot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.wmap__pulse { fill: rgba(200, 123, 58,.25); transform-origin: center; transform-box: fill-box; animation: hubPulse 2.4s ease-out infinite; }
@keyframes hubPulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.wmap__info {
  display: inline-flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .2rem .6rem; margin-top: .6rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: .4rem .95rem;
  font-size: .82rem;
}
.wmap__info small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.wmap__info strong { font: 700 .92rem var(--font-head); color: #fff; }
.wmap__info span { color: rgba(255,255,255,.6); }
@media (max-width: 600px) {
  .wmap__label { display: none; }
  .wmap__label--hub { display: block; font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .wmap__pulse { animation: none; } }

/* Portada: título en una línea de lado a lado */
@media (min-width: 900px) { .hero h1 { font-size: min(4.4rem, calc((min(100vw, 1232px) - 32px) / 27)); white-space: nowrap; } }
.modesw button { white-space: nowrap; }
@media (max-width: 480px) { .hero__mode { width: 100%; } }

/* Listas desplegables con el mismo estilo en todos los navegadores (Safari las pinta grises) */
select {
  -webkit-appearance: none; appearance: none; padding-right: 2.2rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555c48' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .9rem center;
}
/* Etiquetas con y sin "?" a la misma altura */
.fields label > span:first-child { display: flex; align-items: center; gap: 4px; min-height: 18px; }
.hint { vertical-align: middle; margin-left: 0; }

/* ================== Cubicaje: varios tamaños ================== */
.seg--2 { grid-template-columns: 1fr 1fr; }
.boxmode { margin-bottom: .9rem; }
.mbox__row { display: grid; grid-template-columns: 12px repeat(5, minmax(0, 1fr)) 22px; gap: 5px; align-items: center; margin-bottom: 6px; }
.mbox__head span { font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; text-align: center; }
.mbox__row i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.mbox__row input { padding: .5rem .25rem; text-align: center; font-size: .86rem; -moz-appearance: textfield; }
.mbox__row input::-webkit-outer-spin-button, .mbox__row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mbox__row button { border: 0; background: none; color: var(--ink-3); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0; }
.mbox__row button:hover { color: #b4471c; }
.mbox__row button:disabled { visibility: hidden; }
.mbox__add { margin-top: .2rem; border: 1px dashed var(--line); background: var(--bg-alt); border-radius: var(--radius-sm); padding: .55rem; width: 100%; font: 600 .84rem var(--font); color: var(--brand); cursor: pointer; }
.mbox__add:hover { border-color: var(--accent); color: var(--accent); }
.mbox__add:disabled { opacity: .5; cursor: not-allowed; }
.mbox__help { font-size: .76rem; color: var(--ink-3); margin: .6rem 0 .8rem; }
.viewer__pager { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: .25rem .4rem; color: #fff; font-size: .8rem; backdrop-filter: blur(6px); }
.viewer__pager button { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 24px; height: 24px; border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1; }
.viewer__pager button:disabled { opacity: .35; cursor: default; }
.viewer__legend { position: absolute; left: 12px; bottom: 12px; z-index: 2; list-style: none; margin: 0; padding: .35rem .6rem; display: flex; flex-wrap: wrap; gap: .25rem .8rem; background: rgba(0,0,0,.35); border-radius: 8px; color: #fff; font-size: .75rem; max-width: calc(100% - 24px); }
.viewer__legend li { display: flex; align-items: center; gap: .35rem; }
.viewer__legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* ================== Una sección por vista ================== */
html[data-view] [data-page] { display: none; }
html[data-view="inicio"] [data-page~="inicio"],
html[data-view="seguimiento"] [data-page~="seguimiento"],
html[data-view="servicios"] [data-page~="servicios"],
html[data-view="herramientas"] [data-page~="herramientas"],
html[data-view="guia"] [data-page~="guia"],
html[data-view="nosotros"] [data-page~="nosotros"],
html[data-view="contacto"] [data-page~="contacto"] { display: block; flex: 1 0 auto; animation: pageIn .3s ease both; }
/* subsecciones: dentro de la vista sólo se ve la pestaña elegida */
html[data-sub="individuos"] [data-sub]:not([data-sub="individuos"]),
html[data-sub="empresas"] [data-sub]:not([data-sub="empresas"]),
html[data-sub="simulador"] [data-sub]:not([data-sub="simulador"]),
html[data-sub="cubicaje"] [data-sub]:not([data-sub="cubicaje"]),
html[data-sub="faq"] [data-sub]:not([data-sub="faq"]),
html[data-sub="incoterms"] [data-sub]:not([data-sub="incoterms"]) { display: none; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
/* que la sección ocupe la pantalla y el pie no quede a mitad de página */
body { min-height: 100vh; display: flex; flex-direction: column; }
.footer { margin-top: auto; }
.nav__links a[aria-current="page"]:not(.btn) { color: var(--accent-600); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 1320px) { .nav__links a[aria-current="page"]:not(.btn) { box-shadow: none; } }

/* ================== Soluciones corporativas ================== */
.card--cta { background: var(--navy-900); border-color: var(--navy-900); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.card--cta:hover { border-color: var(--navy-900); }
.card--cta p { color: rgba(255,255,255,.75); margin-bottom: 1.2rem; }

/* ================== Sobre MD Despachos ================== */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.about__lead { font-size: 1.2rem; font-weight: 600; color: var(--brand); }
.about__text p:not(.eyebrow) { color: var(--ink-2); font-size: 1.05rem; }
.about__text .about__lead { color: var(--brand); }
.about__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.about__card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 2.2rem 1.6rem; }
.about__photo {
  width: 132px; height: 132px; border-radius: 50%; margin-bottom: 1rem; object-fit: cover;
  display: grid; place-items: center; background: var(--navy-900); color: #fff;
  font: 700 2.4rem var(--font-head); box-shadow: 0 0 0 6px var(--accent-50);
}
.about__card strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--brand); }
.about__card span { color: var(--ink-2); font-size: .92rem; }
.about__card em { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--accent-600); font-size: .95rem; width: 100%; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 2rem; } }

/* Nav con más secciones: que entren en una línea */
.nav__links a { white-space: nowrap; }
@media (min-width: 1321px) { .nav__links { gap: 1.05rem; } .nav__links a { font-size: .88rem; } .modesw--nav { margin-left: 1.25rem; margin-right: 1.25rem; } }

/* ================== Marca: logo + eslogan ================== */
.brand { gap: .85rem; }
.brand img { height: 46px; }
.brand__tag {
  display: block; padding-left: .85rem; border-left: 2px solid #C87B3A;
  font: 600 .84rem/1.3 "Poppins", var(--font); color: #4A5D23; letter-spacing: .005em; white-space: nowrap;
}
.footer__logo { display: inline-flex; align-items: center; gap: .9rem; }
.footer__brand .footer__logo img { height: 48px; opacity: 1; }
.footer__logo .brand__tag { color: #F5F1E6; }

/* Selector importar/exportar dentro del menú (sólo en celular) */
.modesw--menu { display: none; }
@media (max-width: 600px) {
  .modesw--nav { display: none; }
  .nav__links .modesw--menu { display: flex; background: var(--bg-alt); border: 1px solid var(--line); margin: .4rem 0 .6rem; }
  .modesw--menu button { flex: 1; color: var(--brand); font-size: .9rem; padding: .55rem; }
  .modesw--menu button[aria-pressed="true"] { background: var(--brand); color: #fff; }
}
@media (max-width: 480px) {
  .brand { gap: .55rem; }
  .brand img { height: 32px; }
  .brand__tag { font-size: .64rem; padding-left: .55rem; }
}
@media (max-width: 360px) { .brand__tag { font-size: .58rem; } .brand img { height: 28px; } }

/* ================== Pestañas de subsección ================== */
.subnav {
  position: sticky; top: 80px; z-index: 40; flex: none !important;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.subnav__inner { display: flex; justify-content: center; gap: .4rem; padding: .7rem 0; }
.subnav a {
  text-decoration: none; padding: .5rem 1.15rem; border-radius: 999px;
  font: 600 .92rem var(--font-head); color: var(--ink-2); border: 1px solid var(--line); background: #fff; transition: .15s;
}
.subnav a:hover { color: var(--accent-600); border-color: var(--accent); }
.subnav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 480px) {
  .subnav { top: 68px; }
  .subnav a { padding: .45rem .8rem; font-size: .84rem; flex: 1; text-align: center; }
}
#proceso { scroll-margin-top: 150px; }

/* Portada: seguimiento y preguntas frecuentes debajo del hero */
html[data-view="inicio"] #preguntas { background: var(--bg); }

/* ================== Menú desplegable (secciones con subsecciones) ================== */
.nav__item { position: relative; }
.nav__parent { display: inline-flex; align-items: center; gap: .35rem; }
.nav__parent::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
@media (min-width: 1321px) {
  .nav__item::after { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 26px; }
  .nav__drop {
    position: absolute; top: calc(100% + 20px); left: 50%; min-width: 210px; padding: .45rem; z-index: 2;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .15s, transform .15s, visibility .15s;
  }
  .nav__drop::before { content: ""; position: absolute; left: 50%; top: -6px; width: 10px; height: 10px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
  .nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav__item:hover .nav__parent::after, .nav__item:focus-within .nav__parent::after { transform: rotate(225deg); margin-top: 3px; }
  .nav__item--closed .nav__drop { opacity: 0 !important; visibility: hidden !important; }
  .nav__drop a { padding: .6rem .85rem; border-radius: 8px; font-size: .9rem; color: var(--ink); white-space: nowrap; }
  .nav__drop a:hover { background: var(--bg-alt); color: var(--accent-600); }
  .nav__drop a[aria-current="page"] { color: var(--accent-600); background: var(--accent-50); }
}
@media (max-width: 1320px) {
  .nav__item { display: flex; flex-direction: column; }
  .nav__parent::after { display: none; }
  .nav__item .nav__parent { border-bottom: 0; padding-bottom: .3rem; }
  .nav__drop { display: flex; flex-direction: column; padding: 0 0 .6rem .9rem; border-bottom: 1px solid var(--line); }
  .nav__drop a { padding: .45rem 0 .45rem .75rem; border-bottom: 0; border-left: 2px solid var(--line); font-weight: 500; color: var(--ink-2); }
  .nav__drop a[aria-current="page"] { color: var(--accent-600); border-left-color: var(--accent); }
}
.nav__drop a[aria-current="page"] { box-shadow: none !important; }

/* Foto del fundador */
img.about__photo { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-alt); }
.about__card { padding-top: 1.6rem; }

/* Encabezado: un poco más ancho que el contenido para que entren logo, eslogan, selector y menú */
.nav .wrap { width: min(1360px, 100% - 48px); }
@media (min-width: 1321px) and (max-width: 1440px) { .brand__tag { font-size: .78rem; } .nav__links { gap: .9rem; } }

/* Portada: menos espacio entre el encabezado y "¿Qué necesitás?" */
.hero { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
