:root {
      --bg: #0b1118;
      --panel: rgba(16, 24, 34, .86);
      --panel-2: rgba(18, 26, 36, .72);
      --surface: rgba(255,255,255,.03);
      --surface-2: rgba(255,255,255,.05);
      --border: rgba(53, 72, 94, .7);
      --text: #e5e7eb;
      --muted: #94a3b8;
      --muted-2: #64748b;
      --accent: #2563eb;
      --accent-soft: rgba(37, 99, 235, .14);
      --accent-line: rgba(37, 99, 235, .34);
      --shadow: 0 18px 50px rgba(0,0,0,.35);
      --radius: 20px;
      --radius-sm: 14px;
      --max: 1180px;
      --panel-w: 920px;
      --header-h: 52px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    button, input, textarea, select { font: inherit; }

    .container {
      width: min(calc(100% - 32px), var(--max));
      margin-inline: auto;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 60;
      min-height: var(--header-h);
      backdrop-filter: blur(10px);
      background: rgba(11,17,24,.9);
      border-bottom: 1px solid var(--border);
    }
    .topbar__inner {
      min-height: var(--header-h);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      color: var(--muted);
      font-size: 14px;
    }

    .lang-control {
      position: fixed;
      top: calc(var(--header-h) + 12px);
      left: 14px;
      z-index: 70;
    }
    .lang-control select {
      background: rgba(15,23,32,.95);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 8px 10px;
      box-shadow: var(--shadow);
    }

    .hero {
      position: relative;
      min-height: calc(92svh - var(--header-h));
      display: grid;
      place-items: center;
      text-align: center;
      padding: 72px 18px 10px;
      background:
        linear-gradient(rgba(10,15,25,.84), rgba(10,15,25,.88)),
        image-set(
          url('/assets/img/brazo.webp') type('image/webp'),
          url('/assets/img/brazo.jpg') type('image/jpeg')
        )
        center/cover no-repeat;
      overflow: clip;
    }
    .hero::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 180px;
      background: linear-gradient(to bottom, rgba(11,17,24,0), rgba(11,17,24,.94));
      pointer-events: none;
    }
    .hero__inner {
      position: relative;
      z-index: 1;
      width: min(100%, 980px);
    }
    .hero__logo-wrap {
      position: relative;
      width: fit-content;
      margin: 0 auto 54px;
      isolation: isolate;
      perspective: 1200px;
    }
    .hero__logo {
      position: relative;
      z-index: 4;
      width: min(84vw, 860px);
      max-width: 860px;
      height: auto;
      opacity: 0;
      transform: translateY(42px) scale(.55) rotateX(18deg);
      /* No color filter here: keep the asset’s native white from the very first paint */
      filter: drop-shadow(0 10px 26px rgba(0,0,0,.26));
      transform-origin: center center;
      animation:
        heroLogoInStrong 1.15s cubic-bezier(.16,.84,.2,1) .1s both,
        heroLogoFloat 5.2s ease-in-out 1.5s infinite;
      will-change: transform, opacity;
    }
    .hero__glow {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 30px;
      height: 30px;
      border-radius: 999px;
      background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(37,99,235,.95) 28%, rgba(37,99,235,.30) 55%, rgba(37,99,235,0) 78%);
      transform: translate(-50%,-50%) scale(.15);
      filter: blur(8px);
      opacity: 0;
      z-index: 1;
      pointer-events: none;
      animation: heroBurstStrong 1.15s cubic-bezier(.18,.8,.22,1) .05s both;
    }
    .hero__ring {
      position: absolute;
      left: 50%;
      top: 50%;
      border: 2px solid rgba(96,165,250,.65);
      border-radius: 999px;
      transform: translate(-50%,-50%) scale(.2);
      opacity: 0;
      z-index: 2;
      pointer-events: none;
    }
    .hero__ring--1 {
      width: 220px;
      height: 220px;
      animation: heroRingStrong 1.2s ease-out .18s both;
    }
    .hero__ring--2 {
      width: 360px;
      height: 360px;
      border-color: rgba(255,255,255,.22);
      animation: heroRingStrong 1.35s ease-out .32s both;
    }
    .hero__flash {
      position: fixed;
      left: 50%;
      top: 50%;
      width: min(118vw, 1800px);
      height: 220vh;
      z-index: 3;
      border-radius: 999px;
      background:
        radial-gradient(ellipse at center,
          rgba(255,255,255,0) 0%,
          rgba(255,255,255,.020) 18%,
          rgba(255,255,255,.050) 34%,
          rgba(255,255,255,.075) 48%,
          rgba(255,255,255,.090) 50%,
          rgba(255,255,255,.075) 54%,
          rgba(255,255,255,.045) 68%,
          rgba(37,99,235,.040) 84%,
          rgba(37,99,235,0) 100%),
        radial-gradient(ellipse at 46% 50%,
          rgba(255,255,255,.06) 0%,
          rgba(255,255,255,.03) 18%,
          rgba(255,255,255,0) 58%),
        radial-gradient(ellipse at 54% 50%,
          rgba(37,99,235,.05) 0%,
          rgba(37,99,235,.025) 22%,
          rgba(37,99,235,0) 60%);
      filter: blur(130px);
      box-shadow:
        0 0 120px rgba(255,255,255,.035),
        0 0 240px rgba(37,99,235,.045);
      transform: translate(-50%, -50%) translateX(-96vw) scaleX(1.2) scaleY(1.08);
      opacity: 0;
      mix-blend-mode: screen;
      pointer-events: none;
      animation: heroFlashSweep .92s cubic-bezier(.24,.7,.2,1) .66s both;
    }
    .hero__text {
      width: min(100%, 960px);
      margin: 14px auto 0;
      color: #cbd5e1;
      font-size: clamp(1rem, 1.5vw, 1.3rem);
      line-height: 1.85;
      opacity: 0;
      transform: translateY(12px);
      animation: heroTextIn .72s ease-out 2.0s forwards;
    }
    .hero__text strong {
      display: block;
      margin-top: 8px;
      color: #e5e7eb;
      font-weight: 700;
    }

    @keyframes heroLogoInStrong {
      0% {
        opacity: 0;
        transform: translateY(42px) scale(.55) rotateX(18deg);
      }
      48% {
        opacity: 1;
        transform: translateY(-10px) scale(1.10) rotateX(0deg);
      }
      72% {
        opacity: 1;
        transform: translateY(4px) scale(.97);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    @keyframes heroBurstStrong {
      0% { opacity: 0; transform: translate(-50%,-50%) scale(.15); }
      35% { opacity: 1; }
      100% { opacity: 0; transform: translate(-50%,-50%) scale(9); }
    }
    @keyframes heroRingStrong {
      0% { opacity: 0; transform: translate(-50%,-50%) scale(.22); }
      28% { opacity: .85; }
      100% { opacity: 0; transform: translate(-50%,-50%) scale(1.15); }
    }
    @keyframes heroFlashSweep {
      0% { opacity: 0; transform: translate(-50%, -50%) translateX(-88vw) scaleX(1.02) scaleY(.98); }
      16% { opacity: .55; }
      55% { opacity: .74; }
      88% { opacity: .5; }
      100% { opacity: 0; transform: translate(-50%, -50%) translateX(88vw) scaleX(1.08) scaleY(1.02); }
    }
    @keyframes heroLogoFloat {
      0%, 100% { transform: translateY(0) scale(1); }
      50% { transform: translateY(-8px) scale(1.01); }
    }
    @keyframes heroTextIn {
      to { opacity: 1; transform: translateY(0); }
    }

    .section {
      padding: 34px 0;
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .brands {
      padding-top: 0;
    }
    .brands__head {
      display: grid;
      gap: 16px;
      width: min(100%, var(--panel-w));
      margin: 0 auto 18px;
    }
    .searchbox {
      display: grid;
      gap: 8px;
      width: 100%;
      max-width: none;
      margin: 0;
    }
    .searchbox input {
      width: 100%;
      padding: 16px 18px;
      font-size: 18px;
      color: var(--text);
      background: rgba(15,23,32,.92);
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 18px;
      outline: 0;
      box-shadow: 0 0 0 4px rgba(255,255,255,.04);
    }
    .searchbox input:focus {
      border-color: rgba(59,130,246,.55);
      box-shadow: 0 0 0 5px rgba(59,130,246,.14);
    }
    .searchbox__hint {
      color: var(--muted);
      font-size: 13px;
      text-align: center;
    }

    .results {
      display: none;
      width: 100%;
      margin: 0 0 8px;
      max-width: none;
    }
    .results.is-visible {
      display: block;
    }
    .results__title {
      margin-bottom: 10px;
      font-size: 13px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .results__grid {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 12px;
    }
    .pill-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 40px;
      padding: 8px 12px;
      border-radius: 999px;
      color: #fff;
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.08);
      transition: border-color .2s ease, transform .2s ease, background .2s ease;
    }
    .pill-link:hover {
      transform: translateY(-1px);
      border-color: rgba(255,255,255,.18);
      background: rgba(255,255,255,.05);
    }
    .pill-link span {
      color: var(--muted);
      font-size: 13px;
    }

    .view-switch {
      display: flex;
      justify-content: center;
      gap: 10px;
      width: 100%;
      margin: 10px 0 18px;
      flex-wrap: wrap;
    }
    .view-btn {
      border: 1px solid var(--border);
      background: rgba(15,23,32,.92);
      color: #cbd5e1;
      border-radius: 999px;
      padding: 10px 14px;
      cursor: pointer;
      transition: .18s ease;
    }
    .view-btn:hover {
      border-color: rgba(59,130,246,.45);
      color: var(--text);
    }
    .view-btn.is-active {
      color: var(--text);
      background: var(--accent-soft);
      border-color: rgba(59,130,246,.55);
      box-shadow: 0 0 0 3px rgba(59,130,246,.12);
    }

    .catalog {
      display: grid;
      gap: 12px;
    }
    .family {
      overflow: hidden;
    }
    .family details {
      border: 1px solid var(--border);
      border-radius: 18px;
      background: var(--panel-2);
      overflow: hidden;
    }
    .family summary {
      list-style: none;
      cursor: pointer;
      padding: 18px 20px;
      display: grid;
      grid-template-columns: minmax(0,1fr) auto auto;
      gap: 16px;
      align-items: center;
    }
    .family summary::-webkit-details-marker { display: none; }
    .family__title {
      font-size: 18px;
      font-weight: 800;
      line-height: 1.3;
    }
    .family__meta {
      color: var(--muted);
      font-size: 13px;
      white-space: nowrap;
    }
    .family__chevron {
      width: 12px;
      height: 12px;
      border-right: 2px solid var(--muted);
      border-bottom: 2px solid var(--muted);
      transform: rotate(45deg);
      transition: transform .2s ease;
      margin-right: 4px;
    }
    details[open] .family__chevron {
      transform: rotate(-135deg) translateY(-2px);
    }
    .family__content {
      padding: 0 20px 20px;
      border-top: 1px solid rgba(255,255,255,.08);
    }
    .family__desc {
      margin: 16px 0 12px;
      color: var(--muted);
    }
    .subfamily {
      padding: 14px 0;
      border-top: 1px solid rgba(255,255,255,.07);
    }
    .subfamily:first-of-type {
      border-top: 0;
    }
    .subfamily__title {
      margin: 0 0 6px;
      font-size: 13px;
      letter-spacing: .11em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 700;
    }
    .subfamily__desc {
      margin: 0 0 10px;
      color: var(--muted);
      font-size: 14px;
    }
    .brand-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 14px;
    }
    .brand-link {
      color: #fff;
      font-weight: 700;
      line-height: 1.3;
      border-bottom: 1px solid transparent;
      transition: border-color .2s ease;
    }
    .brand-link:hover {
      border-bottom-color: rgba(255,255,255,.4);
    }

    .bars {
      display: none;
    }
    .bars.is-visible {
      display: block;
    }
    .bars__card {
      padding: 12px 14px;
    }
    .bar {
      display: grid;
      grid-template-columns: minmax(220px, 340px) 1fr minmax(64px, 82px);
      gap: 14px;
      align-items: center;
      padding: 12px 10px;
      border-top: 1px solid rgba(255,255,255,.08);
      cursor: pointer;
    }
    .bar:first-child { border-top: 0; }
    .bar:hover { background: rgba(255,255,255,.03); }
    .bar__title { font-weight: 700; }
    .bar__track {
      height: 14px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.09);
    }
    .bar__fill {
      height: 100%;
      border-radius: inherit;
      background: rgba(255,255,255,.8);
    }
    .bar__meta {
      color: var(--muted);
      font-size: 12px;
      text-align: right;
      white-space: nowrap;
    }

    .modal {
      position: fixed;
      inset: 0;
      display: none;
      place-items: center;
      padding: 18px;
      background: rgba(0,0,0,.58);
      z-index: 80;
    }
    .modal.is-open { display: grid; }
    .modal__card {
      width: min(100%, 980px);
      max-height: 86vh;
      overflow: auto;
      background: #0b1118;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 20px;
      box-shadow: var(--shadow);
    }
    .modal__head {
      position: sticky;
      top: 0;
      display: flex;
      justify-content: flex-end;
      padding: 10px 12px;
      background: rgba(11,17,24,.94);
      border-bottom: 1px solid var(--border);
    }
    .modal__close {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 8px 10px;
      cursor: pointer;
    }
    .modal__body {
      padding: 14px 16px 18px;
    }
    .modal__family {
      margin: 0 0 8px;
      font-size: 20px;
      font-weight: 900;
      letter-spacing: .05em;
      text-transform: uppercase;
    }
    .modal__desc {
      color: var(--muted);
      margin: 0 0 12px;
    }
    .modal__sub {
      margin-top: 12px;
      padding: 12px;
      background: rgba(255,255,255,.02);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 14px;
    }

    .search-hit {
      color: rgba(96,165,250,.98) !important;
    }
    .search-chip {
      background: rgba(59,130,246,.08);
      border: 1px solid rgba(59,130,246,.28);
      border-radius: 999px;
      padding: 6px 10px;
    }

    .map-section {
      padding-top: 22px;
      padding-bottom: 6px;
    }
    .map-card {
      max-width: 640px;
      margin: 0 auto;
      padding: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      text-align: center;
    }
    .map-card svg {
      width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }

    .contact {
      width: min(100%, var(--panel-w));
      max-width: var(--panel-w);
      margin: 0 auto;
      padding: 30px;
    }
    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 14px;
    }
    .form-grid .full {
      grid-column: 1 / -1;
    }
    .field {
      width: 100%;
      padding: 14px 14px;
      color: var(--text);
      background: #0f1720;
      border: 1px solid rgba(53,72,94,.92);
      border-radius: 14px;
      outline: 0;
    }
    .field:focus {
      border-color: rgba(59,130,246,.55);
      box-shadow: 0 0 0 4px rgba(59,130,246,.12);
    }
    textarea.field {
      min-height: 160px;
      resize: vertical;
    }
    .form-actions {
      display: grid;
      justify-items: center;
      gap: 12px;
      margin-top: 16px;
    }
    .consent {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
      max-width: 720px;
    }
    .consent input {
      margin-top: 2px;
      accent-color: var(--accent);
    }
    .btn-primary {
      appearance: none;
      border: 0;
      cursor: pointer;
      padding: 14px 22px;
      border-radius: 14px;
      font-weight: 800;
      color: white;
      background: var(--accent);
      transition: filter .18s ease, transform .18s ease;
    }
    .btn-primary:hover {
      filter: brightness(1.05);
      transform: translateY(-1px);
    }

    .footer {
      margin-top: 22px;
      padding: 38px 0;
      border-top: 1px solid var(--border);
      background: #0b1118;
    }
    .footer__grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 24px;
      align-items: start;
      color: #6b7280;
      font-size: 12px;
    }
    .footer__social {
      display: flex;
      gap: 12px;
      align-items: center;
      justify-content: center;
      justify-self: center;
      align-self: start;
      width: max-content;
      margin: 0 auto;
      padding: 0;
      line-height: 1;
      opacity: .8;
    }
    .footer__social span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }
    .footer__social svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
      display: block;
    }
    .footer__right {
      justify-self: center;
      align-self: start;
      width: 100%;
      text-align: center;
      line-height: 1.45;
    }
    .footer__right > div {
      width: 100%;
      text-align: center;
    }
    .footer__right a, .footer__right strong {
      color: inherit;
    }
    @media (min-width: 701px) {
      .footer__social {
        margin-top: -6px;
        transform: none;
      }
    }

    .wa {
      position: fixed;
      right: 16px;
      bottom: 18px;
      z-index: 90;
      width: 54px;
      height: 54px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: #25D366;
      color: white;
      box-shadow: 0 14px 34px rgba(0,0,0,.35);
    }
    .wa svg {
      width: 26px;
      height: 26px;
      fill: currentColor;
    }
    .wa span {
      position: absolute;
      right: 62px;
      bottom: 50%;
      transform: translateY(50%);
      color: var(--text);
      background: rgba(11,17,24,.94);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 8px 10px;
      font-size: 12px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity .16s ease;
    }
    .wa:hover span { opacity: 1; }

    mark {
      background: transparent;
      color: inherit;
      font-weight: inherit;
    }

    @media (max-width: 920px) {
      .hero__logo { width: min(90vw, 640px); }
      .bar { grid-template-columns: 1fr; }
      .bar__meta { text-align: left; }
      .footer__grid { grid-template-columns: 1fr; }
      .footer__social { justify-self: center; }
      .footer__right {
        justify-self: center;
        align-self: start;
        width: 100%;
        text-align: center;
      }
      .footer__right > div {
        width: 100%;
        text-align: center;
      }
    }
    @media (max-width: 700px) {
      .topbar__inner { flex-direction: column; justify-content: center; padding: 8px 0; }
      .lang-control { top: calc(var(--header-h) + 18px); }
      .hero { padding: 54px 14px 8px; background-position: 62% 40%; }
      .hero__logo { width: min(92vw, 360px); }
      .form-grid { grid-template-columns: 1fr; }
      .family summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
      .family__meta { grid-column: 1 / 2; }
      .family__chevron { grid-column: 2 / 3; grid-row: 1 / span 2; align-self: center; }
      .wa { width: 50px; height: 50px; right: 14px; bottom: 14px; }
      .wa span { display: none; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
      }
    }
