:root,
    html[data-theme="navy"] {
      --bg-primary: #060d1b;
      --bg-secondary: #0a1529;
      --bg-card: #0f203d;
      --bg-elevated: #142a4f;
      --border-glass: rgba(37, 99, 235, 0.14);
      --accent-solid: #1D4ED8;
      --accent-hover: #2563EB;
      --accent-bright: #60A5FA;
      --accent-soft: rgba(37, 99, 235, 0.20);
      --glow-color: rgba(56, 189, 248, 0.16);
    }
    html[data-theme="green"] {
      --bg-primary: #040f0a;
      --bg-secondary: #071b12;
      --bg-card: #0b261a;
      --bg-elevated: #103726;
      --border-glass: rgba(21, 128, 61, 0.16);
      --accent-solid: #15803D;
      --accent-hover: #16A34A;
      --accent-bright: #4ADE80;
      --accent-soft: rgba(22, 163, 74, 0.20);
      --glow-color: rgba(74, 222, 128, 0.16);
    }
    * { box-sizing: border-box; }
    body {
      background-color: var(--bg-primary);
      color: #F3F6FA;
      font-family: 'Instrument Sans', sans-serif;
      overflow-x: hidden;
      transition: background-color 0.3s ease;
    }
    .theme-bg-primary { background-color: var(--bg-primary); }
    .theme-bg-secondary { background-color: var(--bg-secondary); }
    .theme-bg-card { background-color: var(--bg-card); }
    .theme-border { border-color: var(--border-glass); }
    .theme-accent-bg { background-color: var(--accent-solid); }
    .theme-accent-bg:hover { background-color: var(--accent-hover); }
    .theme-accent-text { color: var(--accent-bright); }
    .theme-accent-soft { background-color: var(--accent-soft); }
    .glass-panel {
      background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid var(--border-glass);
    }
    .no-scrollbar::-webkit-scrollbar { display: none; } .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
    .custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
    .custom-scrollbar::-webkit-scrollbar-track { background: var(--bg-primary); }
    .custom-scrollbar::-webkit-scrollbar-thumb { background: var(--accent-solid); border-radius: 999px; }

    /* === HERO CARÁTULA AL NATURAL Y REAL === */
    .hero-cover {
      position: relative;
      width: 100%;
      height: calc(100vh - 64px);
      min-height: 680px;
      max-height: 900px;
      overflow: hidden;
      background:
        radial-gradient(ellipse 65% 60% at 52% 46%, rgba(var(--accent-rgb, 166, 124, 82), 0.10) 0%, rgba(9, 21, 43, 0.5) 48%, transparent 78%),
        radial-gradient(ellipse 50% 50% at 15% 85%, rgba(12, 30, 64, 0.45) 0%, transparent 70%),
        linear-gradient(145deg, #09152b 0%, #0d1626 38%, #121418 100%);
      transition: background 0.75s ease;
      user-select: none;
    }
    html[data-theme="green"] .hero-cover {
      background:
        radial-gradient(ellipse 65% 60% at 52% 46%, rgba(var(--accent-rgb, 166, 124, 82), 0.10) 0%, rgba(6, 26, 18, 0.55) 48%, transparent 78%),
        radial-gradient(ellipse 50% 50% at 15% 85%, rgba(9, 36, 25, 0.45) 0%, transparent 70%),
        linear-gradient(145deg, #03120b 0%, #061a12 38%, #0d1210 100%);
    }
    .hero-grain {
      position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      z-index: 1;
    }
    .hero-top-accent { position: absolute; top: 0; left: 0; width: 48px; height: 4px; background: var(--accent-solid); z-index: 5; }
    .hero-intro {
      position: absolute; top: 46px; right: 32px; z-index: 5; max-width: 360px;
      font-size: clamp(14px, 1.35vw, 19px); font-weight: 500; line-height: 1.24; letter-spacing: -0.02em; color: #e6ebf2;
    }
    .hero-intro .indent-line { display: block; padding-left: 3.4em; }
    .hero-intro .year-line { display: block; padding-left: 3.4em; margin-top: 2px; color: rgba(230, 235, 242, 0.85); }
    .hero-cta-row { margin-top: 14px; padding-left: 3.4em; display: flex; flex-wrap: wrap; gap: 8px; }
    .hero-brand-lockup { position: absolute; left: 24px; top: 46px; z-index: 5; display: flex; align-items: center; gap: 12px; }
    .hero-brand-seal { width: 68px; height: 68px; flex-shrink: 0; border-radius: 9999px; object-fit: cover; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.55)); }
    .hero-brand-name { display: flex; flex-direction: column; gap: 2px; }
    .hero-brand-title { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #e6ebf2; }
    .hero-brand-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-bright); opacity: 0.9; }
    .hero-location { position: absolute; left: 24px; top: 124px; z-index: 5; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: #e6ebf2; }
    .hero-location-dot { width: 10px; height: 10px; background-color: var(--accent-solid); flex-shrink: 0; }
    .hero-families { position: absolute; left: 24px; top: 152px; z-index: 5; display: grid; grid-template-columns: repeat(2, auto); gap: 5px 18px; }
    .hero-family-btn {
      appearance: none; background: none; border: none; padding: 2px 0; text-align: left;
      font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
      color: rgba(230, 235, 242, 0.50); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
      transition: color 0.18s ease;
    }
    .hero-family-btn:hover { color: rgba(230, 235, 242, 0.92); }
    .hero-family-btn.is-active { color: var(--accent-dynamic, #a67c52); font-weight: 500; }
    .hero-family-btn.is-active::before {
      content: ''; width: 5px; height: 5px; background-color: var(--accent-dynamic, #a67c52); display: inline-block; transition: background-color 0.65s ease;
    }
    .hero-wordmark-wrap { position: absolute; left: 20px; bottom: 24px; z-index: 2; pointer-events: none; }
    .hero-wordmark {
      font-family: 'Antonio', sans-serif; font-weight: 700; font-size: clamp(3.6rem, 10.5vw, 9.5rem);
      line-height: 0.84; letter-spacing: -0.03em; text-transform: uppercase;
      color: var(--accent-dynamic, #a67c52); white-space: nowrap;
      transition: color 0.85s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    }
    .hero-wordmark.is-changing { opacity: 0; transform: translateY(22px); }
    .hero-glyph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
    .hero-specimen-stage {
      position: absolute; inset: 0; padding-bottom: 10vh; z-index: 4;
      display: flex; align-items: center; justify-content: center; perspective: 1200px; pointer-events: none;
    }
    .hero-specimen-stage::before {
      content: ''; position: absolute; width: min(54vw, 560px); height: min(58vh, 480px); border-radius: 50%;
      background: radial-gradient(circle, rgba(235, 240, 248, 0.12) 0%, rgba(var(--accent-rgb, 166, 124, 82), 0.06) 44%, transparent 72%);
      filter: blur(18px); pointer-events: none;
    }
    .hero-specimen-pivot {
      position: relative; width: min(48vw, 580px); height: min(64vh, 510px);
      display: flex; align-items: center; justify-content: center;
      transform-style: preserve-3d; will-change: transform;
      transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: auto; cursor: pointer;
    }
    .hero-specimen-img {
      position: absolute; width: 92%; height: 92%; max-width: 100%; max-height: 100%; object-fit: contain;
      filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.52));
      transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .hero-specimen-pivot:hover .hero-specimen-img { transform: scale(1.03); }
    .hero-specimen-img.is-switching { opacity: 0 !important; transform: scale(0.95); }
    @media (max-width: 900px) {
      .hero-cover { height: auto; min-height: 680px; }
      .hero-intro { display: none; }
      .hero-families { top: 122px; gap: 4px 12px; }
      .hero-specimen-stage { padding-top: 120px; padding-bottom: 80px; }
    }

    /* === FORMAS Y COLORES DE ETIQUETAS (REDONDA, TRIANGULAR, RECTANGULAR, CUADRO, ESQUINERO) === */
    .badge-round { border-radius: 9999px; }
    .badge-rect { border-radius: 6px; }
    .badge-square { border-radius: 0px; }
    .badge-triangle {
      clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
      padding-right: 12px !important;
    }
    .badge-corner {
      position: absolute;
      top: 10px;
      right: -28px;
      width: 110px;
      text-align: center;
      transform: rotate(38deg);
      font-size: 8px;
      font-weight: 700;
      padding: 2px 0;
      box-shadow: 0 2px 8px rgba(0,0,0,0.45);
      pointer-events: none;
    }
