/* ======== ESTILOS GERAIS ======== */
* {
  box-sizing: border-box;
}

/* Classe para leitores de tela - texto oculto visualmente mas acessível */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background: 
    linear-gradient(180deg, #ffffff 0%, #fafafa 30%, #f5f5f5 60%, #f0f0f0 100%),
    radial-gradient(ellipse at top left, rgba(114, 47, 55, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(114, 47, 55, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
  text-align: left;
}

/* Otimização mobile: desabilitar background-attachment fixed */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    /* Usar fonte do sistema enquanto Poppins carrega */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  }
  
  /* Aplicar Poppins apenas quando carregar */
  body.fonts-loaded {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  }
  
  body::before {
    display: none;
  }
  
  /* Otimizações de performance para mobile */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Reduzir reflows forçados */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Otimizar renderização de imagens */
  img[loading="lazy"] {
    content-visibility: auto;
  }
  
  /* Otimização: usar contain para isolar seções e melhorar renderização */
  section {
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
  }
  
  /* Desabilitar animações pesadas que não são essenciais */
  @keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  }
  
  /* Reduzir complexidade de animações de card */
  .card-icon-glow {
    animation: none;
  }
  
  /* Otimizar transformações - usar GPU acceleration apenas quando necessário */
  .carousel-wrapper {
    will-change: transform;
    transform: translateZ(0);
  }
  
  /* Reduzir repaints - otimizar elementos que mudam frequentemente */
  .carousel-dot {
    will-change: opacity;
  }
  
  /* Desabilitar animações de entrada que não são críticas */
  .animate-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Otimizar scroll performance */
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Reduzir complexidade de filtros */
  .lightbox-btn,
  .lightbox .close {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.95);
  }
  
  /* Otimizar renderização de elementos fixos */
  #whatsappFloat {
    will-change: transform;
    transform: translateZ(0);
  }
}

p {
  text-align: left;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(114, 47, 55, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(26, 26, 26, 0.015) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(114, 47, 55, 0.003) 2px,
      rgba(114, 47, 55, 0.003) 4px
    );
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Animações de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(255, 255, 255, 0.2),
      0 0 0 0 rgba(136, 6, 6, 0.7);
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.4),
      0 0 35px rgba(255, 255, 255, 0.5),
      0 0 0 15px rgba(136, 6, 6, 0.4);
    transform: scale(1.02);
  }
}

section {
  animation: fadeInUp 0.6s ease-out;
}

/* Otimização mobile: desabilitar animação de entrada */
@media (max-width: 768px) {
  section {
    animation: none;
  }
  
  /* Desabilitar animações pesadas no mobile */
  .header-background {
    animation: none;
    background-size: 100% 100%;
  }
  
  /* Otimizar carrosséis no mobile */
  .carousel-wrapper {
    will-change: transform;
  }
  
  /* Reduzir complexidade de sombras no mobile */
  .card, .card-servico, .card-mais, .card-avaliacao {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Otimizar renderização - usar contain para isolar elementos */
  .carousel-container, .card, .card-servico {
    contain: layout style paint;
  }
  
  /* Reduzir transições no mobile */
  * {
    transition-duration: 0.2s !important;
  }
  
  /* Desabilitar hover effects no mobile */
  .card:hover, .card-servico:hover, .card-mais:hover {
    transform: none;
  }
  
  /* Acessibilidade: garantir áreas de toque mínimas de 44x44px */
  .social-links-header a,
  .social-links a,
  .carousel-btn,
  .lightbox-btn,
  button,
  .btn-agendar,
  .btn-avaliacoes {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Garantir espaçamento adequado entre elementos clicáveis */
  .social-links-header {
    gap: 12px;
  }
  
  .social-links {
    gap: 12px;
  }
  
  /* Aumentar área de toque dos links sociais no mobile */
  .social-links-header a,
  .social-links a {
    width: 48px;
    height: 48px;
    padding: 8px;
    min-width: 48px;
    min-height: 48px;
  }
  
  /* Garantir que botões tenham padding adequado */
  .btn-agendar,
  .btn-avaliacoes {
    padding: 14px 24px;
    min-height: 48px;
  }
  
  /* Garantir área de toque do botão de fechar lightbox */
  .lightbox .close {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  
  /* Remover estilos não usados no mobile - otimização de CSS */
  /* Desabilitar animações complexas que não são visíveis no mobile */
  @keyframes floatBackground {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, 0); }
  }
  
  /* Simplificar backgrounds complexos no mobile */
  .apresentacao-doutor::before,
  .apresentacao-doutor::after {
    display: none;
  }
  
  /* Remover efeitos de hover não aplicáveis no mobile */
  .foto-wrapper:hover img,
  .info-header .logo:hover,
  .apresentacao-imagem:hover img {
    transform: none;
  }
  
  /* Simplificar gradientes complexos */
  footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  }
  
  footer::before,
  footer::after {
    display: none;
  }
  
  /* Remover animações de gradiente no footer mobile */
  @keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 0% 50%; }
  }
  
  /* Remover estilos de hover não aplicáveis no mobile */
  .header-shapes .shape:hover,
  .logo-glow:hover,
  .foto-glow:hover {
    transform: none;
    animation: none;
  }
  
  /* Simplificar sombras complexas no mobile */
  .card-servico,
  .card-mais,
  .card-avaliacao {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Remover backdrop-filter pesado no mobile */
  .carousel-btn,
  .lightbox-btn {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.95);
  }
  
  /* Otimizar renderização - desabilitar efeitos visuais pesados */
  .header-background::before {
    display: none;
  }
  
  /* Simplificar gradientes no header mobile */
  .header-background {
    background: linear-gradient(135deg, #722F37 0%, #8B3E47 100%);
  }
}

header {
  text-align: center;
  color: white;
  padding: 80px 20px 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #722F37 0%, #5a252b 30%, #722F37 60%, #8B3E47 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.header-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

.header-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  right: -100px;
  animation-delay: 5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 10%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.3;
  }
  33% {
    transform: translate(50px, -50px) rotate(120deg);
    opacity: 0.5;
  }
  66% {
    transform: translate(-30px, 30px) rotate(240deg);
    opacity: 0.4;
  }
}

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

header .logo {
  width: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.header-title {
  font-size: 2.8em;
  margin: 20px 0;
  font-weight: 800;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
}

.title-main {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.title-underline {
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  margin: 10px auto 0;
  border-radius: 2px;
  animation: underlineExpand 2s ease-in-out infinite;
}

@keyframes underlineExpand {
  0%, 100% {
    width: 100px;
    opacity: 0.7;
  }
  50% {
    width: 150px;
    opacity: 1;
  }
}

.header-subtitle {
  font-weight: 400;
  margin: 15px 0 25px;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-subtitle i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
}

.header-subtitle .divider {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
}

.cro-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cro-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.header-features-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.header-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  flex: 0 0 auto;
}

.header-features-container .btn-agendar {
  align-self: flex-start;
  margin-top: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  font-size: 0.95em;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-item i {
  color: #ffffff;
  font-size: 1.1em;
}

.feature-item .location-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-item .location-link span {
  color: #ffffff;
  transition: all 0.3s ease;
}

.feature-item .location-link:hover span {
  color: #ffeb3b;
  text-decoration: underline;
}

.btn-agendar {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  color: #880606;
  border: none;
  padding: 16px 40px;
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  animation: blink 2s ease-in-out infinite;
}

.btn-agendar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(136, 6, 6, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-agendar:hover::before {
  width: 300px;
  height: 300px;
}

.btn-agendar:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.btn-agendar:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-agendar i {
  position: relative;
  z-index: 1;
}

.btn-agendar span {
  position: relative;
  z-index: 1;
}

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

.btn-agendar:hover .fa-arrow-right {
  transform: translateX(5px);
}

/* ======== SEÇÃO SOBRE ======== */
section {
  padding: 100px 50px;
  max-width: 1400px;
  margin: auto;
  text-align: left;
}

h3 {
  text-align: left;
  color: #880606;
  font-size: 2.5em;
  margin-bottom: 50px;
  font-weight: 800;
  position: relative;
  padding-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(136, 6, 6, 0.1);
}

h3::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  transform: none;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #880606, transparent);
  border-radius: 2px;
}

h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  transform: none;
  width: 120px;
  height: 5px;
  background: linear-gradient(90deg, #880606, #a80707);
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(136, 6, 6, 0.3);
  animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {
  0%, 100% {
    width: 120px;
    opacity: 1;
  }
  50% {
    width: 150px;
    opacity: 0.8;
  }
}

.sobre {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 40%, #f8f9fa 80%, #f0f4f8 100%);
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(136, 6, 6, 0.08);
}

.sobre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(136, 6, 6, 0.2), rgba(136, 6, 6, 0.3), rgba(136, 6, 6, 0.2), transparent);
}

.sobre::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(136, 6, 6, 0.06) 0%, rgba(26, 26, 26, 0.03) 50%, transparent 70%);
  border-radius: 50%;
  animation: floatBackground 25s ease-in-out infinite;
}

.sobre-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.texto-sobre {
  flex: 1 1 75%;
  order: 1; /* Ordem padrão: primeiro */
}

.texto-sobre p {
  margin-bottom: 25px;
  text-align: left;
  color: #444;
  font-size: 1.05em;
  line-height: 1.8;
}

.texto-sobre strong {
  color: #880606;
  font-weight: 600;
}

/* Estilos das fotos do doutor agora são aplicados via carrossel */
.fotos-doutor {
  flex: 1 1 10%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  order: 2; /* Ordem padrão: depois do texto */
}

.video-doutor-wrapper {
  flex: 1 1 100%;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  order: 3; /* Ordem padrão: depois das fotos */
}

.video-doutor {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-doutor blockquote {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
}

.video-doutor iframe {
  min-height: 500px !important;
  width: 100% !important;
  touch-action: manipulation !important;
  pointer-events: auto !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ======== CONSULTÓRIO ======== */
.consultorio {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 30%, #f5f7fa 70%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(136, 6, 6, 0.08);
}

.consultorio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(136, 6, 6, 0.15), rgba(136, 6, 6, 0.25), rgba(136, 6, 6, 0.15), transparent);
}

.consultorio::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(136, 6, 6, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(26, 26, 26, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.descricao-consultorio {
  text-align: left;
  margin-bottom: 40px;
  max-width: 800px;
  color: #555;
  font-size: 1.1em;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Estilos da galeria consultório agora são aplicados via carrossel */
.galeria-consultorio {
  position: relative;
  z-index: 1;
}

.video-consultorio-wrapper {
  margin-top: 0;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.video-consultorio {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-consultorio blockquote {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
}

.video-consultorio iframe {
  min-height: 500px !important;
  width: 100% !important;
  touch-action: manipulation !important;
  pointer-events: auto !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ======== SERVIÇOS ======== */
.servicos {
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 40%, #f8f9fa 80%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(136, 6, 6, 0.08);
}

.servicos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(136, 6, 6, 0.2), transparent);
}

.servicos::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(136, 6, 6, 0.03) 0%, rgba(26, 26, 26, 0.01) 50%, transparent 70%);
  border-radius: 50%;
  animation: pulseLarge 15s ease-in-out infinite;
}

@keyframes pulseLarge {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.cards-servicos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .cards-servicos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-servicos {
    grid-template-columns: 1fr;
  }
}

.descricao-servicos {
  text-align: left;
  max-width: 800px;
  margin: 0 0 50px 0;
  color: #555;
  font-size: 1.1em;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.card {
  background: #ffffff;
  border-radius: 25px;
  text-align: left;
  padding: 35px 30px;
  width: 280px;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(136, 6, 6, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.6s ease-out;
  display: flex;
  flex-direction: column;
}

.card-servico {
  width: 100%;
  max-width: 100%;
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #880606, #a80707, #880606);
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.4s ease;
  animation: gradientMove 3s ease infinite;
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(136, 6, 6, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 1;
}

.card-servico:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 
    0 20px 50px rgba(136, 6, 6, 0.3),
    0 0 0 2px rgba(136, 6, 6, 0.15),
    0 0 40px rgba(136, 6, 6, 0.15);
  border-color: rgba(136, 6, 6, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(136, 6, 6, 0.25),
    0 0 0 1px rgba(136, 6, 6, 0.1),
    0 0 30px rgba(136, 6, 6, 0.1);
  border-color: rgba(136, 6, 6, 0.2);
}

.card-icon-wrapper {
  position: relative;
  display: inline-block;
  margin: 0 auto 25px;
  width: 110px;
  height: 110px;
}

.card-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(136, 6, 6, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  animation: pulseGlow 3s ease-in-out infinite;
}

.card:hover .card-icon-glow {
  opacity: 1;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.5;
  }
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  position: relative;
  z-index: 1;
}

.card:hover img {
  transform: scale(1.15) rotate(5deg) translateY(-8px);
  filter: drop-shadow(0 8px 25px rgba(136, 6, 6, 0.4));
}

.card h4 {
  color: #880606;
  margin-bottom: 15px;
  font-size: 1.4em;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card:hover h4 {
  color: #a80707;
}

.card-description {
  font-size: 1em;
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
  min-height: 50px;
  flex-grow: 0;
}

.card p {
  font-size: 0.95em;
  color: #555;
}

.card-beneficios {
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid rgba(136, 6, 6, 0.1);
  text-align: left;
}

.card-video {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid rgba(136, 6, 6, 0.1);
  width: 100%;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 350px;
}

.card-video blockquote {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.card-video blockquote > * {
  margin: 0 auto;
  display: block;
}

.card-video iframe {
  pointer-events: auto !important;
  z-index: 2;
  position: relative;
  margin: 0 auto;
  display: block;
  min-height: 350px !important;
  width: 100% !important;
  touch-action: manipulation !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.beneficio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9em;
  color: #444;
  transition: all 0.3s ease;
}

.beneficio-item:last-child {
  margin-bottom: 0;
}

.beneficio-item i {
  color: #880606;
  font-size: 1.1em;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.card:hover .beneficio-item {
  color: #333;
  transform: translateX(5px);
}

.card:hover .beneficio-item i {
  transform: scale(1.2);
  color: #a80707;
}

.beneficio-item span {
  line-height: 1.5;
}

/* ======== LIGHTBOX ======== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lightbox-content * {
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 15px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 3px rgba(136, 6, 6, 0.3),
    0 0 40px rgba(136, 6, 6, 0.2);
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  object-fit: contain;
  cursor: default;
}

.lightbox img.loaded {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.lightbox-info {
  margin-top: 20px;
  text-align: left;
}

.lightbox-counter {
  display: inline-block;
  background: rgba(136, 6, 6, 0.9);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  color: white;
  font-size: 24px;
  backdrop-filter: blur(10px);
}

.lightbox-btn:hover {
  background: rgba(136, 6, 6, 0.9);
  border-color: #880606;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(136, 6, 6, 0.5);
}

.lightbox-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 28px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(10px);
  line-height: 1;
}

.lightbox .close:hover {
  background: rgba(136, 6, 6, 0.9);
  border-color: #880606;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 25px rgba(136, 6, 6, 0.5);
}

@media (max-width: 768px) {
  .lightbox-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    font-size: 20px;
  }

  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }

  .lightbox .close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .lightbox img {
    max-height: 75vh;
  }
}

/* ======== FOOTER ======== */
footer {
  background: 
    linear-gradient(135deg, #1a1a1a 0%, #252525 30%, #2d2d2d 50%, #252525 70%, #1a1a1a 100%),
    radial-gradient(ellipse at top center, rgba(114, 47, 55, 0.15) 0%, transparent 70%);
  background-size: 100% 100%, 100% 200%;
  color: #ffffff;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, 
    transparent 0%,
    #722F37 20%,
    #8B3E47 40%,
    #722F37 60%,
    #8B3E47 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: gradientMove 4s ease infinite;
  box-shadow: 0 2px 10px rgba(114, 47, 55, 0.5);
}

footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(114, 47, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(114, 47, 55, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px 30px;
  position: relative;
  z-index: 1;
}

.footer-conteudo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.5em;
  margin: 0 0 10px 0;
  font-weight: 700;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #722F37, #8B3E47);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(114, 47, 55, 0.5);
}

.footer-col h5 {
  color: #880606;
  font-size: 1.2em;
  margin: 0 0 20px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
  text-align: left;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #880606, #a80707);
  border-radius: 2px;
}

/* ======== OTIMIZAÇÕES DE PERFORMANCE MOBILE ======== */
@media (max-width: 768px) {
  /* Desabilitar scroll suave no mobile */
  html {
    scroll-behavior: auto;
  }
  
  /* Simplificar background do header */
  .header-background {
    animation: none;
    background: linear-gradient(135deg, #722F37 0%, #8B3E47 100%);
  }
  
  .header-background::before {
    animation: none;
    opacity: 0.5;
  }
  
  /* Desabilitar animações pesadas */
  .header-shapes {
    opacity: 0.3;
  }
  
  .shape {
    animation: none;
  }
  
  .title-main {
    animation: none;
  }
  
  .title-underline {
    animation: none;
  }
  
  /* Desabilitar backdrop-filter no mobile (muito pesado) */
  .cro-badge,
  .feature-item {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.25);
  }
  
  /* Simplificar box-shadow */
  .card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
  }
  
  .card::before,
  .card::after {
    display: none;
  }
  
  /* Desabilitar animações de hover complexas */
  .card img {
    transition: transform 0.2s ease;
  }
  
  .card:hover img {
    transform: scale(1.05);
  }
  
  /* Simplificar transições */
  .card,
  .feature-item,
  .btn-agendar {
    transition-duration: 0.2s;
  }
  
  /* Desabilitar animação de linha pulsante */
  h3::after {
    animation: none;
  }
  
  /* Reduzir opacidade de elementos decorativos */
  .header-shapes {
    opacity: 0.2;
  }
  
  /* Otimizar carrossel no mobile */
  .carousel-wrapper {
    transition: transform 0.3s ease;
  }
  
  /* GPU acceleration para elementos animados */
  .carousel-wrapper,
  .carousel-slide {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  /* Otimizar WhatsApp float */
  .whatsapp-float {
    will-change: transform;
    transform: translateZ(0);
  }
  
  /* Simplificar animação blink no mobile */
  .btn-agendar {
    animation: blink 3s ease-in-out infinite;
  }
  
  /* Simplificar gradientes complexos */
  .sobre::after,
  .consultorio::after,
  .servicos::after {
    display: none;
  }
  
  /* Reduzir complexidade de box-shadow */
  .card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Otimizar imagens */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ======== RESPONSIVIDADE ======== */
@media (max-width: 768px) {
  .sobre-container {
    flex-direction: column;
    align-items: center;
  }
  
  /* Inverter ordem no mobile: vídeo antes das fotos */
  .video-doutor-wrapper {
    order: 1; /* Vídeo primeiro no mobile */
    margin-top: 0;
    margin-bottom: 30px;
  }
  
  .fotos-doutor {
    order: 2; /* Fotos depois do vídeo no mobile */
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .fotos-doutor img {
    width: 45%;
  }

  .video-doutor {
    max-width: 100%;
  }

  .descricao-servicos {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .cards-servicos {
    gap: 25px;
  }

  .card-servico {
    width: 100%;
    max-width: 100%;
    min-height: 520px;
    padding: 30px 25px;
  }
  
  .card-video {
    min-height: 300px;
  }
  
  .card-video iframe {
    min-height: 300px !important;
  }
  
  .video-doutor,
  .video-consultorio {
    min-height: 400px;
  }
  
  .video-doutor iframe,
  .video-consultorio iframe {
    min-height: 400px !important;
  }

  .card-icon-wrapper {
    width: 90px;
    height: 90px;
  }

  .card-servico .card-icon-wrapper img {
    width: 80px;
    height: 80px;
  }

  .card-servico h4 {
    font-size: 1.2em;
  }

  .card-description {
    font-size: 0.95em;
    min-height: auto;
  }

  .beneficio-item {
    font-size: 0.85em;
  }
}

/* ===== HEADER COM FOTO DO DOUTOR ===== */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.foto-doutor-header {
  position: relative;
  animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.foto-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}

.foto-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.foto-doutor-header img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 255, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.foto-wrapper:hover img {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 255, 255, 0.5),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.info-header {
  max-width: 650px;
  animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: glowPulse 2.5s ease-in-out infinite;
  z-index: -1;
}

.info-header .logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-bottom: 0;
  transition: all 0.4s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.info-header .logo:hover {
  transform: rotate(8deg) scale(1.1);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.5);
}

.info-header h1 {
  font-size: 2em;
  margin: 0;
}

.info-header h2 {
  font-weight: 400;
  font-size: 1em;
  margin: 5px 0 15px;
}

.btn-agendar {
  background-color: #fff;
  color: #880606;
  border: none;
  padding: 14px 30px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-agendar i {
  font-size: 1.1em;
}

.btn-agendar:hover {
  background-color: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-agendar:active {
  transform: translateY(0);
}

.header-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 1;
  overflow: hidden;
}

.header-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  header {
    min-height: 500px;
    padding: 60px 15px 0;
  }

  .header-container {
    flex-direction: column;
    gap: 40px;
    padding-bottom: 30px;
  }

  .foto-doutor-header img {
    width: 140px;
    height: 140px;
  }

  .foto-glow {
    width: 160px;
    height: 160px;
  }

  .info-header .logo {
    width: 110px;
    height: 110px;
  }

  .logo-glow {
    width: 120px;
    height: 120px;
  }

  .header-title {
    font-size: 2.2em;
  }

  .header-subtitle {
    font-size: 1em;
    flex-direction: column;
    gap: 8px;
  }

  .header-features-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .header-features {
    align-items: center;
    width: 100%;
  }

  .header-features-container .btn-agendar {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 14px 30px;
    font-size: 0.95em;
    gap: 8px;
  }

  .btn-agendar i {
    font-size: 1em;
  }

  .feature-item {
    font-size: 0.9em;
    padding: 8px 16px;
  }

  .feature-item .location-link {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .feature-item .location-link span {
    font-size: 0.95em;
  }

  .header-features {
    gap: 12px;
  }

  .header-wave {
    height: 80px;
  }
}
/* ===== FOOTER INFO ===== */
.footer-info {
  text-align: left;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #722F37;
  box-shadow: 
    0 4px 15px rgba(114, 47, 55, 0.4),
    0 0 0 0 rgba(114, 47, 55, 0.2),
    inset 0 0 20px rgba(114, 47, 55, 0.1);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: linear-gradient(135deg, rgba(114, 47, 55, 0.1), rgba(139, 62, 71, 0.05));
}

.footer-logo-img:hover {
  transform: scale(1.12) rotate(8deg);
  border-color: #8B3E47;
  box-shadow: 
    0 8px 25px rgba(114, 47, 55, 0.6),
    0 0 0 4px rgba(114, 47, 55, 0.3),
    inset 0 0 30px rgba(114, 47, 55, 0.2);
}

.footer-subtitle {
  color: #cccccc;
  font-size: 1em;
  margin: 5px 0;
  font-weight: 400;
}

.footer-cro {
  color: #ffffff;
  font-size: 0.9em;
  margin: 10px 0 20px 0;
  font-weight: 600;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(114, 47, 55, 0.3), rgba(139, 62, 71, 0.2));
  border-left: 3px solid #722F37;
  border-right: 1px solid rgba(114, 47, 55, 0.3);
  display: inline-block;
  border-radius: 6px;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.footer-cro:hover {
  background: linear-gradient(135deg, rgba(114, 47, 55, 0.4), rgba(139, 62, 71, 0.3));
  border-left-color: #8B3E47;
  transform: translateX(3px);
  box-shadow: 
    0 4px 12px rgba(114, 47, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ===== FOOTER SOCIAL ===== */
.footer-social {
  margin-top: 25px;
}

.footer-social-title {
  color: #cccccc;
  font-size: 0.9em;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-info .social-links {
  justify-content: flex-start;
  margin-top: 0;
}

/* ===== FOOTER CONTATO ===== */
.footer-contato {
  text-align: left;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 3px solid transparent;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-item:hover {
  background: linear-gradient(135deg, rgba(114, 47, 55, 0.15), rgba(139, 62, 71, 0.1));
  border-left-color: #722F37;
  transform: translateX(8px) scale(1.02);
  box-shadow: 
    0 6px 20px rgba(114, 47, 55, 0.3),
    0 0 0 1px rgba(114, 47, 55, 0.2);
}

.footer-item i {
  color: #722F37;
  font-size: 1.2em;
  margin-top: 3px;
  min-width: 20px;
  text-align: left;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(114, 47, 55, 0.3));
}

.footer-item:hover i {
  color: #8B3E47;
  transform: scale(1.15);
}

.footer-item p {
  margin: 0;
  color: #e0e0e0;
  font-size: 0.95em;
  line-height: 1.6;
}

.footer-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-item a:hover {
  color: #880606;
}

.footer-address-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-address-link p {
  margin: 0;
  color: #e0e0e0;
  font-size: 0.95em;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.footer-address-link:hover p {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(114, 47, 55, 0.5);
  transform: translateX(3px);
}

.footer-address-link:hover p:first-child {
  color: #722F37;
  font-weight: 600;
}

.footer-address-link:hover p:last-child {
  color: #8B3E47;
}

/* ===== FOOTER LOCALIZAÇÃO ===== */
.footer-localizacao {
  text-align: left;
}

.footer-mapa {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(114, 47, 55, 0.3),
    inset 0 0 30px rgba(114, 47, 55, 0.1);
  border: 3px solid rgba(114, 47, 55, 0.5);
  margin-bottom: 15px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  background: linear-gradient(135deg, #1a1a1a, #252525);
}

.footer-mapa::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #722F37, #8B3E47, #722F37);
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.footer-mapa:hover {
  box-shadow: 
    0 12px 40px rgba(114, 47, 55, 0.7),
    0 0 0 2px rgba(114, 47, 55, 0.5),
    inset 0 0 40px rgba(114, 47, 55, 0.15);
  border-color: #8B3E47;
  transform: translateY(-8px) scale(1.02);
}

.footer-mapa:hover::before {
  opacity: 0.3;
}

.footer-mapa iframe {
  display: block;
  width: 100%;
  border: none;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.3s ease;
}

.footer-mapa:hover iframe {
  filter: grayscale(0%) contrast(1.2);
}

.footer-link-mapa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9em;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(114, 47, 55, 0.4), rgba(139, 62, 71, 0.3));
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid rgba(114, 47, 55, 0.6);
  font-weight: 500;
  margin-top: 5px;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-link-mapa:hover {
  background: linear-gradient(135deg, #722F37, #8B3E47);
  border-color: #8B3E47;
  transform: translateX(8px) scale(1.05);
  box-shadow: 
    0 6px 20px rgba(114, 47, 55, 0.6),
    0 0 0 2px rgba(114, 47, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.footer-link-mapa i {
  font-size: 0.8em;
}

/* ===== FOOTER DIVIDER ===== */
.footer-divider {
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(114, 47, 55, 0.3) 20%,
    rgba(139, 62, 71, 0.5) 50%,
    rgba(114, 47, 55, 0.3) 80%,
    transparent 100%
  );
  margin: 35px 0;
  box-shadow: 0 1px 3px rgba(114, 47, 55, 0.2);
  position: relative;
}

.footer-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #722F37, transparent);
  box-shadow: 0 0 10px rgba(114, 47, 55, 0.5);
}

/* ===== FOOTER CRÉDITOS ===== */
.footer-creditos {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(114, 47, 55, 0.3);
  background: linear-gradient(180deg, transparent, rgba(114, 47, 55, 0.05));
  margin-top: 10px;
  position: relative;
}

.footer-creditos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #722F37, transparent);
  box-shadow: 0 0 8px rgba(114, 47, 55, 0.4);
}

.footer-creditos p {
  margin: 10px 0;
  color: #c0c0c0;
  font-size: 0.85em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
  text-align: center;
}

.footer-creditos p:hover {
  color: #e0e0e0;
}

.footer-dev {
  color: #a0a0a0;
  font-size: 0.8em;
  transition: color 0.3s ease;
  text-align: center;
}

.footer-dev:hover {
  color: #c0c0c0;
}

.footer-dev strong {
  color: #722F37;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(114, 47, 55, 0.5);
  transition: all 0.3s ease;
}

.footer-dev strong:hover {
  color: #8B3E47;
  text-shadow: 0 0 12px rgba(114, 47, 55, 0.7);
}

/* ===== RESPONSIVIDADE FOOTER ===== */
@media (max-width: 768px) {
  .footer-container {
    padding: 40px 15px 20px;
  }

  .footer-conteudo {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4,
  .footer-col h5 {
    text-align: left;
  }

  .footer-col h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-info {
    text-align: center;
  }

  .footer-info .social-links {
    justify-content: center;
  }

  .footer-contato {
    text-align: center;
  }

  .footer-item {
    justify-content: center;
    text-align: center;
  }

  .footer-item i {
    margin-top: 0;
  }

  .footer-localizacao {
    text-align: center;
  }

  .footer-mapa {
    max-width: 100%;
  }
}
.emergencia {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 20%, #ffe8e8 50%, #fff5f5 80%, #ffffff 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 3px solid rgba(136, 6, 6, 0.15);
  border-bottom: 2px solid rgba(136, 6, 6, 0.08);
}

.emergencia::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(136, 6, 6, 0.3), rgba(136, 6, 6, 0.4), rgba(136, 6, 6, 0.3), transparent);
  z-index: 1;
}

.emergencia::after {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(136, 6, 6, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: rotateSlow 30s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.emergencia .emergencia-conteudo::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(136, 6, 6, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: rotateSlowReverse 25s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateSlowReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.emergencia-conteudo {
  position: relative;
  z-index: 2;
}

.emergencia-conteudo > * {
  position: relative;
  z-index: 1;
}

.emergencia h3 {
  font-size: 1.8rem;
  color: #880606;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.emergencia .descricao {
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.15rem;
  color: #444;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.cards-emergencia {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.emergencia .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 35px 25px;
  max-width: 320px;
  flex: 1;
  min-width: 250px;
  transition: all 0.3s ease;
  border-top: 4px solid #880606;
  position: relative;
  overflow: hidden;
}

.emergencia .card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(136, 6, 6, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.emergencia .card:hover::before {
  opacity: 1;
}

.emergencia .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(136, 6, 6, 0.2);
}

.card h4 {
  color: #880606;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}
/* ============================= */
/* SEÇÃO - MAIS ATENDIMENTOS */
/* ============================= */

.mais-atendimentos {
  padding: 80px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 30%, #f5f5f5 60%, #ffffff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(136, 6, 6, 0.08);
}

.mais-atendimentos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(136, 6, 6, 0.25), rgba(136, 6, 6, 0.35), rgba(136, 6, 6, 0.25), transparent);
  opacity: 0.6;
}

.mais-atendimentos::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(26, 26, 26, 0.1), transparent);
}

.mais-atendimentos h3 {
  font-size: 2rem;
  color: #880606;
  margin-bottom: 15px;
}

.intro-mais-atendimentos {
  font-size: 1.15rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Grid dos cards principais */
.cards-mais {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto 60px;
}

.card-mais {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(136, 6, 6, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  animation: cardFadeIn 0.8s ease-out;
}

.card-mais::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #880606, #a80707, #880606);
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 1;
  animation: gradientMove 3s ease infinite;
}

.card-mais::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #880606, #a80707);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 1;
}

.card-mais:hover::before,
.card-mais:hover::after {
  transform: scaleX(1);
}

.card-mais:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 18px 45px rgba(136, 6, 6, 0.25),
    0 0 0 2px rgba(136, 6, 6, 0.15),
    0 0 40px rgba(136, 6, 6, 0.15);
  border-color: rgba(136, 6, 6, 0.2);
}

.card-mais img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: brightness(0.95) contrast(1.05);
  position: relative;
  z-index: 0;
}

.card-mais:hover img {
  transform: scale(1.15);
  filter: brightness(1) contrast(1.1);
}

.card-mais h4 {
  color: #880606;
  font-size: 1.2rem;
  margin: 15px 0 10px;
}

.card-mais p {
  color: #555;
  font-size: 0.98rem;
  padding: 0 15px 20px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Texto complementar */
.valores-profissionais {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.valores-profissionais h4 {
  font-size: 1.5rem;
  color: #880606;
  margin-bottom: 10px;
}

.valores-profissionais p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 50px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.valores-profissionais strong {
  color: #880606;
  font-weight: 600;
}

/* Diferenciais */
.diferenciais {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.dif-item {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(136, 6, 6, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 5px solid #880606;
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 1s ease-out;
}

.dif-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #880606, #a80707);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.dif-item:hover::before {
  transform: scaleY(1);
}

.dif-item:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
  transform: translateX(8px) scale(1.03);
  box-shadow: 
    0 12px 30px rgba(136, 6, 6, 0.2),
    0 0 0 2px rgba(136, 6, 6, 0.1),
    0 0 25px rgba(136, 6, 6, 0.1);
  border-left-color: #a80707;
}

.dif-item h5 {
  font-size: 1.15rem;
  color: #880606;
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.dif-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Responsividade */
@media (max-width: 768px) {
  .cards-mais {
    grid-template-columns: 1fr;
  }

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

  .mais-atendimentos h3 {
    font-size: 1.7rem;
  }
}
/* ============================= */
/* SEÇÃO - SORRISOS RECUPERADOS */
/* ============================= */

.sorrisos-recuperados {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 30%, #f5f5f5 70%, #f0f0f0 100%);
  padding: 90px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(136, 6, 6, 0.08);
}

.sorrisos-recuperados::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(136, 6, 6, 0.2), rgba(136, 6, 6, 0.3), rgba(136, 6, 6, 0.2), transparent);
}

.sorrisos-recuperados::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(26, 26, 26, 0.1), transparent);
}

.sorrisos-recuperados h3 {
  color: #880606;
  font-size: 2.2em;
  margin-bottom: 15px;
}

.subtitulo-sorrisos {
  color: #555;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.videos-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1220px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .videos-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(136, 6, 6, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  animation: cardFadeIn 0.8s ease-out;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 750px;
}

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #880606, #a80707, #880606);
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 1;
  animation: gradientMove 3s ease infinite;
}

.video-card:hover::before {
  transform: scaleX(1);
}

.video-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 18px 45px rgba(136, 6, 6, 0.25),
    0 0 0 2px rgba(136, 6, 6, 0.15),
    0 0 40px rgba(136, 6, 6, 0.15);
  border-color: rgba(136, 6, 6, 0.2);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 15px 15px 0 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px 15px 0 0;
}

.video-wrapper.instagram-embed {
  padding-bottom: 0;
  height: auto;
  background: transparent;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-wrapper.instagram-embed blockquote {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.video-wrapper.instagram-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 650px !important;
  border: none !important;
  display: block !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Prevenir redirecionamento em links do Instagram dentro dos vídeos */
.video-wrapper.instagram-embed a[href*="instagram.com"]:not([href*="/embed/"]):not([href*="instagram.com/embed"]),
.video-card a[href*="instagram.com"]:not([href*="/embed/"]):not([href*="instagram.com/embed"]) {
  pointer-events: none !important;
  cursor: default !important;
  user-select: none !important;
}

/* Permitir interação apenas com o iframe */
.video-wrapper.instagram-embed iframe,
.video-card iframe {
  position: relative;
  z-index: 10;
}

/* Bloquear interação com links problemáticos dentro dos containers */
.video-wrapper.instagram-embed blockquote a[href*="instagram.com"]:not([href*="/embed/"]):not([href*="instagram.com/embed"]),
.video-card blockquote a[href*="instagram.com"]:not([href*="/embed/"]):not([href*="instagram.com/embed"]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.video-info {
  padding: 25px 20px;
  text-align: left;
}

.video-info h4 {
  color: #880606;
  font-size: 1.3rem;
  margin: 0 0 10px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-info p {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

.sorrisos-cta {
  max-width: 800px;
  margin: 50px auto 0;
  padding: 40px 30px;
  background: linear-gradient(135deg, rgba(136, 6, 6, 0.05), rgba(136, 6, 6, 0.02));
  border-radius: 20px;
  border: 2px solid rgba(136, 6, 6, 0.1);
  position: relative;
  z-index: 1;
  text-align: center;
}

.sorrisos-cta p {
  color: #444;
  font-size: 1.15rem;
  margin-bottom: 25px;
  line-height: 1.8;
  font-weight: 500;
  text-align: center;
}

.sorrisos-cta .btn-agendar {
  margin-top: 0;
}

/* Responsividade */
@media (max-width: 768px) {
  .sorrisos-recuperados {
    padding: 60px 15px;
  }

  .sorrisos-recuperados h3 {
    font-size: 1.6rem;
  }

  .subtitulo-sorrisos {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .videos-container {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
  }

  .video-card {
    border-radius: 15px;
    width: 100%;
  }

  .video-wrapper {
    border-radius: 15px 15px 0 0;
  }

  .video-wrapper.instagram-embed {
    min-height: 550px;
  }

  .video-wrapper.instagram-embed iframe {
    min-height: 550px !important;
  }
  
  .video-card {
    min-height: 650px;
  }

  .video-info {
    padding: 20px 15px;
  }

  .video-info h4 {
    font-size: 1.1rem;
  }

  .video-info p {
    font-size: 0.95rem;
  }

  .sorrisos-cta {
    padding: 30px 20px;
    margin-top: 30px;
  }

  .sorrisos-cta p {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
  }

  .sorrisos-cta .btn-agendar {
    width: 100%;
    max-width: 100%;
    padding: 16px 30px;
    font-size: 0.95em;
  }

  .card-video {
    min-height: 300px;
  }

  .card-video blockquote {
    min-width: 100% !important;
  }
}

/* ============================= */
/* SEÇÃO - AVALIAÇÕES DE PACIENTES */
/* ============================= */

.avaliacoes {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 30%, #f5f5f5 70%, #f0f0f0 100%);
  padding: 90px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(136, 6, 6, 0.08);
  border-bottom: 3px solid rgba(26, 26, 26, 0.1);
}

.avaliacoes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(136, 6, 6, 0.2), rgba(136, 6, 6, 0.3), rgba(136, 6, 6, 0.2), transparent);
}

.avaliacoes::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(26, 26, 26, 0.15), rgba(26, 26, 26, 0.25), rgba(26, 26, 26, 0.15), transparent);
}

.avaliacoes h3 {
  color: #880606;
  font-size: 2.2em;
  margin-bottom: 10px;
}

.subtitulo-avaliacoes {
  color: #555;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.cards-avaliacoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.card-avaliacao {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 25px;
  transition: all 0.3s ease;
  border: 1px solid rgba(136, 6, 6, 0.1);
  position: relative;
}

.card-avaliacao::before {
  content: '"';
  position: absolute;
  top: -10px;
  font-family: Georgia, serif;
  left: 20px;
  font-size: 60px;
  color: #880606;
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.card-avaliacao:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(136, 6, 6, 0.2);
  border-color: #880606;
}

.perfil-paciente {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.perfil-paciente img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.perfil-paciente h4 {
  margin: 0;
  color: #880606;
  font-size: 1rem;
}

.estrelas {
  color: #ffb400;
  font-size: 1rem;
  letter-spacing: 1px;
}

.card-avaliacao p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
  margin: 0;
  position: relative;
  z-index: 1;
}

.review-date {
  display: block;
  font-size: 0.85em;
  color: #888;
  margin-top: 5px;
  font-weight: 400;
}

.google-reviews-badge {
  text-align: center;
  margin: 20px auto 30px;
  max-width: 600px;
  padding: 15px 25px;
  background: linear-gradient(135deg, rgba(114, 47, 55, 0.1), rgba(139, 62, 71, 0.05));
  border-radius: 12px;
  border: 2px solid rgba(114, 47, 55, 0.2);
}

.reviews-badge-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.google-logo {
  font-size: 1.5em;
}

.rating-text {
  font-size: 1.1em;
  color: #333;
}

.rating-text strong {
  color: #722F37;
  font-size: 1.3em;
  font-weight: 700;
}

.review-count {
  color: #666;
  font-size: 0.9em;
  font-weight: 400;
}

.reviews-error {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 20px;
  color: #856404;
}

.btn-avaliacoes {
  background: linear-gradient(135deg, #880606, #a80707);
  color: white;
  border: none;
  padding: 14px 35px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(136, 6, 6, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-avaliacoes:hover {
  background: linear-gradient(135deg, #a80707, #880606);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(136, 6, 6, 0.4);
}

.btn-avaliacoes:active {
  transform: translateY(0) scale(1.02);
}

/* Responsividade */
@media (max-width: 768px) {
  .avaliacoes {
    padding: 60px 15px;
  }

  .avaliacoes h3 {
    font-size: 1.6rem;
  }

  .subtitulo-avaliacoes {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .card-avaliacao {
    padding: 20px;
  }

  .btn-avaliacoes {
    width: 100%;
    max-width: 100%;
    padding: 16px 30px;
    font-size: 0.95em;
  }

  .google-reviews-badge {
    padding: 12px 20px;
    margin: 15px auto 25px;
  }

  .reviews-badge-content {
    flex-direction: column;
    gap: 8px;
  }

  .rating-text {
    font-size: 1em;
  }

  .rating-text strong {
    font-size: 1.2em;
  }
}
/* ===== NOVA SEÇÃO: APRESENTAÇÃO DO DOUTOR ===== */
.apresentacao-doutor {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 30%, #f0f4f8 60%, #ffffff 100%);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid rgba(136, 6, 6, 0.1);
}

.apresentacao-doutor::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(136, 6, 6, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBackground 20s ease-in-out infinite;
}

.apresentacao-doutor::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 26, 26, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBackground 25s ease-in-out infinite reverse;
}

@keyframes floatBackground {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, -30px);
  }
}

.apresentacao-doutor h3 {
  text-align: left;
  color: #880606;
  font-size: 2rem;
  margin-bottom: 30px;
}

.apresentacao-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.apresentacao-texto {
  flex: 1 1 60%;
  font-size: 1.05rem;
  color: #444;
  position: relative;
  z-index: 1;
}

.apresentacao-texto ul {
  list-style: none;
  margin-left: 0;
  margin-bottom: 25px;
  padding: 0;
}

.apresentacao-texto ul li {
  padding: 10px 0 10px 30px;
  position: relative;
  margin-bottom: 8px;
  color: #555;
  font-size: 1.05em;
  line-height: 1.6;
}

.apresentacao-texto ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #880606;
  font-weight: bold;
  font-size: 1.2em;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(136, 6, 6, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(136, 6, 6, 0.2);
}

.apresentacao-texto p {
  margin-bottom: 22px;
  line-height: 1.8;
  color: #444;
}

.apresentacao-texto strong {
  color: #880606;
  font-weight: 600;
}

.apresentacao-texto .emergencia-info {
  background: linear-gradient(135deg, rgba(136, 6, 6, 0.1), rgba(136, 6, 6, 0.05));
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #880606;
  margin: 25px 0;
  font-weight: 600;
  color: #880606;
  box-shadow: 0 4px 15px rgba(136, 6, 6, 0.1);
}

.apresentacao-imagem {
  flex: 1 1 35%;
  position: relative;
  align-self: flex-start;
  margin-top: 25px;
}

.apresentacao-imagem img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
  object-fit: cover;
  transition: transform 0.3s ease;
  border: 3px solid rgba(136, 6, 6, 0.1);
}

.apresentacao-imagem:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 35px rgba(136, 6, 6, 0.25);
}

@media (max-width: 768px) {
  .apresentacao-doutor {
    padding: 60px 15px;
  }

  .apresentacao-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .apresentacao-texto {
    text-align: center;
  }

  .apresentacao-texto .btn-agendar {
    width: 100%;
    max-width: 100%;
    padding: 16px 30px;
    font-size: 1em;
    margin-top: 25px;
    justify-content: center;
    gap: 10px;
  }

  .apresentacao-texto .btn-agendar i {
    font-size: 1.2em;
  }

  .apresentacao-imagem {
    width: 100%;
    max-width: 100%;
  }
}
/* ===== LINKS SOCIAIS HEADER ===== */
.social-links-header {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.social-links-header a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  font-size: 22px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.social-links-header a:hover { 
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-links-header a.whatsapp {
  background-color: #25d366;
  border-color: #25d366;
}

.social-links-header a.whatsapp:hover { 
  background-color: #128c7e;
  border-color: #128c7e;
}

.social-links-header a.instagram {
  background-color: #E4405F;
  border-color: #E4405F;
}

.social-links-header a.instagram:hover { 
  background-color: #C13584;
  border-color: #C13584;
}

.social-links-header a.linktree {
  background-color: #39E09B;
  border-color: #39E09B;
}

.social-links-header a.linktree:hover { 
  background-color: #2BC47A;
  border-color: #2BC47A;
}

.social-links-header a.tiktok {
  background-color: #000000;
  border-color: #000000;
}

.social-links-header a.tiktok:hover { 
  background-color: #333333;
  border-color: #333333;
}


/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 32px;
  box-shadow: 
    0 4px 20px rgba(37, 211, 102, 0.4),
    0 0 0 0 rgba(37, 211, 102, 0.7);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 1;
  transform: scale(1) translateY(0);
  animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 
    0 6px 30px rgba(37, 211, 102, 0.6),
    0 0 0 10px rgba(37, 211, 102, 0.1);
  background: linear-gradient(135deg, #128c7e, #25d366);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #25d366;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #25d366;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-5px);
}

@keyframes pulse {
  0% {
    box-shadow: 
      0 4px 20px rgba(37, 211, 102, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 
      0 4px 20px rgba(37, 211, 102, 0.4),
      0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 
      0 4px 20px rgba(37, 211, 102, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0.7);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
    font-size: 30px;
    bottom: 20px;
    right: 20px;
    box-shadow: 
      0 6px 25px rgba(37, 211, 102, 0.5),
      0 0 0 0 rgba(37, 211, 102, 0.8);
  }

  .whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 
      0 8px 35px rgba(37, 211, 102, 0.7),
      0 0 0 15px rgba(37, 211, 102, 0.15);
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* ===== CARROSSEL ===== */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.carousel-slide img:hover {
  transform: scale(1.02);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #880606;
  font-size: 20px;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover:not(.disabled) {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #a80707;
}

.carousel-btn:active:not(.disabled) {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  backdrop-filter: blur(10px);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #ffffff;
  border-color: #880606;
  width: 30px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(136, 6, 6, 0.3);
}

/* Ajustes específicos para galeria consultório */
.galeria-consultorio.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-consultorio .carousel-slide {
  height: 400px;
}

.galeria-consultorio .carousel-slide img {
  height: 400px;
  border-radius: 20px;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(136, 6, 6, 0.05);
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.galeria-consultorio .carousel-slide img:hover {
  box-shadow: 
    0 15px 40px rgba(136, 6, 6, 0.35),
    0 0 0 3px rgba(136, 6, 6, 0.2);
  border-color: #880606;
}

/* Ajustes específicos para fotos doutor */
.fotos-doutor.carousel-container {
  max-width: 500px;
  margin: 0 auto;
}

.fotos-doutor .carousel-slide {
  height: 400px;
}

.fotos-doutor .carousel-slide img {
  height: 400px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.fotos-doutor .carousel-slide img:hover {
  box-shadow: 0 8px 30px rgba(136, 6, 6, 0.3);
  border-color: #880606;
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .galeria-consultorio .carousel-slide,
  .galeria-consultorio .carousel-slide img {
    height: 250px;
  }

  .video-consultorio-wrapper {
    margin-top: 30px;
  }

  .video-consultorio {
    max-width: 100%;
  }

  .fotos-doutor .carousel-slide,
  .fotos-doutor .carousel-slide img {
    height: 300px;
  }

  .carousel-dots {
    bottom: 5px;
    padding: 15px 0;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .carousel-dot.active {
    width: 25px;
  }
}

/* ===== ANIMAÇÕES AO SCROLL ===== */
section,
.card,
.card-mais,
.dif-item,
.video-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.animate-in,
.card.animate-in,
.card-mais.animate-in,
.dif-item.animate-in,
.video-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Otimização mobile: elementos visíveis desde o início */
@media (max-width: 768px) {
  section,
  .card,
  .card-mais,
  .dif-item,
  .video-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Garantir que o header seja visível desde o início */
header {
  opacity: 1 !important;
  transform: none !important;
  z-index: 10;
  position: relative;
}

/* Melhorar transição do header para body */
header + section,
header ~ section:first-of-type {
  margin-top: -1px;
}

/* ===== REDES SOCIAIS GERAL ===== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  font-size: 22px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-links a.whatsapp {
  background-color: #25d366;
  border-color: #25d366;
}

.social-links a.whatsapp:hover {
  background-color: #128c7e;
  border-color: #128c7e;
}

.social-links a.instagram {
  background-color: #E4405F;
  border-color: #E4405F;
}

.social-links a.instagram:hover {
  background-color: #C13584;
  border-color: #C13584;
}

.social-links a.linktree {
  background-color: #39E09B;
  border-color: #39E09B;
}

.social-links a.linktree:hover {
  background-color: #2BC47A;
  border-color: #2BC47A;
}

.social-links a.tiktok {
  background-color: #000000;
  border-color: #000000;
}

.social-links a.tiktok:hover {
  background-color: #333333;
  border-color: #333333;
}

/* Redes sociais no footer - estilo específico */
footer .social-links a.whatsapp {
  background-color: #25d366;
  border-color: #25d366;
}

footer .social-links a.whatsapp:hover {
  background-color: #128c7e;
  border-color: #128c7e;
}

footer .social-links a.instagram {
  background-color: #E4405F;
  border-color: #E4405F;
}

footer .social-links a.instagram:hover {
  background-color: #C13584;
  border-color: #C13584;
}

footer .social-links a.linktree {
  background-color: #39E09B;
  border-color: #39E09B;
}

footer .social-links a.linktree:hover {
  background-color: #2BC47A;
  border-color: #2BC47A;
}

footer .social-links a.tiktok {
  background-color: #000000;
  border-color: #000000;
}

footer .social-links a.tiktok:hover {
  background-color: #333333;
  border-color: #333333;
}
