/* ============================================================
   POP-UP DE PDF — clique em uma ficha do carrossel para abrir
   o PDF completo, com X grande para sair e setas para navegar.
   ============================================================ */

.pdf-carousel-slide[data-pdf] {
cursor: pointer;
}

.pdf-carousel-slide[data-pdf]:focus-visible {
outline: 3px solid rgb(196 168 140);
outline-offset: 3px;
border-radius: 12px;
}

.pdf-modal {
position: fixed;
inset: 0;
z-index: 200;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
background: rgba(56 42 30 / 0.93);
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
opacity: 0;
visibility: hidden;
transition: opacity 0.25s ease, visibility 0.25s ease;
/* bloqueia zoom por pinça e por duplo toque dentro da pop-up */
touch-action: none;
-ms-touch-action: none;
}

.pdf-modal.is-open {
opacity: 1;
visibility: visible;
}

body.pdf-modal-open {
overflow: hidden;
}

.pdf-modal-frame {
width: min(94vw, 880px);
height: min(78vh, 1150px);
margin-top: 44px; /* deixa espaço para o X e o CTA do rodapé */
background: #ffffff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 24px 80px rgba(0 0 0 / 0.55);
}

.pdf-modal-frame img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
background: #ffffff;
-webkit-user-drag: none;
-webkit-touch-callout: none;
user-select: none;
}

/* Se alguém tentar imprimir a página com a pop-up aberta,
   a pop-up não aparece na impressão */
@media print {
.pdf-modal {
display: none !important;
}
}

/* X grande para sair do modo de visualização, com texto explicativo */
.pdf-modal-close {
position: fixed;
top: 14px;
right: 14px;
z-index: 210;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
height: 58px;
padding: 0 24px;
border: 0;
border-radius: 999px;
background: #dc2626;
color: #ffffff;
cursor: pointer;
box-shadow: 0 10px 30px rgba(0 0 0 / 0.4);
transition: transform 0.15s ease, background 0.15s ease;
}

.pdf-modal-close:hover {
transform: scale(1.1);
background: #b91c1c;
}

.pdf-modal-close svg {
width: 30px;
height: 30px;
flex-shrink: 0;
}

.pdf-modal-close-text {
font-family: 'Fredoka', sans-serif;
font-weight: 700;
font-size: 1rem;
line-height: 1;
white-space: nowrap;
}

/* CTA no rodapé da pop-up: leva direto para os planos */
.pdf-modal-cta {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 210;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 22px;
border-radius: 999px;
background: linear-gradient(90deg, #4ade80, #16a34a);
color: #ffffff;
font-family: 'Fredoka', sans-serif;
font-weight: 700;
font-size: 0.95rem;
line-height: 1.2;
text-decoration: none;
white-space: nowrap;
box-shadow: 0 10px 30px rgba(0 0 0 / 0.4);
transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pdf-modal-cta:hover {
transform: translateX(-50%) scale(1.05);
box-shadow: 0 14px 36px rgba(0 0 0 / 0.45);
}

/* barra superior: título da ficha + contador, à esquerda do X */
.pdf-modal-topbar {
position: fixed;
top: 26px;
left: 20px;
z-index: 210;
display: flex;
align-items: center;
gap: 12px;
max-width: min(58vw, 700px);
pointer-events: none;
}

.pdf-modal-titulo {
min-width: 0;
flex-shrink: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #ffffff;
font-weight: 700;
font-size: 1.05rem;
font-family: 'Fredoka', sans-serif;
}

.pdf-modal-nav {
position: fixed;
top: 50%;
transform: translateY(-50%);
z-index: 210;
display: flex;
align-items: center;
justify-content: center;
width: 54px;
height: 54px;
border: 0;
border-radius: 50%;
background: rgba(255 255 255 / 0.95);
color: rgb(84 64 46);
cursor: pointer;
box-shadow: 0 10px 30px rgba(0 0 0 / 0.35);
transition: transform 0.15s ease;
}

.pdf-modal-nav:hover {
transform: translateY(-50%) scale(1.1);
}

.pdf-modal-nav svg {
width: 28px;
height: 28px;
}

.pdf-modal-nav-prev {
left: 14px;
}

.pdf-modal-nav-next {
right: 14px;
}

.pdf-modal-counter {
margin: 0;
padding: 6px 18px;
border-radius: 999px;
background: rgba(56 42 30 / 0.75);
color: #ffffff;
font-weight: 700;
font-size: 0.9rem;
flex-shrink: 0;
}

@media (max-width: 640px) {
.pdf-modal {
padding: 8px;
}

.pdf-modal-frame {
width: 100%;
height: 76vh;
margin-top: 54px;
border-radius: 12px;
}

.pdf-modal-close {
height: 46px;
padding: 0 16px;
gap: 8px;
top: 8px;
right: 8px;
}

.pdf-modal-close svg {
width: 24px;
height: 24px;
}

.pdf-modal-close-text {
font-size: 0.8rem;
}

.pdf-modal-cta {
bottom: 10px;
padding: 12px 18px;
font-size: 0.85rem;
}

.pdf-modal-topbar {
top: 16px;
left: 12px;
}

.pdf-modal-titulo {
display: none; /* no celular o espaço do topo fica para o X */
}

.pdf-modal-nav {
width: 44px;
height: 44px;
}

.pdf-modal-nav svg {
width: 24px;
height: 24px;
}

.pdf-modal-nav-prev {
left: 6px;
}

.pdf-modal-nav-next {
right: 6px;
}
}
