/* Seção Cirurgias Bariátricas e Metabólicas */
.cirurgia-bariatrica-section {
  padding: 100px 0;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.cirurgia-bariatrica-section::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.cirurgia-bariatrica-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.cirurgia-bariatrica-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.cirurgia-bariatrica-badge {
  display: inline-block;
  background: var(--color2);
  color: white;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cirurgia-bariatrica-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color2);
  /* background-image: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-secondary)
  ); */
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cirurgia-bariatrica-decorative {
  position: absolute;
  top: -20px;
  right: 50%;
  transform: translateX(50%);
  color: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.cirurgia-bariatrica-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.cirurgia-bariatrica-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cirurgia-bariatrica-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.cirurgia-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.cirurgia-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cirurgia-bariatrica-card:hover .cirurgia-card-image img {
  transform: scale(1.1);
}

.cirurgia-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(
      135deg,
      rgba(26, 75, 115, 0.8) 0%,
      rgba(44, 95, 138, 0.6) 100%
    ); */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cirurgia-bariatrica-card:hover .cirurgia-card-overlay {
  opacity: 1;
}

.cirurgia-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 70%;
}

.cirurgia-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a4b73;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.cirurgia-card-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 25px 0;
  flex-grow: 1;
}

.cirurgia-card-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1a4b73 0%, #2c5f8a 100%);
  color: #ffffff;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 75, 115, 0.3);
  margin-top: auto;
  align-self: center;
  width: fit-content;
}

.cirurgia-card-button:hover {
  background: linear-gradient(135deg, #2c5f8a 0%, #1a4b73 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 75, 115, 0.4);
}

.cirurgia-card-button svg {
  transition: transform 0.3s ease;
}

.cirurgia-card-button:hover svg {
  transform: translateX(3px);
}

/* Responsividade */
@media (max-width: 768px) {
  .cirurgia-bariatrica-section {
    padding: 60px 0;
  }

  .cirurgia-bariatrica-title {
    font-size: 2.5rem;
  }

  .cirurgia-bariatrica-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
  }

  .cirurgia-bariatrica-header {
    margin-bottom: 50px;
  }

  .cirurgia-card-content {
    padding: 25px;
  }

  .cirurgia-card-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .cirurgia-bariatrica-container {
    padding: 0 15px;
  }

  .cirurgia-bariatrica-title {
    font-size: 2rem;
  }

  .cirurgia-card-content {
    padding: 20px;
  }

  .cirurgia-card-description {
    font-size: 0.9rem;
  }
}

/* Modal Cirurgia Bariátrica */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-container {
  background: #ffffff;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
  margin-top: 60px;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: linear-gradient(135deg, #1a4b73 0%, #2c5f8a 100%);
  color: #ffffff;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal-content {
  max-height: calc(90vh - 100px);
  overflow-y: auto;
  padding: 30px;
}

.modal-section {
  margin-bottom: 35px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a4b73;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #ffffff00;
  position: relative;
}

/* .section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #1a4b73;
} */

.section-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin: 0 0 15px 0;
}

.benefits-risks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 25px 0;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 5px solid #2c5f8a;
}

.benefits h4,
.risks h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a4b73;
  margin: 0 0 15px 0;
}

.benefits-list {
  margin: 0;
  padding: 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 8px 0;
}

.checkmark {
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 12px;
  flex-shrink: 0;
  line-height: 1.5;
}

.benefit-text {
  color: #333;
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
}

.indications {
  background: #e3f2fd;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border-left: 4px solid #2196f3;
  display: block;
  visibility: visible;
  opacity: 1;
}

.indications h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a4b73;
  margin: 0 0 15px 0;
}

.indications-list {
  margin: 0;
  padding: 0;
}

.indication-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 8px 0;
}

.bullet {
  color: #2196f3;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 12px;
  flex-shrink: 0;
  line-height: 1.5;
}

.indication-text {
  color: #333;
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
}

.indication-text strong {
  color: #1a4b73;
  font-weight: 700;
}

.surgery-type {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
  border: 1px solid #e9ecef;
}

.surgery-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a4b73;
  margin: 0 0 5px 0;
}

.surgery-subtitle {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin: 0 0 20px 0;
}

.surgery-content {
  margin-top: 20px;
}

.surgery-text p {
  margin: 0 0 15px 0;
  line-height: 1.6;
  color: #555;
}

.process-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.process-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a4b73;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #2c5f8a;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 20px 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-cta {
  background: linear-gradient(135deg, #1a4b73 0%, #2c5f8a 100%);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}

.modal-cta::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

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

.cta-content h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-button {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsividade do Modal */
@media (max-width: 768px) {
  .modal-overlay.active {
    padding: 10px;
  }

  .modal-container {
    max-height: 95vh;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-content {
    padding: 20px;
    max-height: calc(95vh - 80px);
  }

  .benefits-risks {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .surgery-type {
    padding: 20px;
  }

  .process-section {
    padding: 15px;
  }

  .modal-cta {
    padding: 25px 20px;
  }

  .cta-content h3 {
    font-size: 1.2rem;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .modal-overlay.active {
    padding: 5px;
  }

  .modal-header {
    padding: 15px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-close {
    width: 35px;
    height: 35px;
  }

  .modal-content {
    padding: 15px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .section-text {
    font-size: 0.9rem;
  }

  .benefits-risks {
    padding: 15px;
  }

  .surgery-type {
    padding: 15px;
  }

  .process-section {
    padding: 12px;
  }

  .modal-cta {
    padding: 20px 15px;
  }

  .cta-content h3 {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* Modal Cirurgia Bariátrica Revisional - Estilos Específicos */
.surgery-conversions-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.conversions-diagram {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.conversions-diagram:hover {
  transform: scale(1.02);
}

/* Responsividade para Imagem de Conversões */
@media (max-width: 768px) {
  .surgery-conversions-image {
    padding: 15px;
    margin: 25px 0;
  }

  .conversions-diagram {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .surgery-conversions-image {
    padding: 10px;
    margin: 20px 0;
  }
}

/* Modal Cirurgia Metabólica - Estilos Específicos */
.eligibility-criteria {
  background: #e8f5e8;
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
  border-left: 5px solid #28a745;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.criteria-list {
  margin: 0;
  padding: 0;
}

.criteria-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 8px 0;
}

.criteria-bullet {
  color: #28a745;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 15px;
  flex-shrink: 0;
  line-height: 1.5;
}

.criteria-text {
  color: #333;
  font-weight: 500;
  line-height: 1.6;
  flex: 1;
}

.surgery-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.surgery-procedure-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.surgery-procedure-image:hover {
  transform: scale(1.02);
}

/* Responsividade para Modal Metabólica */
@media (max-width: 768px) {
  .eligibility-criteria {
    padding: 20px;
    margin: 20px 0;
  }

  .criteria-item {
    margin-bottom: 12px;
  }

  .criteria-bullet {
    font-size: 1.1rem;
    margin-right: 12px;
  }

  .surgery-image-container {
    padding: 15px;
    margin: 25px 0;
  }
}

@media (max-width: 480px) {
  .eligibility-criteria {
    padding: 15px;
  }

  .criteria-item {
    margin-bottom: 10px;
  }

  .criteria-bullet {
    font-size: 1rem;
    margin-right: 10px;
  }

  .criteria-text {
    font-size: 0.9rem;
  }

  .surgery-image-container {
    padding: 10px;
    margin: 20px 0;
  }
}
