/* =========================================================
   NexusXNexus · Landing
   Todos los colores y la tipografía se cambian aquí (:root)
   ========================================================= */

:root {
  /* Marca */
  --red: #e61b06;
  --purple: #6607ca;
  --ink: #0b0a0c;

  /* Tintes */
  --red-tint: #fde8e5;
  --purple-tint: #efe4fb;
  --grey-tint: #ece9f1;

  /* Texto y superficies */
  --text: #2b2930;          /* texto fuerte */
  --text-muted: #55525c;    /* texto secundario */
  --border: #e4e1ea;
  --accent-dark: #ff8574;   /* acento sobre fondo oscuro */
  --bg: #ffffff;

  --hairline: linear-gradient(90deg, var(--red), var(--purple));

  /* Tipografía */
  --font: "Viga", system-ui, sans-serif;

  /* Medidas */
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-synthesis: none;      /* Viga solo tiene un peso: no fingir negritas */
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, strong, b, th { font-weight: 400; }
h1, h2, h3 { line-height: 1.1; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.t-red { color: var(--red); }
.t-purple { color: var(--purple); }

/* ---------- Iconos ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 32px; height: 32px; }

/* ---------- Hairline ---------- */
.hairline {
  height: 3px;
  background: var(--hairline);
}
.hairline-sep { border-radius: 3px; }

/* ---------- Logo en texto vivo ---------- */
.logo {
  font-family: var(--font);
  font-size: 1.375rem;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.logo-x { color: var(--red); }
.logo:has(.logo-mark) { display: inline-flex; align-items: center; gap: .6rem; }
.logo-mark { width: 36px; height: 36px; }
.logo-dark { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.2;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(230, 27, 6, .55);
}
.btn-primary:hover {
  background: #c81704;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(230, 27, 6, .6);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: #fff; }

.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle { order: 2; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* Selector de idioma (ES | EN) */
.lang-switch {
  order: 1;
  margin-left: auto;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 36px;
  padding: 0 .6rem;
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.lang-switch a:hover { color: var(--ink); background: var(--grey-tint); }
.lang-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.lang-switch abbr { text-decoration: none; cursor: inherit; }

/* Móviles estrechos: logo algo más pequeño y solo se muestra el otro idioma */
@media (max-width: 479px) {
  .header-inner { gap: .6rem; }
  .logo { font-size: 1.15rem; }
  .logo:has(.logo-mark) { gap: .45rem; }
  .logo-mark { width: 30px; height: 30px; }
  .lang-switch a[aria-current="page"] { display: none; }
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menú móvil */
.site-nav {
  position: absolute;
  top: calc(100% + 0px);
  left: 0; right: 0;
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem var(--gutter) 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 30px -18px rgba(11, 10, 12, .25);
}
.site-nav.is-open { display: flex; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav ul a {
  display: block;
  padding: .75rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.site-nav ul a:hover { color: var(--red); }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .lang-switch { order: 2; margin-left: 0; }
  .site-nav {
    order: 1;
    margin-left: auto;
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { flex-direction: row; gap: 1.75rem; }
  .site-nav ul a {
    padding: .25rem 0;
    border: 0;
    background-image: var(--hairline);
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .25s ease, color .2s ease;
  }
  .site-nav ul a:hover { color: var(--ink); background-size: 100% 2px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-services { background: #f6f4f9; }
.section-purple   { background: var(--purple-tint); }
.section-contact  { background: linear-gradient(135deg, var(--red) 0%, var(--ink) 50%, var(--purple) 100%); }

/* Sección oscura (Cómo trabajamos) */
.section-dark {
  position: relative;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(102, 7, 202, .35), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(230, 27, 6, .22), transparent 70%),
    var(--ink);
  color: rgba(255, 255, 255, .85);
}
.section-dark::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--hairline);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--accent-dark); }
.section-dark :focus-visible { outline-color: var(--accent-dark); }

.section-head { margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); }

.eyebrow {
  display: inline-block;
  margin-bottom: .75rem;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip {
  display: inline-flex;
  box-shadow: 0 2px 8px -4px rgba(11, 10, 12, .15);
  align-items: center;
  gap: .45rem;
  padding: .4rem .85rem;
  font-size: .875rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.chip .icon { width: 16px; height: 16px; }
.chip-ink .icon { color: var(--ink); }
.chip-red .icon { color: var(--red); }
.chip-purple .icon { color: var(--purple); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 9vw, 7rem);
  background: linear-gradient(135deg, var(--purple-tint) 0%, #f8f5fd 40%, #fff6f4 70%, var(--red-tint) 100%);
}
.hero::before {
  /* halo suave de marca */
  content: "";
  position: absolute;
  inset: -20% -30% auto auto;
  width: 70vmax; height: 70vmax;
  background:
    radial-gradient(closest-side, rgba(102, 7, 202, .16), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(230, 27, 6, .12), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.6rem, 8.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.hero-sub {
  margin-top: 1.5rem;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--text-muted);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.hero-art { display: flex; justify-content: center; }
.isotipo-slot {
  position: relative;
  width: min(78vw, 400px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 60px -30px rgba(102, 7, 202, .35),
    0 18px 40px -28px rgba(230, 27, 6, .35);
}
.isotipo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: var(--hairline);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .9;
}
.isotipo-slot > svg,
.isotipo-slot > img { width: 78%; height: auto; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.25fr 1fr; }
  .hero-art { justify-content: flex-end; }
}

/* ---------- Tarjetas (base) ---------- */
.card {
  --c: var(--ink);
  --c-tint: var(--grey-tint);
  --c-shadow: rgba(11, 10, 12, .14);
  position: relative;
  background: #fff;
  border: 1.5px solid var(--c);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px -20px var(--c-shadow);
  transition: translate .25s ease, box-shadow .25s ease;
}
.card:hover {
  translate: 0 -4px;
  box-shadow: 0 22px 40px -22px var(--c-shadow);
}
[data-color="red"]    { --c: var(--red);    --c-tint: var(--red-tint);    --c-shadow: rgba(230, 27, 6, .28); }
[data-color="purple"] { --c: var(--purple); --c-tint: var(--purple-tint); --c-shadow: rgba(102, 7, 202, .28); }
[data-color="ink"]    { --c: var(--ink);    --c-tint: var(--grey-tint);   --c-shadow: rgba(11, 10, 12, .22); }

.card-num {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--c);
}

.label {
  margin-bottom: .35rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c);
}

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Subgrid: "Ideal para" y "Consigues" quedan a la misma altura en las 3 tarjetas */
.service {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  gap: 0;
  overflow: hidden;
}
@supports not (grid-template-rows: subgrid) {
  .service { grid-template-rows: auto 1fr auto auto; }
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: var(--c-tint);
  border-bottom: 1px solid color-mix(in srgb, var(--c) 18%, transparent);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: #fff;
  color: var(--c);
  border: 1.5px solid var(--c);
}
.card-icon .icon { width: 26px; height: 26px; }

.service-body { padding: 1.5rem 1.4rem 1.25rem; }
.service-body h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.service-body p { color: var(--text-muted); }

.service-ideal {
  margin: 0 1.4rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
}
.service-gain {
  margin: .25rem 1.4rem 1.4rem;
  padding: 1rem 1.1rem;
  background: var(--c-tint);
  border-radius: var(--radius-sm);
}
.service-ideal p:not(.label),
.service-gain p:not(.label) { font-size: 1rem; color: var(--text); }

/* ---------- Cómo trabajamos ---------- */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centra la segunda fila (3 + 2) */
  gap: 1.25rem;
  counter-reset: none;
}
.step {
  flex: 0 1 100%;
  padding: 1.5rem 1.5rem 1.6rem;
  border-top-width: 5px;
}
.step .card-num { display: block; margin-bottom: 1rem; font-size: 2.25rem; }

/* En fondo oscuro las tarjetas son translúcidas y los colores se aclaran para mantener contraste */
.section-dark .step {
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(4px);
}
.section-dark .step p { color: rgba(255, 255, 255, .78); }
.section-dark [data-color="red"]    { --c: #ff6a55; --c-shadow: rgba(230, 27, 6, .45); }
.section-dark [data-color="purple"] { --c: #b88af5; --c-shadow: rgba(102, 7, 202, .55); }
.section-dark [data-color="ink"]    { --c: #ffffff; --c-shadow: rgba(255, 255, 255, .18); }
.step h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.step p { color: var(--text-muted); font-size: 1rem; }

@media (min-width: 640px) {
  .step { flex-basis: calc((100% - 1.25rem) / 2); }
}
@media (min-width: 1024px) {
  .step { flex-basis: calc((100% - 2 * 1.25rem) / 3); }
}

/* ---------- Colaboración (bloques de valor) ---------- */
.values {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 768px) {
  .values { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.value {
  padding: 1.5rem 1.5rem 1.75rem;
  background: rgba(255, 255, 255, .7);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 2px solid var(--ink);
}
.value[data-line="purple"] { border-top-color: var(--purple); }
.value .icon { margin-bottom: 1.1rem; color: var(--ink); }
.value .icon.t-red { color: var(--red); }
.value .icon.t-purple { color: var(--purple); }
.value h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.value p { color: var(--text-muted); }

/* ---------- Contacto ---------- */
.contact {
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(11, 10, 12, .6);
  display: grid;
  gap: 2.5rem;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--ink);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--hairline);
}
.contact::after {
  content: "";
  position: absolute;
  right: -20%; bottom: -40%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(102, 7, 202, .35), transparent 70%);
  pointer-events: none;
}
.contact > * { position: relative; z-index: 1; }
.contact :focus-visible { outline-color: var(--accent-dark); }

@media (min-width: 960px) {
  .contact { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: start; }
}

.eyebrow-dark { color: var(--accent-dark); }
.contact-title {
  color: #fff;
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.contact-list { display: grid; gap: .9rem; margin-top: 2rem; }
.contact-list li { display: flex; align-items: center; gap: .85rem; font-size: 1.1rem; }
.contact-list .icon {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--accent-dark);
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.remote {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .82);
}
.remote .icon { margin-top: .2em; color: var(--accent-dark); }

/* Formulario */
.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
}
.contact-form :focus-visible { outline-color: var(--purple); }

.field { display: grid; gap: .35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label { font-size: .95rem; color: var(--ink); }
.optional { color: var(--text-muted); font-size: .85em; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #8a8692; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-tint);
}
.field [aria-invalid="true"] { border-color: var(--red); }

.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: .65rem;
}
.field-check input {
  width: 20px; height: 20px;
  margin: .2rem 0 0;
  accent-color: var(--purple);
}
.field-check label { font-size: .92rem; color: var(--text-muted); }
.field-check label a { color: var(--purple); }
.field-check .field-error { grid-column: 1 / -1; }

.field-error { min-height: 0; font-size: .85rem; color: #c81704; }
.field-error:empty { display: none; }

.form-status { font-size: .95rem; color: var(--text-muted); }
.form-status:empty { display: none; }
.form-status.is-ok { color: #1d7a3a; }
.form-status.is-error { color: #c81704; }

/* ---------- Pie ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
}
.site-footer :focus-visible { outline-color: var(--accent-dark); }

.footer-inner {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2rem;
}
.footer-brand p { margin-top: .6rem; }
.footer-contact { display: grid; gap: .6rem; }
.footer-contact li { display: flex; align-items: center; gap: .6rem; }
.footer-contact .icon { color: var(--accent-dark); width: 18px; height: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
}

/* ---------- Páginas legales ---------- */
.legal { padding-block: 3rem 5rem; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.legal p { margin-bottom: 1rem; color: var(--text-muted); }
.legal .placeholder {
  padding: 1rem 1.2rem;
  background: var(--purple-tint);
  border-left: 3px solid var(--purple);
  border-radius: 6px;
  color: var(--text);
}
.back-link { display: inline-flex; gap: .4rem; align-items: center; margin-bottom: 2rem; color: var(--purple); }

/* ---------- Animaciones de aparición ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease, translate .25s ease, box-shadow .25s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover { translate: none; }
  .btn-primary:hover { transform: none; }
}

/* ---------- Aviso de idioma (según el idioma del navegador) ---------- */
.lang-hint {
  position: fixed;
  z-index: 60;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .85rem;
  padding: .85rem .85rem .85rem 1.1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -18px rgba(11, 10, 12, .6);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.lang-hint::before {
  content: "";
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--hairline);
}
.lang-hint.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.lang-hint > .icon { color: var(--accent-dark); }
.lang-hint p { flex: 1 1 0; min-width: 0; font-size: .95rem; }
/* Móvil estrecho: icono, texto y cerrar arriba; botón debajo a todo el ancho */
.lang-hint-close { order: 2; }
.lang-hint .btn { order: 3; flex: 1 0 100%; }
.lang-hint :focus-visible { outline-color: var(--accent-dark); }
.lang-hint-close {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  color: rgba(255, 255, 255, .75);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.lang-hint-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }

@media (min-width: 480px) {
  .lang-hint { flex-wrap: nowrap; }
  .lang-hint .btn { order: 2; flex: none; }
  .lang-hint-close { order: 3; }
}
@media (min-width: 640px) {
  .lang-hint { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 560px; }
}
