:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  --wf-night: #061225;
  --wf-gold: #edc67c;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
:where(a, button):focus-visible { outline: 2px solid #88c3ff; outline-offset: 4px; }
h1, h2, p { margin: 0; }

.demos-page {
  color-scheme: dark;
  color: #f4f6fc;
  background: radial-gradient(ellipse 840px 660px at 50% 290px, #0b2342 0%, transparent 100%), var(--wf-night);
}
.portal { padding-bottom: clamp(6px, 1.3svh, 14px); }
.masthead { width: min(100%, 62svh, 880px); margin-inline: auto; }
.brand-art {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
}
.masthead .brand-art {
  mask-image: linear-gradient(to bottom, #000 75%, transparent), linear-gradient(to right, transparent, #000 13% 87%, transparent);
  mask-composite: intersect;
}

.catalog { width: min(calc(100% - clamp(32px, 8vw, 96px)), 1120px); margin-inline: auto; }
.catalog-footer {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}
.contact {
  display: inline-flex;
  align-items: center;
  gap: .48em;
  justify-content: center;
  padding: .52em .85em;
  border: 1px solid #e5bb6b71;
  border-radius: 999px;
  color: #fff4dc;
  font-size: clamp(.78rem, 1.5vw, .95rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.contact:hover { border-color: var(--wf-gold); }
.contact span { color: #8be5a4; }
.intro {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.6vw, 22px);
  margin-bottom: clamp(7px, 1.35svh, 14px);
  padding: clamp(6px, 1.15svh, 13px) clamp(10px, 3vw, 35px);
  border: 1px solid #fff;
  border-radius: clamp(16px, 3vw, 28px);
  color: #101d3a;
  background: radial-gradient(ellipse at 14% 0%, #fff 0%, transparent 62%),
    linear-gradient(116deg, #f7f8fe 0%, #e0e9fb 100%);
  box-shadow: inset 0 2px 5px #fffc, 0 8px 22px #02081755;
}
.intro-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(35px, 5.7svh, 61px);
  aspect-ratio: 1.2;
  border: 1px solid #8955de;
  border-radius: clamp(12px, 2vw, 20px);
  background: radial-gradient(ellipse at 12% 5%, #d6a1fa, transparent 76%),
    linear-gradient(145deg, #a570f0, #6537ca);
  box-shadow: inset 1px 1px 3px #fff8, inset 0 -2px 3px #3f17906b, 0 4px 9px #6537ca36;
}
.intro-icon::before {
  content: "";
  width: 34%;
  aspect-ratio: .8;
  margin-left: 5%;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
h1 { font-size: clamp(1.65rem, 4.1vw, 2.75rem); line-height: 1.1; letter-spacing: -.04em; }
h1:focus { outline: none; }
.intro h1 { font-size: clamp(1rem, 2.6svh, 1.8rem); }
.intro p { margin-top: 3px; color: #263650; font-size: clamp(.74rem, 1.65svh, 1rem); line-height: 1.25; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.45svh, 16px); }
.card {
  --accent: #1d68cc;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: clip;
  padding: 5px;
  border: 1px solid #fff;
  border-radius: 21px;
  color: #101e38;
  background: linear-gradient(148deg, #fff 68%, color-mix(in srgb, var(--accent) 8%, #fff));
  box-shadow: 0 12px 28px #03081266;
}
.card:focus-within { border-color: #9ccaff; }
.card.pink { --accent: #ba2963; }
.card.amber { --accent: #a75508; }
.card.teal { --accent: #087c82; }
.card.violet { --accent: #6d37bd; }
.card.green { --accent: #26803f; }
.photo { height: clamp(36px, 12svh, 118px); width: 100%; overflow: hidden; border-radius: 15px; background: #e2eaf2; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card:has([data-demo="veterinaria"]) .photo img { object-position: center 10%; }
.card:has([data-demo="tienda"]) .photo img { object-position: center 24%; }
.card-content { display: flex; flex: 1; gap: 8px; align-items: flex-start; padding: clamp(5px, 1.1svh, 12px); }
.sector-icon {
  flex: none;
  width: clamp(24px, 4.4svh, 46px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--accent) 20%, #fff));
  border: 1px solid color-mix(in srgb, var(--accent) 19%, #fff);
  border-radius: 50%;
  box-shadow: 0 3px 8px #173c681a;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
}
.card-copy { flex: 1; min-width: 0; }
.card h2 { font-size: clamp(.86rem, 2.3svh, 1.4rem); letter-spacing: -.028em; line-height: 1.12; }
.card p { margin: 3px 0 6px; color: #30415b; line-height: 1.22; font-size: clamp(.72rem, 1.62svh, .98rem); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
.resume-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: .34em .76em;
  border: 1px solid #158254;
  border-radius: 999px;
  background: linear-gradient(145deg, #defbe9, #b9efd3);
  color: #075c3b;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 3px 9px #08744724;
}
.resume-demo:hover { background: #a5e9c4; }
.demo-button, .page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 32px;
  padding: .34em .76em;
  border-radius: 9px;
  border: 1px solid #8ca9cc75;
  background: #182e4b;
  color: #edf4ff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .18s ease, border-color .18s ease;
}
button.demo-button {
  cursor: pointer;
  min-width: 94px;
  border: 1px solid #1463cb;
  border-radius: 999px;
  background: linear-gradient(#2475dc, #124bad);
  color: #fff;
  font-family: inherit;
  font-size: clamp(.71rem, 1.58svh, .88rem);
  box-shadow: inset 0 1px 0 #ffffff45, 0 3px 8px #1457ad26;
}
.demo-button:hover { background: #155ac0; border-color: #0f4cae; }
.page-button[href]:hover { border-color: #a6c5ec; background-color: #254365; }
.demo-button span, .page-button span { font-size: 1.3em; line-height: .75; }
.coming-soon { color: #4e607a; font-size: .79rem; font-weight: 650; padding: 0 .28em; }

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  margin-top: clamp(7px, 1.5svh, 15px);
  padding-top: 4px;
  border-top: 1px solid #96b7e43b;
}
#previous { justify-self: start; }
#next { justify-self: end; }
.page-button[data-inactive] { color: #9caec7; border-color: #8ca9cc35; background: #101f34; }
.page-position { display: grid; justify-items: center; gap: 3px; color: #c5d4e9; font-size: .82rem; }
.dots { display: flex; gap: 2px; }
.dots a { display: grid; place-items: center; width: 25px; height: 18px; border-radius: 999px; }
.dots a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8296b3; }
.dots a[aria-current="page"]::before { background: var(--wf-gold); box-shadow: 0 0 0 3px #edc67c26; }

@media (max-width: 680px) and (orientation: portrait) {
  .masthead { width: min(100%, 44svh, 380px); }
  .catalog { width: calc(100% - 20px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 3px; border-radius: 12px; }
  .photo { height: clamp(27px, 4.7svh, 56px); border-radius: 9px; }
  .card-content { padding: 5px; gap: 5px; }
  .sector-icon { display: none; }
  .card h2 { font-size: clamp(.81rem, 2.1svh, 1rem); }
  .coming-soon { font-size: .65rem; }
  .page-button { font-size: .78rem; }
}
@media (max-width: 680px) and (max-height: 700px) and (orientation: portrait) {
  .portal { padding-bottom: 4px; }
  .masthead { width: min(100%, 35svh, 250px); }
  .intro { padding-block: 5px; margin-bottom: 6px; }
  .intro-icon { width: 30px; }
  .cards { gap: 6px; }
  .photo { height: clamp(25px, 4.8svh, 33px); }
  .card-content { padding: 3px 4px; }
  .card p { margin-block: 2px 3px; font-size: .69rem; }
  .card-actions { gap: 2px 5px; }
  button.demo-button, .page-button { min-height: 27px; }
}
@media (max-height: 610px) {
  .portal { padding-bottom: 4px; }
  .card p { margin-block: 2px 4px; }
  button.demo-button, .page-button { min-height: 27px; }
  .catalog-footer { margin-top: 4px; }
  .contact { padding-block: .22em; }
}
@media (max-width: 340px) and (max-height: 610px) and (orientation: portrait) {
  .photo { height: 21px; }
  .card-content { padding-block: 2px; }
  .card p { line-height: 1.14; }
  .card h2 { font-size: .75rem; }
  .card-actions { gap: 0 4px; }
  button.demo-button { min-height: 25px; }
  .intro { gap: 7px; }
  .intro-icon { width: 26px; }
}
@media (max-height: 460px) and (orientation: landscape) {
  .masthead { width: min(100%, 40svh); }
  .intro { margin-bottom: 5px; padding-block: 4px; }
  .card { padding: 3px; border-radius: 12px; flex-direction: row; align-items: stretch; }
  .photo { flex: 0 0 26%; height: auto; min-height: 40px; border-radius: 8px; }
  .photo img { object-position: center; }
  .sector-icon { display: none; }
  .card-content { padding: 4px; }
}
@media (min-width: 700px) and (max-height: 460px) and (orientation: landscape) {
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card { flex-direction: column; }
  .photo { flex: none; height: clamp(32px, 12.5svh, 57px); }
  button.demo-button { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-button, .page-button { transition: none; }
}
