.assistant-overlay {
    background: rgba(238, 244, 250, .82) !important;
    backdrop-filter: blur(18px) saturate(1.08) !important;
  }

  .assistant-modal {
    color: #10263b !important;
    background:
      radial-gradient(circle at 17% 24%, rgba(37, 116, 170, .17), transparent 34%),
      radial-gradient(circle at 88% 82%, rgba(201, 153, 76, .14), transparent 32%),
      linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(240, 246, 251, .97)) !important;
    border-color: rgba(201, 153, 76, .58) !important;
    box-shadow: 0 34px 100px rgba(16, 38, 59, .24) !important;
  }

  .assistant-visual {
    background:
      linear-gradient(rgba(17, 72, 111, .055) 1px, transparent 1px) 0 0 / 42px 42px,
      linear-gradient(90deg, rgba(17, 72, 111, .055) 1px, transparent 1px) 0 0 / 42px 42px,
      radial-gradient(circle, rgba(73, 152, 203, .18), transparent 58%) !important;
    border-color: rgba(201, 153, 76, .34) !important;
  }

  .assistant-visual::before {
    border-color: rgba(201, 153, 76, .42) !important;
    box-shadow: 0 0 0 18px rgba(201, 153, 76, .04), 0 0 85px rgba(43, 124, 180, .18) !important;
  }

  .assistant-orb {
    width: min(430px, 84%) !important;
    background: none !important;
    filter: drop-shadow(0 12px 34px rgba(28, 91, 137, .24)) !important;
    animation: d8-orb-breathe 4.5s ease-in-out infinite !important;
    isolation: isolate;
  }

  .assistant-orb::before,
  .assistant-orb::after {
    content: "";
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(31, 102, 151, .17);
    border-radius: 50%;
  }

  .assistant-orb::after {
    inset: 22%;
    border-color: rgba(201, 153, 76, .28);
  }

  .assistant-orb .d8-dot {
    --scale: .82;
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--dot-size, 6px);
    height: var(--dot-size, 6px);
    border: 0;
    border-radius: 999px;
    background: var(--dot-color, #1f6697);
    box-shadow: 0 0 12px color-mix(in srgb, var(--dot-color) 62%, transparent);
    opacity: var(--dot-opacity, .76);
    transform: translate(calc(var(--x) * 1px), calc(var(--y) * 1px)) scale(var(--scale));
    animation: d8-dot-idle 3.4s ease-in-out infinite;
    animation-delay: calc(var(--delay) * -1s);
  }

  .assistant-modal.is-speaking .assistant-orb .d8-dot {
    animation-name: d8-dot-speaking;
    animation-duration: .58s;
    opacity: .96;
  }

  .assistant-panel .eyebrow { color: #a6752d !important; }
  .assistant-panel h2 { color: #10263b !important; }
  .assistant-intro { color: #536779 !important; }
  .assistant-status { color: #3e5568 !important; font-size: 12px !important; }
  .assistant-status i { background: #2c83b9 !important; box-shadow: 0 0 16px rgba(44, 131, 185, .5) !important; }
  .assistant-panel > small { color: #6d7d89 !important; font-size: 10px !important; }
  .elevenlabs-shell {
    background: rgba(255, 255, 255, .7) !important;
    border-color: rgba(201, 153, 76, .46) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 12px 32px rgba(21, 65, 96, .08);
  }
  .experience-close {
    color: #173a55 !important;
    background: rgba(255, 255, 255, .78) !important;
    border-color: rgba(21, 65, 96, .23) !important;
  }
  .experience-close:hover { background: #fff !important; border-color: #c9994c !important; }

  a.floating-whatsapp,
  .floating-whatsapp {
    display: grid !important;
    place-items: center !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 56px !important;
    max-height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
  }
  a.floating-whatsapp::before,
  a.floating-whatsapp::after,
  .floating-whatsapp::before,
  .floating-whatsapp::after { content: none !important; display: none !important; }
  a.floating-whatsapp:hover,
  .floating-whatsapp:hover {
    background: none !important;
    transform: translateY(-3px) scale(1.04) !important;
  }
  .floating-whatsapp > :not(.d8-whatsapp-icon) { display: none !important; }
  .floating-whatsapp .d8-whatsapp-icon {
    display: block !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    flex-basis: 56px !important;
    border-radius: 50% !important;
    object-fit: contain !important;
  }

  /* Compact voice card: replaces the former full-width visual experience. */
  .assistant-overlay {
    padding: 18px !important;
    place-items: center !important;
    background: rgba(10, 28, 42, .46) !important;
    backdrop-filter: blur(12px) saturate(1.08) !important;
  }
  .assistant-modal {
    display: block !important;
    width: min(460px, calc(100vw - 36px)) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 36px) !important;
    overflow-y: auto !important;
    border-radius: 24px !important;
    animation: d8-card-in .28s cubic-bezier(.2, .8, .2, 1) both;
  }
  .assistant-visual { display: none !important; }
  .assistant-panel {
    min-width: 0 !important;
    padding: 34px 30px 28px !important;
  }
  .assistant-panel .eyebrow {
    margin: 0 52px 9px 0 !important;
    font-size: 11px !important;
  }
  .assistant-panel h2 {
    margin: 0 !important;
    font-size: clamp(28px, 7vw, 38px) !important;
    letter-spacing: .11em !important;
    line-height: 1.08 !important;
  }
  .assistant-intro {
    margin: 16px 0 20px !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
  .assistant-status {
    margin: 15px 0 14px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  .elevenlabs-shell {
    min-height: 260px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }
  .assistant-panel > small {
    display: block !important;
    margin-top: 13px !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
  }
  .assistant-modal .experience-close {
    top: 18px !important;
    right: 18px !important;
    z-index: 4 !important;
  }

  .d8-agent-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 72px;
    height: 72px;
    margin: 0 0 18px;
    border: 1px solid rgba(201, 153, 76, .48);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 26%, #fff, #eaf4fa 58%, #daeaf5);
    box-shadow: 0 12px 34px rgba(30, 94, 137, .16), inset 0 0 0 8px rgba(255, 255, 255, .58);
  }
  .d8-agent-pulse span {
    width: 6px;
    height: 17px;
    border-radius: 99px;
    background: linear-gradient(180deg, #2b87bd, #c9994c);
    animation: d8-pulse-idle 1.8s ease-in-out infinite;
  }
  .d8-agent-pulse span:nth-child(2) { height: 27px; animation-delay: -.32s; }
  .d8-agent-pulse span:nth-child(3) { height: 20px; animation-delay: -.64s; }
  .assistant-modal.is-speaking .d8-agent-pulse span,
  .d8-voice-dialog.is-speaking .d8-agent-pulse span {
    animation-name: d8-pulse-speaking;
    animation-duration: .48s;
  }

  .d8-voice-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(7, 20, 30, .72);
    backdrop-filter: blur(14px) saturate(1.08);
  }
  body.d8-voice-open .assistant-overlay { display: none !important; }
  .d8-voice-overlay[hidden] { display: none !important; }
  .d8-voice-dialog {
    position: relative;
    width: min(500px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(201, 153, 76, .62);
    border-radius: 26px;
    color: #10263b;
    background:
      radial-gradient(circle at 12% 12%, rgba(44, 131, 185, .12), transparent 34%),
      radial-gradient(circle at 88% 86%, rgba(201, 153, 76, .12), transparent 32%),
      linear-gradient(145deg, #fff, #eef5fa);
    box-shadow: 0 34px 100px rgba(3, 16, 25, .38);
    animation: d8-card-in .28s cubic-bezier(.2, .8, .2, 1) both;
  }
  .d8-voice-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(21, 65, 96, .22);
    border-radius: 50%;
    color: #173a55;
    background: rgba(255, 255, 255, .9);
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
  }
  .d8-voice-close:hover { border-color: #c9994c; background: #fff; transform: rotate(4deg); }
  .d8-voice-dialog .d8-agent-pulse { margin-bottom: 20px; }
  .d8-voice-eyebrow {
    margin: 0 54px 8px 0;
    color: #a6752d;
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .27em;
    text-transform: uppercase;
  }
  .d8-voice-title {
    margin: 0;
    color: #10263b;
    font-size: clamp(30px, 7vw, 42px);
    font-weight: 430;
    letter-spacing: .04em;
    line-height: 1.08;
  }
  .d8-voice-copy {
    margin: 13px 0 16px;
    color: #536779;
    font-size: 15px;
    line-height: 1.55;
  }
  .d8-voice-dialog .assistant-status {
    margin: 0 0 14px !important;
    color: #3e5568 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
  .d8-voice-privacy {
    display: block;
    margin-top: 13px;
    color: #6d7d89;
    font-size: 11px;
    line-height: 1.5;
  }

  @media (max-width: 560px) {
    .d8-voice-overlay { padding: 0; place-items: end center; }
    .d8-voice-dialog {
      width: 100%;
      max-height: 92dvh;
      padding: 26px 20px calc(20px + env(safe-area-inset-bottom));
      border-width: 1px 0 0;
      border-radius: 26px 26px 0 0;
    }
    .d8-voice-dialog .d8-agent-pulse { width: 62px; height: 62px; margin-bottom: 16px; }
    .d8-voice-title { font-size: 31px; }
    .d8-voice-copy { font-size: 14px; }
  }

  @keyframes d8-card-in {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes d8-pulse-idle {
    0%, 100% { transform: scaleY(.58); opacity: .68; }
    50% { transform: scaleY(1); opacity: 1; }
  }
  @keyframes d8-pulse-speaking {
    0%, 100% { transform: scaleY(.42); }
    50% { transform: scaleY(1.35); }
  }

  @media (max-width: 560px) {
    .assistant-overlay {
      padding: 0 !important;
      place-items: end center !important;
    }
    .assistant-modal {
      width: 100% !important;
      max-height: 90dvh !important;
      border-width: 1px 0 0 !important;
      border-radius: 24px 24px 0 0 !important;
    }
    .assistant-panel {
      padding: 27px 20px calc(20px + env(safe-area-inset-bottom)) !important;
    }
    .assistant-panel h2 { font-size: 29px !important; }
    .assistant-intro { font-size: 14px !important; }
    .d8-agent-pulse { width: 62px; height: 62px; margin-bottom: 15px; }
    .elevenlabs-shell { min-height: 248px !important; }
  }

  .hero-image {
    background-image:
      linear-gradient(90deg, #050708 0%, rgba(5, 7, 8, .86) 5%, rgba(5, 7, 8, .42) 12%, rgba(5, 7, 8, 0) 25%),
      linear-gradient(180deg, rgba(6, 20, 30, .03), rgba(6, 20, 30, .22)),
      url('/d8-hero-team.webp') !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .hero-image .building-label { display: none !important; }

  @media (max-width: 820px) {
    .hero-image {
      background-image:
        linear-gradient(180deg, #050708 0%, rgba(5, 7, 8, .62) 7%, rgba(5, 7, 8, 0) 24%),
        linear-gradient(180deg, rgba(6, 20, 30, .03), rgba(6, 20, 30, .22)),
        url('/d8-hero-team.webp') !important;
    }
  }

  .d8-voice-stage {
    display: grid;
    min-height: 260px;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: #173a55;
    background:
      radial-gradient(circle at 50% 25%, rgba(44, 131, 185, .11), transparent 42%),
      rgba(255, 255, 255, .46);
  }
  .d8-voice-stage[hidden] { display: none !important; }
  .d8-voice-loader {
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: 300px;
  }
  .d8-voice-loader strong {
    font-size: 17px;
    color: #15344c;
  }
  .d8-voice-loader p {
    margin: 0;
    color: #5d7282;
    font-size: 13px;
    line-height: 1.5;
  }
  .d8-loader-ring {
    width: 44px;
    height: 44px;
    margin-bottom: 3px;
    border: 3px solid rgba(44, 131, 185, .18);
    border-top-color: #2c83b9;
    border-right-color: #c9994c;
    border-radius: 50%;
    animation: d8-loader-spin .8s linear infinite;
  }
  .d8-voice-ready {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
    color: #2d607d;
    font-size: 12px;
  }
  .d8-voice-ready::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2c83b9;
    box-shadow: 0 0 0 5px rgba(44, 131, 185, .1);
  }

  .advisor-heading {
    align-items: end !important;
    text-align: left !important;
  }
  .advisor-heading > div,
  .advisor-heading h2,
  .advisor-heading p,
  .advisor-info { text-align: left !important; }
  .advisor-info p { margin-bottom: 18px !important; }
  .advisor-info > div {
    gap: 16px !important;
    margin-top: 14px;
  }
  .d8-team-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid #c9994c;
    border-radius: 999px;
    color: #f7f4ee;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }
  .d8-team-open:hover {
    color: #0b263a;
    background: #c9994c;
    transform: translateY(-2px);
  }
  .advisor-info a.d8-contact-pulse {
    position: relative;
    border: 1px solid rgba(201, 153, 76, .54) !important;
    border-radius: 999px !important;
    padding: 9px 14px !important;
    overflow: visible;
  }
  .advisor-info a.d8-contact-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(201, 153, 76, .55);
    border-radius: inherit;
    animation: d8-contact-pulse 2.2s ease-out infinite;
    pointer-events: none;
  }

  .d8-career-overlay {
    z-index: 150;
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(7, 21, 31, .68);
    backdrop-filter: blur(12px);
  }
  .d8-career-overlay[hidden] { display: none !important; }
  .d8-career-dialog {
    position: relative;
    width: min(620px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: 36px;
    border: 1px solid rgba(201, 153, 76, .58);
    border-radius: 24px;
    color: #15344c;
    background: linear-gradient(145deg, #fff, #edf5fa);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .32);
    animation: d8-card-in .28s cubic-bezier(.2, .8, .2, 1) both;
  }
  .d8-career-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(23, 58, 85, .22);
    border-radius: 50%;
    color: #173a55;
    background: #fff;
    font: inherit;
    font-size: 24px;
    cursor: pointer;
  }
  .d8-career-dialog .eyebrow { color: #a6752d !important; }
  .d8-career-dialog h2 {
    margin: 8px 52px 10px 0;
    font-size: clamp(28px, 6vw, 42px);
    line-height: 1.05;
  }
  .d8-career-dialog > p { color: #5c6f7e; line-height: 1.55; }
  .d8-career-form { display: grid; gap: 14px; margin-top: 22px; }
  .d8-career-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .d8-career-form label {
    display: grid;
    gap: 7px;
    color: #27475f;
    font-size: 12px;
    font-weight: 700;
  }
  .d8-career-form input,
  .d8-career-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid rgba(21, 62, 91, .22);
    border-radius: 12px;
    color: #15344c;
    background: rgba(255, 255, 255, .9);
    font: inherit;
  }
  .d8-career-form textarea { min-height: 90px; resize: vertical; }
  .d8-career-form input[type="file"] { padding: 10px; }
  .d8-career-submit {
    min-height: 52px;
    border: 1px solid #b98231;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(110deg, #102f49, #1d6798);
    font: inherit;
    font-weight: 760;
    cursor: pointer;
  }
  .d8-career-status { min-height: 20px; margin: 0; color: #31536b; font-size: 12px; }

  @keyframes d8-contact-pulse {
    0% { opacity: .62; transform: scale(.96); }
    70%, 100% { opacity: 0; transform: scale(1.14); }
  }

  @media (max-width: 720px) {
    .advisor-heading { align-items: start !important; }
    .d8-team-open { width: 100%; }
    .d8-career-overlay { padding: 0; place-items: end center; }
    .d8-career-dialog {
      width: 100%;
      max-height: 92dvh;
      padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
      border-radius: 24px 24px 0 0;
    }
    .d8-career-fields { grid-template-columns: 1fr; }
  }

  @media (max-width: 420px) {
    .d8-voice-stage { min-height: 248px; padding: 20px; }
  }

  .d8-voice-retry {
    min-height: 54px;
    padding: 0 24px;
    border: 1px solid #b98231;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(110deg, #102f49, #1d6798);
    box-shadow: 0 10px 25px rgba(20, 75, 113, .2);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .d8-voice-retry:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 75, 113, .27); }
  .d8-voice-retry:focus-visible { outline: 3px solid rgba(201, 153, 76, .42); outline-offset: 3px; }

  .d8-voice-console {
    display: grid;
    min-height: 270px;
    place-items: center;
    gap: 22px;
    padding: 28px 22px 24px;
    text-align: center;
    background:
      radial-gradient(circle at 50% 34%, rgba(44, 131, 185, .14), transparent 34%),
      linear-gradient(145deg, rgba(255,255,255,.88), rgba(232,243,250,.74));
  }
  .d8-voice-orb {
    position: relative;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(201, 153, 76, .55);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #fff 0 11%, #dceef8 54%, #bcdbea 100%);
    box-shadow: 0 18px 42px rgba(27, 92, 136, .2), inset 0 0 0 10px rgba(255,255,255,.54);
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .d8-voice-orb::before,
  .d8-voice-orb::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(44, 131, 185, .22);
    border-radius: 50%;
    opacity: 0;
  }
  .d8-voice-dialog.is-connected .d8-voice-orb::before { animation: d8-voice-ring 2.2s ease-out infinite; }
  .d8-voice-dialog.is-connected .d8-voice-orb::after { animation: d8-voice-ring 2.2s .8s ease-out infinite; }
  .d8-voice-dialog.is-speaking .d8-voice-orb {
    transform: scale(1.045);
    box-shadow: 0 22px 54px rgba(27, 92, 136, .3), inset 0 0 0 10px rgba(255,255,255,.58);
  }
  .d8-voice-bars { display: flex; align-items: center; justify-content: center; gap: 7px; height: 48px; }
  .d8-voice-bars span {
    width: 7px;
    height: 24px;
    border-radius: 99px;
    background: linear-gradient(180deg, #2c83b9, #c9994c);
    animation: d8-pulse-idle 1.8s ease-in-out infinite;
  }
  .d8-voice-bars span:nth-child(2) { height: 43px; animation-delay: -.32s; }
  .d8-voice-bars span:nth-child(3) { height: 31px; animation-delay: -.64s; }
  .d8-voice-dialog.is-speaking .d8-voice-bars span { animation: d8-pulse-speaking .46s ease-in-out infinite; }
  .d8-voice-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
  .d8-voice-button {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #b98231;
    border-radius: 999px;
    color: #173a55;
    background: rgba(255,255,255,.9);
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  }
  .d8-voice-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,75,113,.17); }
  .d8-voice-button:disabled { cursor: not-allowed; opacity: .48; }
  .d8-voice-start { color: #fff; background: linear-gradient(110deg, #102f49, #1d6798); }
  .d8-voice-end { color: #fff; background: linear-gradient(110deg, #8b2e2e, #bd4b3f); border-color: #a13b34; }
  .d8-voice-mute { width: 48px; padding: 0; font-size: 18px; }
  .d8-voice-mute[aria-pressed="true"] { color: #fff; background: #a13b34; border-color: #a13b34; }
  .d8-voice-button[hidden] { display: none !important; }
  .d8-voice-hint { margin: -8px 0 0; color: #607587; font-size: 11px; line-height: 1.45; }

  .d8-about-overlay {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(5, 18, 28, .78);
    backdrop-filter: blur(14px) saturate(1.08);
  }
  .d8-about-overlay[hidden] { display: none !important; }
  .d8-about-dialog {
    position: relative;
    width: min(1040px, calc(100vw - 44px));
    max-height: calc(100dvh - 44px);
    padding: 58px 18px 18px;
    overflow: auto;
    border: 1px solid rgba(201,153,76,.62);
    border-radius: 28px;
    color: #10263b;
    background: linear-gradient(145deg, #fff, #eaf3f9);
    box-shadow: 0 36px 100px rgba(0,0,0,.42);
    animation: d8-card-in .28s cubic-bezier(.2,.8,.2,1) both;
  }
  .d8-about-close {
    position: absolute;
    top: 11px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(21,65,96,.22);
    border-radius: 50%;
    color: #173a55;
    background: #fff;
    font: inherit;
    font-size: 24px;
    cursor: pointer;
  }
  .d8-about-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: #081621;
    box-shadow: 0 16px 42px rgba(12,43,65,.16);
  }
  .d8-about-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .d8-about-link { display: block; margin: 12px 4px 0; color: #1d6798; font-size: 12px; text-align: right; }

  .d8-tour-overlay { position: fixed; inset: 0; z-index: 2147483646; display: grid; place-items: center; padding: 24px; background: rgba(3,14,21,.82); backdrop-filter: blur(12px); }
  .d8-tour-overlay[hidden] { display: none !important; }
  .d8-tour-dialog { position: relative; width: min(1040px,94vw); height: min(720px,86dvh); overflow: hidden; border: 1px solid rgba(201,153,76,.68); border-radius: 26px; background: #07151e; box-shadow: 0 30px 90px rgba(0,0,0,.46); }
  .d8-tour-content, .d8-tour-dialog iframe { width: 100%; height: 100%; }
  .d8-tour-dialog iframe { border: 0; background: #fff; }
  .d8-tour-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(3,14,21,.8); font-size: 25px; cursor: pointer; }
  .d8-tour-empty { display: grid; height: 100%; place-items: center; padding: 40px; text-align: center; color: #fff; }
  .d8-tour-empty strong { display: block; margin-bottom: 10px; color: #d7a54c; font-size: clamp(22px,3vw,34px); }
  .d8-tour-button { white-space: nowrap; }

  @keyframes d8-voice-ring {
    0% { opacity: .65; transform: scale(.9); }
    80%, 100% { opacity: 0; transform: scale(1.28); }
  }

  @media (max-width: 560px) {
    .d8-voice-console { min-height: 250px; padding: 24px 14px 20px; }
    .d8-voice-orb { width: 94px; height: 94px; }
    .d8-voice-controls { display: grid; grid-template-columns: 1fr 48px; }
    .d8-voice-start, .d8-voice-end { grid-column: 1; grid-row: 1; }
    .d8-voice-mute { grid-column: 2; grid-row: 1; }
    .d8-about-overlay { padding: 0; place-items: end center; }
    .d8-about-dialog { width: 100%; max-height: 94dvh; padding: 56px 12px calc(14px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
    .d8-about-frame { border-radius: 14px; }
    .d8-tour-overlay { padding: 0; place-items: end center; }
    .d8-tour-dialog { width: 100%; height: 84dvh; border-radius: 24px 24px 0 0; }
  }

  @keyframes d8-loader-spin { to { transform: rotate(360deg); } }

  @keyframes d8-orb-breathe {
    0%, 100% { transform: scale(.96) rotate(-1deg); }
    50% { transform: scale(1.035) rotate(1deg); }
  }
  @keyframes d8-dot-idle {
    0%, 100% { transform: translate(calc(var(--x) * 1px), calc(var(--y) * 1px)) scale(.72); }
    50% { transform: translate(calc(var(--x) * 1px), calc((var(--y) - 4) * 1px)) scale(1); }
  }
  @keyframes d8-dot-speaking {
    0%, 100% { transform: translate(calc(var(--x) * .9px), calc(var(--y) * .9px)) scale(.66); }
    50% { transform: translate(calc(var(--x) * 1.08px), calc(var(--y) * 1.08px)) scale(1.38); }
  }

  @media (prefers-reduced-motion: reduce) {
    .assistant-modal, .assistant-orb, .assistant-orb .d8-dot, .d8-agent-pulse span, .d8-loader-ring, .d8-voice-bars span, .d8-voice-orb::before, .d8-voice-orb::after { animation: none !important; }
  }
  .inventory-photo, .project-card.featured-card .project-photo { aspect-ratio: 3 / 4 !important; height: auto !important; min-height: 0 !important; }
  .inventory-photo img, .project-card.featured-card .project-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; background: #090a0a; }
  .inventory-photo video, .project-card.featured-card .project-photo video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .listing-gallery { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; grid-template-rows: none !important; grid-auto-rows: auto !important; align-items: start; height: auto !important; min-height: 0 !important; gap: 14px !important; padding: 18px; overflow: visible !important; }
  .listing-gallery.media-count-1 { grid-template-columns: minmax(240px,420px) !important; justify-content: center; }
  .listing-gallery.media-count-2 { grid-template-columns: repeat(2,minmax(240px,420px)) !important; justify-content: center; }
  .listing-image, .listing-image.image-1 { grid-column: auto !important; grid-row: auto !important; min-width: 0; min-height: 0; aspect-ratio: 3 / 4; border: 1px solid rgba(201,153,76,.2); border-radius: 14px; background: #090a0a; overflow: hidden; }
  .listing-image:nth-child(n+4) { display: grid !important; }
  .listing-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; background: #090a0a; }
  .listing-image video { width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center !important; background: #000; }
  .d8-alliances { padding: 58px 0 54px; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); background: radial-gradient(circle at 50% 0,rgba(201,153,76,.08),transparent 42%),#090a0a; overflow: hidden; }
  .d8-alliances-heading { margin-bottom: 29px; text-align: center; }
  .d8-alliances-heading .eyebrow { margin: 0 0 10px; }
  .d8-alliances-heading h2 { margin: 0; color: #f0eee8; font-size: clamp(21px,2.3vw,32px); font-weight: 430; letter-spacing: .17em; text-transform: uppercase; }
  .d8-alliance-logos { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); align-items: center; gap: 25px; width: 100%; }
  .d8-alliance-logo { display: grid; place-items: center; min-width: 0; height: 58px; margin: 0; }
  .d8-alliance-logo img { display: block; width: 100%; max-width: 168px; height: 38px; object-fit: contain; opacity: .62; filter: grayscale(1); transition: opacity .2s ease,transform .2s ease,filter .2s ease; }
  .d8-alliance-logo:hover img { opacity: .92; filter: grayscale(0); transform: translateY(-2px); }
  @media (max-width: 680px) {
    .inventory-card, .project-card.featured-card { width: min(100%, 430px); margin-inline: auto; }
    .listing-gallery, .listing-gallery.media-count-1, .listing-gallery.media-count-2 { grid-template-columns: minmax(0,420px) !important; justify-content: center; padding: 12px; }
  }
  @media (max-width: 900px) {
    .d8-alliances { padding: 46px 0 42px; }
    .d8-alliance-logos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 142px; justify-content: start; gap: 20px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: rgba(201,153,76,.38) transparent; padding: 2px 8px 12px; }
    .d8-alliance-logo img { max-width: 136px; height: 34px; }
  }
  @media (max-width: 560px) {
    .d8-alliances-heading { margin-bottom: 22px; }
    .d8-alliances-heading h2 { font-size: 19px; line-height: 1.35; }
    .d8-alliance-logos { grid-auto-columns: 124px; gap: 16px; }
  }

  /* Formato inmobiliario vertical uniforme en escritorio, tablet y móvil. */
  .project-grid,
  .inventory-grid { align-items: start !important; }

  .inventory-card .inventory-photo,
  .project-card.featured-card .project-photo,
  .listing-gallery .listing-image {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4 !important;
    overflow: hidden !important;
  }

  .inventory-card .inventory-photo > img,
  .inventory-card .inventory-photo > video,
  .project-card.featured-card .project-photo > img,
  .project-card.featured-card .project-photo > video,
  .listing-gallery .listing-image > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .listing-gallery .listing-image > video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
  }

  /* Visor 3:4: fotografía completa y selector inferior en cualquier pantalla. */
  .photo-lightbox-overlay {
    padding: 18px 70px !important;
    overflow: hidden !important;
  }

  .photo-lightbox {
    width: min(620px, calc(100vw - 150px), calc((100dvh - 170px) * .75)) !important;
    max-width: none !important;
    max-height: none !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    place-items: center !important;
  }

  .photo-lightbox > img {
    grid-row: 1 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    max-width: none !important;
    max-height: calc(100dvh - 170px) !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 16px !important;
    background: #020303 !important;
  }

  .d8-photo-thumbnails {
    grid-row: 2;
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 153, 76, .55) transparent;
  }

  .d8-photo-thumbnails[hidden] { display: none !important; }

  .d8-photo-thumbnail {
    position: relative;
    flex: 0 0 64px;
    aspect-ratio: 3 / 4;
    padding: 0;
    overflow: hidden;
    scroll-snap-align: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 9px;
    background: #0b0c0c;
    opacity: .58;
    cursor: pointer;
    transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
  }

  .d8-photo-thumbnail:hover,
  .d8-photo-thumbnail.is-active {
    opacity: 1;
    border-color: #c9994c;
    transform: translateY(-1px);
  }

  .d8-photo-thumbnail.is-active { box-shadow: 0 0 0 2px rgba(201,153,76,.2); }
  .d8-photo-thumbnail img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

  .photo-lightbox-close { top: 8px !important; right: -56px !important; }
  .photo-lightbox-nav.previous { left: -60px !important; }
  .photo-lightbox-nav.next { right: -60px !important; }
  .photo-lightbox-counter { bottom: 112px !important; }

  @media (max-width: 720px) {
    .photo-lightbox-overlay { padding: 10px !important; }
    .photo-lightbox {
      width: min(calc(100vw - 20px), calc((100dvh - 145px) * .75)) !important;
      gap: 9px !important;
    }
    .photo-lightbox > img { max-height: calc(100dvh - 145px) !important; border-radius: 13px !important; }
    .photo-lightbox-close { top: 8px !important; right: 8px !important; width: 39px !important; height: 39px !important; }
    .photo-lightbox-nav.previous { left: 8px !important; }
    .photo-lightbox-nav.next { right: 8px !important; }
    .photo-lightbox-nav { width: 38px !important; height: 52px !important; }
    .photo-lightbox-counter { bottom: 100px !important; }
    .d8-photo-thumbnail { flex-basis: 56px; }
    .d8-photo-thumbnails { gap: 8px; }
  }

  @media (max-width: 430px) {
    .photo-lightbox-overlay { padding: 6px !important; }
    .photo-lightbox {
      width: min(calc(100vw - 12px), calc((100dvh - 132px) * .75)) !important;
    }
    .photo-lightbox > img { max-height: calc(100dvh - 132px) !important; }
    .photo-lightbox-close { right: 7px !important; }
    .photo-lightbox-nav.previous { left: 7px !important; }
    .photo-lightbox-nav.next { right: 7px !important; }
    .photo-lightbox-nav { width: 34px !important; height: 48px !important; }
    .photo-lightbox-counter { bottom: 94px !important; }
    .d8-photo-thumbnail { flex-basis: 52px; }
  }
