@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;500;600;700&display=swap');

/* Maqueta de ejemplo (clínica ficticia). Tokens propios, independientes del sitio principal. */
:root {
  --c-bg: #f6fafa;
  --c-surface: #ffffff;
  --c-tint: #eaf4f3;
  --c-ink: #13262b;
  --c-ink-soft: #4d6268;
  --c-line: #d9e6e5;
  --c-brand: #0e4f5c;
  --c-brand-2: #2a9d8f;
  --c-mint: #78d1c3;
  --c-accent: #e9785b;
  --f-display: 'DM Serif Display', Georgia, serif;
  --f-body: 'Manrope', 'Segoe UI', sans-serif;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 24px 48px -28px rgba(14, 79, 92, 0.35);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.15; }
h1, h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--c-ink-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand-2);
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}
.btn-solid { background: var(--c-brand); color: #fff; box-shadow: 0 12px 24px -12px rgba(14, 79, 92, 0.6); }
.btn-solid:hover { background: #0b3f4a; transform: translateY(-1px); }
.btn-ghost { border-color: var(--c-line); color: var(--c-brand); background: var(--c-surface); }
.btn-ghost:hover { border-color: var(--c-brand-2); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* -------- Barra de demostración -------- */
.demo-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 8px 16px;
  background: var(--c-ink);
  color: #d6e4e6;
  font-size: 0.8rem;
  text-align: center;
}
.demo-bar a { color: var(--c-mint); font-weight: 600; }

/* -------- Header -------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 250, 250, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--c-brand); }
.logo-mark { width: 38px; height: 38px; }
.logo-text { font-family: var(--f-display); font-size: 1.3rem; color: var(--c-brand); }
.logo-text em { color: var(--c-brand-2); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; font-weight: 600; color: var(--c-ink-soft); }
.nav a:not(.btn):hover { color: var(--c-brand); }

/* -------- Hero -------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--c-brand); }
.hero h1 span { font-style: italic; color: var(--c-brand-2); }
.lead { font-size: 1.12rem; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
}
.hero-facts strong { display: block; color: var(--c-brand); font-size: 1.02rem; }
.hero-facts span { font-size: 0.86rem; color: var(--c-ink-soft); }

.hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.visual-blob {
  position: absolute;
  inset: 6% 4%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 30% 25%, #d5f1ec 0%, #a9e2d9 45%, #5fbfb0 100%);
  box-shadow: inset 0 -30px 60px rgba(14, 79, 92, 0.18);
}
.visual-kidney { position: relative; width: 62%; filter: drop-shadow(0 26px 30px rgba(14, 79, 92, 0.3)); }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}
.float-card small { display: block; font-size: 0.74rem; color: var(--c-ink-soft); }
.float-card strong { font-size: 0.95rem; color: var(--c-ink); }
.card-appointment { top: 10%; left: -4%; }
.card-pulse { bottom: 8%; right: -2%; flex-direction: column; align-items: flex-start; gap: 4px; }
.card-pulse svg { width: 120px; height: 32px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3cc47c; box-shadow: 0 0 0 5px rgba(60, 196, 124, 0.18); }

/* -------- Franja de confianza -------- */
.trust { background: var(--c-brand); color: #d8efec; }
.trust-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 24px;
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-row span::before { content: '✓'; color: var(--c-mint); margin-right: 8px; }

/* -------- Secciones -------- */
.section { padding: 96px 0; }
.section-tint { background: var(--c-tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--c-brand); }
.section-head-left { text-align: left; margin: 0; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service p { margin: 0; font-size: 0.95rem; }
.service-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--c-tint);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--c-brand-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; background: var(--c-surface); border-radius: var(--r); padding: 28px 24px; border: 1px solid var(--c-line); }
.steps p { margin: 0; font-size: 0.94rem; }
.step-n { display: block; font-family: var(--f-display); font-size: 2.2rem; color: var(--c-accent); line-height: 1; margin-bottom: 14px; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: 32px 26px;
  text-align: center;
}
.member span { display: block; color: var(--c-brand-2); font-weight: 700; font-size: 0.86rem; margin-bottom: 12px; }
.member p { margin: 0; font-size: 0.94rem; }
.avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--c-brand-2), var(--c-brand));
}
.avatar-b { background: linear-gradient(135deg, #f0a58f, var(--c-accent)); }
.avatar-c { background: linear-gradient(135deg, var(--c-mint), var(--c-brand-2)); }

.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 4px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--c-brand-2); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--c-brand); }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-list strong { display: block; font-size: 0.8rem; color: var(--c-brand-2); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list span { font-size: 0.95rem; }
.map {
  position: relative;
  height: 180px;
  border-radius: var(--r);
  border: 1px solid var(--c-line);
  background:
    linear-gradient(90deg, transparent 48%, #fff 48%, #fff 52%, transparent 52%),
    linear-gradient(0deg, transparent 58%, #fff 58%, #fff 62%, transparent 62%),
    linear-gradient(35deg, transparent 30%, #fff 30%, #fff 33%, transparent 33%),
    #dcebe9;
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 22px;
  height: 22px;
  background: var(--c-accent);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.84rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-bg);
  font: inherit;
  font-size: 0.95rem;
  color: var(--c-ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-brand-2); background: #fff; }
.form-msg { margin: 14px 0 0; font-size: 0.9rem; color: var(--c-brand); font-weight: 600; }

/* -------- Footer -------- */
.footer { background: var(--c-ink); color: #b9cbce; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer .logo-text { color: #fff; }
.footer .logo-text em { color: var(--c-mint); }
.footer p { color: #93a9ad; font-size: 0.85rem; max-width: 560px; margin: 0; }
.footer a { color: var(--c-mint); font-size: 0.88rem; font-weight: 600; }

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .hero-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; }
  .services, .team { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .hero-facts, .services, .team, .steps, .contact-list, .field-row { grid-template-columns: 1fr; }
  .card-appointment { left: 0; }
  .card-pulse { right: 0; }
  .logo-text { font-size: 1.1rem; }
}
