/* ══════════════════════════════════════════════════════════════
   GoSeller — Agencia Amazon
   Arquetipo: Mouse-Reactive Gradient (marino profundo + un solo acento)
   Paleta extraída del logo (#FF9604) y del banner de LinkedIn.
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Fondo */
  --bg:        #070C1F;
  --bg-2:      #0A1029;
  --bg-3:      #101838;
  --card:      #0E1533;

  /* Tinta */
  --ink:       #FFFFFF;
  --mute:      #AAB4CE;
  --dim:       rgba(255, 255, 255, 0.52);

  /* Marca */
  --accent:    #FF9604;
  --accent-dk: #E07E00;
  --accent-gl: rgba(255, 150, 4, 0.22);

  /* Líneas */
  --line:      rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);

  /* Tipografía */
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Ritmo */
  --pad:  clamp(1.25rem, 5vw, 6.5rem);
  --gap:  clamp(4.5rem, 11vh, 9rem);
  --maxw: 1240px;

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────── Base ─────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;              /* clip, nunca hidden: no rompe sticky */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--mute);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #0A0A0A; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────── Reveal en scroll ─────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Red de seguridad: si un elemento lleva reveal + split, nunca queda invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* ─────────── Botones ─────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              color 0.3s var(--ease);
}
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }

.btn-primary {
  background: var(--accent);
  color: #14100A;
  box-shadow: 0 8px 30px -10px var(--accent-gl);
}
.btn-primary:hover {
  background: #FFA827;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(255, 150, 4, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

/* ─────────── Nav ─────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.05rem var(--pad);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 12, 31, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
  padding-block: 0.7rem;
}

.nav-logo img { width: 140px; height: auto; }
.nav-logo { flex: none; }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-inline: auto;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  color: var(--mute);
  padding-block: 0.35rem;
  transition: color 0.28s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.42s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Página actual: subrayado fijo, sin depender del hover */
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 18px; height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.nav-panel {
  position: fixed;
  inset: 68px 0 auto 0;
  z-index: 89;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem var(--pad) 2.25rem;
  background: rgba(7, 12, 31, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-panel[hidden] { display: none; }
.nav-panel a:not(.btn) {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
}
.nav-panel .btn { margin-top: 1.1rem; }

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8.5rem var(--pad) 2.5rem;
  isolation: isolate;
  overflow: hidden;
}

/* Malla que sigue al cursor */
.hero-mesh {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle 620px at var(--mx, 62%) var(--my, 32%),
      rgba(255, 150, 4, 0.30) 0%, transparent 62%),
    radial-gradient(circle 820px at calc(var(--mx, 62%) + 16%) calc(var(--my, 32%) + 22%),
      rgba(36, 66, 168, 0.42) 0%, transparent 60%),
    radial-gradient(circle 700px at 12% 88%,
      rgba(255, 150, 4, 0.10) 0%, transparent 58%);
  filter: blur(72px) saturate(135%);
  transition: background 0.55s var(--ease-out);
}

/* Trazos de línea del banner */
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}
.hero-lines svg {
  position: absolute;
  top: 0; height: 100%;
  width: clamp(180px, 26vw, 420px);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
}
.hero-lines svg:first-child { left: -5%; }
.hero-lines svg:last-child  { right: -5%; transform: scaleX(-1); opacity: 0.75; }

.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-figure { margin: 0; justify-self: end; }
.hero-figure img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 14px;
  /* Halo cálido para que la foto no flote suelta sobre el marino */
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.07);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 6.1rem);
  font-weight: 800;
  letter-spacing: -0.042em;
  line-height: 0.99;
  max-width: 17ch;
  margin-bottom: 1.9rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.62;
  color: var(--mute);
  margin-bottom: 2.6rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Muro de clientes */
.hero-clients {
  width: 100%;
  max-width: var(--maxw);
  margin: clamp(3.5rem, 8vh, 6rem) auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.clients-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.4rem;
}
.clients-row {
  display: flex;
  flex-wrap: nowrap;              /* nunca parte en dos líneas */
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 2.1rem);
}
.clients-row li { flex: 0 1 auto; min-width: 0; }

.clients-row img {
  /* Cada marca llega con su propio gris y su propio grosor.
     Se aplanan a silueta blanca para que el muro se lea como uno solo. */
  height: 11px;
  width: auto;
  max-width: 66px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.46;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
/* Los logos cuadrados necesitan más alto para pesar lo mismo que un wordmark */
.clients-row img.is-icon { height: 16px; max-width: 22px; }
/* El monograma es ilustración fina: por debajo de este tamaño se empasta */
.clients-row img.is-detailed { height: 19px; max-width: 21px; opacity: 0.4; }

/* En móvil se encogen más para seguir cabiendo en una sola línea */
@media (max-width: 620px) {
  .clients-row { gap: 0.55rem; }
  .clients-row img { height: 9px; max-width: 54px; }
  .clients-row img.is-icon { height: 13px; max-width: 18px; }
  .clients-row img.is-detailed { height: 15px; max-width: 17px; }
}

/* Pantallas muy estrechas (320px): último apretón para no cortar ningún logo */
@media (max-width: 380px) {
  .clients-row { gap: 0.4rem; }
  .clients-row img { height: 8px; max-width: 48px; }
}

.clients-row li:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* ─────────── Estructura de secciones ─────────── */

section { padding-inline: var(--pad); }

.section-head {
  max-width: var(--maxw);
  margin: 0 auto clamp(3rem, 6vh, 4.5rem);
}

.section-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  max-width: 20ch;
}

/* ─────────── Manifiesto ─────────── */

.manifesto {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-block: var(--gap);
}
.manifesto-text {
  font-family: var(--display);
  font-size: clamp(1.375rem, 3.1vw, 2.375rem);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -0.024em;
  color: var(--ink);
  max-width: 24ch;
  text-wrap: pretty;
}
.manifesto-text em { font-style: normal; color: var(--accent); }
.manifesto .section-num { margin-bottom: 2rem; }

/* ─────────── Servicios (filas expandibles) ─────────── */

.services { padding-block: var(--gap); }
.svc-list { max-width: var(--maxw); margin-inline: auto; }

.svc { border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }

.svc-head {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  padding: clamp(1.5rem, 3.2vw, 2.4rem) 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding-left 0.45s var(--ease), color 0.35s var(--ease);
}
.svc-head::before {
  content: "";
  position: absolute;
  inset: 0 -2rem;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 150, 4, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.svc-head:hover::before { opacity: 1; }
.svc-head:hover { padding-left: clamp(0.6rem, 1.6vw, 1.4rem); }

.svc-idx {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.svc-name {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--ink);
}

.svc-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  white-space: nowrap;
}

.svc-sign {
  position: relative;
  width: 20px; height: 20px;
  flex: none;
}
.svc-sign::before, .svc-sign::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 15px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.42s var(--ease), background 0.3s;
}
.svc-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc-head[aria-expanded="true"] .svc-sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc-head[aria-expanded="true"] .svc-sign::before,
.svc-head[aria-expanded="true"] .svc-sign::after { background: var(--accent); }

/* Desplegado por defecto: si el JS fallara, el texto se sigue leyendo.
   La clase .js (que añade main.js al arrancar) es la que activa el plegado. */
.svc-body { overflow: hidden; }
html.js .svc-body {
  max-height: 0;
  transition: max-height 0.55s var(--ease);
}

.svc-body-in {
  padding: 0 0 2.2rem;
  max-width: 62ch;
  margin-left: clamp(0px, 6vw, 90px);
}
.svc-body-in p { margin-bottom: 1.2rem; }

.link-arrow {
  position: relative;
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 2px;
}
.link-arrow::after {
  content: " →";
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.link-arrow:hover::after { transform: translateX(5px); }

/* ─────────── Método ─────────── */

.method {
  padding-block: var(--gap);
  background: var(--bg-2);
  border-block: 1px solid var(--line-soft);
}
.method-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.mcard {
  position: relative;
  background: var(--bg-2);
  padding: clamp(1.75rem, 3vw, 2.6rem);
  transition: background 0.4s var(--ease);
}
.mcard::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.mcard:hover { background: var(--card); }
.mcard:hover::before { transform: scaleX(1); }

.mcard-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.mcard h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.32;
  margin-bottom: 0.85rem;
}
.mcard p { font-size: 0.9688rem; line-height: 1.68; }

/* ─────────── FAQ ─────────── */

.faq { padding-block: var(--gap); }
.faq-list { max-width: 920px; margin-inline: auto; }

.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:first-child { border-top: 1px solid var(--line-soft); }

.faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.faq-head:hover { color: var(--accent); }

.faq-sign {
  position: relative;
  flex: none;
  width: 16px; height: 16px;
}
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.42s var(--ease);
}
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-head[aria-expanded="true"] .faq-sign::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-body { overflow: hidden; }
html.js .faq-body {
  max-height: 0;
  transition: max-height 0.5s var(--ease);
}
.faq-body-in { padding: 0 3rem 1.75rem 0; max-width: 68ch; }

/* ─────────── Contacto ─────────── */

.contact {
  position: relative;
  padding-block: clamp(6rem, 15vh, 11rem);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.contact-glow {
  position: absolute;
  inset: -60% -20% auto -20%;
  height: 150%;
  z-index: -1;
  background: radial-gradient(45% 42% at 50% 62%, rgba(255, 150, 4, 0.20), transparent 72%);
  filter: blur(90px);
  pointer-events: none;
}

.contact-title {
  font-size: clamp(1.875rem, 4.6vw, 3.5rem);
  font-weight: 700;
  max-width: 22ch;
  margin: 0 auto 1.4rem;
}
.contact-sub {
  max-width: 50ch;
  margin: 0 auto clamp(2.75rem, 6vh, 4rem);
  color: var(--mute);
}

.contact-mail {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.0625rem, 3.4vw, 2.375rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  word-break: break-word;
  padding-bottom: 0.35rem;
  margin-bottom: 1.6rem;
}
.contact-mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}
.contact-mail:hover { color: var(--accent); }
.contact-mail:hover::after { transform: scaleX(1); transform-origin: left; }

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--dim);
  margin-bottom: 2.75rem;
}
.contact-meta a:hover { color: var(--accent); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ─────────── Footer ─────────── */

.foot {
  padding: 3rem var(--pad);
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.foot-in {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}
.foot-logo { width: 118px; opacity: 0.85; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.foot-links a { color: var(--dim); transition: color 0.3s var(--ease); }
.foot-links a:hover { color: var(--accent); }
.foot-copy {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
}

/* ─────────── Responsive ─────────── */

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav { justify-content: space-between; }

  .hero { padding-top: 7.5rem; }
  .hero-title { max-width: 14ch; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-figure { justify-self: start; }
  .hero-figure img { max-width: 300px; }

  .svc-head { grid-template-columns: auto 1fr auto; }
  .svc-tag { display: none; }
  .svc-body-in { margin-left: 0; }

  .faq-body-in { padding-right: 1.5rem; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero { min-height: auto; padding-bottom: 3.5rem; }
  .hero-actions .btn { width: 100%; }
  .clients-row { gap: 1rem 1.75rem; }
  .contact-actions .btn { width: 100%; }
}

/* Solo se desactiva lo verdaderamente intrusivo.
   Las microinteracciones NO se tocan: Windows trae reduce activado
   por defecto en muchos equipos y dejaría la web muerta. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { transition: none; }
}

/* ══════════════════════════════════════════════════════════════
   DESPLEGABLE DE SERVICIOS
   Se abre al pasar el ratón, con el teclado (focus) y al tocar
   en pantallas táctiles. "Servicios" sigue siendo un enlace real.
   ══════════════════════════════════════════════════════════════ */

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Puente invisible: evita que el menú se cierre al bajar el ratón hacia él */
.nav-item::after {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 0.9rem;
}

.nav-caret {
  width: 9px;
  height: 6px;
  margin-left: 0.42rem;
  flex: none;
  transition: transform 0.3s var(--ease);
}

.nav-menu {
  position: absolute;
  top: 100%; left: -0.9rem;
  z-index: 5;
  min-width: 272px;
  margin-top: 0.85rem;
  padding: 0.5rem;
  display: grid;
  gap: 1px;
  background: rgba(10, 16, 41, 0.97);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.nav-item:focus-within .nav-menu,
.nav-item.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-item:focus-within .nav-caret,
.nav-item.is-open .nav-caret { transform: rotate(180deg); }

/* El hover sólo donde existe de verdad; en táctil manda el toque */
@media (hover: hover) {
  .nav-item:hover .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-item:hover .nav-caret { transform: rotate(180deg); }
}

.nav-menu a {
  display: block;
  padding: 0.62rem 0.85rem;
  border-radius: 7px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mute);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
/* Anula el subrayado deslizante del menú principal */
.nav-menu a::after { display: none; }

.nav-menu a:hover {
  background: rgba(255, 150, 4, 0.09);
  color: var(--ink);
}
.nav-menu a[aria-current="page"] { color: var(--accent); }

.nav-menu-sep {
  height: 1px;
  margin: 0.35rem 0.5rem;
  background: var(--line-soft);
}

/* ── Menú móvil: los servicios van indentados bajo su epígrafe ── */
.nav-panel-sub {
  display: grid;
  padding-left: 1rem;
  margin: 0.1rem 0 0.7rem;
  border-left: 1px solid var(--line-soft);
}
.nav-panel .nav-panel-sub a {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--mute);
  padding-block: 0.5rem;
  border-bottom: 0;
}
.nav-panel .nav-panel-sub a[aria-current="page"] { color: var(--accent); }
