/* =====================================================================
   TEMPORADA PREMIADA - CDL Sapiranga
   ===================================================================== */
:root {
  --verde-topo: #1e491c;
  --verde-fundo: #00200a;
  --verde-medio: #0b3a1b;
  --verde-card: #0f4421;
  --laranja: #ffbe52;
  --laranja-esc: #f2a93a;
  --texto-esc: #00200a;
  --branco: #fff;
  --erro: #ff7a6b;
  --ok: #7be39a;
  --raio: 10px;
  --fonte: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--fonte); color: var(--branco);
  background: var(--verde-fundo); line-height: 1.4; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--laranja); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.laranja { color: var(--laranja); }

/* ---------- Topo ---------- */
.topo { background: var(--verde-topo); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.topo-in { max-width: 1210px; margin: 0 auto; height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.topo-logo img { height: 42px; width: auto; }
.menu { display: flex; align-items: center; gap: 30px; font-size: 14.5px; }
.menu a { color: #f1f5ef; text-decoration: none; transition: color .15s; }
.menu a:hover { color: var(--laranja); }
.menu a.ativo { font-weight: 700; color: #fff; }
.menu .btn-topo { background: var(--laranja); color: var(--texto-esc); font-weight: 500; padding: 8px 16px; border-radius: 6px; margin-left: 40px; }
.menu .btn-topo:hover { background: #ffd07e; color: var(--texto-esc); }
.menu .menu-sair { opacity: .8; margin-left: -14px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- Hero desktop (arte 2000x1700, textos em unidades do container) ---------- */
.hero { background: #0a3218; }
.hero-arte {
  container-type: inline-size; position: relative; width: 100%; aspect-ratio: 2000 / 1700;
  background: url(../img/hero-bg-1200.jpg) center top / 100% auto no-repeat;
}
@media (min-width: 1201px) { .hero-arte { background-image: url(../img/hero-bg.jpg); } }
.hero-arte p, .hero-arte div { margin: 0; position: absolute; }
.h-chamada {
  left: 66.9%; top: 8.2%; font-size: 2.2cqw; line-height: 1.16; text-transform: uppercase; font-weight: 400; letter-spacing: .01em;
}
.h-chamada strong { font-weight: 700; }
.h-premios {
  left: 0; right: 0; top: 40.2%; text-align: center; font-size: 2.15cqw; font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
}
.h-premios .ast { color: var(--laranja); margin: 0 1.1cqw; font-weight: 700; }
.h-data { top: 90.1%; }
.h-data span { display: block; font-size: 1.3cqw; text-transform: uppercase; font-weight: 300; line-height: 1.2; }
.h-data strong { display: block; font-size: 2.05cqw; font-weight: 600; line-height: 1.15; }
.h-data-1 { left: 29.35%; }
.h-data-2 { left: 65.65%; }
.hero-mob { display: none; }

.aviso-periodo { max-width: 860px; margin: 26px auto 0; padding: 14px 20px; text-align: center; border: 1px solid var(--laranja); color: var(--laranja); border-radius: var(--raio); font-weight: 500; }

/* ---------- Como participar ---------- */
.como { padding: 44px 20px 10px; text-align: center; scroll-margin-top: 70px; }
.como h2, .chance h2 { font-size: 30px; font-weight: 700; margin: 0 0 18px; }
.passos { display: flex; justify-content: center; gap: 9px; max-width: 840px; margin: 0 auto; }
.passo {
  flex: 1; background: var(--laranja); color: var(--texto-esc); border-radius: 8px; padding: 30px 18px 28px;
  box-shadow: 0 0 0 2px rgba(0,0,0,.12) inset; min-height: 172px; display: flex; flex-direction: column; align-items: center;
}
.passo-n { width: 42px; height: 42px; border: 2.6px solid var(--texto-esc); border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 25px; line-height: 1; margin-bottom: 22px; }
.passo p { margin: 0; font-size: 14.5px; line-height: 1.3; }
.passo b { font-weight: 700; }

.chance { padding: 70px 20px 90px; text-align: center; }
.chance-btns { display: flex; justify-content: center; gap: 10px; max-width: 880px; margin: 0 auto; }
.chance-btns .btn { flex: 1; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--laranja); color: var(--texto-esc);
  font-family: inherit; font-size: 15px; font-weight: 500; padding: 9px 22px; border-radius: 10px; border: 0; cursor: pointer;
  text-decoration: none; transition: background .15s, transform .1s; min-height: 40px;
}
.btn:hover { background: #ffd07e; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { font-size: 13px; padding: 6px 14px; min-height: 32px; }
.btn-grande { font-size: 17px; font-weight: 700; padding: 13px 28px; min-height: 50px; }
.btn-contorno { background: transparent; color: var(--laranja); box-shadow: 0 0 0 1.5px var(--laranja) inset; }
.btn-contorno:hover { background: rgba(255,190,82,.12); }
.btn-bloco { width: 100%; }

/* ---------- Rodapé ---------- */
.rodape { padding: 40px 20px 34px; text-align: center; }
.rodape-marcas { display: flex; align-items: center; justify-content: center; gap: 50px; }
.marca { display: flex; align-items: center; gap: 34px; }
.marca-rotulo { font-weight: 600; text-transform: uppercase; font-size: 15px; }
.marca-cdl { height: 66px; width: auto; }
.marca-unimed { height: 52px; width: auto; }
.marca-div { width: 1px; height: 68px; background: rgba(255,255,255,.7); }
.rodape-legal { font-size: 12px; margin: 28px auto 0; max-width: 760px; opacity: .95; }
.rodape-copy { margin: 60px 0 0; font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.rodape-copy a { color: #fff; font-weight: 600; }
.logo-exata { height: 21px; width: auto; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-fundo { position: absolute; inset: 0; background: rgba(0,10,4,.78); }
.modal-caixa { position: relative; background: var(--verde-medio); border: 1px solid rgba(255,190,82,.35); border-radius: 14px; width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal-reg { max-width: 980px; height: 92vh; }
.modal-topo { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.12); gap: 10px; }
.modal-topo h2 { margin: 0; font-size: 20px; }
.modal-acoes { display: flex; align-items: center; gap: 10px; }
.modal-fechar { background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; padding: 0 4px; }
.modal-reg iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.modal-alt { margin: 0; padding: 8px 16px; font-size: 13px; text-align: center; }
.modal-corpo { padding: 18px; overflow: auto; }
body.modal-aberto { overflow: hidden; }

/* ---------- Páginas internas ---------- */
.pagina { max-width: 1100px; margin: 0 auto; padding: 46px 20px 30px; }
.pagina-estreita { max-width: 640px; }
.pagina h1 { font-size: 34px; margin: 0 0 6px; font-weight: 700; }
.pagina .sub { margin: 0 0 26px; opacity: .85; }
.cartao { background: var(--verde-card); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cartao + .cartao { margin-top: 22px; }
.cartao h2 { margin: 0 0 16px; font-size: 22px; }
.cartao h3 { margin: 18px 0 10px; font-size: 16px; color: var(--laranja); text-transform: uppercase; letter-spacing: .03em; }

/* Formulários */
.campos { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.campo { grid-column: span 12; display: flex; flex-direction: column; gap: 5px; }
.c6 { grid-column: span 6; } .c4 { grid-column: span 4; } .c3 { grid-column: span 3; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c2 { grid-column: span 2; }
.campo label { font-size: 13.5px; font-weight: 500; opacity: .92; }
.campo input, .campo select {
  font-family: inherit; font-size: 16px; padding: 11px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18);
  background: #fff; color: #111; width: 100%; min-height: 46px;
}
.campo input:focus, .campo select:focus { outline: 3px solid rgba(255,190,82,.55); outline-offset: 0; border-color: var(--laranja); }
.campo input[readonly] { background: #e9eee9; color: #333; }
.campo .ajuda { font-size: 12.5px; opacity: .75; }
.campo-cpf input { font-size: 22px; letter-spacing: .06em; text-align: center; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--laranja); }
.check-aceite { background: rgba(0,0,0,.2); border: 1px solid rgba(255,190,82,.4); border-radius: 10px; padding: 14px; margin-top: 8px; }
.acoes { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.alerta { padding: 12px 14px; border-radius: 10px; margin: 0 0 18px; font-size: 15px; }
.alerta-erro { background: rgba(255,122,107,.12); border: 1px solid var(--erro); color: #ffd6d0; }
.alerta-ok { background: rgba(123,227,154,.12); border: 1px solid var(--ok); color: #d9ffe4; }
.alerta-info { background: rgba(255,190,82,.1); border: 1px solid rgba(255,190,82,.6); color: #ffe7bd; }
.alerta ul { margin: 6px 0 0 18px; padding: 0; }
.dados-lista { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.dados-lista dt { opacity: .7; }
.dados-lista dd { margin: 0; font-weight: 500; }

/* Área interna */
.area-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.resumo { display: flex; gap: 12px; }
.resumo-box { background: var(--laranja); color: var(--texto-esc); border-radius: 12px; padding: 10px 18px; text-align: center; min-width: 130px; }
.resumo-box strong { display: block; font-size: 30px; line-height: 1.05; }
.resumo-box span { font-size: 12.5px; font-weight: 500; text-transform: uppercase; }
.grade-area { display: grid; grid-template-columns: 420px 1fr; gap: 22px; align-items: start; }
.codigo-linha { display: flex; gap: 8px; }
.codigo-linha input { flex: 1; text-transform: uppercase; font-size: 20px; letter-spacing: .12em; font-weight: 600; text-align: center; }
.codigos-fila { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.codigos-fila li { background: rgba(255,255,255,.1); border-radius: 30px; padding: 5px 6px 5px 14px; font-weight: 600; letter-spacing: .08em; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.codigos-fila button { background: rgba(0,0,0,.3); border: 0; color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; }
.leitor { margin-top: 12px; border-radius: 12px; overflow: hidden; background: #000; position: relative; }
.leitor video { width: 100%; display: block; max-height: 360px; object-fit: cover; }
.leitor .mira { position: absolute; inset: 18% 22%; border: 3px solid var(--laranja); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); pointer-events: none; }
.leitor-status { font-size: 13px; text-align: center; margin: 8px 0 0; opacity: .85; }
.resultado { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.res-item { border-radius: 10px; padding: 10px 14px; font-size: 14.5px; }
.res-ok { background: rgba(123,227,154,.13); border: 1px solid var(--ok); }
.res-erro { background: rgba(255,122,107,.12); border: 1px solid var(--erro); }
.res-item .ns { font-size: 22px; font-weight: 800; color: var(--laranja); letter-spacing: .05em; }

.tabela-wrap { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tabela th { text-align: left; font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; opacity: .75; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.15); }
.tabela td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: top; }
.tabela .ns { font-weight: 800; color: var(--laranja); font-size: 17px; letter-spacing: .04em; white-space: nowrap; }
.vazio { text-align: center; padding: 30px 10px; opacity: .8; }

/* Lojas */
.busca { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.busca input, .busca select { font-family: inherit; font-size: 16px; padding: 11px 12px; border-radius: 8px; border: 0; min-height: 46px; }
.busca input { flex: 1; min-width: 220px; }
.lojas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.loja { background: var(--verde-card); border-radius: 10px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.07); }
.loja h3 { margin: 0 0 4px; font-size: 15.5px; color: var(--laranja); }
.loja p { margin: 0; font-size: 13.5px; opacity: .88; }
.paginacao { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.paginacao a, .paginacao span { padding: 7px 12px; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-size: 14px; }
.paginacao .atual { background: var(--laranja); color: var(--texto-esc); font-weight: 700; }

/* Autocomplete loja */
.ac { position: relative; }
.ac-lista { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; color: #111; border-radius: 0 0 8px 8px; max-height: 260px; overflow: auto; box-shadow: 0 10px 24px rgba(0,0,0,.35); list-style: none; margin: 2px 0 0; padding: 0; }
.ac-lista li { padding: 9px 12px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #eee; }
.ac-lista li small { display: block; color: #666; font-size: 12px; }
.ac-lista li:hover, .ac-lista li.sel { background: #fff3dc; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .menu { gap: 18px; font-size: 14px; }
  .menu .btn-topo { margin-left: 8px; }
  .grade-area { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--verde-topo); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; box-shadow: 0 10px 20px rgba(0,0,0,.3); }
  .menu.aberto { display: flex; }
  .menu a { padding: 13px 24px; font-size: 16px; }
  .menu .btn-topo { margin: 10px 24px 0; text-align: center; padding: 12px; }
  .menu .menu-sair { margin: 0; text-align: center; }
}
@media (max-width: 760px) {
  .hero-arte { display: none; }
  .hero-mob {
    display: block; text-align: center; padding: 26px 18px 30px;
    background: radial-gradient(120% 60% at 50% 0%, #14502a 0%, #0a3218 55%, var(--verde-fundo) 100%);
  }
  .hm-logo { width: 78%; max-width: 360px; margin: 0 auto; }
  .hm-chamada { font-size: 21px; text-transform: uppercase; line-height: 1.2; margin: 18px auto 14px; max-width: 340px; border-left: 3px solid var(--laranja); padding-left: 14px; text-align: left; }
  .hm-premios { list-style: none; padding: 0; margin: 0 0 4px; font-size: 19px; font-weight: 600; text-transform: uppercase; }
  .hm-premios li + li::before { content: '*'; display: block; color: var(--laranja); font-weight: 700; line-height: .9; margin-top: 2px; }
  .hm-produtos { width: calc(100% + 36px); max-width: none; margin: 4px -18px 0; }
  .hm-datas { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; align-items: center; }
  .hm-datas > div { display: flex; align-items: center; gap: 12px; text-align: left; width: 270px; }
  .hm-datas img { width: 52px; height: 52px; }
  .hm-datas p { margin: 0; }
  .hm-datas span { display: block; font-size: 13px; text-transform: uppercase; font-weight: 300; }
  .hm-datas strong { display: block; font-size: 20px; font-weight: 600; }
  .passos, .chance-btns { flex-direction: column; max-width: 360px; }
  .passo { min-height: 0; padding: 22px 18px; }
  .chance { padding: 50px 20px 60px; }
  .rodape-marcas { flex-direction: column; gap: 26px; }
  .marca-div { width: 70px; height: 1px; }
  .marca { gap: 18px; }
  .br-d { display: none; }
  .rodape-copy { margin-top: 36px; font-size: 13px; }
  .pagina { padding-top: 30px; }
  .pagina h1 { font-size: 27px; }
  .cartao { padding: 20px 16px; }
  .c6, .c4, .c3, .c8, .c9 { grid-column: span 12; }
  .c2 { grid-column: span 6; }
  .dados-lista { grid-template-columns: 1fr; gap: 0 0; }
  .dados-lista dd { margin-bottom: 8px; }
  .resumo { width: 100%; }
  .resumo-box { flex: 1; min-width: 0; }
  .modal { padding: 0; }
  .modal-reg { height: 100vh; max-height: 100vh; border-radius: 0; }
  .tabela thead { display: none; }
  .tabela tr { display: block; border-bottom: 1px solid rgba(255,255,255,.12); padding: 8px 0; }
  .tabela td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 4px 4px; }
  .tabela td::before { content: attr(data-l); opacity: .65; font-size: 13px; }
}
.campo input[type=checkbox] { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; }
.grade-area .cartao + .cartao { margin-top: 0; }
.codigo-linha input { font-family: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: #fff; color: #111; min-height: 48px; min-width: 0; }
.codigo-linha input::placeholder { letter-spacing: .02em; font-weight: 400; font-size: 15px; color: #888; }
.codigo-linha .btn { min-width: 52px; font-size: 22px; font-weight: 700; }
@media (max-width: 760px) { .hm-logo { width: 88%; max-width: 380px; } }
.codigo-linha input::placeholder{text-transform:none}
.grade-area > * { min-width: 0; }
