/* ==========================================================================
   Odontología Especializada - Dr. Bravo & Dra. Pintos Rosso
   Custom Medical Styling & Enhancements
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --secondary: #0f766e;
  --accent: #14b8a6;
  --dark: #0f172a;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Glassmorphism Navigation */
.nav-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.nav-glass.scrolled {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

/* Gradient accents & Hero Enhancements */
.bg-medical-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f766e 100%);
}

/* ==========================================================================
   Hero Cinematic Styling & Glow Accents
   ========================================================================== */
.bg-hero-cinematic {
  background-color: #0b1120;
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.22) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(13, 148, 136, 0.22) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(15, 23, 42, 0.95) 0px, transparent 60%);
}

.hero-glow-cyan {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-glow-teal {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-panel-dark:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-panel-dark:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

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

/* Card hover animations */
.card-hover {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border-color: #38bdf8;
}


/* Doctor card special frame */
.doctor-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.15);
}

.doctor-frame img {
  transition: transform 0.5s ease;
}

.doctor-frame:hover img {
  transform: scale(1.04);
}

/* Floating WhatsApp Button with pulse */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  align-items: center;
  background-color: #25D366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.floating-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ef4444;
  border: 2px solid #ffffff;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* FAQ Accordion Styling */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Filter Tab Pills */
.filter-btn.active {
  background-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Insurance Logo Filter / Grayscale to color */
.partner-logo {
  filter: grayscale(85%) opacity(80%);
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.05);
}

/* Mobile fixed actions */
.mobile-action-bar {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .floating-whatsapp {
    display: none !important;
  }

  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
  }

  .mobile-action-bar a {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 0.85rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
  }

  .mobile-action-directions { background: #0284c7; }
  .mobile-action-whatsapp { background: #16a34a; }
}

