@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  color: #fcf4ff;
  background: #16101b;
  font-family: 'DM Sans', system-ui, sans-serif;
  --muted: #d1c1d8;
  --lavender: #e9bfff;
  --line: #e5b4f73a;
  --lime: #a9e85c;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lavender); outline-offset: 4px; }
.wrap { width: min(calc(100% - 64px), 1210px); margin-inline: auto; }
.site-header, .module-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px 26px;
  min-height: 68px;
  padding-block: 12px;
}
.site-header { border-bottom: 1px solid var(--line); }
.site-header > a:not(.wordmark), .module-nav a { color: var(--muted); font-size: .89rem; font-weight: 700; }
.site-header > a:hover, .module-nav a:hover { color: var(--lavender); }
.wordmark { font: 700 26px/1 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: -.06em; color: #dcefd4; }
.wordmark .con { color: #74a83a; }
.wordmark .ia { color: #84d03e; }
.opening {
  background: radial-gradient(ellipse at 20% 10%, #593565a0, transparent 62%), linear-gradient(180deg, #23172d, #16101b);
  padding-block: clamp(23px, 3.6vw, 45px) clamp(37px, 6vw, 76px);
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 9px; color: var(--muted); font-size: .87rem; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--lavender); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  margin-top: clamp(20px, 4.2vw, 58px);
}
h1, h2 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: -.053em; text-wrap: balance; }
h1 { color: var(--lavender); font-size: clamp(2.7rem, 5.5vw, 5.35rem); line-height: .98; }
h2 { font-size: clamp(1.85rem, 3.6vw, 3.45rem); line-height: 1.06; }
.lead { margin-top: 20px; font-size: clamp(1.11rem, 1.9vw, 1.5rem); font-weight: 700; line-height: 1.32; text-wrap: pretty; }
.intro { max-width: 54ch; margin-top: 13px; color: var(--muted); line-height: 1.6; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .89rem;
  font-weight: 700;
}
.button:hover { border-color: var(--lavender); }
.button.primary { border-color: var(--lime); background: var(--lime); color: #152010; }
.button.primary:hover { background: #c1f285; }
.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #251a2d;
}
.shot a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 8px;
  background: #181321;
  cursor: zoom-in;
}
.shot.dark a { background: #181321; }
.shot a::after {
  content: '↗';
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: #251a2d;
  color: white;
  font-size: 1.1rem;
}
.shot a:hover::after { background: #593868; }
.shot a:focus-visible { outline-offset: -4px; }
.shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: 410px; object-fit: contain; }
.shot figcaption { padding: 12px 15px; }
.shot figcaption strong { display: block; }
.shot figcaption p { margin-top: 3px; color: var(--muted); font-size: .88rem; line-height: 1.44; }
.hero .shot figcaption { font-weight: 700; font-size: .89rem; }
.section { padding-block: clamp(34px, 5vw, 69px); border-top: 1px solid var(--line); }
.section h2 { margin-bottom: clamp(20px, 3vw, 35px); }
#funciones { scroll-margin-top: 15px; }
.features, .workflow { display: grid; gap: clamp(15px, 2.2vw, 25px); }
.features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.utilities { display: grid; gap: 14px; }
.utility {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(16px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #211827;
}
.utility-copy h3 {
  color: var(--lavender);
  font: 700 clamp(1.3rem, 2.55vw, 2.1rem)/1.12 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.utility-copy p { max-width: 52ch; margin-top: 12px; color: var(--muted); line-height: 1.6; }
.utility-shot { min-width: 0; }
.utility-shot a { min-height: 0; }
.utility-shot img { max-height: none; }
.utility--portrait { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
.utility--portrait .utility-shot { justify-self: center; width: min(100%, 240px); }
.utility--text { grid-template-columns: minmax(0, 1fr); }
.hero--text { grid-template-columns: minmax(0, 1fr); }
.hero--text > div { max-width: 68ch; }
.utility-copy a:not(.button), .feature-copy a, .workflow a { text-decoration: underline; text-underline-offset: 3px; }
.utility-copy a:not(.button):hover, .feature-copy a:hover, .workflow a:hover { color: var(--lavender); }
.more-features { margin: clamp(27px, 5vw, 48px) 0 15px; font-size: 1.16rem; font-weight: 700; }
.feature {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #211827;
}
.feature-visual { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.feature-visual a { min-height: 0; aspect-ratio: 2.05; background: #181321; }
.feature-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 8px;
  object-fit: contain;
}
.feature-copy { padding: clamp(15px, 2vw, 25px); }
.feature h4, .workflow h3 { color: var(--lavender); font-size: 1.12rem; line-height: 1.22; }
.feature p, .workflow p { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.workflow { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.workflow li { position: relative; padding: 15px 0 0 39px; border-top: 1px solid var(--line); }
.workflow li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #382644;
  color: var(--lavender);
  font-weight: 700;
}
.closing { text-align: center; }
.closing h2 { margin-bottom: 16px; }
.closing .actions { justify-content: center; }
.module-nav { border-top: 1px solid var(--line); }
.capture-dialog {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #211827;
  color: #fcf4ff;
}
.capture-dialog::backdrop { background: #0b080ee3; }
.dialog-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 10px 14px;
  background: #211827;
}
.dialog-bar h2 { font-size: 1.05rem; letter-spacing: -.02em; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.capture-original { display: inline-grid; place-items: center; text-align: center; font-size: .86rem; }
.dialog-bar button, .capture-original {
  min-height: 40px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
}
.capture-dialog img { display: block; width: auto; height: auto; max-width: 100%; margin-inline: auto; }
@media (min-width: 851px) {
  .turnos-page .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .turnos-page .hero > div { max-width: 65ch; }
  .turnos-page .hero .shot img { max-height: none; }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 38px); }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  .utility { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 30px); }
  .site-header { min-height: 56px; }
  .wordmark { font-size: 22px; }
  .opening h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); overflow-wrap: anywhere; }
  .breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }
  .site-header > a:not(.wordmark), .module-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .features, .workflow { grid-template-columns: 1fr; }
  .utility--portrait { grid-template-columns: minmax(0, 1fr); }
  .dialog-bar { flex-wrap: wrap; }
  .dialog-bar button, .capture-original { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
