:root {
  --gold: #c9a227;
  --gold-dim: rgba(201, 162, 39, 0.15);
  --green: #4a7c59;
  --max: 72rem;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg-base: #0a0e17;
  --bg-alt: #111827;
  --stroke: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(10, 14, 23, 0.92);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --surface: rgba(255, 255, 255, 0.02);
  --surface-hover: rgba(255, 255, 255, 0.04);
  --btn-secondary-hover-border: rgba(255, 255, 255, 0.2);
  --hero-glow-1: rgba(255, 107, 0, 0.14);
  --hero-glow-2: rgba(201, 162, 39, 0.1);
  --hero-ring: rgba(255, 107, 0, 0.22);
  --hero-ring-mid: rgba(201, 162, 39, 0.08);
  --mark-shadow-1: rgba(255, 107, 0, 0.28);
  --mark-shadow-2: rgba(201, 162, 39, 0.2);
  --logo-shadow: rgba(201, 162, 39, 0.35);
  --badge-border: rgba(201, 162, 39, 0.35);
  --contact-border: rgba(201, 162, 39, 0.25);
  --suite-gradient: rgba(201, 162, 39, 0.06);
  --on-accent: #0a0e17;
}

[data-theme="light"] {
  color-scheme: light;
  --bg-base: #f1f5f9;
  --bg-alt: #ffffff;
  --stroke: rgba(15, 23, 42, 0.1);
  --header-bg: rgba(255, 255, 255, 0.92);
  --text: #0f172a;
  --muted: #64748b;
  --dim: #94a3b8;
  --surface: rgba(15, 23, 42, 0.03);
  --surface-hover: rgba(15, 23, 42, 0.05);
  --btn-secondary-hover-border: rgba(15, 23, 42, 0.18);
  --hero-glow-1: rgba(255, 107, 0, 0.1);
  --hero-glow-2: rgba(201, 162, 39, 0.14);
  --hero-ring: rgba(255, 107, 0, 0.16);
  --hero-ring-mid: rgba(201, 162, 39, 0.1);
  --mark-shadow-1: rgba(255, 107, 0, 0.2);
  --mark-shadow-2: rgba(201, 162, 39, 0.18);
  --logo-shadow: rgba(201, 162, 39, 0.45);
  --badge-border: rgba(201, 162, 39, 0.45);
  --contact-border: rgba(201, 162, 39, 0.35);
  --suite-gradient: rgba(201, 162, 39, 0.1);
  --gold-dim: rgba(201, 162, 39, 0.12);
  --on-accent: #0a0e17;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--stroke);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 2.25rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px var(--logo-shadow));
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #8b6914);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--on-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.lang-toggle {
  display: flex;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font: inherit;
}

.lang-toggle button.active {
  background: var(--gold-dim);
  color: var(--gold);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--btn-secondary-hover-border);
}

[data-theme="light"] .theme-toggle {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(15, 23, 42, 0.07);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .theme-toggle:hover {
  color: #020617;
  background: rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.32);
}

[data-theme="light"] .theme-toggle svg {
  opacity: 1;
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

[data-theme="dark"] .theme-icon-light {
  display: block;
}

[data-theme="dark"] .theme-icon-dark,
[data-theme="light"] .theme-icon-light {
  display: none;
}

[data-theme="light"] .theme-icon-dark {
  display: block;
}

.nav-cta {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-accent) !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none !important;
}

.nav-cta:hover {
  filter: brightness(1.08);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, var(--hero-glow-1), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--hero-glow-2), transparent),
    var(--bg-base);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(12rem, 0.95fr);
    gap: 1rem 2.5rem;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 14rem;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-ring) 0%, var(--hero-ring-mid) 38%, transparent 72%);
  filter: blur(18px);
}

.hero-mark {
  position: relative;
  width: min(72vw, 16rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px var(--mark-shadow-1)) drop-shadow(0 2px 12px var(--mark-shadow-2));
}

@media (min-width: 900px) {
  .hero-mark {
    width: min(100%, 18.5rem);
    margin-right: -1rem;
  }
}

@media (max-width: 899px) {
  .hero-visual {
    order: -1;
    min-height: 10rem;
    margin-top: -0.5rem;
  }

  .hero-mark {
    width: min(52vw, 11rem);
  }
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--badge-border);
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

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

.btn-primary:hover {
  filter: brightness(1.08);
}

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

.btn-secondary:hover {
  border-color: var(--btn-secondary-hover-border);
  background: var(--surface-hover);
}

.tagline {
  font-size: 0.95rem;
  color: var(--dim);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  max-width: 36rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

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

/* Pillars */
.pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.pillar {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
}

.pillar-num {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pillar h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Suite */
.suite-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.suite-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, var(--suite-gradient), transparent);
}

.suite-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.suite-card .module-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 700;
}

.suite-card p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Products / domains */
.domains {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.domain-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}

.domain-card .host {
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.domain-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.domain-card.soon {
  opacity: 0.65;
}

/* Journey */
.journey {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  counter-reset: step;
}

.journey-step {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 0;
  counter-increment: step;
}

.journey-step::before {
  content: counter(step);
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 2rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.journey-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.journey-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact */
.contact-box {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--contact-border);
  background: var(--gold-dim);
  max-width: 36rem;
}

.contact-box p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--stroke);
  font-size: 0.85rem;
  color: var(--dim);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

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

.footer-links a:hover {
  color: var(--text);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-mark {
  flex-shrink: 0;
  width: auto;
  height: 2.25rem;
  margin-top: 0.1rem;
  opacity: 0.92;
  filter: drop-shadow(0 1px 8px var(--logo-shadow));
}

/* i18n */
[lang="en"] .es-only,
[lang="es"] .en-only {
  display: none !important;
}

/* Commercial hub (subpage) */
.page-hero {
  padding: 3rem 0 2rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.hub-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
}

.hub-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.hub-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hub-card .status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.hub-card.available .status {
  color: var(--green);
}

/* Product showcase — thumbnail teaser + full expandable preview */
.product-showcase {
  padding: 3.5rem 0 0;
  background: var(--bg-base);
}

.product-showcase + section {
  padding-top: 4rem;
}

.showcase-intro {
  margin-bottom: 1.75rem;
}

.showcase-details {
  position: relative;
  width: 100%;
  margin: 0;
}

.showcase-hitarea {
  display: flex;
  justify-content: center;
  padding: 0 1rem 2.75rem;
  cursor: pointer;
  list-style: none;
  background: transparent;
}

.showcase-hitarea::-webkit-details-marker {
  display: none;
}

.showcase-details[open] .showcase-hitarea {
  position: absolute;
  inset: 0;
  z-index: 4;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 42%);
}

[data-theme="light"] .showcase-details[open] .showcase-hitarea {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.12), transparent 42%);
}

.showcase-details[open] .showcase-teaser {
  display: none;
}

.showcase-details:not([open]) .showcase-figure {
  display: none;
}

.showcase-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: min(100%, 24rem);
}

.showcase-thumb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(201, 162, 39, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .showcase-thumb-frame {
  box-shadow:
    0 14px 36px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(201, 162, 39, 0.2);
}

.showcase-hitarea:hover .showcase-thumb-frame {
  transform: translateY(-2px);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(201, 162, 39, 0.22);
}

.showcase-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.showcase-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.72) 0%, rgba(10, 14, 23, 0.2) 45%, transparent 72%);
}

[data-theme="light"] .showcase-thumb-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, rgba(255, 255, 255, 0.15) 45%, transparent 72%);
}

.showcase-teaser-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.showcase-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(10, 14, 23, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

[data-theme="light"] .showcase-pill {
  background: rgba(255, 255, 255, 0.82);
}

.showcase-hitarea:hover .showcase-pill {
  background: rgba(10, 14, 23, 0.68);
}

[data-theme="light"] .showcase-hitarea:hover .showcase-pill {
  background: rgba(255, 255, 255, 0.94);
}

.showcase-pill--collapse {
  display: none;
}

.showcase-details[open] .showcase-pill--collapse {
  display: inline-flex;
}

.showcase-zoom {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.showcase-chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s ease;
}

.showcase-chevron--up {
  transform: rotate(180deg);
}

.showcase-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-block: 1px solid var(--stroke);
  animation: showcase-reveal 0.45s ease;
}

@keyframes showcase-reveal {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.showcase-shot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.showcase-chip {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(10, 14, 23, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

[data-theme="light"] .showcase-chip {
  background: rgba(255, 255, 255, 0.78);
}

@media (min-width: 900px) {
  .showcase-teaser {
    width: min(100%, 28rem);
  }
}
