/* Custom CSS for Dra. Misleidys Rodríguez - Oftalmología Web */
:root {
  --primary: #0f2b48;
  --primary-light: #1a446c;
  --accent-cyan: #38bdf8;
  --accent-iris: #6cbde0;
  --accent-gold: #dfc38a;
  --accent-gold-dark: #b89758;
  --bg-soft: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  image-rendering: -webkit-optimize-contrast;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism & Header blur */
.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Mobile Menu Drawer */
#mobile-menu {
  display: none;
}
#mobile-menu.active {
  display: block !important;
}
@media (min-width: 1024px) {
  #mobile-menu,
  #mobile-menu.active {
    display: none !important;
  }
}
#mobile-menu-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}

.glass-nav nav a {
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap !important;
}

.glass-nav a,
.glass-nav span {
  white-space: nowrap;
}

.glass-nav nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0284c7;
  transition: width 0.25s ease;
  border-radius: 9999px;
}

.glass-nav nav a:hover::after {
  width: 100%;
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Gradients */
.gold-gradient-text {
  background: linear-gradient(135deg, #b8860b 0%, #dfc38a 50%, #996515 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blue-gradient-text {
  background: linear-gradient(135deg, #0f2b48 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-gradient {
  background: radial-gradient(circle at 80% 20%, rgba(108, 189, 224, 0.15) 0%, rgba(248, 250, 252, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(223, 195, 138, 0.12) 0%, rgba(248, 250, 252, 0) 50%),
              #f8fafc;
}

/* Floating animation */
@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floatGentle 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
}

.whatsapp-pulse {
  animation: pulseGlow 2.5s infinite;
}

/* Cataract Vision Comparison Slider */
.comparison-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  user-select: none;
  box-shadow: 0 20px 25px -5px rgba(15, 43, 72, 0.1), 0 8px 10px -6px rgba(15, 43, 72, 0.1);
}

.comparison-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comparison-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  width: 50%;
  border-right: 3px solid #ffffff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.comparison-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: none;
  z-index: 10;
}

/* Instagram Post Card Hover Effect */
.insta-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.insta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(15, 43, 72, 0.15);
}

/* Service Card Hover */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #6cbde0;
  box-shadow: 0 15px 30px -10px rgba(108, 189, 224, 0.25);
}

/* Badge Glow */
.badge-gold {
  background: linear-gradient(135deg, rgba(223, 195, 138, 0.25) 0%, rgba(223, 195, 138, 0.1) 100%);
  border: 1px solid rgba(223, 195, 138, 0.5);
  color: #996515;
}

.badge-cyan {
  background: linear-gradient(135deg, rgba(108, 189, 224, 0.2) 0%, rgba(108, 189, 224, 0.05) 100%);
  border: 1px solid rgba(108, 189, 224, 0.5);
  color: #0369a1;
}

/* Accordion transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.accordion-content.open {
  max-height: 500px;
  opacity: 1;
}

/* Tooltip & interactive labels */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

