/* Diseño común «de noche» de las páginas interiores de OrionDataGroup (lo añade gen/noche.py). */

/* ---------- Cielo nocturno detrás del título ---------- */
.noche { position: absolute; top: 0; left: 0; right: 0; height: var(--alto, 440px); z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.noche > svg:first-child { display: block; width: 100%; height: 100%; }
/* La luna y Orión, anclados arriba a la derecha del contenido (nunca bajo la barra ni cortados) */
.noche__astros { position: absolute; top: 92px; right: max(16px, calc((100vw - 1120px) / 2)); width: clamp(220px, 22vw, 300px); height: auto; aspect-ratio: 300 / 230; }
@media (max-width: 999px) { .noche__astros { display: none; } }
.noche::after { /* un velo suave a la izquierda, donde va el texto */
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,13,.75) 0, rgba(7,9,13,.35) 45%, rgba(7,9,13,0) 72%); }
.n-fugaz { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .n-tw { animation: n-tw 4s steps(5) infinite; }
  @keyframes n-tw { 0%, 100% { opacity: .9; } 50% { opacity: .15; } }
  .n-destello { animation: n-destello 5s steps(6) infinite; }
  @keyframes n-destello { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
  .n-antena { animation: n-parpadeo 2.4s steps(1) infinite; }
  @keyframes n-parpadeo { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
  .n-fugaz { animation: n-fugaz 13s linear infinite; animation-delay: 3s; }
  @keyframes n-fugaz { 0% { transform: translate(0, 0); opacity: 0; } 1% { opacity: 1; } 7% { transform: translate(300px, 84px); opacity: 0; } 100% { transform: translate(300px, 84px); opacity: 0; } }
}

/* ---------- Salas: recorrido del trabajo ---------- */
.flujo { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 48px; padding: 18px 20px;
  border: 1px solid var(--border, #232B37); border-radius: 16px; background: rgba(13, 17, 23, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.flujo__col, .flujo__yo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.flujo__t { font-family: var(--font-mono, monospace); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3, #7C8A9C); }
.flujo__sala { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--border-strong, #2F3A4A); border-radius: 999px;
  color: var(--text, #E8EDF4); font-size: .875rem; text-decoration: none; transition: border-color var(--t, .18s), background var(--t, .18s); }
.flujo__sala:hover { border-color: var(--c); background: var(--surface-2, #151B24); }
.flujo__sala i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.flujo__yo { padding: 10px 16px; border: 1px solid var(--c); border-radius: 12px; background: color-mix(in srgb, var(--c) 10%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 8%, transparent), 0 10px 40px color-mix(in srgb, var(--c) 16%, transparent); }
.flujo__yo b { font-family: var(--font-display, sans-serif); font-size: 1.0625rem; color: var(--text, #E8EDF4); line-height: 1.2; }
.flujo__yo small { color: var(--c); font-size: .8125rem; }
.flujo__fuera { color: var(--text-2, #9AA7B8); font-size: .875rem; font-style: italic; }
.flujo__flecha { color: var(--text-3, #7C8A9C); display: inline-flex; }
@media (max-width: 720px) {
  .flujo { flex-direction: column; align-items: stretch; }
  .flujo__flecha { justify-content: flex-start; padding-left: 14px; height: 28px; }
  .flujo__flecha svg { transform: rotate(90deg); transform-origin: 20px 6px; }
}

/* ---------- Índice de salas: tarjetas con el color de su web ---------- */
.sala .rooms a { position: relative; overflow: hidden; background:
  radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 55%), var(--surface-1, #0D1117);
  transition: border-color var(--t, .18s), transform var(--t, .18s), box-shadow 260ms ease; }
.sala .rooms a:hover, .sala .rooms a:focus-visible { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 18px 48px color-mix(in srgb, var(--c) 14%, transparent); }
.sala .rooms a::after { content: "→"; position: absolute; top: 18px; right: 18px; color: var(--c); opacity: 0; transform: translateX(-6px); transition: opacity var(--t, .18s), transform var(--t, .18s); }
.sala .rooms a:hover::after, .sala .rooms a:focus-visible::after { opacity: 1; transform: none; }
.sala .rooms b i { box-shadow: 0 0 10px var(--c); }
.sala .rooms a { border-radius: 16px; }
/* Sin tarjetas sueltas al final de cada grupo: la última ocupa el hueco que queda */
@media (min-width: 1000px) {
  .sala .rooms { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sala .rooms a { grid-column: span 2; }
  .sala .rooms a:last-child:nth-child(3n+1) { grid-column: span 6; }
  .sala .rooms a:nth-last-child(2):nth-child(3n+1), .sala .rooms a:last-child:nth-child(3n+2) { grid-column: span 3; }
}
@media (min-width: 600px) and (max-width: 999px) {
  .sala .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sala .rooms a:last-child:nth-child(2n+1) { grid-column: span 2; }
}
h2.group { display: flex; align-items: center; gap: 12px; }
h2.group::before { content: ""; flex: none; width: 9px; height: 9px; margin-left: 2px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent), 0 0 10px currentColor; }

/* ---------- Textos legales: barra de lectura y botón para subir ---------- */
.lectura { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.lectura i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--leido, 0));
  background: linear-gradient(90deg, #2EB8BC, #5B9BFF 30%, #A08BFF 55%, #A9D63F 80%, #FFB547); }
.arriba { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong, #2F3A4A); background: rgba(13, 17, 23, .85); color: var(--text, #E8EDF4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color var(--t, .18s), transform var(--t, .18s); }
.arriba:hover { border-color: #5B9BFF; transform: translateY(-2px); }
.arriba[hidden] { display: none; }
.legal__head { position: relative; }
.legal h2[id] { scroll-margin-top: 96px; }

/* ---------- Página de error ---------- */
.perdida { display: flex; justify-content: center; margin: 8px auto 4px; }
.perdida svg { max-width: 100%; height: auto; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .n-ovni { animation: n-flota 6s ease-in-out infinite; }
  @keyframes n-flota { 0%, 100% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(-8px, -6px) rotate(-3deg); } 70% { transform: translate(8px, -2px) rotate(3deg); } }
  .n-hoja { transform-box: fill-box; transform-origin: center; animation: n-sube 7s ease-in-out infinite; }
  @keyframes n-sube { 0% { transform: translateY(16px) rotate(-8deg); opacity: 0; } 10% { opacity: 1; } 50% { transform: translateY(-18px) rotate(10deg); } 85% { transform: translateY(-56px) rotate(-4deg) scale(.5); opacity: .9; } 92%, 100% { transform: translateY(-62px) scale(.3); opacity: 0; } }
  .n-haz { animation: n-haz 2.2s ease-in-out infinite alternate; }
  @keyframes n-haz { from { opacity: .7; } to { opacity: 1; } }
  .n-luz { animation: n-luz 1.25s linear infinite; }
  @keyframes n-luz { 0%, 100% { opacity: .35; } 20% { opacity: 1; } 45% { opacity: .35; } }
}
@media print { .noche, .lectura, .arriba { display: none !important; } }

/* =====================================================================
   Sistema común de todas las páginas (cabecera, pie, tipografía, botones)
   ===================================================================== */
:root { --radius-btn: 12px; --radius-card: 16px; }

/* ---------- Tipografía: sin palabras sueltas al final ---------- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); line-height: 1.06; }                 /* portada y Sobre, igual */
.sala h1, .legal__head h1, body > main > h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.03em; }
.card__claim { line-height: 1.3; }

/* ---------- Antetítulos: un solo estilo ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-hi, #4FD0D3); }
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal, #2EB8BC); box-shadow: 0 0 0 4px rgba(46,184,188,.18); }
.odg-footer__title, .flujo__t { font-size: 12px; letter-spacing: .1em; }
.sala .card h2 { font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.sala__tag { margin-top: 24px; padding: 0; border: 0 !important; border-radius: 0; font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.sala__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }

/* ---------- Cabecera común ---------- */
.nav__inner { height: 68px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: .9375rem; }
.nav__links a { white-space: nowrap; color: var(--text-2); text-decoration: none; position: relative; transition: color var(--t, .18s); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); }
.nav__links a[aria-current="page"]:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #2EB8BC, #5B9BFF); }
.nav__links .nav__cta { padding: 8px 14px; border: 1px solid var(--border-strong, #2F3A4A); border-radius: var(--radius-btn); color: var(--text); transition: border-color var(--t, .18s), background-color var(--t, .18s); }
.nav__links .nav__cta:hover { border-color: var(--blue-hi, #5B9BFF); background: var(--surface-2, #151B24); }
.menu { display: none; position: relative; }
.menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-strong, #2F3A4A); border-radius: var(--radius-btn); color: var(--text); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary, .menu summary:hover { border-color: var(--blue-hi, #5B9BFF); background: var(--surface-2, #151B24); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; min-width: 240px; padding: 8px; border: 1px solid var(--border-strong, #2F3A4A); border-radius: 12px; background: var(--surface-1, #0D1117); box-shadow: 0 24px 56px rgba(0,0,0,.6); }
.menu__panel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .9375rem; }
.menu__panel a:hover { background: var(--surface-2, #151B24); }
.menu__panel a[aria-current="page"] { background: var(--surface-2, #151B24); }
.menu__panel a:nth-child(7) { margin-top: 0; border-top: 0; padding-top: 0; border-radius: 8px; }  /* sustituye a la regla antigua de la portada */
.menu__panel a.menu__sep { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border, #232B37); border-radius: 0 0 8px 8px; min-height: 52px; }
@media (max-width: 880px) { .nav__links { display: none; } .menu { display: block; } }

/* ---------- Pie común ---------- */
.odg-footer__top { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
.odg-footer__list li + li { margin-top: 2px; }
.odg-footer__list a { display: inline-flex; align-items: center; min-height: 34px; }
.odg-footer__bottom { padding-bottom: 48px; align-items: flex-start; }
.odg-footer__legal { max-width: 46ch; text-wrap: balance; }
@media (max-width: 880px) { .odg-footer__top { grid-template-columns: 1fr 1fr; gap: 32px 24px; } .odg-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .odg-footer__top { grid-template-columns: 1fr; } .odg-footer__list a { min-height: 44px; } }

/* ---------- Botones: los cuatro colores del grupo, iguales (texto oscuro sobre el color de cada web) ---------- */
.btn { border-radius: var(--radius-btn); }
.btn--teal, .go--o { background: #2EB8BC; color: #07090D; }
.btn--teal:hover, .go--o:hover { background: #4FD0D3; }
.btn--teal:active { background: #27A3A7; }
.btn--blue, .go--d { background: #5B9BFF; color: #07090D; }
.btn--blue:hover, .go--d:hover { background: #7DB1FF; }
.btn--blue:active { background: #4A8BF2; }
.btn--violet, .go--r { background: #A08BFF; color: #07090D; }
.btn--violet:hover, .go--r:hover { background: #B5A4FF; }
.btn--lime, .go--p { background: #A9D63F; color: #07090D; }
.btn--lime:hover, .go--p:hover { background: #BCE35F; }
.btn--amber, .go--k { background: #FFB547; color: #07090D; }
.btn--amber:hover, .go--k:hover { background: #FFC86E; box-shadow: 0 0 0 1px rgba(255,181,71,.45), 0 16px 48px rgba(255,181,71,.16); }
.go { min-height: 48px; border-radius: var(--radius-btn); color: #07090D; transition: background-color var(--t, .18s), border-color var(--t, .18s), transform var(--t, .18s); }
.go--n { color: var(--text); background: transparent; }
.go--n:hover { border-color: var(--blue-hi, #5B9BFF); background: var(--surface-2, #151B24); }
.go:hover { transform: translateY(-1px); }

/* ---------- Enlaces dentro del texto: un solo estilo ---------- */
.home-about a, .contact p a, .prose a {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong, #2F3A4A); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color var(--t, .18s), text-decoration-color var(--t, .18s); }
.home-about a:hover, .contact p a:hover, .prose a:hover { color: var(--blue-hi, #5B9BFF); text-decoration-color: currentColor; }

/* ---------- Detalles que no eran de la paleta ---------- */
.shot__tag { border-color: var(--border-strong, #2F3A4A); color: var(--text-2); }
.principles li:nth-child(3) svg { color: #A08BFF; }

/* ---------- Portada ---------- */
.card__top .badge, .card__top > span:last-child { align-self: center; }
.hero__more a { align-items: flex-start; }
.hero__more a .dot { margin-top: .62em; flex: none; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }
/* Más allá del motor: tres tarjetas en fila; en pantallas medianas, la tercera ocupa el ancho */
.card--kiuron { --accent: #FFB547; --accent-rgb: 255, 181, 71; }
.chip--k i { background: #FFB547; }
@media (min-width: 1101px) { .products--mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } .products--mini .card--mini { padding: 28px; } .products--mini .card__foot { flex-direction: column; align-items: flex-start; gap: 12px; } }
@media (min-width: 901px) and (max-width: 1100px) { .products--mini > :nth-child(3) { grid-column: 1 / -1; } }
.salabox { align-items: center; }
.salabox__salas { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--border, #232B37); }
.salabox .hero__actions { flex-wrap: wrap; }
@media (max-width: 720px) { .section { padding-block: clamp(56px, 12vw, 80px); } .chip { min-height: 44px; } }
.crumb a { display: inline-block; padding-block: 10px; margin-block: -10px; }

/* ---------- Sobre ---------- */
.noche--sobre .noche__astros { display: none; }
@media (max-width: 900px) { .noche--sobre svg:first-child { display: none; } }
svg a:focus-visible { outline: 2px solid #5B9BFF; outline-offset: 4px; border-radius: 4px; }
svg a:focus-visible circle { stroke: #5B9BFF; stroke-width: 2; }

/* ---------- Página de error ---------- */
.marcas { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-top: 22px; font-size: .9375rem; }
.marcas a { display: inline-flex; align-items: center; min-height: 44px; color: #9AA7B8; text-decoration: none; transition: color .18s; }
.marcas a:hover { color: #E8EDF4; }
.odg-footer__dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; vertical-align: middle; }
.odg-footer__dot--teal { background: #2EB8BC; } .odg-footer__dot--blue { background: #5B9BFF; } .odg-footer__dot--violet { background: #A08BFF; } .odg-footer__dot--lime { background: #A9D63F; } .odg-footer__dot--amber { background: #FFB547; }

/* Portada: la columna de texto no pasa de 540px, para dejar aire a la gasolinera */
@media (min-width: 921px) { .hero__inner > div:first-child { max-width: 540px; } }
@media (max-width: 1100px) and (min-width: 881px) { .nav__links { gap: 20px; } }
@media (max-width: 1100px) and (min-width: 881px) { .odg-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .odg-footer__about { grid-column: 1 / -1; } }

.legal__head .crumb { margin: 0 0 14px; }

/* ---------- Sobre: el organigrama, con las líneas cayendo justo en el centro de cada tarjeta ---------- */
.family__row { gap: 0; }
.family__row .family__node { margin-inline: 8px; }
.family__node--r:hover { border-color: rgba(160,139,255,.6); }
.family__mas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; margin: 18px 8px 0; padding-top: 16px; border-top: 1px dashed var(--border-strong, #2F3A4A); font-size: .875rem; }
.family__mas span { flex-basis: 100%; text-align: center; color: var(--text-3); font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.family__mas a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); text-decoration: none; transition: color .18s; }
.family__mas a:hover { color: var(--text); }

/* ---------- Segunda revisión ---------- */
.noche--sobre { height: 100%; }
.odg-footer__list a { overflow-wrap: anywhere; }
.odg-footer__list a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--border-strong, #2F3A4A); }
[data-cookies][hidden] { display: none !important; }
.brand { font-size: 1.25rem; }
.crumb { font-size: .8125rem; margin: 0 0 16px; }
.legal__head .crumb { font-size: .8125rem; margin: 0 0 16px; }
.legal__head .sala__tag { margin: 0 0 12px; }
.sala .sala__tag { margin-top: 0; }
.sala__lead { max-width: 38ch; text-wrap: balance; }
.hero p { text-wrap: balance; }
.sala .rooms a span { max-width: 72ch; }
.btn { min-height: 48px; }
.card, .contact, .salabox, .family, .flujo, .toc { border-radius: 16px; }
.btn, .go, .plate__field, .menu summary, .nav__links .nav__cta { border-radius: 12px; }
svg a:focus-visible circle { stroke: #fff; stroke-width: 2; }
@media (max-width: 720px) {
  .flujo__sala, .toc a { min-height: 44px; display: flex; align-items: center; }
  .flujo__sala { display: inline-flex; }
  .hero__more a { padding-block: 10px; }
  .contact p a { display: inline-block; padding-block: 12px; }
}
@media (max-width: 480px) { .marcas { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 4px 28px; } }
.sala__tag { display: inline-flex; align-items: center; gap: 8px; }
/* ---------- Tercera revisión ---------- */
.noche__astros { overflow: visible; }
.sala--indice .sala__lead { max-width: 56ch; }
.legal__head { margin-top: -16px; }
@media (min-width: 881px) { .odg-footer__legal { margin-left: auto; text-align: right; } }
@media (max-width: 720px) { .family__mas a { min-height: 44px; } .home-about a { display: inline-block; padding-block: 9px; } }

/* Kiuron, a lo ancho en pantallas medianas: el texto no se estira de más */
@media (min-width: 901px) and (max-width: 1100px) { .products--mini > :nth-child(3) .card__text { max-width: 72ch; } }
