/* Stellorient · sitio público de Vertiza.
   Un solo tema, el oscuro de la marca (memoria «paleta-de-documentos-vertiza»).
   Primero el teléfono; las reglas min-width agregan lo de pantallas grandes. */

:root {
  --fondo: #0A0D13; --sup: #12151C; --sup2: #161A23;
  --texto: #F9F5EB; --suave: #DCD7C9; --apagado: #A5ABBB;
  --linea: #363D4E; --tenue: #1F2430; --ambar: #E8CC8E; --ambar-fondo: #1E232E;
  --sobre-ambar: #1A1508; --ok: #7FDCA1; /* el --ok-texto del tema Noche de la app */
  --dibujo: #4F576B;
  --titulo: "Fraunces", Georgia, "Times New Roman", serif;
  --display: "Onest", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --cuerpo: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ancho: 1120px;
  color-scheme: dark;
}

@font-face { font-family: "Onest"; src: url("fuentes/fuente-onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fuentes/fuente-plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fuentes/fuente-fraunces-Regular.woff") format("woff"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fuentes/fuente-fraunces-SemiBold.woff") format("woff"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fuentes/fuente-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fuentes/fuente-plex-mono-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

* { box-sizing: border-box; }
html { background: var(--fondo); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 16px/1.6 var(--cuerpo); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--texto); }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--titulo); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
figure { margin: 0; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ambar); color: var(--sobre-ambar); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.saltar:focus { top: 12px; }

.col { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 20px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--apagado); }

/* ---------- barra ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(10, 13, 19, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--tenue); }
.nav .col { display: flex; align-items: center; gap: 24px; height: 60px; }
.marca { display: flex; align-items: center; gap: 10px; font: 700 17px var(--display); letter-spacing: -0.02em; }
.marca img, .marca svg { width: 26px; height: 26px; display: block; }
.nav ul { display: none; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--apagado); }
.nav .der { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.idioma { font: 500 12px var(--mono); color: var(--apagado); border: 1px solid var(--linea); border-radius: 999px; padding: 5px 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; font: 600 14px var(--cuerpo); white-space: nowrap; cursor: pointer; border: 0; }
.btn.prim { background: var(--ambar); color: var(--sobre-ambar); }
.btn.prim:hover { background: #EFD59E; color: var(--sobre-ambar); }
.btn.sec { background: transparent; color: var(--texto); border: 1px solid var(--linea); }
.btn.sec:hover { border-color: #3E4659; }
.nav .btn.sec { display: none; }
@media (min-width: 900px) { .nav ul { display: flex; } .nav .btn.sec { display: inline-flex; } }
@media (max-width: 420px) { .nav .btn.prim { padding: 0 12px; font-size: 13px; } .nav .col { gap: 12px; } }

/* ---------- portada ---------- */
.hero { position: relative; padding-top: 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(var(--tenue) 1px, transparent 1px), linear-gradient(90deg, var(--tenue) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
}
.hero .col { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 12px var(--ambar); }
.hero h1 { font-size: clamp(40px, 7.4vw, 84px); line-height: .98; font-weight: 600; max-width: 13ch; }
.hero h1 em, h2 em { font-style: normal; color: var(--apagado); }
.lead { margin-top: 24px; max-width: 54ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--suave); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.escena { position: relative; margin-top: 56px; height: 640px; }
@media (min-width: 900px) { .escena { height: 560px; } }
.halo { position: absolute; left: 50%; top: 40px; width: min(900px, 140vw); height: 520px; transform: translateX(-50%); pointer-events: none; filter: blur(30px);
  background: radial-gradient(closest-side, rgba(90, 100, 130, .45), transparent), radial-gradient(closest-side at 62% 30%, rgba(232, 204, 142, .16), transparent 60%); }

.ventana { position: absolute; left: 0; top: 0; width: 1180px; height: 640px; border-radius: 16px; background: #12161F; border: 1px solid var(--linea); overflow: hidden; display: none;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
  transform: perspective(2400px) rotateX(9deg) rotateY(-7deg) rotateZ(1.2deg); transform-origin: 30% 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 94%); mask-image: linear-gradient(to bottom, #000 50%, transparent 94%); }
@media (min-width: 900px) { .ventana { display: grid; grid-template-columns: 240px 1fr; } }
.ventana .lado { border-right: 1px solid var(--tenue); padding: 16px 12px; background: #0E1118; }
.ventana .lado .t { display: flex; align-items: center; gap: 8px; font: 600 14px var(--display); padding: 4px 8px 16px; }
.ventana .lado .t svg { width: 20px; height: 20px; }
.fila { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13px; color: var(--suave); }
.fila.on { background: #1E232E; color: var(--texto); }
.fila .av { width: 28px; height: 28px; border-radius: 9px; background: var(--sup2); display: grid; place-items: center; font: 600 11px var(--display); color: var(--apagado); flex: none; }
.fila .av svg { width: 12px; height: 12px; }
.fila .n { margin-left: auto; font: 600 10px var(--mono); background: var(--ambar); color: var(--sobre-ambar); border-radius: 999px; padding: 1px 6px; }
.fila small { display: block; color: var(--apagado); font-size: 11.5px; }
.ventana .chat { padding: 18px 40px; display: flex; flex-direction: column; gap: 14px; background: var(--fondo); }
.chat .cab { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--tenue); font: 600 14px var(--display); }
.chat .cab span { font: 400 12px var(--cuerpo); color: var(--apagado); }

.burbuja { max-width: 70%; padding: 11px 15px; border-radius: 18px; font-size: 14px; line-height: 1.5; }
.burbuja.yo { align-self: flex-end; background: #2B3345; border-bottom-right-radius: 6px; }
.burbuja.el { align-self: flex-start; background: #181D27; border: 1px solid #272D3A; border-bottom-left-radius: 6px; color: var(--suave); }
.aprob { align-self: flex-start; width: min(420px, 100%); border: 1px solid #3A3526; background: linear-gradient(180deg, #1A1A26, #14171F); border-radius: 14px; padding: 14px 16px; }
.aprob .mono { color: var(--ambar); font-size: 10.5px; }
.aprob h4 { margin: 6px 0 2px; font: 600 15px var(--display); letter-spacing: -0.01em; }
.aprob p { font-size: 13px; color: var(--apagado); }
.aprob .bts { display: flex; gap: 8px; margin-top: 12px; }
.aprob .bts span { font: 600 12.5px var(--cuerpo); padding: 7px 12px; border-radius: 8px; border: 1px solid var(--linea); color: var(--suave); }
.aprob .bts span:first-child { background: var(--ambar); color: var(--sobre-ambar); border-color: var(--ambar); }
.archivo { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #181D27; border: 1px solid #272D3A; font-size: 13px; }
.archivo b { font-weight: 500; }
.archivo small { color: var(--apagado); font: 400 11px var(--mono); }
.archivo .ic { width: 30px; height: 36px; border-radius: 5px; border: 1px solid #3E4659; display: grid; place-items: end center; padding-bottom: 4px; font: 600 8px var(--mono); color: var(--ambar); }

.telefono { position: absolute; z-index: 2; left: 50%; top: 10px; transform: translateX(-50%); width: 300px; max-width: calc(100vw - 40px); height: 610px; border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #2C3240, #12151D 40%); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px #313848; }
@media (min-width: 900px) { .telefono { left: auto; right: 4%; transform: rotate(2deg); } }
.pantalla { height: 100%; border-radius: 35px; background: var(--fondo); overflow: hidden; display: flex; flex-direction: column; }
.pantalla .isla { width: 92px; height: 26px; border-radius: 20px; background: #000; margin: 9px auto 4px; flex: none; }
.pantalla .cab { display: flex; align-items: center; gap: 9px; padding: 8px 16px 12px; border-bottom: 1px solid var(--tenue); }
.pantalla .cab svg { width: 30px; height: 30px; }
.pantalla .cab b { font: 600 14px var(--display); display: block; }
.pantalla .cab small { font-size: 11px; color: var(--ok); }
.pantalla .cuerpo { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.pantalla .burbuja { font-size: 12.5px; max-width: 84%; padding: 9px 12px; }
.pantalla .aprob { padding: 11px 12px; }
.pantalla .aprob h4 { font-size: 13.5px; }
.pantalla .aprob p { font-size: 11.5px; }
.pantalla .aprob .bts span { font-size: 11.5px; padding: 6px 10px; }
.pantalla .campo { margin: 0 10px 14px; height: 40px; border-radius: 20px; border: 1px solid #303848; display: flex; align-items: center; padding: 0 6px 0 14px; color: var(--apagado); font-size: 12.5px; }
.pantalla .campo i { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--ambar); }

/* ---------- secciones ---------- */
.bloque { border-top: 1px solid var(--tenue); padding-block: 88px; }
@media (min-width: 900px) { .bloque { padding-block: 112px; } }
.titulo-sec { display: grid; gap: 16px; max-width: 640px; }
.titulo-sec h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; font-weight: 600; }
.titulo-sec p { color: var(--suave); font-size: 17px; max-width: 52ch; }

.principios { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 56px; background: var(--tenue); border: 1px solid var(--tenue); border-radius: 16px; overflow: hidden; }
@media (min-width: 640px) { .principios { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .principios { grid-template-columns: repeat(4, 1fr); } }
.principio { background: var(--fondo); padding: 28px 24px 30px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.principio svg { width: 100%; height: 150px; margin-bottom: 14px; }
.principio h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.principio p { color: var(--apagado); font-size: 14.5px; }

.d { fill: none; stroke: var(--dibujo); stroke-width: 1; }
.d-tenue { fill: none; stroke: var(--linea); stroke-width: 1; }
.d-am { fill: none; stroke: var(--ambar); stroke-width: 1.25; }
.d-claro { fill: none; stroke: var(--suave); stroke-width: 1; }
.r-am { fill: var(--ambar); }
.r-dibujo { fill: var(--dibujo); }
.r-sup { fill: var(--sup); stroke: var(--linea); }
.t-svg { fill: var(--apagado); font: 500 11px var(--mono); }
.t-svg.am { fill: var(--ambar); }

.rasgo { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .rasgo { grid-template-columns: 5fr 7fr; } .rasgo.inv { grid-template-columns: 7fr 5fr; } .rasgo.inv .titulo-sec { order: 2; } }
.lienzo { position: relative; min-height: 420px; border-radius: 20px; border: 1px solid var(--tenue); overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(90, 100, 130, .22), transparent 70%), linear-gradient(180deg, #12151D, var(--fondo)); }
.lienzo::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(#252B38 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.lista-rasgos { display: grid; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.lista-rasgos li { display: flex; gap: 12px; color: var(--suave); font-size: 15px; }
.lista-rasgos li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; background: var(--ambar); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

.pila { position: absolute; inset: 0; z-index: 1; }
.pila .aprob { position: absolute; left: 50%; width: min(380px, 84%); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.pila .aprob:nth-child(1) { top: 36px; transform: translateX(-56%) rotate(-3deg) scale(.92); opacity: .55; border-color: var(--linea); }
.pila .aprob:nth-child(2) { top: 122px; transform: translateX(-44%) rotate(1.5deg) scale(.96); opacity: .8; border-color: var(--linea); }
.pila .aprob:nth-child(3) { top: 214px; transform: translateX(-50%); }
.estado { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.estado.ok { color: var(--ok); }
.estado.cambio { color: var(--suave); }

.orbita { position: absolute; inset: 0; z-index: 1; }
.orbita svg { width: 100%; height: 100%; }
.giro { transform-origin: 300px 210px; animation: giro 40s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

.temas { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.temas figure { flex: none; display: none; }
.temas figure:nth-child(-n+3) { display: block; }
@media (min-width: 560px) { .temas figure { display: block; } }
.temas figure:nth-child(odd) { transform: translateY(18px); }
.mini { width: 120px; height: 248px; border-radius: 24px; padding: 6px; background: #212632; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 0 0 0 1px #313848; }
@media (min-width: 560px) { .mini { width: 132px; height: 268px; } }
.mini .p { height: 100%; border-radius: 19px; background: var(--f); display: flex; flex-direction: column; gap: 7px; padding: 22px 8px 8px; }
.mini .b { height: 15px; border-radius: 8px; background: var(--s); border: 1px solid var(--bd); width: 76%; }
.mini .b.y { align-self: flex-end; background: var(--m); border: 0; width: 62%; }
.mini .b.c { width: 48%; }
.mini .b.y.c { width: 44%; }
.mini .k { margin-top: auto; height: 22px; border-radius: 11px; border: 1px solid var(--bd); background: var(--s); position: relative; }
.mini .k::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--a); }
.mini.tinta { --f: #F4F5F8; --s: #FFFFFF; --bd: #E3E6EC; --a: #2F47D8; --m: #2F47D8; }
.mini.noche { --f: #0A0D13; --s: #181D27; --bd: #272D3A; --a: #E8CC8E; --m: #2B3345; }
.mini.salvia { --f: #EEF2EC; --s: #FFFFFF; --bd: #D8E0D6; --a: #1F5E4B; --m: #1F5E4B; }
.mini.consola { --f: #121417; --s: #1C2025; --bd: #262A30; --a: #E8CC8E; --m: #2A2F37; }
.temas figcaption { text-align: center; margin-top: 12px; }

.novedades { margin-top: 48px; border-top: 1px solid var(--tenue); }
.nov { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--tenue); }
@media (min-width: 760px) { .nov { grid-template-columns: 160px 1fr; } }
.nov time { font: 500 12px var(--mono); color: var(--apagado); letter-spacing: .04em; font-variant-numeric: tabular-nums; padding-top: 3px; }
.nov h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.nov p { color: var(--apagado); font-size: 15px; margin-top: 4px; max-width: 62ch; }

.pendiente { margin-top: 40px; border: 1px dashed #6E5F3A; border-radius: 16px; padding: 28px; display: grid; gap: 10px; justify-items: start;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(232, 204, 142, .035) 14px 28px); }
.pendiente p { color: var(--suave); max-width: 60ch; }

.clientes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border: 1px solid var(--linea); border-radius: 18px; background: linear-gradient(120deg, var(--sup), var(--fondo)); }
.clientes .t { display: flex; gap: 16px; align-items: center; min-width: 0; }
.clientes svg { width: 44px; height: 44px; flex: none; }
.clientes h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.clientes p { color: var(--apagado); font-size: 14.5px; }

.cierre { position: relative; overflow: hidden; }
.cierre .halo { top: -40px; left: 70%; width: 700px; height: 500px; }
.cierre .rejilla { display: grid; gap: 40px; position: relative; }
@media (min-width: 960px) { .cierre .rejilla { grid-template-columns: 1fr 1fr; align-items: center; } }
form.demo { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--linea); border-radius: 18px; background: rgba(23, 27, 36, .78); }
form.demo label { display: grid; gap: 6px; font-size: 13px; color: var(--suave); }
form.demo input, form.demo textarea { font: 400 16px var(--cuerpo); color: var(--texto); background: var(--fondo); border: 1px solid #646C82; border-radius: 10px; padding: 11px 12px; width: 100%; }
form.demo input::placeholder, form.demo textarea::placeholder { color: #7F8599; }
form.demo textarea { min-height: 96px; resize: vertical; }
form.demo .btn { min-height: 46px; margin-top: 4px; }
form.demo .nota { color: var(--apagado); font-size: 13px; }
form.demo .nota a { color: var(--texto); text-decoration: underline; text-underline-offset: 3px; }
.aviso-envio { color: var(--ok); font-size: 13.5px; }

footer { border-top: 1px solid var(--tenue); padding-block: 56px 40px; }
.pie { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .pie { grid-template-columns: 2fr repeat(3, 1fr); } }
.pie .firma { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; }
@media (min-width: 860px) { .pie .firma { grid-column: auto; } }
.pie .firma p { color: var(--apagado); font-size: 13.5px; max-width: 30ch; }
.pie h2 { font: 500 13px var(--cuerpo); letter-spacing: 0; color: var(--texto); margin: 0 0 14px; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--apagado); }
.privacidad { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--tenue); color: var(--apagado); font-size: 13px; }

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

/* ---------- documentos legales (privacy, terms) ---------- */
.documento { padding-block: 56px 72px; max-width: 760px; }
.documento h1 { font: 600 clamp(30px, 4.4vw, 42px) / 1.06 var(--titulo); margin-bottom: 28px; }
.documento h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 4px; padding-top: 24px; border-top: 1px solid var(--tenue); }
.documento h1 + p, .documento h2 + p { margin-top: 12px; }
.documento p { color: var(--suave); margin-top: 14px; }
.documento ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.documento li { display: flex; gap: 12px; color: var(--suave); }
.documento li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--ambar); }
.documento strong { color: var(--texto); font-weight: 600; }
.tabla { margin-top: 18px; overflow-x: auto; border: 1px solid var(--tenue); border-radius: 12px; }
.tabla table { border-collapse: collapse; width: 100%; min-width: 520px; }
.tabla td { padding: 11px 14px; border-bottom: 1px solid var(--tenue); font-size: 14px; color: var(--suave); vertical-align: top; }
.tabla tr:first-child td { color: var(--texto); font-weight: 600; background: var(--sup); }
.tabla tr:last-child td { border-bottom: 0; }
body.legal .nav { position: static; }
body.legal .marca { display: inline-flex; align-items: center; gap: 10px; padding-block: 18px; font-weight: 600; }
body.legal .privacidad a { color: var(--suave); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- selector de idioma ---------- */
.idiomas { position: relative; }
.idiomas summary { list-style: none; cursor: pointer; font: 500 12px var(--mono); color: var(--apagado); border: 1px solid var(--linea); border-radius: 999px; padding: 5px 10px; }
.idiomas summary::-webkit-details-marker { display: none; }
.idiomas summary::after { content: "▾"; margin-left: 6px; font-size: 10px; }
.idiomas[open] summary, .idiomas summary:hover { color: var(--texto); border-color: rgba(232, 204, 142, .5); }
.idiomas .panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(280px, 86vw); padding: 14px; border-radius: 16px; border: 1px solid rgba(232, 204, 142, .25); background: rgba(14, 17, 24, .97); box-shadow: 0 30px 60px -30px #000; }
.idiomas ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.idiomas li a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--suave); font-size: 15px; }
.idiomas li a:hover, .idiomas li a:focus-visible { background: rgba(232, 204, 142, .1); color: var(--texto); }
.idiomas li a[aria-current] { color: var(--ambar); }
.idiomas .panel p { margin: 10px 4px 2px; font-size: 12.5px; line-height: 1.45; color: var(--apagado); }

/* idiomas con palabras largas: el menú no parte las etiquetas en dos líneas y aprieta el espacio */
.nav ul a, .nav .btn { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1279px) { .nav ul { gap: 16px; font-size: 13.5px; } }
