/* ==========================================================================
   Clínica Veterinaria Dr. Fernández — Custom Stylesheet
   Clean, aesthetic, modern medical & veterinary landing page
   ========================================================================== */

:root {
  /* Clean Medical Color Palette */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;

  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;

  --emerald-50: #ecfdf5;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --font-heading: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  font-family: var(--font-body);
  color: var(--slate-700);
  background-color: #ffffff;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Glassmorphism Sticky Header */
.glass-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

/* Navigation Link Underline Animation */
.nav-link {
  position: relative;
  color: var(--slate-700);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-600), var(--teal-500));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Subtle Hero Mesh Background */
.hero-mesh {
  background-color: #f8fafc;
  background-image:
    radial-gradient(at 15% 15%, rgba(14, 165, 233, 0.09) 0px, transparent 50%),
    radial-gradient(at 85% 20%, rgba(20, 184, 166, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(186, 230, 253, 0.15) 0px, transparent 60%);
}

/* Service Card Hover & Elevation */
.service-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--teal-500));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-200);
  box-shadow: 0 20px 35px -12px rgba(14, 165, 233, 0.12), 0 8px 16px -8px rgba(15, 23, 42, 0.05);
}

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

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.08);
}

/* Soft Section Background */
.section-soft {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* CTA Gradient Section */
.cta-gradient {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 45%, #0d9488 100%);
}

/* Floating Animation for Badges */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.float-badge {
  animation: floatSlow 4.5s ease-in-out infinite;
}

/* Pulse Dot for Open Status */
@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-dot-open {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #ffffff;
  animation: pulseRing 2s infinite;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #16a34a;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 12px 28px -6px rgba(22, 163, 74, 0.5);
  font-weight: 600;
  font-size: 0.925rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
  background: #15803d;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 32px -6px rgba(22, 163, 74, 0.6);
}

@media (max-width: 640px) {
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 0.95rem;
    border-radius: 50%;
  }
}

/* Language Switcher Pill (ES / EN) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  padding: 0.2rem;
  gap: 0.15rem;
}

.lang-btn {
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--slate-600);
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1.2;
}

.lang-btn:hover {
  color: var(--slate-900);
}

.lang-btn.active {
  background-color: #ffffff;
  color: var(--primary-600);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

