/* Xelaris Labs — sitio estático, sin rastreadores ni JS externo */
:root {
  --bg: #0a0d11;
  --bg-raised: #12171e;
  --bg-soft: #181e27;
  --bg-hover: #1d2430;
  --line: #2a3342;
  --line-strong: #3a4558;
  --text: #e8eaed;
  --text-muted: #a7b0bd;
  --text-dim: #7e8796;
  --accent: #4fd1c5;
  --accent-hover: #7ee0d6;
  --accent-dim: rgba(79, 209, 197, 0.14);
  --accent-ink: #082421;
  --danger: #f0b4b4;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --max: 70rem;
  --content: 46rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(79, 209, 197, 0.08), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(79, 209, 197, 0.04), transparent 50%),
    var(--bg);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 17, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-main a:hover {
  color: var(--text);
  background: var(--accent-dim);
}

.nav-main a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-dim);
}

/* Main */
main {
  flex: 1 0 auto;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* Identity strip — visible legal entity for Meta review */
.identity {
  border-block: 1px solid var(--line);
  background: var(--bg-raised);
}

.identity-inner {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.15rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.identity strong {
  color: var(--text);
  font-weight: 700;
}

.identity p {
  margin: 0;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
}

.section-intro {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.35rem 1.3rem 1.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  flex: 1;
}

.card-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note {
  margin: 1.25rem 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--accent);
}

/* Contact panel */
.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

.panel {
  padding: 1.5rem 1.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.contact-list li {
  margin: 0 0 0.85rem;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-list span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.address {
  margin: 0;
  font-style: normal;
  color: var(--text-muted);
}

/* Legal pages */
.page-hero {
  padding: 2.5rem 0 1.25rem;
}

.page-hero .lead {
  font-size: 1.05rem;
}

.updated {
  margin: 0.85rem 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.legal {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto 3.5rem;
}

.legal h2 {
  margin: 2.1rem 0 0.6rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal p {
  margin: 0 0 0.9rem;
}

.legal ul,
.legal ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal li ul {
  margin: 0.4rem 0 0.2rem;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.company-box {
  margin: 0 0 1.4rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.company-box p {
  margin: 0 0 0.35rem;
  color: var(--text);
}

.company-box p:last-child {
  margin-bottom: 0;
}

.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(79, 209, 197, 0.28);
  border-radius: var(--radius-sm);
}

.callout p {
  margin: 0;
  color: var(--text);
}

/* 404 */
.empty {
  text-align: center;
  padding: 4.5rem 0 5rem;
}

.empty h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.empty p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #080a0d;
  padding: 2.25rem 0 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.75rem 2rem;
}

.footer-brand {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

.footer-entity {
  margin: 0 0 0.7rem;
  color: var(--text);
  font-weight: 600;
}

.site-footer p {
  margin: 0 0 0.45rem;
}

.site-footer h2 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin: 0 0 0.4rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

.copyright {
  margin: 1.75rem 0 0 !important;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .cards,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0 0.8rem;
    min-height: 0;
  }

  .nav-main a {
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
  }

  .brand-sub {
    white-space: normal;
  }
}

/* Print (útil para documentos legales) */
@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .skip-link,
  .hero-actions,
  .btn {
    display: none !important;
  }

  .site-footer,
  .legal,
  .identity,
  .page-hero,
  a {
    color: #111;
    background: #fff;
    box-shadow: none;
    border-color: #ccc;
  }

  a {
    text-decoration: underline;
  }

  .legal {
    width: 100%;
  }
}
