/* CODESP Internacional — ingressos (Participante e VIP): faixa de urgência dos lotes, dois ingressos com picote, linha de pagamento.
   O HTML traz os dois lotes; a regra que mostra/esconde [data-lote] está em destaques.css. #inscricao é o bloco .ingressos. */

.ingressos { width: min(100%, 1060px); margin-inline: auto; scroll-margin-top: clamp(16px, 3vw, 32px); }
.ingressos:focus { outline: 0; } /* destino de #inscricao (tabindex="-1"): recebe o foco só para a leitura continuar daqui */
.ingresso-vip { scroll-margin-top: clamp(16px, 3vw, 32px); } /* destino de #ingresso-vip (botão do Prêmio AIDEP): o topo do cartão aparece inteiro */
.ingresso-vip:focus { outline: 0; }

/* ---------- Faixa de urgência (vale para os dois ingressos): prazo do 1º lote com relógio ---------- */
.urgencia {
  margin-bottom: clamp(20px, 3vw, 34px); padding: 16px; border-radius: 24px; text-align: center;
  border: 1px solid rgb(242 178 51 / .55);
  background: radial-gradient(60% 160% at 0 0, rgb(242 178 51 / .16), transparent 70%), var(--vidro);
  -webkit-backdrop-filter: var(--vidro-blur); backdrop-filter: var(--vidro-blur);
  box-shadow: var(--brilho-topo), 0 24px 50px -28px rgb(242 178 51 / .45);
}
.urgencia-lote1 { display: grid; justify-items: center; gap: 12px; }
.urgencia-texto { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; text-wrap: balance; }
html[data-lote="2"] .urgencia { padding: 11px 16px; border-color: var(--linha); background: none; box-shadow: none; }
.urgencia-lote2 { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta); }
/* relógio: dias, horas, min e seg (main.js escreve os números) */
.relogio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(100%, 360px); }
html:not(.js) .relogio { display: none; } /* sem JS os números não andam: fica só o prazo em texto */
.relogio p { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 14px; background: rgb(5 15 46 / .55); border: 1px solid rgb(242 178 51 / .35); }
.relogio .num { font: 800 clamp(1.5rem, 6.4vw, 2rem)/1 var(--fonte-display); font-stretch: 125%; letter-spacing: -.02em; }
.relogio-rot { font-size: .75rem; font-weight: 700; letter-spacing: .12em; line-height: 1; text-transform: uppercase; color: var(--tinta); }

/* ---------- Ingresso: frente (topo + preço + botão), picote, verso (lista "Inclui") ---------- */
.ingressos-grade { display: grid; gap: clamp(26px, 5vw, 36px); }
.ingresso { --r: 18px; --pad: 18px; --valor: clamp(3.25rem, 14vw, 4.25rem); position: relative; isolation: isolate; display: flex; flex-direction: column; }
.ingresso::before { /* sombra do ingresso (o recorte do picote cortaria uma box-shadow) */
  content: ""; position: absolute; inset: 30px 24px -24px; z-index: -1; border-radius: 40px;
  background: rgb(0 0 0 / .6); filter: blur(40px);
}
/* picote: meio-círculos recortados nas duas pontas da linha de corte */
.ingresso-frente, .ingresso-verso {
  -webkit-mask: radial-gradient(circle var(--r) at var(--n1), #0000 96%, #000 100%), radial-gradient(circle var(--r) at var(--n2), #0000 96%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.ingresso-frente { --n1: 0 100%; --n2: 100% 100%; overflow: clip; border-radius: 30px 30px 0 0; padding: 0 var(--pad) var(--pad); box-shadow: var(--brilho-topo); }
.ingresso-verso { --n1: 0 0; --n2: 100% 0; flex: 1; padding: 20px var(--pad) var(--pad); border-radius: 0 0 30px 30px; border-top: 2px dashed rgb(255 255 255 / .45); }
.ingresso-frente .tricolor, .faixa-ouro { height: 6px; margin: 0 calc(-1 * var(--pad)) 18px; }
.faixa-ouro { background: linear-gradient(90deg, #d4952a, #fff1c9 38%, var(--ouro) 62%, #d4952a); }
.tricolor { display: grid; grid-template-columns: repeat(3, 1fr); }
.tricolor i:nth-child(1) { background: var(--verde); }
.tricolor i:nth-child(2) { background: var(--azul); }
.tricolor i:nth-child(3) { background: var(--ouro); }
.ingresso-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ingresso-topo .chip { width: 46px; height: 46px; border-radius: 15px; }
.ingresso-topo .chip .ico { width: 22px; height: 22px; }
.ingresso-rotulo { font-size: .75rem; font-weight: 700; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; color: var(--tinta); }
.ingresso-nome { margin-top: 2px; font: 800 1.75rem/1.05 var(--fonte-display); font-stretch: 112%; letter-spacing: -.015em; }
.ingresso-selo {
  margin-left: auto; padding: 6px 12px; border-radius: var(--pill); white-space: nowrap;
  border: 1px solid rgb(242 178 51 / .6); background: rgb(242 178 51 / .12); color: var(--ouro);
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase;
}
.ingresso-frase { margin-top: 14px; color: var(--tinta); font-size: 1rem; line-height: 1.45; text-wrap: balance; }

/* preço: o lote vigente em destaque; "No 2º lote" fica embaixo, com a economia */
.preco { display: flex; flex-direction: column; margin-top: 18px; padding: 16px; border-radius: 20px; background: rgb(5 15 46 / .45); border: 1px solid rgb(255 255 255 / .16); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14); }
.preco-lote { display: flex; flex-direction: column; flex: 1; }
.preco-principal { flex: 1; display: grid; align-content: center; justify-items: start; gap: 8px; }
.preco-parcela { display: flex; align-items: flex-start; gap: 10px; line-height: 1; }
.preco-vezes {
  margin-top: .55em; padding: 6px 10px; border-radius: var(--pill);
  font: 800 1.125rem/1 var(--fonte-display); font-stretch: 112%;
  background: var(--ouro-metal); color: var(--navy-900); box-shadow: inset 0 1px 0 #fff;
}
.preco-valor { display: inline-flex; align-items: flex-start; white-space: nowrap; font: 800 var(--valor)/.9 var(--fonte-display); font-stretch: 125%; letter-spacing: -.04em; text-shadow: 0 4px 30px rgb(5 15 46 / .55); }
.preco-moeda { margin: .16em .14em 0 0; font-size: .3em; letter-spacing: 0; }
.preco-centavos { margin-top: .1em; font-size: .38em; letter-spacing: -.02em; }
.preco-avista { font-size: 1.0625rem; font-weight: 600; }
.preco-avista strong, .preco-depois strong { font: 800 1.2em/1 var(--fonte-display); font-stretch: 112%; color: #fff; }
.preco-depois { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linha); color: var(--tinta); font-size: .9375rem; font-weight: 600; }
.preco-selo { padding: 4px 10px; border-radius: var(--pill); border: 1px solid rgb(242 178 51 / .55); background: rgb(242 178 51 / .14); color: var(--ouro); font-size: .75rem; font-weight: 800; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.ingresso-cta { width: 100%; justify-content: space-between; margin-top: 16px; padding-left: 22px; font-size: .9375rem; letter-spacing: .04em; white-space: normal; line-height: 1.2; }

/* verso: lista "Inclui" em linhas finas (compacta no celular) */
.inclui-rotulo { margin-bottom: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta); }
.inclui { display: grid; }
.inclui li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid rgb(255 255 255 / .1); font-size: .9375rem; line-height: 1.35; }
.inclui li:first-child { border-top: 0; }
.inclui .chip-p { width: 32px; height: 32px; border-radius: 10px; }
.inclui .chip-p::after { border-radius: 9px 9px 50% 50% / 9px 9px 5px 5px; }
.inclui .chip-p .ico { width: 16px; height: 16px; }

/* ---------- VIP: navy quase preto, brilho e anel em ouro, faixa de ouro ---------- */
.chip-ouro {
  color: var(--navy-900); background: linear-gradient(160deg, #fff1c9 0%, #f2c661 40%, #d4952a 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 14px rgb(120 70 0 / .25), 0 0 0 1px rgb(255 241 201 / .5), 0 8px 16px -8px rgb(242 178 51 / .6);
}
.chip-ouro .ico { filter: none; }
.ingresso-vip { --ring: rgb(242 178 51 / .85); }
.ingresso-vip::before { background: linear-gradient(rgb(242 178 51 / .4), rgb(0 0 0 / .65)); opacity: .8; transition: opacity .4s var(--ease); }
.ingresso-vip .ingresso-frente, .ingresso-vip .ingresso-verso {
  background: /* anel em volta de cada recorte do picote (a máscara cortaria a borda ali) + brilho dourado + base quase preta */
    radial-gradient(circle calc(var(--r) + 2px) at var(--n1), #0000 calc(var(--r) - .5px), var(--ring) var(--r), var(--ring) calc(var(--r) + 1.5px), #0000 calc(var(--r) + 1.5px)),
    radial-gradient(circle calc(var(--r) + 2px) at var(--n2), #0000 calc(var(--r) - .5px), var(--ring) var(--r), var(--ring) calc(var(--r) + 1.5px), #0000 calc(var(--r) + 1.5px)),
    radial-gradient(75% 60% at 100% 0%, rgb(242 178 51 / .2), transparent 70%),
    linear-gradient(175deg, var(--navy-800), color-mix(in srgb, var(--navy-900) 45%, #000));
}
.ingresso-vip .ingresso-frente { box-shadow: inset 1px 0 0 var(--ring), inset -1px 0 0 var(--ring), inset 0 1px 0 var(--ring), inset 0 2px 0 rgb(255 241 201 / .35); }
.ingresso-vip .ingresso-verso { border-top-color: rgb(242 178 51 / .6); box-shadow: inset 1px 0 0 var(--ring), inset -1px 0 0 var(--ring), inset 0 -1px 0 var(--ring); }
.ingresso-vip .preco { background: rgb(242 178 51 / .07); border-color: rgb(242 178 51 / .35); box-shadow: inset 0 1px 0 rgb(255 241 201 / .2); }
.ingresso-vip .inclui li { border-top-color: rgb(242 178 51 / .18); }

/* ---------- Pagamento e nota (abaixo dos dois ingressos) ---------- */
.pagamento { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: clamp(26px, 4vw, 40px); font-size: .9375rem; font-weight: 700; }
.pagamento li { display: inline-flex; align-items: center; gap: 8px; }
.pagamento .ico { width: 18px; height: 18px; color: var(--ouro); }
.preco-nota { max-width: 56ch; margin: 12px auto 0; text-align: center; text-wrap: balance; font-size: .8125rem; line-height: 1.5; color: rgb(255 255 255 / .82); }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .ingresso { --pad: 26px; }
  .ingresso-frente .tricolor, .faixa-ouro { height: 8px; margin-bottom: 24px; }
  .ingresso-verso { padding-top: 24px; }
  .urgencia { padding: 18px 24px; }
  .inclui li { padding: 9px 0; }
  .preco { padding: 20px; }
}
/* lado a lado: o VIP é mais alto (lista maior); topo e preço têm altura mínima igual para os botões ficarem alinhados */
@media (min-width: 900px) {
  .ingressos-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-items: start; }
  .ingresso { --valor: clamp(3.5rem, 6vw, 4.5rem); }
  .ingresso-vip { translate: 0 -14px; }
  .ingresso-frase { min-height: 2.9em; }
  .preco-principal { min-height: calc(var(--valor) * .9 + 36px); }
  html[data-lote="2"] .preco-principal { min-height: 0; } /* só um valor por ingresso: nada a alinhar */
  .urgencia-lote1 { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
  .urgencia-texto { text-align: left; justify-self: start; }
}
@media (min-width: 1100px) {
  .ingresso { --pad: 32px; }
  .ingresso-nome { font-size: 2rem; }
}

/* hover sutil (só com mouse e sem "reduzir movimento"): o anel do VIP acende um pouco mais */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ingresso-vip:hover::before { opacity: 1; }
}
