body {
  box-sizing: border-box;
  font-synthesis: none; /* evita fontes sintéticas que causam CLS */
}
.font-display {
  font-family: 'Playfair Display', Georgia, serif; /* fallback parecido evita shift */
}
.font-body {
  font-family: 'Nunito', Arial, sans-serif; /* fallback parecido evita shift */
}
.gradient-bg {
  background: linear-gradient(135deg, #f5e8e8 0%, #e8d4d6 50%, #dfc0c3 100%);
  position: relative;
  overflow: hidden;
}
.gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(134, 48, 51, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(46, 173, 95, 0.1) 0%, transparent 50%);
  animation: gradientShift 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gradientShift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}
.card-hover {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

#clinic-name {
  color: #863033 !important;   /* força a cor mesmo se houver outros estilos */
  font-weight: 700;            /* opcional: deixa mais forte/negrito */
}

.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.card-hover:hover::before {
  transform: translateX(100%);
}
.card-hover:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(134, 48, 51, 0.25);
}
.btn-pulse {
  animation: pulse 2s infinite;
  position: relative;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(1.02); }
}
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-scale {
  animation: fadeInScale 1s ease-out forwards;
  opacity: 0;
}
@keyframes fadeInScale {
  from { 
    opacity: 0; 
    transform: scale(0.8) translateY(30px);
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0);
  }
}
.scroll-smooth {
  scroll-behavior: smooth;
}
.floating {
  animation: floating 3s ease-in-out infinite;
  will-change: transform;
}
@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.glow-text {
  animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0;
}
@keyframes slideInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-50px);
  }
  to { 
    opacity: 1; 
    transform: translateX(0);
  }
}
.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
  opacity: 0;
}
@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(50px);
  }
  to { 
    opacity: 1; 
    transform: translateX(0);
  }
}
.rotate-3d {
  animation: rotate3d 6s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
}
@keyframes rotate3d {
  0%, 100% { transform: rotateY(0deg) rotateX(0deg); }
  50% { transform: rotateY(10deg) rotateX(5deg); }
}
.pulse-ring {
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.counter-animate {
  animation: countUp 1.5s ease-out forwards;
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0) translateY(50px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.gradient-text {
  background: linear-gradient(135deg, #863033 0%, #2ead5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.shine-effect {
  position: relative;
  overflow: hidden;
}
.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  animation: shine 3s infinite;
}
@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
/* Scroll fade effects */
section {
  position: relative;
  opacity: 1;
  transition: opacity 1s ease-out, filter 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}
section.fade-out {
  opacity: 0.3;
  filter: blur(2px);
}
section.fade-in {
  opacity: 1;
  filter: blur(0px);
}
/* Gradient mask effect for elements */
.scroll-fade-element {
  position: relative;
}
.scroll-fade-element::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.scroll-fade-element.fading-out::before {
  opacity: 1;
}
.scroll-fade-element::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.scroll-fade-element.fading-in::after {
  opacity: 1;
}
/* Text fade effect */
.text-fade-out {
  animation: textFadeOut 0.8s ease-out forwards;
}
@keyframes textFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}
.text-fade-in {
  animation: textFadeIn 0.8s ease-out forwards;
}
@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Parallax and stagger effects */
.parallax-element {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Card stagger effect */
.card-hover.scrolling-up {
  animation: cardFadeOut 0.5s ease-out forwards;
}
@keyframes cardFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}
.card-hover.scrolling-down {
  animation: cardFadeIn 0.5s ease-out forwards;
}
@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 40;
}
.fab-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #863033 0%, #2ead5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(134, 48, 51, 0.4);
  transition: all 0.3s ease;
  animation: fabPulse 2s ease-in-out infinite;
}
.fab-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(134, 48, 51, 0.6);
}
@keyframes fabPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.95; }
}
.chat-modal {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  max-height: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  animation: slideUpIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 41;
}
@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.chat-header {
  background: linear-gradient(135deg, #863033 0%, #2ead5f 100%);
  color: white;
  padding: 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.close-chat {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.close-chat:hover {
  background: rgba(255, 255, 255, 0.3);
}
.chat-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}
.chat-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.chat-form label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 14px;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s ease;
  background-color: #f9fafb;
}

.chat-form input:focus,
.chat-form textarea:focus {
  outline: none;
  border-color: #10b981;          /* verde esmeralda */
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  background-color: white;
}

.chat-form textarea {
  resize: vertical;
  min-height: 100px;
}

.chat-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.chat-button:active {
  transform: translateY(0);
}
@media (max-width: 480px) {
.chat-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.chat-modal.opacity-100 {
  opacity: 1;
  pointer-events: auto;
}
}
/* Estilo Stories Galeria */
#galeria .overflow-x-auto {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* scroll suave no iOS */
}

#galeria .snap-center {
  scroll-snap-align: center;
}

#galeria img {
  max-width: 100%;
  max-height: 100%;
}

/* Animação de pulso (anel que expande e desaparece) */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.animate-pulse-ring {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}