/* ==========================================================================
   Aurum · Seção do CRM (site principal e página dos médicos)
   ========================================================================== */
.crmx { position: relative; overflow: hidden; background: var(--ink); color: var(--white); isolation: isolate; }
.crmx::before { content: ""; position: absolute; left: 50%; top: 38%; width: min(1100px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(227,155,18,.16), rgba(227,155,18,0) 62%); z-index: -1; pointer-events: none; }
.crmx::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); mask: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }

/* Cabeçalho */
.crmx__head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; margin-bottom: 70px; }
.crmx__tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid rgba(244,185,74,.35); background: rgba(227,155,18,.08); color: var(--gold-2); font: 500 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.crmx__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(244,185,74,.18); animation: crmxPulse 2.4s ease-in-out infinite; }
@keyframes crmxPulse { 50% { box-shadow: 0 0 0 8px rgba(244,185,74,0); } }
.crmx__side p { margin: 0 0 28px; color: var(--muted-light); font-size: 17px; line-height: 1.75; font-weight: 300; }
.crmx__side p strong { color: var(--white); font-weight: 400; }
.crmx__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.crmx__more { color: var(--white); font: 500 14.5px var(--sans); border-bottom: 1px solid rgba(244,185,74,.5); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.crmx__more:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* Vitrine com as telas */
.crmx__stage { position: relative; padding: 0 8% 150px; perspective: 1600px; }
.crmx-win { position: relative; border-radius: 16px; overflow: hidden; background: #1a1916; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 50px 100px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4); }
.crmx-win__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: linear-gradient(#24221e, #1c1a17); border-bottom: 1px solid rgba(255,255,255,.07); }
.crmx-win__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.crmx-win__bar i:first-child { background: rgba(244,185,74,.75); }
.crmx-win__bar span { margin-left: 14px; padding: 4px 14px; border-radius: 6px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); font: 400 11.5px/1 var(--sans); letter-spacing: .03em; }
.crmx-win img { display: block; width: 100%; height: auto; }
.crmx-win--main { transform-origin: 50% 100%; transform: rotateX(var(--rx, 0deg)); transition: transform .2s linear; }
.crmx-win--main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(244,185,74,.18); }
.crmx-win--leads, .crmx-win--chat { position: absolute; z-index: 2; border-color: rgba(244,185,74,.28); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(244,185,74,.08); will-change: transform; }
.crmx-win--leads { width: 40%; right: 0; bottom: 0; transform: translateY(var(--py, 0px)); }
.crmx-win--chat { width: 26%; left: 0; bottom: 30px; transform: translateY(var(--py2, 0px)); }
.crmx-win--leads .crmx-win__bar, .crmx-win--chat .crmx-win__bar { height: 26px; padding: 0 11px; gap: 5px; }
.crmx-win--leads .crmx-win__bar i, .crmx-win--chat .crmx-win__bar i { width: 7px; height: 7px; }

.crmx-label { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(11,11,11,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(244,185,74,.35); color: var(--white); font: 500 13px/1 var(--sans); white-space: nowrap; box-shadow: 0 16px 30px -16px rgba(0,0,0,.8); }
.crmx-label b { color: var(--gold-2); font-weight: 500; }
.crmx-label--a { top: 34%; left: 0; }
.crmx-label--b { top: 6%; right: 2%; }

.crmx__note { margin: 26px 0 0; text-align: center; color: rgba(255,255,255,.38); font-size: 12.5px; letter-spacing: .04em; }

/* Benefícios */
.crmx__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 80px; border-radius: 22px; overflow: hidden; background: var(--line-light); border: 1px solid var(--line-light); }
.crmx-b { position: relative; padding: 38px 34px 36px; background: var(--ink); transition: background .5s var(--ease); }
.crmx-b::before { content: ""; position: absolute; left: 34px; right: 34px; top: 0; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.crmx-b:hover { background: var(--ink-2); }
.crmx-b:hover::before { transform: scaleX(1); }
.crmx-b__ico { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 14px; background: rgba(227,155,18,.1); border: 1px solid rgba(244,185,74,.28); color: var(--gold-2); }
.crmx-b__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.crmx-b h3 { margin: 0 0 10px; color: var(--white); font: 500 26px/1.15 var(--serif); }
.crmx-b p { margin: 0; color: var(--muted-light); font-size: 15px; line-height: 1.7; font-weight: 300; }

.crmx__foot { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 46px; padding: 30px 36px; border-radius: 20px; border: 1px solid rgba(244,185,74,.25); background: linear-gradient(110deg, rgba(227,155,18,.12), rgba(227,155,18,.02) 60%); }
.crmx__foot p { margin: 0; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.6; }
.crmx__foot p em { font-family: var(--serif); font-size: 1.3em; font-style: italic; color: var(--gold-2); }
.crmx__foot .btn { flex-shrink: 0; }

@media (max-width: 1080px) {
  .crmx__head { grid-template-columns: 1fr; gap: 26px; margin-bottom: 54px; }
  .crmx__grid { grid-template-columns: repeat(2, 1fr); }
  .crmx__stage { padding: 0 0 70px; }
  .crmx-label--b { display: none; }
}
@media (max-width: 720px) {
  .crmx__stage { padding: 0; }
  .crmx-win--main { transform: none; }
  .crmx-win__bar span { display: none; }
  .crmx-win--leads, .crmx-win--chat { position: relative; inset: auto; transform: none !important; }
  .crmx__mini { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; margin-top: -26px; padding: 0 10px; position: relative; z-index: 2; align-items: start; }
  .crmx-win--leads, .crmx-win--chat { width: auto; }
  .crmx-label { display: none; }
  .crmx__grid { grid-template-columns: 1fr; margin-top: 56px; }
  .crmx-b { display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; padding: 24px 22px; }
  .crmx-b__ico { width: 42px; height: 42px; margin: 2px 0 0; grid-row: span 2; border-radius: 12px; }
  .crmx-b h3 { font-size: 23px; margin-bottom: 6px; }
  .crmx-b p { font-size: 14.5px; }
  .crmx__tag { letter-spacing: .14em; font-size: 10.5px; }
  .crmx-b::before { left: 22px; right: 22px; }
  .crmx__foot { flex-direction: column; align-items: flex-start; padding: 26px; }
  .crmx__foot .btn { width: 100%; }
}
@media (min-width: 721px) { .crmx__mini { display: contents; } }
@media (prefers-reduced-motion: reduce) {
  .crmx__tag i { animation: none; }
  .crmx-win--main, .crmx-win--leads, .crmx-win--chat { transform: none !important; }
}

/* Movimento cinematográfico: o painel abre como uma tela de cinema e as janelas menores chegam em profundidade */
@media (min-width: 721px) {
  .crmx-win--main { clip-path: inset(calc((1 - var(--e, 1)) * 24%) calc((1 - var(--e, 1)) * 10%) round 16px); filter: blur(calc((1 - var(--e, 1)) * 10px)) brightness(calc(.5 + var(--e, 1) * .5)); }
  .crmx-win--leads { opacity: calc(var(--e2, 1) * 1.3 - .3); transform: translate3d(calc((1 - var(--e2, 1)) * 160px), calc(var(--py, 0px) + (1 - var(--e2, 1)) * 70px), 0) rotateY(calc((1 - var(--e2, 1)) * -28deg)); }
  .crmx-win--chat { opacity: calc(var(--e2, 1) * 1.3 - .3); transform: translate3d(calc((1 - var(--e2, 1)) * -160px), calc(var(--py2, 0px) + (1 - var(--e2, 1)) * 90px), 0) rotateY(calc((1 - var(--e2, 1)) * 28deg)); }
  .crmx-label { opacity: calc(var(--e3, 1) * 1.6 - .6); transform: translateY(calc((1 - var(--e3, 1)) * 18px)); }
}
.crmx-win--main::before { content: ""; position: absolute; inset: 34px 0 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,226,160,.18) 48%, transparent 61%); transform: translateX(-110%); }
.crmx__stage.is-lit .crmx-win--main::before { animation: crmxLuz 1.8s .1s cubic-bezier(.6,0,.2,1); }
@keyframes crmxLuz { to { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) {
  .crmx-win--main { clip-path: none; filter: none; }
  .crmx-win--leads, .crmx-win--chat, .crmx-label { opacity: 1; }
  .crmx__stage.is-lit .crmx-win--main::before { animation: none; }
}

/* janela do panorama e janelas flutuando */
.crmx-win--pano { position: absolute; z-index: 2; width: 34%; right: -1%; top: -4%; border-color: rgba(244,185,74,.32); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 40px -12px rgba(227,155,18,.35); transform: translateY(var(--py3, 0px)); will-change: transform; }
.crmx-win--pano .crmx-win__bar { height: 26px; padding: 0 11px; gap: 5px; }
.crmx-win--pano .crmx-win__bar i { width: 7px; height: 7px; }
.crmx-label--b { top: auto; bottom: 44%; right: -1%; }
@media (min-width: 721px) {
  .crmx-win--pano { opacity: calc(var(--e2, 1) * 1.3 - .3); transform: translate3d(calc((1 - var(--e2, 1)) * 120px), calc(var(--py3, 0px) + (1 - var(--e2, 1)) * -60px), 0) rotateY(calc((1 - var(--e2, 1)) * -22deg)); }
  .crmx__stage.is-lit .crmx-win--leads { animation: crmxBoia 7s 1.8s ease-in-out infinite; }
  .crmx__stage.is-lit .crmx-win--chat { animation: crmxBoia 8s 2.4s ease-in-out infinite reverse; }
  .crmx__stage.is-lit .crmx-win--pano { animation: crmxBoia 6.5s 2s ease-in-out infinite; }
}
@keyframes crmxBoia { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 1080px) { .crmx-win--pano { width: 38%; top: -6%; } }
@media (max-width: 720px) { .crmx-win--pano { position: relative; inset: auto; width: auto; margin: 12px 10px 0; transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .crmx-win--pano { transform: none !important; opacity: 1; } .crmx__stage.is-lit .crmx-win--leads, .crmx__stage.is-lit .crmx-win--chat, .crmx__stage.is-lit .crmx-win--pano { animation: none; } }
@media (max-width: 720px) { .crmx-win--pano { grid-column: 1 / -1; margin: 0; order: -1; } }
