/* Sitio público Quirofrán Persico — design system (tokens de marca, Poppins). */
:root {
  --surface: #f7f4ef; --surface-raised: #ffffff; --surface-sunken: #efe9e0;
  --ink: #171619; --ink-muted: #55606e; --line: #8a95a3; --hairline: #e3ddd3;
  --spine: #16588c; --spine-strong: #104279; --spine-soft: #e3f1fa; --on-spine: #ffffff;
  --carbon: #171619; --focus-ring: #16588c;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px;
  --shadow-soft: 0 1px 2px rgba(19,32,47,.06), 0 6px 20px rgba(19,32,47,.06);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--spine); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 600; }
.overline { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 8px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap; }
.marca img { border-radius: 50%; }
.top nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.top nav a { text-decoration: none; color: var(--ink-muted); font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: var(--radius-md); white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--spine); background: var(--spine-soft); }
@media (max-width: 860px) { .top nav { display: none; } .top-in { justify-content: space-between; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: var(--radius-md); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background-color .16s ease-out, color .16s ease-out, border-color .16s ease-out; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--spine); color: var(--on-spine); }
.btn-primary:hover { background: var(--spine-strong); }
.btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--spine); color: var(--spine); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { background: var(--carbon); color: #fff; padding: 88px 0 72px; }
.hero h1, .hero .overline { color: #fff; }
.hero .overline { color: #b3dbf0; }
.hero .bajada { font-size: 18px; max-width: 640px; color: #dfe6ee; }
.hero .btn-secondary { background: transparent; color: #fff; border-color: #6a6f78; }
.hero .btn-secondary:hover { border-color: #8cbde4; color: #8cbde4; }
.hero-sm { padding: 64px 0 48px; }
.beneficios { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; }
.beneficios li { font-size: 18px; font-weight: 500; padding-left: 22px; position: relative; }
.beneficios li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: #6dadd8; }
.prueba { margin-top: 28px; font-size: 14px; color: #c9d4e2; }
.prueba a { color: #b3dbf0; }

/* Bloques */
.bloque { padding: 64px 0; }
.fondo { background: var(--surface-sunken); }
.dos { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .dos { grid-template-columns: 1fr; } }
.texto { max-width: 760px; }
.lista { padding-left: 20px; } .lista li { margin: 6px 0; }
.pasos { margin: 0; padding-left: 22px; } .pasos li { margin: 0 0 14px; }
.enlace { font-weight: 600; }
.nota { color: var(--ink-muted); font-size: 14px; margin-top: 20px; }

.problemas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.problema { display: flex; flex-direction: column; gap: 6px; background: var(--surface-raised); border-radius: var(--radius-lg); padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-soft); transition: transform .16s ease-out; }
.problema:hover { transform: translateY(-2px); }
.problema p { color: var(--ink-muted); font-size: 14px; margin: 0; flex: 1; }
.problema span { color: var(--spine); font-weight: 600; font-size: 14px; }

.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.servicio { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 24px; }
.servicio .meta { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.servicio p { color: var(--ink-muted); font-size: 14px; margin: 0; }
.precio { font-size: 28px; font-weight: 700; color: var(--spine); margin-top: 8px; }
.destacada { background: var(--carbon); color: #fff; box-shadow: none; }
.destacada h3, .destacada .precio { color: #fff; }
.destacada .meta, .destacada p { color: #c9d4e2; }

.faq details { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 0 20px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; }
.faq details p { margin: 0 0 16px; color: var(--ink-muted); }

.cta { background: var(--spine); color: #fff; padding: 56px 0; text-align: center; }
.cta h2 { color: #fff; } .cta p { color: #e3f1fa; max-width: 620px; margin: 0 auto; }
.cta .acciones { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--spine); } .cta .btn-primary:hover { background: #e3f1fa; }
.cta .btn-secondary { background: transparent; color: #fff; border-color: #b3dbf0; }

.pie { background: var(--carbon); color: #c9d4e2; padding: 40px 0; font-size: 14px; }
.pie-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.pie p { margin: 4px 0; } .pie-marca { color: #fff; font-weight: 700; font-size: 16px; }
.pie-links { display: flex; flex-direction: column; gap: 6px; } .pie a { color: #b3dbf0; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-foto { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-foto { max-height: 360px; } }
.foto { width: 100%; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-soft); }
