/* =========================================================
   Medical Suite — sitio de promoción
   Tokens: fondo navy oscuro + degradado magenta→azul del
   isotipo fB + acento teal (línea de pulso, signo médico
   de marca ya definido). Sin framework, sin build step.
   ========================================================= */

:root {
  --bg: #0a0e1a;
  --bg-elevated: #121a2e;
  --bg-elevated-2: #17203a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --magenta: #c724b1;
  --blue: #2d6fee;
  --teal: #14e8c4;

  --text: #f4f6fb;
  --text-muted: #8b93a7;
  --text-faint: #5c6584;

  --grad-brand: linear-gradient(100deg, var(--magenta) 0%, var(--blue) 100%);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max-w: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #04140f;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin: 0 0 0.9em;
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.note { color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 20px -4px rgba(199, 36, 177, 0.45);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -4px rgba(45, 111, 238, 0.5); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-login {
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 8px 16px;
  font-size: 0.86rem;
}
.btn-login:hover { border-color: var(--teal); color: var(--teal); }
.btn-login svg { transition: transform 0.18s ease; }
.btn-login:hover svg { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark { border-radius: 6px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
}
.brand-name strong { font-weight: 700; }

.main-nav {
  display: flex;
  gap: 26px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.main-nav a:hover { color: var(--text); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 108px 24px 108px;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}

.hero-inner { max-width: 760px; }

.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  margin-bottom: 0.4em;
}

.hero-sub {
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 2em;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.pulse-wrap {
  margin-top: 64px;
  width: 100%;
  line-height: 0;
}

.pulse-svg { width: 100%; height: 120px; display: block; }

.pulse-path-base {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.22;
}

.pulse-path-glow {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(20, 232, 196, 0.75));
  stroke-dasharray: 100 1365;
  animation: pulse-travel-hero 3.4s linear infinite;
}

@keyframes pulse-travel-hero {
  to { stroke-dashoffset: -1465; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-path-glow, .divider-glow { animation: none; opacity: 0; }
}

/* ---------- Separador animado entre secciones ---------- */
.section-divider { width: 100%; line-height: 0; }
.section-divider svg { width: 100%; height: 32px; display: block; }

.divider-base {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.divider-glow {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(20, 232, 196, 0.7));
  stroke-dasharray: 65 1183;
  animation: pulse-travel-divider 3.6s linear infinite;
}

@keyframes pulse-travel-divider {
  to { stroke-dashoffset: -1248; }
}

/* ---------- Sections ---------- */
.section { padding: 108px 24px; }
.section-alt { background: var(--bg-elevated); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-head { max-width: 560px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }

.two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.col-label h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); }
.col-body p { font-size: 1.02rem; max-width: 520px; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--bg-elevated-2);
  color: var(--teal);
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.5em;
}
.feature-card p { font-size: 0.92rem; margin: 0; }

/* ---------- Sección "Para quién" ---------- */
.audience-lead { max-width: 600px; margin-bottom: 28px; font-size: 1.02rem; }
.audience-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.audience-chip {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-elevated-2);
}

/* ---------- Sección Asesor IA ---------- */
.ai-section {
  text-align: center;
  background: radial-gradient(ellipse 90% 90% at 50% 0%, rgba(45, 111, 238, 0.16), transparent 60%),
              radial-gradient(ellipse 70% 70% at 50% 100%, rgba(199, 36, 177, 0.1), transparent 60%),
              var(--bg);
}
.ai-section .section-inner { max-width: 700px; }
.ai-section h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.ai-lead { font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated-2);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}

/* ---------- Login band ---------- */
.login-band {
  padding: 76px 24px;
  background: radial-gradient(ellipse 120% 100% at 15% 0%, rgba(199, 36, 177, 0.16), transparent 55%),
              radial-gradient(ellipse 120% 100% at 85% 100%, rgba(45, 111, 238, 0.16), transparent 55%),
              var(--bg-elevated);
}
.login-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.login-band-inner h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 0.3em; }
.login-sub { margin: 0; }

/* ---------- Contact list ---------- */
.contact-list { list-style: none; margin: 1.4em 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list li { display: flex; gap: 14px; align-items: baseline; font-size: 0.98rem; }
.contact-list li span:first-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  width: 90px;
  flex-shrink: 0;
}
.contact-list a:hover { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 24px; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand-footer { margin-right: auto; }
.footer-note, .footer-copy { font-size: 0.82rem; color: var(--text-faint); margin: 0; }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #04160f;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.6);
}

.whatsapp-float-icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-float-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0.55;
  animation: wa-pulse 2.4s ease-out infinite;
}

.whatsapp-float-label {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-icon::after { animation: none; }
}

@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; padding: 10px; }
  .whatsapp-float-label { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 20px; }
  .hero { padding-top: 88px; }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
  .btn-login { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .login-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
