/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Modern Tickets Section */
.tickets-section-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.tickets-section-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23000" opacity="0.02"/><circle cx="80" cy="80" r="1" fill="%23000" opacity="0.02"/></svg>');
  pointer-events: none;
}

.tickets-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Hero Section */
.tickets-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.tickets-badge {
  display: inline-block;
  background: linear-gradient(
    45deg,
    var(--cinebrasil-blue),
    var(--cinebrasil-light-blue)
  );
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.tickets-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--cinebrasil-black);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.tickets-hero-title .highlight {
  background: linear-gradient(
    45deg,
    var(--cinebrasil-blue),
    var(--cinebrasil-light-blue)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tickets-hero-subtitle {
  font-size: 1.2rem;
  color: var(--cinebrasil-dark-gray);
  line-height: 1.6;
  margin: 0;
}

/* Ticket Mockup */
.tickets-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.ticket-mockup {
  perspective: 1000px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.ticket-front {
  background: linear-gradient(
    135deg,
    var(--cinebrasil-blue) 0%,
    var(--cinebrasil-dark-blue) 100%
  );
  width: 300px;
  height: 180px;
  border-radius: 20px;
  padding: 1.5rem;
  color: white;
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ticket-front::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.festival-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.ticket-type {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.ticket-price-display {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Pricing Grid */
.pricing-grid {
  display: flex;
  justify-content: center;
  margin-bottom: 5rem;
}

.pricing-card {
  background: white;
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 500px;
  width: 100%;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--cinebrasil-blue),
    var(--cinebrasil-light-blue)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(30, 58, 138, 0.2);
  border-color: var(--cinebrasil-light-blue);
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card.featured {
  border-color: var(--cinebrasil-blue);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  opacity: 1;
}

.pricing-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.pricing-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  background: rgba(30, 58, 138, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cinebrasil-black);
  margin: 0;
  flex: 1;
}

.pricing-badge {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  position: absolute;
  top: -10px;
  right: 0;
}

.pricing-price {
  text-align: center;
  margin-bottom: 2rem;
}

.currency {
  font-size: 1.5rem;
  color: var(--cinebrasil-dark-gray);
  vertical-align: top;
}

.amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--cinebrasil-blue);
}

.period {
  font-size: 1rem;
  color: var(--cinebrasil-dark-gray);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pricing-features li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 1rem;
  color: var(--cinebrasil-dark-gray);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-cta {
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pricing-cta.primary {
  background: linear-gradient(
    45deg,
    var(--cinebrasil-blue),
    var(--cinebrasil-light-blue)
  );
  color: white;
}

.pricing-cta.secondary {
  background: #f8fafc;
  color: var(--cinebrasil-blue);
  border: 2px solid var(--cinebrasil-light-blue);
}

.pricing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.cta-icon {
  transition: transform 0.3s ease;
}

.pricing-cta:hover .cta-icon {
  transform: translateX(5px);
}

/* Info Grid */
.tickets-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.info-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cinebrasil-blue);
  margin: 0 0 1rem 0;
}

.info-text {
  color: var(--cinebrasil-dark-gray);
  line-height: 1.5;
  margin: 0;
}

/* CTA Footer */
.tickets-cta-footer {
  background: linear-gradient(
    135deg,
    var(--cinebrasil-blue) 0%,
    var(--cinebrasil-dark-blue) 100%
  );
  border-radius: 25px;
  padding: 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.tickets-cta-footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.cta-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 2rem 0;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-modern {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 200px;
  justify-content: center;
}

.btn-modern.primary {
  background: white;
  color: var(--cinebrasil-blue);
}

.btn-modern.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-modern:hover .btn-arrow {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
  .tickets-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .pricing-grid {
    justify-content: center;
  }

  .pricing-card.featured {
    transform: none;
  }

  /* Exceção para o botão trailer - deve ocupar toda a largura */
  .overview-right .overview-trailer.btn-modern {
    max-width: none !important;
  }

  .tickets-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tickets-section-modern {
    padding: 4rem 0;
  }

  .tickets-hero-title {
    font-size: 2.5rem;
  }

  /* Exceção para o botão trailer - deve ocupar toda a largura */
  .overview-right .overview-trailer.btn-modern {
    max-width: none !important;
  }

  .ticket-front {
    width: 250px;
    height: 150px;
    padding: 1rem;
  }

  .ticket-price-display {
    font-size: 2rem;
  }

  .tickets-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-modern {
    width: 100%;
    max-width: 300px;
  }

  /* Exceção para o botão trailer - deve ocupar toda a largura */
  .overview-right .overview-trailer.btn-modern {
    max-width: none !important;
  }
}

@media (max-width: 480px) {
  .tickets-hero-title {
    font-size: 2rem;
  }

  .amount {
    font-size: 2.5rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  /* Exceção para o botão trailer no mobile - deve ocupar toda a largura */
  .overview-right .overview-trailer.btn-modern {
    max-width: none !important;
  }

  .tickets-cta-footer {
    padding: 2rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }
}

/* Breakpoint para telas menores que 480px */
@media (max-width: 390px) {
  /* Exceção para o botão trailer em telas muito pequenas - deve ocupar toda a largura */
  .overview-right .overview-trailer.btn-modern {
    max-width: none !important;
  }
}
