/* Inter, served from here (variable weight, latin): no third parties on the page. */
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); }

/* ActualClinic's own palette: the blue of the mark, its teal dot and the app's navy side menu. */
:root {
  --blue: #0f6fb8;
  --blue-600: #0c5f9e;
  --blue-50: #e6f1fa;
  --teal: #19b3a6;
  --teal-light: #5fd8cc;
  --teal-50: #e0f5f3;
  --night: #0b2a45;
  --night-2: #103555;
  --ink: #13293d;
  --muted: #4a5f72;
  --line: #d9e2ea;
  --bg: #ffffff;
  --soft: #f3f6f9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 42, 69, 0.06), 0 8px 24px rgba(11, 42, 69, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; }
.small { font-size: 14px; }
.muted { color: var(--muted); }

/* Wordmark: «Actual» + «Clinic» in teal + «!», as in the app. */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.wordmark { font-weight: 700; font-size: 21px; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark b { font-weight: inherit; color: var(--teal); }
.brand-light { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 10px; padding: 11px 20px; font-weight: 650; font-size: 15px; min-height: 44px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s; vertical-align: middle; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(15, 111, 184, 0.3); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-ghost-dark { color: var(--blue); border-color: var(--blue); background: #fff; }
.btn-ghost-dark:hover { background: var(--blue-50); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background: #1fb457; }
.btn-lg { padding: 14px 26px; font-size: 16px; min-height: 52px; }
.btn-sm { padding: 8px 14px; font-size: 14px; min-height: 40px; }
.btn-block { width: 100%; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a, .link-muted { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15px; }
.nav a:hover, .link-muted:hover { color: var(--blue); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* Hero */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(15, 111, 184, 0.55), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(25, 179, 166, 0.22), transparent 60%),
    var(--night);
  color: #fff; padding: 64px 0 96px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 700; color: var(--teal-light); margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; }
.accent { color: var(--teal-light); }
.lead { font-size: 19px; color: rgba(255, 255, 255, 0.84); margin: 20px 0 28px; max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-notes { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: rgba(255, 255, 255, 0.74); }
.hero-notes li::before { content: '✓ '; color: var(--teal-light); font-weight: 700; }
.hero-visual { position: relative; }
.browser { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); transform: perspective(1600px) rotateY(-6deg); }
.browser-bar { display: flex; gap: 6px; padding: 9px 12px; background: #e8eef3; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c6d2dc; }
.browser-bar i:nth-child(1) { background: #f26d5b; } .browser-bar i:nth-child(2) { background: #f4bf4f; } .browser-bar i:nth-child(3) { background: #3fc56b; }
.phone {
  position: absolute; width: 27%; right: -2%; bottom: -18%; margin: 0;
  border: 6px solid #0a1520; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); background: #fff;
  aspect-ratio: 600 / 1298; transform: rotate(3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Facts */
.facts { border-bottom: 1px solid var(--line); background: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 0; }
.facts-grid div { display: flex; flex-direction: column; border-left: 3px solid var(--teal); padding-left: 14px; }
.facts-grid strong { font-size: 17px; font-weight: 700; }
.facts-grid span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 84px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: radial-gradient(900px 400px at 100% 0%, rgba(15, 111, 184, 0.35), transparent 60%), var(--night); color: #fff; }
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-title.light { color: #fff; }
.section-sub { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 40em; }
.muted-light { color: rgba(255, 255, 255, 0.78); font-size: 17px; }
.mini-title { font-size: 18px; margin: 48px 0 14px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
.section-dark .kicker { color: var(--teal-light); }

.video-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.video-grid .muted-light { margin-bottom: 24px; }
.video { width: 100%; border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); background: #000; aspect-ratio: 16 / 9; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy .section-sub { margin-bottom: 24px; }
.split-copy .checks { margin-bottom: 28px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); color: var(--ink); }
.card h3 { font-size: 19px; margin-bottom: 10px; font-weight: 750; }
.card p { margin: 0; color: var(--muted); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }

/* Phones side by side, with what each one is */
.devices { display: flex; justify-content: center; gap: 28px; position: relative; }
.devices.with-note { padding-bottom: 150px; }
.device { margin: 0; width: min(46%, 270px); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.device:nth-child(2) { margin-top: 48px; }
.device-frame {
  width: 100%; border: 6px solid #0a1520; border-radius: 28px; overflow: hidden; background: #fff;
  aspect-ratio: 600 / 1298; box-shadow: 0 24px 48px rgba(11, 42, 69, 0.25);
}
.device-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device figcaption { font-size: 14px; font-weight: 650; color: var(--muted); text-align: center; }

/* WhatsApp reminder example over the booking phones */
.wa-note {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(360px, 94%);
  background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(11, 42, 69, 0.22); padding: 12px 14px; font-size: 14px; line-height: 1.45;
  border: 1px solid var(--line);
}
.wa-note-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: #128c4b; margin-bottom: 6px; }
.wa-note-head svg { color: #25d366; }
.wa-note p { margin: 0; background: #e7fbe9; border-radius: 10px; padding: 8px 10px; color: #1b2b22; }
.wa-note small { display: block; text-align: right; color: #6a7b70; font-size: 11px; margin-top: 4px; }

/* Online booking steps */
.flow { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: flow; }
.flow li {
  counter-increment: flow; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px;
  font-size: 14px; font-weight: 650; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.flow li::before { content: counter(flow); width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }

/* Appointment states: one word, one color, everywhere (same as the app) */
.states { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.states li { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 650; border: 1px solid currentColor; }
.states li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-pedido { color: #b45309; background: #fef3c7; }
.st-confirmado { color: #0f6fb8; background: #e6f1fa; }
.st-sala { color: #7b4fc4; background: #f1eafb; }
.st-atendiendo { color: #0e7c86; background: #e0f5f3; }
.st-atendido { color: #1f8a5b; background: #e5f4ec; }
.st-novino { color: #b4413c; background: #fbe9e8; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 999px; min-height: 44px;
  font: 600 15px Inter, system-ui, sans-serif; cursor: pointer;
}
.tabs button:hover { border-color: var(--blue); }
.tabs button[aria-selected='true'] { background: var(--night); border-color: var(--night); color: #fff; }
.tab-panel { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 40px; align-items: center; }
.tab-panel[hidden] { display: none; }
.feature-copy h3 { font-size: 24px; margin-bottom: 14px; font-weight: 800; }
.shot { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230e7c86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks.light li { color: rgba(255, 255, 255, 0.9); }
.checks.light li::before { background-color: rgba(95, 216, 204, 0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%235fd8cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; }

/* Assistant: a faithful mock of the app's chat panel (no screenshot exists) */
.assistant-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 56px; align-items: center; }
.promise {
  margin: 24px 0 0; padding: 16px 18px; border-radius: 12px; background: rgba(95, 216, 204, 0.12);
  border: 1px solid rgba(95, 216, 204, 0.4); color: #fff; font-weight: 650; font-size: 17px;
}
.chat-wrap { position: relative; padding-bottom: 76px; }
.chat {
  background: #fff; color: var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; max-width: 440px; margin-left: auto;
}
.chat-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 16px; }
.chat-head svg { color: var(--blue); }
.chat-head .x { margin-left: auto; color: var(--muted); font-size: 18px; line-height: 1; }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 92%; border-radius: 14px; padding: 9px 13px; font-size: 15px; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--blue); color: #fff; }
.bubble.bot { align-self: flex-start; background: #f7f9fb; border: 1px solid #edf1f5; }
.action { align-self: flex-start; width: 92%; border: 1px solid var(--blue); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.action .tag { justify-self: start; font-size: 12px; font-weight: 600; color: #0958d9; background: #e6f4ff; border: 1px solid #91caff; border-radius: 4px; padding: 0 7px; line-height: 20px; }
.action p { margin: 0; font-size: 15px; }
.action-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fake-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 15px; border-radius: 8px; font-size: 15px; font-weight: 500; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.fake-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.chat-foot { display: flex; justify-content: space-between; align-items: center; padding: 4px 12px 0; font-size: 12px; color: #6f8294; }
.chat-foot span:last-child { color: var(--blue); font-size: 14px; white-space: nowrap; }
.chat-foot { gap: 8px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); margin-top: 8px; }
.chat-input span { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; color: #9aa9b7; font-size: 15px; }
.chat-input i { width: 40px; height: 40px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; color: #fff; font-style: normal; }
.ask-bubble {
  position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px;
  border-radius: 26px; background: var(--blue); color: #fff; font-weight: 500; font-size: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.mock-note { font-size: 12px; color: rgba(255, 255, 255, 0.55); margin: 10px 0 0; text-align: right; }

/* ActualPlus */
.import-card { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 40px; }
.import-card .section-title { font-size: clamp(26px, 3vw, 34px); }
.import-list { background: var(--soft); border-radius: 12px; padding: 22px; }
.import-list h3 { font-size: 16px; margin-bottom: 12px; }

/* Price */
.price { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 40px; border-top: 4px solid var(--blue); }
.card .price-big { color: var(--ink); }
.price-big { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.price-big span { color: var(--blue); }
.price-free { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.price-free li { background: var(--teal-50); color: #0b5f58; border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 650; }
.price-cta { display: grid; gap: 12px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; }
.steps li { counter-increment: paso; background: var(--soft); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before {
  content: counter(paso); width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 8px;
}
.section-soft .steps li { background: #fff; border: 1px solid var(--line); }
.steps strong { font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Contact */
.demo-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: center; }
.demo-copy .checks { margin: 22px 0; }
.contact { display: grid; gap: 12px; padding: 28px; }
.form-title { font-size: 22px; margin-bottom: 6px; font-weight: 800; }
.fineprint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--blue); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 12px 0 0; }

.cta-final { background: var(--blue-50); }
.cta-final .btn { margin: 6px; }

.footer { background: var(--night); color: rgba(255, 255, 255, 0.72); padding: 36px 0; font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer p { margin: 0; }
.footer .brand { margin-bottom: 6px; }
.footer a { color: var(--teal-light); }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1060px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { padding: 40px 0 72px; }
  .hero-grid, .video-grid, .tab-panel, .demo-grid, .split, .assistant-grid, .import-card, .price { grid-template-columns: 1fr; }
  .split-visual-first .split-visual { order: 2; }
  .hero-visual { margin-top: 12px; }
  .browser { transform: none; }
  .phone { width: 30%; bottom: -12%; right: 2%; }
  .cards-3 { grid-template-columns: 1fr; }
  .facts-grid, .steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .chat { margin-inline: auto; }
  .import-card, .price { padding: 28px; }
}
@media (max-width: 560px) {
  .topbar-actions .link-muted { display: none; }
  .wordmark { font-size: 18px; }
  .brand svg { width: 28px; height: 28px; }
  .facts-grid, .steps { grid-template-columns: 1fr; gap: 12px; }
  .hero-ctas .btn { width: 100%; }
  .flow { grid-template-columns: 1fr 1fr; }
  .devices { gap: 14px; }
  .device-frame { border-width: 4px; border-radius: 20px; }
  .device:nth-child(2) { margin-top: 32px; }
  .devices.with-note { padding-bottom: 170px; }
  .card { padding: 22px; }
  .card-icon { margin-bottom: 12px; }
  .import-card, .price { padding: 22px; }
  .ask-bubble { height: 46px; font-size: 15px; padding: 0 16px; right: 0; }
  .tabs button { padding: 8px 13px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
