/* ============================================================
   FÁBRICA IMAGENS — vr.css  (página VR 360°)
============================================================ */


/* --- HERO VR --- */
.vr-hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.vr-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, #1a0520 0%, #0D0D0D 70%);
}

.vr-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,13,13,0.85) 0%,
    rgba(45,8,37,0.4)   50%,
    rgba(13,13,13,0.7)  100%
  );
}

.vr-hero__content {
  position: relative;
  z-index: 2;
}

.vr-hero__title {
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 100;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 16px 0 24px;
}

.vr-hero__sub {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 300;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  max-width: 480px;
}

.vr-hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* --- ESFERA DECORATIVA --- */
.vr-hero__sphere {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 35vw, 520px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 1;
}

.sphere__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid;
  transform-origin: center center;
}

.sphere__ring--1 {
  width: 100%;
  height: 100%;
  margin: -50% 0 0 -50%;
  border-color: rgba(184, 40, 120, 0.3);
  animation: ring-spin-1 18s linear infinite;
}

.sphere__ring--2 {
  width: 72%;
  height: 72%;
  margin: -36% 0 0 -36%;
  border-color: rgba(140, 28, 114, 0.45);
  animation: ring-spin-2 12s linear infinite reverse;
  transform: rotateX(65deg);
}

.sphere__ring--3 {
  width: 48%;
  height: 48%;
  margin: -24% 0 0 -24%;
  border-color: rgba(204, 32, 128, 0.6);
  animation: ring-spin-3 8s linear infinite;
  transform: rotateY(55deg);
}

/* Ponto central brilhante */
.vr-hero__sphere::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px 6px rgba(184, 40, 120, 0.5);
}

@keyframes ring-spin-1 {
  to { transform: rotate(360deg); }
}
@keyframes ring-spin-2 {
  from { transform: rotateX(65deg) rotate(0deg); }
  to   { transform: rotateX(65deg) rotate(-360deg); }
}
@keyframes ring-spin-3 {
  from { transform: rotateY(55deg) rotate(0deg); }
  to   { transform: rotateY(55deg) rotate(360deg); }
}


/* --- CREDENCIAL IVRPA --- */
.ivrpa-bar {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.ivrpa-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.ivrpa-badge {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ivrpa-badge__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-iris);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  flex-shrink: 0;
}

.ivrpa-badge__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ivrpa-badge__text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.ivrpa-badge__text span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.ivrpa-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.ivrpa-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ivrpa-stat__num {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 100;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.ivrpa-stat__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* --- INTRO --- */
.vr-intro {
  padding: var(--pad-section);
}

.vr-intro__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.vr-intro__texto h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 100;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 16px 0 28px;
}

.vr-intro__texto p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 18px;
  max-width: 560px;
}

.vr-intro__texto p strong {
  color: var(--text);
  font-weight: 400;
}

.vr-intro__foto {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  overflow: hidden;
}

.vr-intro__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vr-intro__foto-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--border);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}

/* Oculta placeholder se a imagem carregar */
.vr-intro__foto img:not([src=""]) + .vr-intro__foto-placeholder {
  display: none;
}

.vr-intro__equip-tag {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}


/* --- SEÇÕES DE TOURS --- */
.vr-section {
  padding: var(--pad-section);
}

.vr-section--dark {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.vr-section__desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 640px;
  margin: 24px 0 56px;
}

/* Reutiliza .section-header do style.css */


/* --- GRADE DE TOURS --- */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3px;
}

.tour-card {
  background: var(--bg-card);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-2px);
}

.tour-card__img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.tour-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.tour-card:hover .tour-card__img-wrap img {
  transform: scale(1.04);
}

.tour-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--border);
}

.tour-card__img-wrap img:not([src=""]) + .tour-card__placeholder {
  display: none;
}

.tour-card__type {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13,13,13,0.8);
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.tour-card__type--quest {
  color: #6B7FE8;
}

/* Botão play para tours web */
.tour-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,13,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.tour-card:hover .tour-card__play {
  opacity: 1;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  padding-left: 4px;
  transition: transform 0.2s, background 0.2s;
}

.tour-card:hover .play-btn {
  transform: scale(1.1);
  background: var(--accent-hover);
}

.tour-card__info {
  padding: 20px 24px 24px;
}

.tour-card__title {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.tour-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.tour-card__specs {
  margin-top: 12px;
}

.tour-card__specs span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B7FE8;
}


/* --- PROCESSO --- */
.vr-processo {
  padding: var(--pad-section);
  background: var(--bg);
}

.vr-processo__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 56px;
}

.vr-etapa {
  background: var(--bg-elevated);
  padding: 36px 28px;
  position: relative;
}

.vr-etapa__num {
  display: block;
  font-size: 48px;
  font-weight: 100;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.vr-etapa h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 14px;
}

.vr-etapa p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Linha de conexão entre etapas */
.vr-etapa::after {
  content: '';
  position: absolute;
  top: 36px;
  right: -2px;
  width: 4px;
  height: 24px;
  background: var(--accent);
  opacity: 0.3;
}

.vr-etapa:last-child::after {
  display: none;
}


/* --- CTA --- */
.vr-cta {
  padding: var(--pad-section);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.vr-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.vr-cta__inner h2 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 100;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}

.vr-cta__inner p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 36px;
}

.vr-cta__selos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 280px;
}

.vr-selo {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 16px 20px;
}

.vr-selo__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-iris);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  flex-shrink: 0;
}

.vr-selo__icon--meta {
  background: linear-gradient(135deg, #0A66C2 0%, #1890FF 100%);
}

.vr-selo__icon--res {
  background: linear-gradient(135deg, #1A1A1A 0%, #333 100%);
  border: 1px solid var(--accent);
  font-size: 11px;
}

.vr-selo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vr-selo__text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.vr-selo__text span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}


/* --- MODAL DO TOUR --- */
.tour-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.tour-modal.open {
  opacity: 1;
  pointer-events: all;
}

.tour-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(13,13,13,0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.tour-modal__backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.tour-modal__box {
  position: relative;
  z-index: 2001;
  background: var(--bg-elevated);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.tour-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border-soft);
  gap: 16px;
}

.tour-modal__type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.tour-modal__title {
  font-size: 20px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.01em;
}

.tour-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}

.tour-modal__close:hover { color: var(--text); }

.tour-modal__stage {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.tour-modal__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.tour-modal__fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
  padding: 40px;
  text-align: center;
}

.tour-modal__fallback.visible {
  display: flex;
}

.tour-modal__fallback p {
  font-size: 14px;
  color: var(--text-muted);
}

.tour-modal__desc {
  padding: 20px 28px 28px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}


/* --- RESPONSIVO --- */
@media (max-width: 1100px) {
  .vr-processo__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vr-etapa:nth-child(2)::after { display: none; }
}

@media (max-width: 960px) {
  .vr-intro__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .vr-cta__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .vr-cta__selos {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: auto;
  }

  .vr-selo { flex: 1 1 220px; }
}

@media (max-width: 768px) {
  .ivrpa-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .ivrpa-stats {
    gap: 28px;
  }

  .tours-grid {
    grid-template-columns: 1fr;
  }

  .vr-hero__sphere {
    opacity: 0.3;
    right: 0;
    width: 80vw;
  }
}

@media (max-width: 600px) {
  .vr-processo__grid {
    grid-template-columns: 1fr;
  }

  .vr-etapa::after { display: none; }

  .tour-modal__box {
    max-height: 100vh;
  }

  .tour-modal {
    padding: 0;
    align-items: flex-end;
  }

  .tour-modal__box {
    border-radius: 0;
  }
}
