/* Guwy — web de presentación. Sin dependencias externas: fuentes del sistema, sin JavaScript. */

:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #eef4f1;
  --line: #e1e4de;
  --ink: #0d2523;
  --ink-2: #364e4b;
  --muted: #5b6f6c;
  --brand: #0f4d46;
  --brand-deep: #032f2e;
  --brand-soft: #dcebe5;
  --brand-text: #0f4d46;
  --btn-bg: #0f4d46;
  --btn-ink: #ffffff;
  --btn-hover: #0b3c37;
  --chip-bg: #ffffff;
  --band-bg: #0f4d46;
  --band-ink: #eaf4f0;
  --band-muted: #b9d6cd;
  --appt-1: #dcebe5;
  --appt-2: #f2e8da;
  --appt-3: #e5e7f3;
  --appt-ink: #0d2523;
  --shadow: 0 1px 2px rgb(3 47 46 / 6%), 0 12px 32px rgb(3 47 46 / 8%);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1615;
    --surface: #10211f;
    --surface-2: #132a27;
    --line: #22403b;
    --ink: #eaf3f0;
    --ink-2: #c3d3cf;
    --muted: #94a9a5;
    --brand-text: #8fd1c1;
    --brand-soft: #173a35;
    --btn-bg: #8fd1c1;
    --btn-ink: #032f2e;
    --btn-hover: #a9dfd2;
    --chip-bg: #10211f;
    --band-bg: #132a27;
    --band-ink: #eaf3f0;
    --band-muted: #a8c4bd;
    --appt-1: #1b3d38;
    --appt-2: #3a3226;
    --appt-3: #2a2d43;
    --appt-ink: #eaf3f0;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--brand-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
  box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.95rem;
}
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 0.92rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.lang:hover { color: var(--ink); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand-text); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

/* ---------- Portada ---------- */

.hero { padding: 72px 0 56px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-text);
}

h1, h2, h3 { color: var(--ink); margin: 0; }

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 750;
}

.lead {
  margin: 20px 0 0;
  font-size: 1.16rem;
  color: var(--ink-2);
  max-width: 34em;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-note { margin: 18px 0 0; font-size: 0.92rem; color: var(--muted); }

/* Ilustración del calendario */

.mock {
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mock-title { font-weight: 700; font-size: 1rem; }
.mock-sub { color: var(--muted); font-size: 0.85rem; font-weight: 500; margin-left: 8px; }
.mock-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: 999px; font-size: 0.78rem; }
.mock-tabs span { padding: 4px 10px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.mock-tabs .on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 8%); }

.mock-grid {
  display: grid;
  grid-template-columns: 40px repeat(3, minmax(0, 1fr));
  grid-template-rows: 30px repeat(10, 30px);
  column-gap: 8px;
  font-size: 0.74rem;
}

.mock-head {
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--ink-2);
  font-size: 0.8rem;
}
.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand);
}
.avatar.b { background: #8a6a3d; }
.avatar.c { background: #4c5596; }

.mock-time {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.appt {
  margin: 2px 0;
  border-radius: 9px;
  padding: 5px 8px;
  background: var(--appt-1);
  color: var(--appt-ink);
  overflow: hidden;
  line-height: 1.25;
  border-left: 3px solid var(--brand);
}
.appt b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 700;
}
.appt small { display: block; color: inherit; opacity: .72; font-size: 0.68rem; }
.appt.b { background: var(--appt-2); border-left-color: #8a6a3d; }
.appt.c { background: var(--appt-3); border-left-color: #4c5596; }

.tag {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgb(255 255 255 / 70%);
  color: #0f4d46;
}

.toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.toast .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-text);
  flex-shrink: 0;
}
.toast small { display: block; color: var(--muted); font-weight: 500; font-size: 0.74rem; }
.toast-1 { right: -30px; top: 268px; }
.toast-2 { left: 28px; bottom: -26px; }

.mock-caption { margin: 12px 2px 0; font-size: 0.74rem; color: var(--muted); text-align: right; }

/* ---------- Secciones ---------- */

section { scroll-margin-top: 84px; }

.section { padding: 76px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 750;
}
.section-head p { margin: 14px 0 0; color: var(--ink-2); font-size: 1.08rem; }

/* Para quién */

.audience { padding: 8px 0 64px; }
.audience h2 { font-size: 1rem; font-weight: 650; color: var(--muted); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li {
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--ink-2);
}

/* Funciones */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-text);
  margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
.feature p { margin: 8px 0 0; color: var(--ink-2); font-size: 0.97rem; }
.footnote { margin: 22px 0 0; font-size: 0.86rem; color: var(--muted); }

/* Cómo funciona */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 750;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; font-weight: 700; }
.step p { margin: 8px 0 0; color: var(--ink-2); font-size: 0.98rem; }

/* Seguridad */

.band { background: var(--band-bg); color: var(--band-ink); padding: 72px 0; }
.band .section-head h2 { color: var(--band-ink); }
.band .section-head p { color: var(--band-muted); }
.band .eyebrow { color: var(--band-muted); }
.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust h3 { color: var(--band-ink); font-size: 1.04rem; font-weight: 700; }
.trust p { margin: 8px 0 0; color: var(--band-muted); font-size: 0.96rem; }
.trust .icon { color: var(--band-ink); margin-bottom: 12px; }
.trust .icon svg { width: 26px; height: 26px; }

/* Preguntas frecuentes */

.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  font-weight: 650;
  font-size: 1.06rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 44em; }

/* Contacto */

.contact-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 48px;
  box-shadow: var(--shadow);
}
.contact-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.022em; font-weight: 750; }
.contact-card p { margin: 12px 0 0; color: var(--ink-2); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.contact-list a { font-weight: 650; font-size: 1.05rem; }

/* ---------- Pie ---------- */

.site-footer {
  background: #032f2e;
  color: #cfe2dc;
  padding: 56px 0 36px;
  margin-top: 76px;
  font-size: 0.95rem;
}
.site-footer a { color: #eaf4f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin: 14px 0 0; color: #a9c7bf; max-width: 22em; }
.footer-col h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #8fb6ac; margin-bottom: 12px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-legal {
  border-top: 1px solid rgb(255 255 255 / 12%);
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #a9c7bf;
  font-size: 0.86rem;
}
.footer-legal p { margin: 0; }

/* ---------- Páginas de texto (privacidad, 404) ---------- */

.doc { padding: 56px 0 24px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.doc .updated { color: var(--muted); margin: 10px 0 34px; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc address { font-style: normal; color: var(--ink-2); }

.notfound { padding: 96px 0 40px; text-align: center; }
.notfound .lead { margin-inline: auto; }
.notfound .cta-row { justify-content: center; }

/* ---------- Adaptación a pantallas pequeñas ---------- */

@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .toast-1 { right: 12px; top: auto; bottom: -26px; }
  .toast-2 { left: 12px; bottom: -26px; }
  .mock { margin-bottom: 18px; padding-bottom: 36px; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  body { font-size: 1rem; }
  .section { padding: 60px 0; }
  .features, .trust { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .brand img { height: 26px; }
  .header-actions .btn { display: none; }
  .mock-grid { grid-template-columns: 34px repeat(2, minmax(0, 1fr)); }
  .mock-grid .col-c { display: none; }
  .toast { font-size: 0.76rem; padding: 8px 12px; }
  .toast-1 { display: none; }
  .mock-sub { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Posición de las citas en la ilustración (sin estilos en línea, por la política de seguridad) */
.c1 { grid-column: 1; } .c2 { grid-column: 2; } .c3 { grid-column: 3; } .c4 { grid-column: 4; }
.r2 { grid-row-start: 2; } .r3 { grid-row-start: 3; } .r4 { grid-row-start: 4; } .r5 { grid-row-start: 5; }
.r6 { grid-row-start: 6; } .r7 { grid-row-start: 7; } .r8 { grid-row-start: 8; } .r9 { grid-row-start: 9; }
.r10 { grid-row-start: 10; } .r11 { grid-row-start: 11; }
.s1 { grid-row-end: span 1; } .s2 { grid-row-end: span 2; } .s3 { grid-row-end: span 3; }
.appt.s1 small, .appt.s1 .tag, .appt.s2 .tag { display: none; }
.appt.s1 b { -webkit-line-clamp: 1; line-clamp: 1; }
