/* Components (Gift Box Overlay, Modals) */

/* Header Fixo */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(5, 2, 2, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 8, 68, 0.2);
  z-index: 100; /* Fica abaixo do Modal que é 9999 */
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo a {
  font-family: var(--font-cursive);
  font-size: 2.2rem;
  color: #ff0844;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(255, 8, 68, 0.3);
}

.header-timer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1rem;
  color: #e0e0e0;
  background: rgba(255, 8, 68, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 8, 68, 0.3);
}

.header-timer .heart-icon {
  color: #ff0844;
  animation: pulseText 1.5s infinite alternate;
}

/* Responsividade do Header e da nova classe da Hero */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }
  .header-logo a {
    font-size: 1.8rem;
  }
  .header-timer {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    gap: 0.5rem;
  }
}
@media (max-width: 480px) {
  .header-timer {
    font-size: 0.75rem;
  }
}

.gift-box-container {

  width: 100vw;
  height: 100vh;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(5, 2, 2, 0.95);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.gift-text {
  font-family: var(--font-cursive);
  font-size: 3.5rem;
  color: #ff0844;
  text-align: center;
  text-shadow: 0 0 15px rgba(255, 8, 68, 0.4);
  animation: pulseText 2s infinite alternate;
}

.gift-text span {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 300;
  color: #e0e0e0;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-top: 1rem;
  text-shadow: none;
}

@keyframes pulseText {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.gift-box-container svg {
  max-width: 250px;
  max-height: 250px;
  cursor: pointer;
  filter: drop-shadow(0px 0px 40px rgba(255, 8, 68, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.gift-box-container svg:hover {
  filter: drop-shadow(0px 0px 60px rgba(255, 8, 68, 0.8));
  transform: scale(1.05);
}

/* Footer Section */
.site-footer {
  width: 100%;
  background-color: #020101;
  border-top: 1px solid rgba(255, 8, 68, 0.2);
  padding: 4rem 2rem 2rem 2rem;
  font-family: var(--font-sans);
  margin-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-family: var(--font-cursive);
  font-size: 2.2rem;
  color: #ff0844;
  margin-bottom: 1.5rem;
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: #ff0844;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  background: rgba(255, 8, 68, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 8, 68, 0.3);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links a:hover {
  background: #ff0844;
  color: #fff;
  border-color: #ff0844;
  box-shadow: 0 0 15px rgba(255, 8, 68, 0.5);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom .heart {
  color: #ff0844;
  animation: pulseText 1.5s infinite alternate;
  display: inline-block;
}

/* Responsividade do Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
}

/* Tag Flutuante de Data nas Imagens (Mecânica data-date) */
.image-date-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(5, 2, 2, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 8, 68, 0.3);
  color: #e0e0e0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.image-date-tag svg {
  width: 12px;
  height: 12px;
  color: #ff0844;
}

/* Reduz o tamanho da tag em telas pequenas */
@media (max-width: 480px) {
  .image-date-tag {
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Balão Flutuante de Legenda (Mecânica data-tooltip) */
.has-tooltip {
  position: relative;
}

.image-tooltip {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(5, 2, 2, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 8, 68, 0.5);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 20;
  box-shadow: 0 10px 25px rgba(255, 8, 68, 0.2);
}

/* Setinha do balão apontando para a imagem */
.image-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(255, 8, 68, 0.5) transparent transparent transparent;
}

/* Efeito Hover: O balão surge flutuando de baixo para cima */
.has-tooltip:hover .image-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Responsividade do Balão: Evita estourar o texto e mantém visível no mobile */
@media (max-width: 768px) {
  .image-tooltip {
    white-space: normal;
    width: max-content;
    max-width: 250px;
    font-size: 0.75rem;
    
    /* Sempre visível no mobile (já que hover não funciona bem e o clique abre a foto) */
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    bottom: -15px; /* Move levemente para baixo para não tampar a arte da imagem */
  }
}

/* --- TELA DE CARREGAMENTO GLOBAL --- */
#global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050202; /* Fundo sólido absoluto para esconder o carregamento das imagens do site */
  z-index: 99999; /* Fica por cima até mesmo do modal de presente que tem 9999 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loader-heart {
  width: 80px;
  height: 80px;
  /* Mantemos um pulso fraco no container inteiro */
  animation: loaderHeartbeat 1.5s infinite alternate ease-in-out;
}

.heart-base {
  fill: rgba(255, 8, 68, 0.05);
  stroke: rgba(255, 8, 68, 0.2);
  stroke-width: 0.5px;
}

.heart-loading {
  fill: transparent;
  stroke: #ff0844;
  stroke-width: 1.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Comprimento do tracejado que cobre todo o path (aprox 90-100) */
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawHeartLine 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 10px rgba(255, 8, 68, 0.8));
}

@keyframes drawHeartLine {
  0% { stroke-dashoffset: 100; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}

@keyframes loaderHeartbeat {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* --- MZA CAROUSEL (Roque Gonzales Especial) --- */
:root {
  --mzaC-fg: #e7ecf2;
  --mzaC-accent: #ff0844; /* Adaptado pro vermelho do site */
  --mzaC-accent2: #ff758c; 
  --mzaC-glass: rgba(255, 255, 255, 0.06);
  --mzaC-glow: rgba(255, 8, 68, 0.5);
  --mzaC-slideW: min(880px, 90vw);
  --mzaC-peek: 0.15;
  --mzaPagH: 64px;
  --mzaCardH: clamp(360px, 62vh, 600px);
}

.mzaCarousel {
  position: relative;
  height: 80vh;
  width: 100%;
  margin: 5rem auto;
  padding: 0 18px;
  overflow: hidden;
  contain: layout paint;
  touch-action: pan-y; /* Permite scroll vertical da página */
}
.mzaCarousel-viewport {
  position: relative;
  outline: none;
  overflow: hidden;
  height: 100%;
}
.mzaCarousel-track {
  position: relative;
  height: calc(100% - var(--mzaPagH) - max(env(safe-area-inset-bottom), 12px));
  transform-style: preserve-3d;
  perspective: 1200px;
  overflow: hidden;
}
.mzaCarousel-slide {
  position: absolute;
  top: calc(50% + 5px);
  left: calc(50% - (var(--mzaC-slideW) / 2));
  width: var(--mzaC-slideW);
  height: min(var(--mzaCardH), calc(100% - 50px));
  transform-style: preserve-3d;
  display: grid;
  place-items: center;
  border-radius: 22px;
  overflow: hidden;
  will-change: transform, filter;
}
.mzaCard {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: var(--mzaC-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: saturate(120%) blur(4px);
  transform: translateZ(0);
  cursor: grab;
}
.mzaCard-bg-img {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  filter: contrast(1.02) saturate(1.08) brightness(0.9);
  transform: translateZ(-60px) scale(1.18)
    translate3d(var(--mzaParBgX, 0px), var(--mzaParBgY, 0px), 0);
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0, 1),
    filter 800ms cubic-bezier(0.2, 0.7, 0, 1);
  z-index: 1;
  cursor: pointer; /* Fancybox click */
}
.mzaCard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none; /* Let clicks pass to the img */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
}
.mzaCard-head {
  position: absolute;
  inset: 20px auto auto 20px;
  z-index: 3;
}
.mzaCard-title {
  margin: 0;
  font-family: var(--font-cursive);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: clamp(28px, 4vw, 45px);
  color: #ff0844;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.8);
  line-height: 110%;
  cursor: text;
}
.mzaCard-kicker {
  margin: 0.5rem 0;
  color: var(--mzaC-fg);
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.7vw, 16px);
  font-weight: 600;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
  cursor: text;
}

.mzaCarousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.mzaCarousel-prev,
.mzaCarousel-next {
  pointer-events: auto;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: var(--mzaC-fg);
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mzaCarousel-prev {
  margin-left: 6px;
}
.mzaCarousel-next {
  margin-right: 6px;
}
.mzaCarousel-prev:hover,
.mzaCarousel-next:hover {
  background: rgba(255, 8, 68, 0.5);
}
.mzaCarousel-prev:active,
.mzaCarousel-next:active {
  transform: scale(0.98);
}

.mzaCarousel-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(27px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
.mzaCarousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.mzaCarousel-dot[aria-selected="true"] {
  background: linear-gradient(180deg, var(--mzaC-accent2), var(--mzaC-accent));
  transform: scale(1.35);
}

.mzaCarousel-progress {
  position: absolute; /* Changed from fixed to absolute */
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 10;
  overflow: hidden;
}
.mzaCarousel-progressBar {
  display: block;
  height: 100%;
  width: 100vw;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  background: linear-gradient(90deg, var(--mzaC-accent), var(--mzaC-accent2));
}

.mzaCarousel-slide[data-state="active"] .mzaCard-bg-img {
  filter: contrast(1.06) saturate(1.12) brightness(1.02);
}
.mzaCarousel-slide[data-state="active"] .mzaCard {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 8, 68, 0.3) inset;
}

/* Responsividade MzaCarousel */
@media (max-width: 768px) {
  .mzaCarousel {
    height: 60vh;
    margin: 2rem auto;
    padding: 0 10px;
  }
  .mzaCarousel-prev,
  .mzaCarousel-next {
    width: 36px;
    height: 36px;
    font-size: 18px;
    background: rgba(255, 8, 68, 0.4); /* Botões mais visíveis no celular */
  }
  .mzaCarousel-prev {
    margin-left: -5px; /* Empurra pra fora da carta */
  }
  .mzaCarousel-next {
    margin-right: -5px;
  }
  .mzaCarousel-pagination {
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .mzaCarousel {
    height: 55vh;
    min-height: 350px;
  }
  :root {
    --mzaCardH: clamp(280px, 50vh, 400px);
    --mzaC-slideW: 85vw;
  }
}

.mzaPar-1 {
  will-change: transform;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0, 1);
  transform: translate3d(
    calc(var(--mzaParX, 0px) * 0.35),
    calc(var(--mzaParY, 0px) * 0.35),
    0
  );
}

@media (max-width: 1000px) {
  :root {
    --mzaC-slideW: min(92vw, 620px);
  }
  .mzaCard-head {
    inset: 16px auto auto 16px;
  }
}
@media (max-width: 768px) {
  :root {
    --mzaC-slideW: min(94vw, 560px);
  }
}
