/* TPC Nahuel Pereyra® - Modern Medical Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --primary-navy: #0B132B;
  --secondary-navy: #1C2541;
  --accent-cyan: #00B4D8;
  --accent-blue: #0077B6;
  --pulse-red: #EF476F;
  --success-emerald: #06D6A0;
  --warning-amber: #FFD166;
  --surface-light: #F8FAFC;
  --card-bg: rgba(255, 255, 255, 0.92);
  --glass-bg: rgba(28, 37, 65, 0.75);
  --glass-border: rgba(255, 255, 255, 0.12);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #1E293B;
  background-color: #F8FAFC;
  overflow-x: hidden;
}

.font-mono-numbers {
  font-family: 'JetBrains Mono', monospace;
}

/* ECG Animated Waveform */
.ecg-line-svg {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawEcg 3.5s linear infinite;
}

@keyframes drawEcg {
  0% {
    stroke-dashoffset: 1000;
  }
  65% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.2;
  }
}

/* Heartbeat pulse badge */
.heartbeat-icon {
  animation: heartPulse 1.8s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

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

/* Hero Medical Gradient */
.hero-gradient {
  background: radial-gradient(circle at 80% 20%, #1e3a8a 0%, #0f172a 50%, #030712 100%);
}

/* Custom Video Container 16:9 */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
}

.video-responsive iframe,
.video-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Dialog Modal styling with modern CSS */
dialog {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, overlay 0.25s ease-out allow-discrete, display 0.25s ease-out allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease-out, overlay 0.25s ease-out allow-discrete, display 0.25s ease-out allow-discrete;
}

dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog[open]::backdrop {
    opacity: 0;
  }
}

/* Interactive Calculator Tabs */
.calc-tab.active {
  background: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}
