/* ==============================
   INTRO E CARROSSEL DE CARDS
================================ */
.procedimentos-intro { text-align: center; padding: 60px 5% 20px; }
.procedimentos-intro h1 { color: var(--primary); }

.cards-carousel-section { padding: 20px 5% 40px; max-width: 1100px; margin: 0 auto; }
.cards-carousel-container { overflow: hidden; padding: 10px 0; }

#cardsTrack {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: max-content;
}

.card-glass {
  width: 300px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.card-glass:hover {
  background: var(--white);
  transform: translateY(-5px);
  border-color: var(--secondary);
}

/* ==============================
   MODAL DE DETALHES
================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 77, 74, 0.6);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 40px;
  width: 90%;
  max-width: 600px;
  border-radius: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary);
}

#modalText {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin: 20px 0 30px;
  text-align: justify;
}

/* ==============================
   CARROSSEL DE FOTOS (ESTÁVEL)
================================ */
.carousel-section { padding: 40px 0 80px; max-width: 850px; margin: 0 auto; }
.carousel-container { position: relative; overflow: hidden; border-radius: 20px; background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
#carouselTrack { display: flex; transition: transform 0.6s ease; }
.carousel-item { min-width: 100% !important; height: 450px; display: flex; align-items: center; justify-content: center; }
.carousel-item img { width: 100%; height: 100%; object-fit: contain; }

/* Botões do Carrossel */
.cards-controls { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.card-btn, .carousel-btn {
  background: var(--white);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  width: 45px; height: 45px; border-radius: 50%;
  cursor: pointer; transition: 0.3s;
}
.card-btn:hover { background: var(--secondary); color: white; }

.carousel-container .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.8); }
.carousel-container .prev { left: 15px; }
.carousel-container .next { right: 15px; }

@media (max-width: 768px) {
  .carousel-item { height: 300px; }
  .card-glass { width: 260px; }
  .modal-content { margin: 20% auto; padding: 30px 20px; }
}