/* ==========================================================================
   PRAXIS — Sitio Web Oficial & Marketing
   Diseño de Sistema Clínico en 3 Estaciones · Paraguay
   Paleta institucional: Navy (#0F3D6E) · Esmeralda Salud (#10B981)
   ========================================================================== */

:root {
  --primary: #0F3D6E;
  --primary-dark: #092648;
  --primary-light: #1A5494;
  --primary-soft: #EFF6FF;
  
  --accent: #10B981;
  --accent-dark: #059669;
  --accent-light: #34D399;
  --accent-soft: #ECFDF5;
  
  --dark: #0F172A;
  --slate: #334155;
  --muted: #64748B;
  --light-slate: #94A3B8;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-focus: #38BDF8;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 61, 110, 0.12), 0 8px 10px -6px rgba(15, 61, 110, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --transition: all 0.25s ease-in-out;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Tipografía */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--slate);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-flag {
  background: #FFF;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(15, 61, 110, 0.25);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 61, 110, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Barra de Navegación */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
}

.trust-icon {
  color: var(--accent);
  font-weight: 900;
}

.hero-preview {
  position: relative;
}

.hero-card-stack {
  background: #FFF;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  display: inline-block;
  margin-right: 6px;
}

/* Sección 3 Estaciones */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
}

.stations-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.station-tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.station-tab-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.station-tab-btn.active {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 61, 110, 0.2);
}

.station-content-box {
  background: #FFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.station-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.station-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--slate);
}

.station-check {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Grilla de Características / Pilares */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #FFF;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(15, 61, 110, 0.2);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

/* Tabla de Precios */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.toggle-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate);
}

.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: #FFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-xl);
  transform: scale(1.04);
  z-index: 2;
}

.pricing-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #FFF;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-box {
  margin: 1.5rem 0;
}

.price-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  vertical-align: super;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Acordeón de FAQs */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

/* Calculadora Interactiva de Retorno */
.calc-card {
  background: linear-gradient(135deg, #0F3D6E 0%, #1E293B 100%);
  color: #FFF;
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-xl);
  margin-top: 3rem;
}

.calc-card h3 {
  color: #FFF;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.calc-card p {
  color: #CBD5E1;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.calc-range-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.calc-card input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.calc-results {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.calc-result-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1.1;
  margin: 0.5rem 0;
}

/* CTA Banner Final */
.cta-banner {
  background: radial-gradient(circle at 80% 20%, #1A5494 0%, #0F3D6E 100%);
  color: #FFF;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: #FFF;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #E2E8F0;
  max-width: 650px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

/* Footer */
.footer {
  background: #091E38;
  color: #94A3B8;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #FFF;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* Modal de Demo / Solicitud Rápida */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #FFF;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
}

.modal-close:hover {
  background: #E2E8F0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 61, 110, 0.15);
}

/* ==========================================================================
   Nuevos Componentes & Clases de Layout Responsive
   ========================================================================== */

/* Layouts Grilla Reutilizables y Responsivos */
.feature-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Mensaje de Éxito Inline en Formularios */
.form-success-card {
  background: #ECFDF5;
  border: 1.5px solid #34D399;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  color: #065F46;
  animation: modalIn 0.3s ease;
}

.form-success-card h3 {
  color: #065F46;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.form-success-card p {
  color: #047857;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Selector de Beneficios por Rol (Stakeholder Tabs) */
.role-selector-wrap {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.75rem 0 2.5rem;
  flex-wrap: wrap;
}

.role-tab-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1.5px solid #CBD5E1;
  background: #FFF;
  color: var(--slate);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role-tab-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.role-tab-btn.active {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 61, 110, 0.2);
}

.role-content-card {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.role-quote-box {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

/* Bento Grid Asimétrico (Tendencia HealthTech 2026) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(15, 61, 110, 0.25);
}

.bento-card-span-2 {
  grid-column: span 2;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
}

.bento-card-dark {
  background: radial-gradient(circle at 10% 20%, #1A5494 0%, #0F3D6E 100%);
  color: #FFF;
  border: none;
}

.bento-card-dark h3, .bento-card-dark p {
  color: #FFF;
}

.bento-card-dark p {
  color: #CBD5E1;
}

/* Mini Sandbox Interactivo de las 3 Estaciones */
.sandbox-card {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.sandbox-ui-mockup {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tooth-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid #CBD5E1;
  background: #FFF;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.tooth-btn.treated {
  background: #ECFDF5;
  border-color: #10B981;
  color: #047857;
}

.tooth-btn.cavity {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #DC2626;
}

/* Widget Flotante Contextual de WhatsApp */
.wa-floating-container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
}

.wa-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #FFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.4rem;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.wa-trigger-btn:hover {
  background: #20BA56;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.wa-popover-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 2.5rem);
  background-color: #FFFFFF !important;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
  z-index: 1001;
  animation: modalIn 0.25s ease;
}

.wa-popover-menu.active {
  display: block;
}

.wa-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.wa-intent-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: #F8FAFC;
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.wa-intent-link:hover {
  background: #EFF6FF;
  color: var(--primary);
  transform: translateX(3px);
}

/* Indicador de Desplazamiento Horizontal para Tablas */
.table-scroll-hint {
  display: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-align: right;
  margin-bottom: 0.5rem;
}

/* Tabla Antes vs Después */
.comparison-table-wrap {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 2.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.comparison-table tr:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: #F8FAFC;
  font-weight: 800;
  color: var(--primary);
}

/* Responsividad */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .station-content-box {
    grid-template-columns: 1fr;
  }
  .feature-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card-span-2 {
    grid-column: span 1;
  }
  .role-content-card {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .calc-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #FFF;
    border-bottom: 2px solid var(--primary);
    padding: 1.75rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 1000;
  }
  .nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
  .form-row-2col {
    grid-template-columns: 1fr;
  }
  .table-scroll-hint {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   Motion Design & Animation System (SaaS 2026 / HealthTech)
   GPU-accelerated · INP optimized · Zero jank
   ========================================================================== */

/* 1. Barra de Progreso de Lectura al Scroll */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0F3D6E 0%, #10B981 100%);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.1s ease-out;
}

/* 2. Patrón Dot-Grid de Precisión para el Hero */
.hero-section {
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 61, 110, 0.08) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.8;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
}

/* 3. Micro-interacción Shimmer en Botones CTA Primarios */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: buttonShimmer 5s infinite;
  pointer-events: none;
}

@keyframes buttonShimmer {
  0%, 80% {
    left: -60%;
  }
  100% {
    left: 140%;
  }
}

/* 4. Revelación al Scroll (Scroll-Triggered Stagger Reveals) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease-spring), transform 0.55s var(--ease-spring);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados */
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* 5. Spotlight Iluminado al Cursor en Bento Grid (Linear/Stripe Style) */
.bento-card[data-glow] {
  position: relative;
}

.bento-card[data-glow]::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: radial-gradient(
    380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(16, 185, 129, 0.16),
    transparent 45%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card[data-glow]:hover::before {
  opacity: 1;
}

.bento-card[data-glow] > * {
  position: relative;
  z-index: 2;
}

/* 6. Transición Fluida para Pestañas de Estaciones y Roles */
.station-panel, .role-content-card {
  animation: panelCrossFade 0.35s var(--ease-spring);
}

@keyframes panelCrossFade {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 7. Odontograma: Feedback Táctil Elástico al Clic */
.tooth-btn {
  transition: transform 0.2s var(--ease-bounce), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tooth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 61, 110, 0.1);
}

.tooth-btn:active {
  transform: scale(0.88);
}

.tooth-btn.tooth-bounce {
  animation: toothPop 0.35s var(--ease-bounce);
}

@keyframes toothPop {
  0% { transform: scale(0.88); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* 8. Estación 1: Animación de Turno en TV (Slide & Glow) */
.tv-screen-active {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
  transition: box-shadow 0.3s ease;
}

.tv-number-calling {
  animation: tvFlash 0.4s var(--ease-spring);
}

@keyframes tvFlash {
  0% { opacity: 0.2; transform: translateY(-8px) scale(0.96); }
  60% { opacity: 1; transform: translateY(2px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 9. Estación 3: Pipeline de Emisión SIFEN Animado */
.sifen-step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  opacity: 0.4;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring), background-color 0.3s ease;
}

.sifen-step-item.active {
  opacity: 1;
  transform: translateX(0);
  background: #FFF;
  border-color: #38BDF8;
  box-shadow: var(--shadow-sm);
}

.sifen-step-item.done {
  opacity: 1;
  transform: translateX(0);
  background: #ECFDF5;
  border-color: #34D399;
  color: #065F46;
}

/* 10. Números Dinámicos con Efecto de Pulso */
.number-pulse {
  animation: numPop 0.3s var(--ease-spring);
}

@keyframes numPop {
  0% { transform: scale(0.95); opacity: 0.7; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

/* 11. Pulso Ambiental en Botón Flotante de WhatsApp */
.wa-trigger-btn {
  animation: waPulseRing 6s infinite;
}

@keyframes waPulseRing {
  0%, 80%, 100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  88% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.25), 0 4px 15px rgba(37, 211, 102, 0.4);
  }
}

/* 12. Soporte Estricto para Usuarios con Preferencia de Movimiento Reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .bento-card[data-glow]::before {
    display: none !important;
  }
  .btn-shimmer::after {
    display: none !important;
  }
  .wa-trigger-btn {
    animation: none !important;
  }
}
