/* Natal no site: tudo que está aqui só aparece com o natal.js, que põe a classe .natal no <html> até 26/12. */

/* Pisca-pisca: o fio e as lâmpadas são um SVG pendurado na borda de baixo da barra do topo. */
.nt-luzes { position: absolute; left: 0; right: 0; top: 100%; height: 30px; pointer-events: none; overflow: visible; }
.nt-luzes svg { display: block; overflow: visible; }
.nt-luzes .fio { fill: none; stroke: rgba(255, 255, 255, .24); stroke-width: 1.3; }
.nt-luzes .soquete { fill: #3A4357; }
.nt-luzes .lampada { animation: nt-pisca 2.4s ease-in-out infinite; }
.nt-luzes .c0 { fill: #FF5A36; filter: drop-shadow(0 0 6px rgba(255, 90, 54, 1)); }
.nt-luzes .c1 { fill: #F5C870; filter: drop-shadow(0 0 6px rgba(245, 200, 112, 1)); }
.nt-luzes .c2 { fill: #2BD9A0; filter: drop-shadow(0 0 6px rgba(43, 217, 160, .95)); }
.nt-luzes .c3 { fill: #FFE9C7; filter: drop-shadow(0 0 6px rgba(255, 233, 199, 1)); }
@keyframes nt-pisca { 0%, 100% { opacity: 1; } 45%, 55% { opacity: .25; } }

/* Gorros de Papai Noel. */
.nt-com-gorro { position: relative; }
.nt-gorro { position: absolute; z-index: 4; pointer-events: none; overflow: visible; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.nt-g-logo { left: 70.5%; top: -11px; width: 17px; height: 15px; transform-origin: 20% 90%; animation: nt-gorro 5s ease-in-out infinite; }
.nt-rodape-logo { position: relative; display: inline-flex; margin-right: auto; }
.rodape .nt-rodape-logo img { margin-right: 0; }
.nt-rodape-logo .nt-g-logo { top: -10px; width: 15px; height: 13px; }
.nt-g-orbe { left: 73%; top: -7%; width: 30%; height: auto; aspect-ratio: 34 / 30; transform-origin: 44% 80%; animation: nt-orbe 6s ease-in-out infinite; }
.nt-g-card { top: -27px; left: -18px; width: 60px; height: 53px; transform: rotate(-22deg); }
.nt-g-card1, .nt-g-card3 { transform: rotate(-16deg); }
.nt-g-fone { top: -40px; right: 4%; width: 84px; height: 74px; transform: rotate(16deg); }
.bt-centro .nt-g-boot { top: -38px; left: 50%; width: 70px; height: 62px; transform: translateX(-38%) rotate(16deg) scale(0); animation: nt-pop .55s 1.15s cubic-bezier(.2, .9, .3, 1.5) forwards; }
@keyframes nt-gorro { 0%, 82%, 100% { transform: rotate(-14deg); } 88% { transform: rotate(-24deg); } 94% { transform: rotate(-8deg); } }
@keyframes nt-orbe { 0%, 100% { transform: rotate(32deg); } 50% { transform: rotate(40deg); } }
@keyframes nt-pop { to { transform: translateX(-38%) rotate(16deg) scale(1); } }

/* Neve acumulada em cima de cartões, balões e botões. */
.nt-capa { position: absolute; z-index: 3; left: 10px; right: 10px; top: -8px; height: 14px; pointer-events: none; border-radius: 7px 7px 3px 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='14'%3E%3Cpath d='M0 14V8C4 8 6 3 11.5 3S19 8 23 8S28 2 34 2S42 8 46 8V14Z' fill='%23F4F8FF'/%3E%3C/svg%3E") repeat-x 0 0 / 46px 14px;
  filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, .3)); }

/* Montes de neve: no fim da seção do presente e em cima do rodapé. */
.nt-monte { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: 44px; pointer-events: none; opacity: .92;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='44'%3E%3Cpath d='M0 44V26C40 26 60 12 110 12S170 30 230 28S300 6 360 8S440 30 470 28S510 24 520 26V44Z' fill='%23DCE6F5'/%3E%3Cpath d='M0 44V34C50 34 70 22 120 24S200 38 260 36S340 18 400 20S480 36 520 34V44Z' fill='%23F4F8FF'/%3E%3C/svg%3E") repeat-x 0 100% / 520px 44px; }
.nt-monte-rodape { top: -40px; bottom: auto; height: 42px; }

/* Neve: duas telas por cima do fundo. A de trás fica atrás do conteúdo; a da frente, por cima, sem pegar clique. */
.nt-neve { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nt-tras { z-index: 1; }
.nt-frente { z-index: 48; }

/* Bolas de Natal penduradas no topo da página. */
.nt-bolas { position: absolute; left: 0; right: 0; top: 70px; height: 0; z-index: 3; pointer-events: none; }
.nt-bola { position: absolute; top: 0; width: 0; transform-origin: 0 0; animation: nt-pendulo var(--dur) ease-in-out var(--atraso) infinite alternate; }
.nt-fio { position: absolute; left: -.5px; top: 0; width: 1px; height: var(--fio); background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .55)); }
.nt-mexe { position: absolute; top: calc(var(--fio) - 1px); left: calc(var(--tam) / -2); width: var(--tam); pointer-events: auto; transform-origin: 50% 0; }
.nt-mexe svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.nt-mexe:hover { animation: nt-tilinta .9s ease-out; }
@keyframes nt-pendulo { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes nt-tilinta { 20% { transform: rotate(18deg); } 45% { transform: rotate(-14deg); } 70% { transform: rotate(7deg); } 100% { transform: rotate(0); } }

/* A chamada do presente no topo da página vira uma pílula dourada que pulsa. */
.natal .nt-chamada { padding: 9px 18px; border: 1px solid rgba(245, 200, 112, .6); border-radius: 999px; color: #FFE9C7;
  background: linear-gradient(90deg, rgba(255, 90, 54, .22), rgba(245, 200, 112, .14)); animation: nt-pulso 2.8s ease-out infinite; }
.natal .nt-chamada:hover { border-color: #F5C870; color: #fff; }
@keyframes nt-pulso { 0% { box-shadow: 0 0 0 0 rgba(245, 200, 112, .45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(245, 200, 112, 0); } }

/* Seção do presente, antes dos preços. */
.nt-secao { position: relative; z-index: 2; overflow-x: clip; padding: clamp(80px, 12vh, 140px) 0 clamp(110px, 15vh, 170px);
  background: radial-gradient(ellipse 55% 60% at 78% 45%, rgba(245, 200, 112, .13), transparent 70%), radial-gradient(ellipse 50% 50% at 15% 85%, rgba(255, 90, 54, .12), transparent 70%); }
.nt-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.nt-rotulo { display: inline-flex; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(245, 200, 112, .5); background: rgba(245, 200, 112, .08); color: #F5C870; font-size: 14px; font-weight: 600; }
.nt-texto h2 { margin-top: 18px; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.nt-intro { margin-top: 18px; max-width: 32em; font-size: 18px; color: var(--dim); }
.nt-conta { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.nt-conta b { font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: 1; font-weight: 800; color: #F5C870; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(245, 200, 112, .35); }
.nt-conta span { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--texto); }
.nt-conta .nt-hoje { font-size: 22px; color: #F5C870; }
.nt-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.nt-acoes .pill { gap: 10px; }
.nt-link { padding-bottom: 3px; font-weight: 600; color: #FFD7CC; border-bottom: 1px dashed rgba(255, 138, 110, .65); }
.nt-link:hover { color: #fff; border-bottom-style: solid; }
.nt-mini { margin-top: 16px; font-size: 14px; color: var(--faint); }

.nt-cena { position: relative; height: 500px; display: grid; place-items: end center; }
.nt-aura { position: absolute; inset: 8% 4% 0; border-radius: 50%; background: radial-gradient(circle at 50% 60%, rgba(245, 200, 112, .28), rgba(255, 90, 54, .1) 40%, transparent 68%); animation: nt-aura 5s ease-in-out infinite; }
@keyframes nt-aura { 50% { opacity: .6; transform: scale(.94); } }
.nt-caixa-g { position: relative; width: 230px; height: 160px; margin-bottom: 30px; cursor: pointer; }
.nt-corpo { position: absolute; inset: 0; z-index: 2; border-radius: 10px;
  background: linear-gradient(90deg, transparent 43%, #F5C870 43%, #E9B54F 57%, transparent 57%), linear-gradient(160deg, #FF6A47, #C8361F);
  box-shadow: 0 34px 60px -20px rgba(0, 0, 0, .75), inset 0 -14px 24px rgba(0, 0, 0, .18); }
.nt-tampa { position: absolute; z-index: 3; left: -12px; right: -12px; top: -36px; height: 42px; border-radius: 8px;
  background: linear-gradient(90deg, transparent 44%, #F5C870 44%, #E9B54F 56%, transparent 56%), linear-gradient(#FF7656, #E2412A);
  box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .5); transform-origin: 15% 100%; transition: transform .8s cubic-bezier(.25, 1.5, .45, 1); }
.nt-laco { position: absolute; z-index: 4; left: 50%; bottom: 30px; width: 96px; transform: translateX(-50%); overflow: visible; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); }
.nt-cartao { position: absolute; z-index: 1; left: 50%; bottom: 60px; width: 300px; aspect-ratio: 1.6; display: flex; flex-direction: column; padding: 18px 20px; border-radius: 16px; text-align: left; color: #fff;
  background: radial-gradient(circle at 100% 0, rgba(255, 90, 54, .55), transparent 45%), linear-gradient(145deg, #1D2B4F, #0B1224);
  border: 1px solid rgba(245, 200, 112, .45); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 40px -10px rgba(245, 200, 112, .35);
  transform: translate(-50%, 30%) scale(.55); opacity: 0; transition: transform 1s .25s cubic-bezier(.2, 1.3, .4, 1), opacity .4s .25s; }
.nt-c-topo { display: flex; align-items: center; justify-content: space-between; }
.nt-c-topo img { height: 14px; width: auto; }
.nt-c-topo small { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F5C870; }
.nt-c-para { margin-top: auto; font-size: 15px; font-weight: 700; }
.nt-c-para span { margin: 0 4px 0 0; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.nt-c-para span + span { margin-left: 10px; }
.nt-c-msg { margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--dim); }
.nt-c-pe { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12.5px; }
.nt-c-pe code { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #F5C870; font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.nt-conf { position: absolute; z-index: 5; left: 50%; top: -24px; width: 8px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0; pointer-events: none; }

.abrindo .nt-caixa-g { animation: nt-chacoalha .6s ease-in-out; }
.aberta .nt-tampa { transform: translate(40px, -216px) rotate(8deg); animation: nt-flutuar 3.6s 1s ease-in-out infinite; }
.aberta .nt-cartao { transform: translate(-50%, -110px) rotate(-4deg); opacity: 1; animation: nt-flutuar 4s 1.4s ease-in-out infinite; }
.aberta .nt-conf { animation: nt-voa 1.2s var(--d) cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes nt-chacoalha { 15% { transform: rotate(-4deg); } 30% { transform: rotate(4deg); } 45% { transform: rotate(-3deg); } 60% { transform: rotate(3deg); } 80% { transform: translateY(-6px); } }
@keyframes nt-flutuar { 50% { translate: 0 -10px; } }
@keyframes nt-voa { 0% { opacity: 1; transform: translate(-50%, 0); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(var(--y) + 60px)) rotate(var(--r)); } }

/* Botão flutuante do presente. */
.nt-flutua { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 4px;
  transform: translateY(140%); opacity: 0; transition: transform .7s cubic-bezier(.2, .9, .25, 1.2), opacity .5s; }
.nt-flutua.on { transform: none; opacity: 1; }
.nt-presente { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #FF5A36, #E2412A); box-shadow: 0 14px 40px -10px rgba(255, 90, 54, .75), 0 0 0 1px rgba(255, 255, 255, .14) inset;
  animation: nt-brilho 3s ease-in-out infinite, nt-sacode 8s 3s ease-in-out infinite; }
.nt-presente .nt-capa { left: 22px; right: 22px; top: -7px; }
.nt-presente:hover { filter: brightness(1.06); }
.nt-escuro .nt-presente { background: linear-gradient(135deg, #14213D, #070B14); box-shadow: 0 14px 40px -10px rgba(7, 11, 20, .8), 0 0 0 1px rgba(245, 200, 112, .55) inset; }
.nt-caixa { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.nt-caixa svg { width: 28px; height: 28px; animation: nt-balanca 6s ease-in-out infinite; transform-origin: 50% 90%; }
.nt-txt { display: grid; line-height: 1.15; text-align: left; }
.nt-txt b { font-size: 15px; font-weight: 700; }
.nt-txt small { font-size: 12.5px; opacity: .92; }
.nt-fecha { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer; font-size: 17px; line-height: 1; align-self: flex-start;
  color: var(--dim, #A3ACBF); background: rgba(7, 11, 20, .78); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.nt-fecha:hover { color: #fff; }
@keyframes nt-brilho { 50% { box-shadow: 0 14px 48px -6px rgba(255, 90, 54, .95), 0 0 0 1px rgba(255, 255, 255, .2) inset; } }
@keyframes nt-balanca { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(-14deg) translateY(-2px); } 90% { transform: rotate(11deg) translateY(-3px); } 93% { transform: rotate(-7deg); } 96% { transform: rotate(4deg); } }
@keyframes nt-sacode { 0%, 88%, 100% { transform: none; } 90% { transform: rotate(-3deg) scale(1.04); } 92% { transform: rotate(3deg) scale(1.04); } 94% { transform: rotate(-2deg); } 96% { transform: rotate(1deg); } }

/* Natal leve (área do aluno e empresas): a neve fica atrás do conteúdo, e o topo com o pisca-pisca por cima dele. */
.nt-leve .topo { position: relative; z-index: 3; padding-bottom: 42px; }
.nt-leve .nt-luzes { top: calc(100% - 22px); }
.nt-leve main { position: relative; z-index: 2; }
.nt-leve .topo a.nt-com-gorro { display: inline-block; vertical-align: middle; }
.nt-g-avatar { left: -5px; top: -14px; width: 27px; height: 24px; transform: rotate(-22deg); }
.anel .nt-g-anel { right: -8%; top: -14%; width: 44%; height: auto; aspect-ratio: 34 / 30; transform: rotate(24deg); }

/* Cartão de Natal no painel do aluno. */
.nt-aluno { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 18px 20px; border-radius: 20px;
  border: 1px solid rgba(245, 200, 112, .45); background: radial-gradient(ellipse at 0 0, rgba(255, 90, 54, .22), transparent 60%), linear-gradient(120deg, rgba(20, 33, 61, .9), rgba(14, 21, 37, .9)); }
.nt-aluno .nt-capa { left: 22px; right: 22px; }
.nt-al-caixa { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 90, 54, .18); box-shadow: 0 0 0 1px rgba(255, 90, 54, .4) inset; }
.nt-al-caixa svg { width: 32px; height: 32px; animation: nt-balanca 6s ease-in-out infinite; transform-origin: 50% 90%; }
.nt-al-txt { flex: 1; display: grid; gap: 2px; }
.nt-al-txt b { font-size: 17px; }
.nt-al-txt span { font-size: 14.5px; color: var(--dim); }
.nt-aluno .pill { flex: none; min-height: 44px; padding: 0 20px; font-size: 15px; }
.nt-al-fecha { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; color: var(--faint); background: transparent; }
.nt-al-fecha:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* Página de empresas: o aviso de presente de fim de ano. */
.nt-empresa { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 14px; padding: 10px 16px; border-radius: 14px; font-size: 14.5px; color: var(--dim);
  border: 1px solid rgba(245, 200, 112, .45); background: linear-gradient(90deg, rgba(255, 90, 54, .16), rgba(245, 200, 112, .1)); }
.nt-empresa b { color: #FFE9C7; }

@media (max-width: 900px) {
  .nt-grid { grid-template-columns: 1fr; gap: 8px; }
  .nt-cena { order: -1; height: 380px; }
}
@media (max-width: 620px) {
  .nt-flutua { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .nt-presente { padding: 8px 16px 8px 8px; gap: 10px; }
  .nt-caixa { width: 38px; height: 38px; } .nt-caixa svg { width: 24px; height: 24px; }
  .nt-txt b { font-size: 14px; } .nt-txt small { font-size: 11.5px; }
  .nt-g-logo { top: -10px; width: 15px; height: 13px; }
  .nt-g-card { top: -18px; left: -12px; width: 44px; height: 39px; }
  .nt-g-fone { top: -30px; width: 64px; height: 56px; }
  .nt-bolas { top: 66px; }
  .nt-cena { height: 400px; }
  .nt-aluno { flex-wrap: wrap; align-items: flex-start; padding: 18px 16px; }
  .nt-al-caixa { width: 46px; height: 46px; } .nt-al-caixa svg { width: 28px; height: 28px; }
  .nt-al-txt { flex-basis: calc(100% - 64px); padding-right: 18px; }
  .nt-aluno .pill { width: 100%; }
  .nt-caixa-g { width: 190px; height: 130px; }
  .nt-cartao { width: 260px; padding: 15px 16px; }
  .nt-c-para { font-size: 14px; }
  .aberta .nt-tampa { transform: translate(20px, -171px) rotate(8deg); }
  .aberta .nt-cartao { transform: translate(-50%, -85px) rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nt-luzes .lampada, .nt-gorro, .nt-bola, .nt-al-caixa svg, .nt-mexe:hover, .natal .nt-chamada, .nt-aura, .nt-presente, .nt-caixa svg, .aberta .nt-cartao, .abrindo .nt-caixa-g { animation: none; }
  .bt-centro .nt-g-boot { transform: translateX(-38%) rotate(16deg); }
  .nt-g-orbe { transform: rotate(36deg); }
  .aberta .nt-tampa { animation: none; }
  .aberta .nt-conf { display: none; }
  .nt-flutua, .nt-tampa, .nt-cartao { transition: none; }
}
@media print { .nt-luzes, .nt-gorro, .nt-neve, .nt-flutua, .nt-bolas, .nt-capa, .nt-monte, .nt-secao, .nt-aluno, .nt-empresa { display: none !important; } }
