* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1e1b4b; background: #fff; }

/* ── NAV ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  padding-top: max(10px, env(safe-area-inset-top));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 4rem;
  padding-top: 0; /* el padding-top lo maneja el nav padre */
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #6366f1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-icon svg { width: 18px; height: 18px; }
.nav-name { font-size: 18px; font-weight: 500; color: #1e1b4b; letter-spacing: -0.3px; }
.nav-name span { color: #6366f1; }
.nav-center { display: flex; align-items: center; gap: 2rem; }
.nav-center a { font-size: 14px; color: #6b7280; text-decoration: none; }
.nav-center a:hover { color: #6366f1; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }

/* Botones nav — comentados, activar cuando estén listos */
 .btn-login { background: transparent; color: #6366f1; border: 1.5px solid #c4b5fd; border-radius: 25px; padding: 8px 18px; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-login:hover { background: #f5f3ff; }

.btn-login a{
  text-decoration: none;
}

/*
.btn-register { background: #6366f1; color: #fff; border: none; border-radius: 25px; padding: 8px 18px; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-register:hover { background: #4f46e5; } */

.btn-demo {
  background: #6366f1; color: #fff;
  border: none; border-radius: 25px;
  padding: 8px 20px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.btn-demo:hover { background: #4f46e5; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}
.nav-mobile-menu a { font-size: 15px; color: #6b7280; text-decoration: none; }
.nav-mobile-menu a:hover { color: #6366f1; }
.nav-mobile-menu.open { display: flex; }

/* ── HERO ── */
.hero {
  padding: 5rem 4rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ede9fe; border: 1px solid #c4b5fd;
  border-radius: 99px; padding: 6px 16px;
  font-size: 12px; color: #4338ca; font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #6366f1; }
.hero h1 {
  font-size: 48px; font-weight: 600; color: #1e1b4b;
  line-height: 1.15; margin-bottom: 1.2rem; letter-spacing: -1.5px;
}
.hero h1 span { color: #6366f1; }
.hero > p {
  font-size: 18px; color: #6b7280;
  max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem;
}
.btn-primary {
  background: #6366f1; color: #fff;
  border: none; border-radius: 25px;
  padding: 13px 28px; font-size: 15px; font-weight: 500; cursor: pointer;
}
.btn-primary:hover { background: #4f46e5; }
.btn-ghost {
  background: transparent; color: #6366f1;
  border: 1.5px solid #c4b5fd; border-radius: 25px;
  padding: 12px 28px; font-size: 15px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { background: #f5f3ff; }

/* App preview */
.app-preview {
  background: #1e1b4b; border-radius: 16px; padding: 2px;
  max-width: 820px; margin: 0 auto;
  box-shadow: 0 24px 60px rgba(99,102,241,0.18);
  overflow: hidden;
}
.app-bar {
  background: #2d2b55; padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
}
.app-dot { width: 10px; height: 10px; border-radius: 50%; }
.app-screen {
  background: #f8f7ff; padding: 1.25rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.kpi { background: #fff; border-radius: 10px; padding: 14px; border: 1px solid #e0e7ff; }
.kpi-label { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.kpi-val { font-size: 20px; font-weight: 600; color: #1e1b4b; }
.kpi-sub { font-size: 10px; color: #6366f1; margin-top: 2px; }
.kanban-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kol { background: #fff; border-radius: 10px; padding: 12px; border: 1px solid #e0e7ff; }
.kol-head { font-size: 11px; font-weight: 500; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.kol-dot { width: 7px; height: 7px; border-radius: 50%; }
.kcard { background: #f8f7ff; border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; border: 1px solid #e0e7ff; }
.kcard-name { font-size: 11px; font-weight: 500; color: #1e1b4b; }
.kcard-time { font-size: 10px; color: #94a3b8; margin-top: 1px; }

/* ── ESPECIALIDADES ── */
.logos { padding: 2.5rem 4rem; text-align: center; border-bottom: 1px solid #f1f5f9; }
.logos > p { font-size: 12px; color: #94a3b8; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 1px; }
.logos-row { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.logo-item { font-size: 14px; font-weight: 500; color: #c4b5fd; }

/* ── SECCIONES comunes ── */
.section-label {
  font-size: 12px; font-weight: 500; color: #6366f1;
  text-transform: uppercase; letter-spacing: 1px;
  text-align: center; margin-bottom: 0.6rem;
}
.section-title {
  font-size: 34px; font-weight: 600; color: #1e1b4b;
  text-align: center; line-height: 1.25;
  margin-bottom: 0.75rem; letter-spacing: -0.5px;
}
.section-sub {
  font-size: 16px; color: #6b7280;
  text-align: center; max-width: 500px;
  margin: 0 auto 3rem; line-height: 1.7;
}

/* ── FEATURES ── */
.features { padding: 5rem 4rem; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 980px; margin: 0 auto;
}
.feat-card {
  background: #fff; border: 1px solid #e0e7ff;
  border-radius: 16px; padding: 1.75rem;
}
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feat-icon svg { width: 22px; height: 22px; }
.feat-card h3 { font-size: 16px; font-weight: 500; color: #1e1b4b; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: #6b7280; line-height: 1.65; }

/* ── SEGURIDAD ── */
.security {
  padding: 5rem 4rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}
.security .section-label { color: #a5b4fc; }
.security .section-title { color: #fff; }
.security .section-sub { color: #a5b4fc; }
.security-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 980px; margin: 0 auto;
}
.sec-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 1.75rem;
}
.sec-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(99,102,241,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.sec-icon svg { width: 24px; height: 24px; }
.sec-card h3 { font-size: 16px; font-weight: 500; color: #fff; margin-bottom: 8px; }
.sec-card p { font-size: 14px; color: #a5b4fc; line-height: 1.65; }
.sec-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(99,102,241,0.25);
  border: 1px solid rgba(165,180,252,0.3);
  border-radius: 99px; padding: 4px 12px;
  font-size: 11px; color: #c4b5fd; margin-top: 0.75rem;
}
.sec-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: #818cf8; }
.security-footer {
  max-width: 980px; margin: 2.5rem auto 0;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.security-footer p { font-size: 14px; color: #a5b4fc; line-height: 1.6; }
.security-footer strong { color: #fff; }

/* ── WHY ── */
.why { padding: 5rem 4rem; background: #f8f7ff; }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; max-width: 980px; margin: 0 auto; align-items: center;
}
.why-title { text-align: left; font-size: 28px; }
.why-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.why-item { display: flex; gap: 1rem; }
.why-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: #6366f1; color: #fff;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.why-item h4 { font-size: 15px; font-weight: 500; color: #1e1b4b; margin-bottom: 4px; }
.why-item p { font-size: 14px; color: #6b7280; line-height: 1.6; }
.why-visual { background: #fff; border-radius: 16px; border: 1px solid #e0e7ff; padding: 1.5rem; }
.why-visual-title { font-size: 13px; font-weight: 500; color: #1e1b4b; margin-bottom: 1rem; }
.tl-item {
  display: flex; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid #f1f5f9;
  align-items: flex-start;
}
.tl-item:last-child { border-bottom: none; padding-bottom: 0; }
.tl-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tl-body { flex: 1; }
.tl-title { font-size: 13px; font-weight: 500; color: #1e1b4b; margin-bottom: 2px; }
.tl-desc { font-size: 12px; color: #94a3b8; }
.tl-time { font-size: 11px; color: #6366f1; font-weight: 500; white-space: nowrap; padding-top: 2px; }

/* ── ROLES ── */
.roles { padding: 5rem 4rem; background: #fff; }
.roles-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; max-width: 820px; margin: 0 auto;
}
.role-card { border-radius: 16px; padding: 2rem; border: 1px solid #e0e7ff; }
.role-card.doctor { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.role-card.nurse { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.role-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 99px; padding: 4px 12px;
  font-size: 12px; font-weight: 500; margin-bottom: 1rem;
}
.role-badge.doc-b { background: #ede9fe; color: #4338ca; }
.role-badge.nur-b { background: #dcfce7; color: #166534; }
.role-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 0.75rem; }
.role-card.doctor h3 { color: #1e1b4b; }
.role-card.nurse h3 { color: #14532d; }
.role-perks { display: flex; flex-direction: column; gap: 8px; }
.perk { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.perk-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.role-card.doctor .perk { color: #4338ca; }
.role-card.doctor .perk-dot { background: #6366f1; }
.role-card.nurse .perk { color: #166534; }
.role-card.nurse .perk-dot { background: #22c55e; }

/* ── CTA ── */
.cta-section {
  padding: 5rem 4rem;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  text-align: center;
}
.cta-section h2 {
  font-size: 36px; font-weight: 600; color: #fff;
  margin-bottom: 1rem; line-height: 1.25; letter-spacing: -0.5px;
}
.cta-section > p {
  font-size: 16px; color: #a5b4fc;
  margin: 0 auto 2.5rem; max-width: 480px; line-height: 1.7;
}
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-white {
  background: #fff; color: #4338ca;
  border: none; border-radius: 25px;
  padding: 13px 28px; font-size: 15px; font-weight: 500; cursor: pointer;
}
.btn-white:hover { background: #f5f3ff; }
.btn-outline-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 25px; padding: 12px 28px; font-size: 15px; cursor: pointer;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.08); }

/* ── FOOTER ── */
.footer {
  padding: 2rem 4rem;
  border-top: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-name { font-size: 15px; font-weight: 500; color: #1e1b4b; }
.footer-name span { color: #6366f1; }
.footer p { font-size: 13px; color: #94a3b8; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav { padding: 1rem 2rem; }
  .nav-center { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .hero { padding: 3.5rem 2rem 3rem; }
  .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .hero > p { font-size: 16px; }
  .app-screen { grid-template-columns: repeat(2, 1fr); }
  .kanban-row { grid-template-columns: 1fr; }
  .logos { padding: 2rem; }
  .logos-row { gap: 1.5rem; }
  .features { padding: 3.5rem 2rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .security { padding: 3.5rem 2rem; }
  .security-grid { grid-template-columns: 1fr 1fr; }
  .why { padding: 3.5rem 2rem; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-title { font-size: 26px; }
  .why-title { font-size: 24px; }
  .roles { padding: 3.5rem 2rem; }
  .roles-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 3.5rem 2rem; }
  .cta-section h2 { font-size: 26px; }
  .footer { padding: 1.5rem 2rem; flex-direction: column; align-items: flex-start; }
  .btn-register { display: none; }
  .btn-demo { display: none; }
}

@media (max-width: 600px) {
  .app-screen { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .btn-white, .btn-outline-white { width: 100%; }
  .security-footer { flex-direction: column; }
}

/* ── SCROLL ANIMATIONS ── */

/* Estado inicial — invisible */
.will-animate {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Fade + sube */
.anim-fade-up       { transform: translateY(32px); }
.anim-stagger-up    { transform: translateY(28px); }

/* Fade simple */
.anim-fade-in       { transform: translateY(8px); }

/* Desde izquierda */
.anim-slide-left    { transform: translateX(-40px); }
.anim-stagger-left  { transform: translateX(-28px); }

/* Desde derecha */
.anim-slide-right   { transform: translateX(40px); }

/* Zoom leve */
.anim-zoom-in       { transform: scale(0.96); }

/* Estado final — visible */
.will-animate.animated {
  opacity: 1;
  transform: none;
}

/* Evita que elementos con stagger hereden el delay al salir de vista */
.will-animate:not(.animated) {
  will-change: opacity, transform;
}



.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ── MODAL DEMO ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 12, 40, 0.6);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 440px; width: 100%;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 32px 80px rgba(99, 102, 241, 0.18);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  background: #f8f7ff; border: none; border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.modal-close:hover { background: #ede9fe; }
.modal-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: #6366f1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.modal-title {
  font-size: 22px; font-weight: 600; color: #1e1b4b;
  margin-bottom: 0.4rem; letter-spacing: -0.4px;
}
.modal-sub {
  font-size: 14px; color: #6b7280;
  line-height: 1.6; margin-bottom: 1.75rem;
}
.modal-form { display: flex; flex-direction: column; gap: 1.1rem; }
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-field label {
  font-size: 13px; font-weight: 500; color: #374151;
  display: flex; align-items: center; gap: 6px;
}
.optional {
  font-size: 11px; font-weight: 400; color: #94a3b8;
  background: #f1f5f9; border-radius: 99px;
  padding: 1px 8px;
}
.modal-field input {
  padding: 11px 14px;
  border: 1.5px solid #e0e7ff;
  border-radius: 10px;
  font-size: 14px; color: #1e1b4b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}
.modal-field input::placeholder { color: #c4b5fd; }
.modal-field input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.modal-submit {
  background: #6366f1; color: #fff;
  border: none; border-radius: 25px;
  padding: 13px 24px; font-size: 15px; font-weight: 500;
  cursor: pointer; margin-top: 0.4rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.modal-submit:hover { background: #4f46e5; transform: translateY(-1px); }
.modal-submit:active { transform: translateY(0); }
.modal-legal {
  font-size: 12px; color: #94a3b8;
  text-align: center; margin-top: 0.25rem;
}

/* Estado éxito */
.modal-success {
  display: none; flex-direction: column;
  align-items: center; text-align: center; gap: 0.75rem;
  padding-top: 0.5rem;
}
.modal-success.show { display: flex; }
.modal-form.hide { display: none; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}
.modal-success h3 {
  font-size: 20px; font-weight: 600; color: #1e1b4b;
}
.modal-success p {
  font-size: 14px; color: #6b7280; line-height: 1.6; max-width: 300px;
}


/* ── PRECIOS ── */
.pricing {
  padding: 5rem 4rem;
  background: #f8f7ff;
}
.pricing-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
  align-items: center;
}
/* Planes fantasma */
.pricing-ghost {
  background: #fff;
  border: 1.5px dashed #e0e7ff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  opacity: 0.6;
}
.ghost-name {
  font-size: 15px; font-weight: 600; color: #1e1b4b;
  margin-bottom: 0.5rem;
}
.ghost-tag {
  display: inline-block;
  background: #ede9fe; color: #6366f1;
  font-size: 11px; font-weight: 500;
  border-radius: 99px; padding: 3px 12px;
  margin-bottom: 0.75rem;
}
.ghost-desc {
  font-size: 13px; color: #94a3b8; line-height: 1.6;
}
/* Plan principal */
.pricing-card {
  background: #fff;
  border: 2px solid #6366f1;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(99,102,241,0.13);
}
.pricing-popular {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #fff;
  font-size: 12px; font-weight: 600;
  border-radius: 99px; padding: 5px 16px;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.pricing-name {
  font-size: 13px; font-weight: 600; color: #6366f1;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1rem; margin-top: 0.5rem;
}
.pricing-price {
  display: flex; align-items: flex-end; gap: 2px;
  margin-bottom: 0.75rem;
}
.price-currency {
  font-size: 22px; font-weight: 600; color: #1e1b4b;
  line-height: 1; padding-bottom: 6px;
}
.price-amount {
  font-size: 56px; font-weight: 700; color: #1e1b4b;
  line-height: 1; letter-spacing: -2px;
}
.price-period {
  font-size: 15px; color: #94a3b8;
  padding-bottom: 8px; margin-left: 2px;
}
.pricing-desc {
  font-size: 14px; color: #6b7280;
  line-height: 1.6; margin-bottom: 1.5rem;
}
.pricing-divider {
  height: 1px; background: #e0e7ff; margin-bottom: 1.5rem;
}
.pricing-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-bottom: 2rem;
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #374151; line-height: 1.5;
}
.pricing-features li svg { flex-shrink: 0; margin-top: 2px; }
.pricing-features strong { color: #1e1b4b; }
.pricing-btn {
  width: 100%;
  background: #6366f1; color: #fff;
  border: none; border-radius: 25px;
  padding: 14px; font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 0.75rem;
}
.pricing-btn:hover { background: #4f46e5; transform: translateY(-1px); }
.pricing-btn:active { transform: translateY(0); }
.pricing-note {
  font-size: 12px; color: #94a3b8; text-align: center;
}

/* Responsive precios */
@media (max-width: 900px) {
  .pricing { padding: 3.5rem 2rem; }
  .pricing-wrapper {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .pricing-ghost { display: none; }
}

/* ── BOTÓN CREAR CUENTA ── */
.btn-register {
  background: transparent; color: #6366f1;
  border: 1.5px solid #c4b5fd; border-radius: 25px;
  padding: 8px 18px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background 0.2s;
}
.btn-register:hover { background: #f5f3ff; }

.btn-primary-outline {
  background: transparent; color: #6366f1;
  border: 1.5px solid #c4b5fd;
}
.btn-primary-outline:hover { background: #f5f3ff; }

/* ── PRECIOS — botones dobles ── */
.pricing-btns {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.pricing-btn-outline {
  background: transparent; color: #6366f1;
  border: 1.5px solid #c4b5fd;
}
.pricing-btn-outline:hover { background: #f5f3ff; transform: translateY(-1px); }

/* ── MODAL CREAR CUENTA — extras ── */
.register-divider {
  display: flex; align-items: center; gap: 1rem;
  color: #94a3b8; font-size: 12px;
}
.register-divider::before,
.register-divider::after {
  content: ''; flex: 1; height: 1px; background: #e0e7ff;
}
.register-contact-btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.register-contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.register-contact-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.register-whatsapp {
  background: #dcfce7; color: #166534;
  border: 1px solid #bbf7d0;
}
.register-phone {
  background: #ede9fe; color: #4338ca;
  border: 1px solid #c4b5fd;
}

/* ── PRECIOS — animación ── */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(99,102,241,0.2);
}
.pricing-ghost {
  transition: opacity 0.3s ease;
}
.pricing-ghost:hover {
  opacity: 0.85;
}


.error-message {
  color: #e63946;
  font-size: 0.9em;
  margin-top: 4px;
}
.hide { display: none; }
.show { display: block; }



/* Dos columnas para precios */
.pricing-wrapper-two {
  grid-template-columns: 1fr 1fr;
  max-width: 820px;
}

/* Plan clínica — estilo diferenciado */
.pricing-card-clinic {
  border-color: #e0e7ff;
  box-shadow: 0 8px 30px rgba(99,102,241,0.08);
  opacity: 0.85;
}
.pricing-popular-clinic {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}
.pricing-name-clinic {
  color: #94a3b8;
}
.price-amount-clinic {
  font-size: 28px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: -0.5px;
  padding-bottom: 8px;
}

@media (max-width: 900px) {
  .pricing-wrapper-two {
    grid-template-columns: 1fr;
  }
}


/* ── NOTIFICACIONES ── */
.notif {
  padding: 5rem 4rem;
  background: #fff;
}
.notif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  max-width: 980px;
  margin: 0 auto;
  align-items: center;
}
.notif-left { display: flex; flex-direction: column; gap: 1.75rem; }
.notif-benefit { display: flex; gap: 1rem; align-items: flex-start; }
.notif-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-icon svg { width: 22px; height: 22px; }
.notif-benefit h4 { font-size: 15px; font-weight: 500; color: #1e1b4b; margin-bottom: 4px; }
.notif-benefit p  { font-size: 14px; color: #6b7280; line-height: 1.6; }
.notif-stat-row { display: flex; gap: 1rem; }
.notif-stat {
  flex: 1;
  background: #f5f3ff;
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  padding: 1rem 1.25rem;
}
.notif-stat-val   { font-size: 28px; font-weight: 700; color: #6366f1; letter-spacing: -1px; }
.notif-stat-label { font-size: 12px; color: #6b7280; margin-top: 2px; line-height: 1.4; }
.notif-right { display: flex; flex-direction: column; gap: 1rem; }
.notif-channel-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 99px; padding: 3px 10px;
  font-size: 11px; font-weight: 500;
}
.notif-badge-wa    { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; }
.notif-badge-email { background: #ede9fe; border: 1px solid #c4b5fd; color: #4338ca; }
.notif-badge-dot   { width: 5px; height: 5px; border-radius: 50%; }
.notif-dot-wa      { background: #22c55e; }
.notif-wa-wrap {
  background: #f0fdf4;
  border: 1px solid #c8e6c9;
  border-radius: 16px;
  padding: 1.25rem;
}
.notif-wa-topbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 0.75rem;
}
.notif-wa-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-wa-name   { font-size: 12px; font-weight: 500; color: #166534; }
.notif-wa-status { font-size: 11px; color: #4ade80; }
.notif-wa-topbar .notif-channel-badge { margin-left: auto; }
.notif-wa-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  font-size: 13px; color: #1e1b4b; line-height: 1.6;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.notif-wa-bubble strong { color: #1e1b4b; }
.notif-wa-time {
  font-size: 10px; color: #94a3b8;
  text-align: right; margin-top: 6px;
}
.notif-email-wrap {
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  overflow: hidden;
}
.notif-email-bar {
  background: #f5f3ff;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #e0e7ff;
}
.notif-email-bar-label { font-size: 11px; color: #94a3b8; margin-left: 4px; }
.notif-email-body    { padding: 1rem 1.25rem; }
.notif-email-from    { font-size: 11px; color: #94a3b8; margin-bottom: 2px; }
.notif-email-subject { font-size: 13px; font-weight: 500; color: #1e1b4b; margin-bottom: 0.75rem; }
.notif-email-content { font-size: 12px; color: #6b7280; line-height: 1.65; }
.notif-email-content strong { color: #1e1b4b; }
.notif-email-btn {
  display: inline-block;
  background: #6366f1; color: #fff;
  border-radius: 25px;
  padding: 8px 18px;
  font-size: 12px; font-weight: 500;
  margin-top: 0.75rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .notif { padding: 3.5rem 2rem; }
  .notif-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}


/* ── API CONNECT ── */
.api-connect {
  padding: 5rem 4rem;
  background: #f8f7ff;
}
.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

/* Diagrama de flujo */
.api-flow {
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 20px;
  padding: 1.75rem;
}
.api-flow-title {
  font-size: 13px; font-weight: 500; color: #1e1b4b;
  margin-bottom: 1.25rem;
}
.api-step {
  display: flex; gap: 1rem; align-items: flex-start;
}
.api-step-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.api-step-icon svg { width: 20px; height: 20px; }
.api-step-title { font-size: 14px; font-weight: 500; color: #1e1b4b; margin-bottom: 2px; }
.api-step-desc  { font-size: 12px; color: #6b7280; line-height: 1.55; }

.api-connector {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  padding: 4px 0 4px 19px;
}
.api-connector-line {
  width: 1.5px; height: 10px;
  background: #e0e7ff;
}
.api-connector-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #c4b5fd;
}

/* Derecha */
.api-right {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding-top: 0.5rem;
}
.api-highlight {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}
.api-highlight-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: #ede9fe;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.api-highlight-icon svg { width: 18px; height: 18px; }
.api-highlight-title { font-size: 14px; font-weight: 500; color: #1e1b4b; margin-bottom: 3px; }
.api-highlight-desc  { font-size: 13px; color: #6b7280; line-height: 1.55; }

.api-cta-box {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 0.5rem;
}
.api-cta-title { font-size: 16px; font-weight: 500; color: #fff; margin-bottom: 4px; }
.api-cta-desc  { font-size: 13px; color: #a5b4fc; line-height: 1.5; margin-bottom: 1.25rem; }
.api-cta-btn {
  background: #fff; color: #4338ca;
  border: none; border-radius: 25px;
  padding: 11px 22px; font-size: 14px; font-weight: 500;
  cursor: pointer; width: 100%;
  transition: background 0.2s, transform 0.15s;
}
.api-cta-btn:hover { background: #f5f3ff; transform: translateY(-1px); }

@media (max-width: 900px) {
  .api-connect { padding: 3.5rem 2rem; }
  .api-grid { grid-template-columns: 1fr; gap: 2rem; }
}