/* Page sections: hero, showcase, bento, price statement, steps, CTA, and the inner pages */

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--slate-deep);
  color: var(--color-on-dark);
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 6vw, 7.5rem);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-12); }
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: var(--space-6);
}

.hero__title em { font-style: normal; color: var(--mustard); }
.hero--colonias .hero__title em { color: var(--mint); }
.hero--medida .hero__title em { color: var(--rust); }

/* "llega volando": the word streaks in from the right edge of the screen like a bird diving
   across, flying low just above where it will land. The lead letter flies first and the rest
   trail behind it, so the word stretches out at speed, then each letter brakes, overshoots a
   touch and drops into place with a small impact. Three nested layers per letter:
   the outer one travels across, the middle one sets the flight height and the drop,
   the inner one adds the speed (forward lean, stretch, motion blur) and the impact. */

/* Above the toucan, so the bird is visible as it crosses it */
.flying { position: relative; z-index: 2; display: inline-block; white-space: nowrap; }
.flying__word { display: inline-block; }

.flying__letter,
.flying__letter > span,
.flying__letter > span > span { display: inline-block; }

.flying__letter { animation: swoop-across 1.05s linear var(--delay) both; }
.flying__letter > span { animation: swoop-height 1.05s linear var(--delay) both; }

.flying__letter > span > span {
  transform-origin: 50% 100%;
  animation: swoop-speed 1.05s linear var(--delay) both;
}

/* Each letter leaves a beat after the one ahead of it (classes, not inline styles, for the CSP) */
.flight-0 { --delay: 0.300s; }
.flight-1 { --delay: 0.335s; }
.flight-2 { --delay: 0.370s; }
.flight-3 { --delay: 0.405s; }
.flight-4 { --delay: 0.440s; }
.flight-5 { --delay: 0.475s; }
.flight-6 { --delay: 0.510s; }
.flight-7 { --delay: 0.545s; }
.flight-8 { --delay: 0.580s; }
.flight-9 { --delay: 0.615s; }
.flight-10 { --delay: 0.650s; }
.flight-11 { --delay: 0.685s; }
.flight-12 { --delay: 0.720s; }
.flight-13 { --delay: 0.755s; }
.flight-14 { --delay: 0.790s; }
.flight-15 { --delay: 0.825s; }
.flight-16 { --delay: 0.860s; }
.flight-17 { --delay: 0.895s; }
.flight-18 { --delay: 0.930s; }
.flight-19 { --delay: 0.965s; }

@keyframes swoop-across {
  0%   { transform: translateX(100vw); animation-timing-function: cubic-bezier(0.1, 0.75, 0.25, 1); }
  58%  { transform: translateX(-0.12em); animation-timing-function: ease-in-out; }
  74%  { transform: translateX(0.03em); }
  100% { transform: none; }
}

@keyframes swoop-height {
  0%   { transform: translateY(-0.6em); animation-timing-function: ease-in-out; }
  22%  { transform: translateY(-0.4em); animation-timing-function: ease-in-out; }
  40%  { transform: translateY(-0.5em); animation-timing-function: ease-in-out; }
  58%  { transform: translateY(-0.38em); animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.5); }
  74%  { transform: translateY(0.05em); animation-timing-function: ease-out; }
  86%  { transform: translateY(-0.04em); }
  100% { transform: none; }
}

@keyframes swoop-speed {
  0%   { opacity: 0; transform: skewX(24deg) scaleX(1.5); filter: blur(4px); }
  6%   { opacity: 1; }
  40%  { transform: skewX(14deg) scaleX(1.2); filter: blur(1.5px); }
  58%  { transform: skewX(-6deg) rotate(-4deg); filter: blur(0); }
  74%  { transform: scale(1.08, 0.88); }
  86%  { transform: scale(0.98, 1.03); }
  100% { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .flying__letter, .flying__letter > span, .flying__letter > span > span { animation: none; }
}

.hero__lead {
  max-width: 52ch;
  font-size: var(--text-lg);
  color: var(--color-on-dark-muted);
  margin-bottom: var(--space-8);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero__note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-on-dark-muted);
}

/* The toucan arrives piece by piece, then keeps gliding */

.hero__bird {
  width: min(100%, 520px);
  margin-inline: auto;
  order: -1;
  max-width: 180px;
  /* The toucan fills its viewBox edge to edge: without this, the svg would clip the pieces as they fly in and
     the whole bird as it glides */
  overflow: visible;
}

@media (min-width: 900px) { .hero__bird { order: 0; max-width: 400px; } }

.bird { animation: glide 7s ease-in-out 1.4s infinite alternate; transform-origin: center; }

.bird__piece {
  transform-box: fill-box;
  transform-origin: center;
  animation: fly-in 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}

.bird__piece:nth-child(1) { --from: -120px, -80px; animation-delay: 0.05s; }
.bird__piece:nth-child(2) { --from: 120px, -120px; animation-delay: 0.15s; }
.bird__piece:nth-child(3) { --from: 160px, 120px; animation-delay: 0.25s; }
.bird__piece:nth-child(4) { --from: 40px, -160px; animation-delay: 0.35s; }
.bird__piece:nth-child(5) { --from: 0, 0; animation-delay: 0.75s; animation-name: blink-in; }

@keyframes fly-in {
  from { opacity: 0; transform: translate(var(--from)) rotate(-90deg) scale(0.4); }
  to { opacity: 1; transform: none; }
}

@keyframes blink-in {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: none; }
}

@keyframes glide {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-14px) rotate(-2deg); }
}

/* Loose quarter circles floating behind the hero */

.hero__shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
  position: absolute;
  width: var(--size, 80px);
  height: var(--size, 80px);
  background: var(--fill, var(--mustard));
  opacity: var(--alpha, 0.14);
  animation: drift var(--speed, 14s) ease-in-out infinite alternate;
}

.shape--tl { border-radius: 100% 0 0 0; }
.shape--tr { border-radius: 0 100% 0 0; }
.shape--br { border-radius: 0 0 100% 0; }
.shape--bl { border-radius: 0 0 0 100%; }

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(var(--dx, 30px), var(--dy, -40px)) rotate(var(--turn, 90deg)); }
}

/* Inner page heroes */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 3vw, 4rem);
}

.page-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; max-width: 18ch; }
.page-hero__lead { max-width: 60ch; font-size: var(--text-lg); color: var(--color-text-muted); }

.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 30px;
  width: 220px;
  height: 220px;
  background: var(--mustard);
  border-radius: 100% 0 0 0;
  opacity: 0.35;
  z-index: -1;
}

@media (max-width: 719px) { .page-hero::after { width: 120px; height: 120px; right: -40px; } }

/* Showcase: a browser frame around the app screenshot */

.browser {
  border-radius: var(--radius-lg);
  background: var(--eye);
  padding: 0 10px 10px;
  box-shadow: 0 40px 80px rgb(0 0 0 / 0.35);
}

.browser__bar { display: flex; align-items: center; gap: 8px; height: 38px; padding-inline: 8px; }
.browser__dot { width: 12px; height: 12px; }
.browser__dot:nth-child(1) { background: var(--rust); border-radius: 100% 0 0 0; }
.browser__dot:nth-child(2) { background: var(--mustard); border-radius: 0 100% 0 0; }
.browser__dot:nth-child(3) { background: var(--mint); border-radius: 0 0 100% 0; }

.browser__url {
  margin-left: var(--space-3);
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.08);
  color: var(--color-on-dark-muted);
  font-size: 0.75rem;
}

.browser .shot { border-radius: 18px; border-style: solid; }

.showcase { display: grid; gap: var(--space-10); align-items: center; }

@media (min-width: 1000px) {
  .showcase { grid-template-columns: 1fr 260px; }
}

.showcase__phone { justify-self: center; width: 100%; max-width: 220px; }
@media (min-width: 1000px) { .showcase__phone { max-width: 260px; } }
.showcase__phone .shot { width: 100%; }

/* A phone around a phone screenshot: the dark bezel of the browser frame, and the camera pill over a status bar strip */
.phone {
  position: relative;
  padding: 9px;
  border-radius: 44px;
  background: var(--eye);
  box-shadow: 0 40px 80px rgb(0 0 0 / 0.35);
}

.phone .shot { border: 0; border-radius: 35px; padding-top: 34px; background: var(--white); }

.phone__camera {
  position: absolute;
  top: 19px;
  left: 50%;
  z-index: 1;
  width: 34%;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--eye);
  translate: -50% 0;
}

/* Bento: the feature grid on the home page */

.bento { display: grid; gap: var(--space-4); }

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento__item { grid-column: span 3; }
}

@media (min-width: 1000px) {
  .bento__item { grid-column: span 2; }
  .bento__item--wide { grid-column: span 4; }
}

.bento__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.bento__item h3 { margin: var(--space-3) 0 0; }
.bento__item p { margin: 0; color: var(--color-text-muted); }
.bento__item .shot { margin-top: auto; aspect-ratio: 16 / 7; }
/* min-height: 0, or as a flex item the frame grows to the whole screenshot instead of cropping it */
.bento__item .shot--filled { aspect-ratio: 16 / 7; min-height: 0; border-color: transparent; }
.bento__item .shot--filled img { height: 100%; object-position: top left; }

.bento__item--mustard { background: var(--mustard); border-color: transparent; }
.bento__item--mint { background: var(--mint); border-color: transparent; }
.bento__item--mustard p, .bento__item--mint p { color: rgb(35 33 26 / 0.8); }
.bento__item--slate { background: var(--slate); border-color: transparent; color: var(--color-on-dark); }
.bento__item--rust { background: var(--rust); border-color: transparent; color: var(--white); }
.bento__item--slate p, .bento__item--rust p { color: rgb(255 255 255 / 0.85); }
.bento__item--slate .shot, .bento__item--rust .shot { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.25); }

/* Split rows: text beside an image */

.split { display: grid; gap: var(--space-8); align-items: center; }
.split + .split { margin-top: var(--space-section); }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .split--reverse > :first-child { order: 2; }
}

.split h2 { font-size: var(--text-2xl); }
.split p { color: var(--color-text-muted); font-size: var(--text-lg); }

/* Colonias: town hall and clinics, the steps and then the calendar beside what the clinic gets */
.clinics-split { margin-top: var(--space-16); align-items: start; }
.clinics-split h3 { margin-bottom: var(--space-4); font-size: var(--text-xl); }
.clinics-split .ticks + .shot { margin-top: var(--space-8); }

/* The price statement: one giant zero */

.zero {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) { .zero { grid-template-columns: auto 1fr; gap: var(--space-16); } }

.zero__figure {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(8rem, 4rem + 18vw, 17rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: var(--mustard);
}

.zero__figure small { font-size: 0.35em; letter-spacing: -0.03em; color: var(--color-on-dark); }

.zero__figure::before {
  content: "";
  position: absolute;
  left: -0.1em;
  bottom: -0.12em;
  width: 0.45em;
  height: 0.45em;
  background: var(--rust);
  border-radius: 0 0 0 100%;
  z-index: -1;
}

.zero h2 { font-size: var(--text-3xl); }
.zero div p { color: var(--color-on-dark-muted); font-size: var(--text-lg); }

/* Reasons: numbered differentiators */

.reasons { display: grid; gap: var(--space-4); counter-reset: reason; }

@media (min-width: 720px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(3, 1fr); } }

.reason {
  counter-increment: reason;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 2px solid var(--eye);
  background: var(--cream);
}

.reason::before {
  content: "0" counter(reason);
  display: block;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--rust);
}

.reason p { color: var(--color-text-muted); margin: 0; }

/* Steps */

.steps { display: grid; gap: var(--space-6); margin: 0; padding: 0; list-style: none; counter-reset: step; }

@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { counter-increment: step; }

.step::before {
  content: counter(step);
  display: grid;
  place-items: end start;
  width: 72px;
  height: 72px;
  padding: 0 0 10px 14px;
  margin-bottom: var(--space-5);
  background: var(--mustard);
  border-radius: 100% 0 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.step:nth-child(2)::before { background: var(--mint); border-radius: 0 100% 0 0; place-items: end start; }
.step:nth-child(3)::before { background: var(--rust); color: var(--white); border-radius: 0 0 100% 0; place-items: start; padding: 12px 0 0 14px; }
.step:nth-child(4)::before { background: var(--slate); color: var(--white); border-radius: 0 0 0 100%; place-items: start end; padding: 12px 14px 0 0; }

@media (min-width: 720px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step p { color: var(--color-text-muted); }

/* Final call to action */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 4vw, 5rem);
  border-radius: var(--radius-lg);
  background: var(--rust);
  color: var(--white);
}

.cta-band h2 { font-size: var(--text-3xl); max-width: 16ch; }
.cta-band p { max-width: 50ch; font-size: var(--text-lg); color: rgb(255 255 255 / 0.9); }
.cta-band .btn--ghost { color: var(--white); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); position: relative; }

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -40px;
  bottom: -40px;
  background: var(--mustard);
  border-radius: 100% 0 0 0;
}

.cta-band::after { width: 130px; height: 130px; right: 220px; bottom: -40px; background: var(--slate); border-radius: 0 100% 0 0; }

@media (max-width: 719px) {
  .cta-band::before { width: 140px; height: 140px; }
  .cta-band::after { display: none; }
}

/* Pricing */

.plans { display: grid; gap: var(--space-5); align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--color-border);
}

.plan--featured { background: var(--slate-deep); color: var(--color-on-dark); border-color: transparent; box-shadow: var(--shadow-lg); }
.plan--featured .plan__desc { color: var(--color-on-dark-muted); }
.plan__name { margin: 0; font-size: var(--text-xl); }
.plan__price { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.plan__price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; opacity: 0.75; }
.plan__desc { color: var(--color-text-muted); margin: 0; }
.plan .ticks { margin-bottom: var(--space-4); }
.plan .btn { margin-top: auto; }

/* Contact */

.contact-grid { display: grid; gap: var(--space-10); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: var(--space-16); } }

.contact-panel {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--color-border);
}

.whatsapp-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--slate-deep);
  color: var(--color-on-dark);
}

.whatsapp-card p { color: var(--color-on-dark-muted); }

/* Blog */

.post-list { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .post-list { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card h2, .post-card h3 { font-size: var(--text-xl); margin: 0; }
.post-card p { color: var(--color-text-muted); margin: 0; }
.post-card .shot { aspect-ratio: 16 / 9; margin-bottom: var(--space-2); }

.meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }

.article-header { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) var(--space-8); }
.article-header h1 { font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }
.article-header .shot { margin-top: var(--space-8); }

/* Security page: the roadmap of what's coming */

.soon { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .soon { grid-template-columns: repeat(2, 1fr); } }

.soon li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 2px dashed var(--sand-deep);
  font-weight: 600;
}

/* 404 */

.not-found { text-align: center; padding-block: var(--space-section); }
.not-found__code { font-family: var(--font-display); font-size: clamp(6rem, 3rem + 14vw, 12rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; color: var(--rust); }
.not-found .btn { margin-top: var(--space-6); }

.hero__shape--1 { --size: 180px; --fill: var(--mustard); --dx: 40px; --dy: 30px; top: 8%; left: -60px; }
.hero__shape--2 { --size: 90px; --fill: var(--rust); --speed: 11s; --alpha: 0.22; top: 70%; left: 40%; }
.hero__shape--3 { --size: 240px; --fill: var(--mint); --speed: 17s; --turn: -60deg; bottom: -90px; right: -60px; }
.hero__shape--4 { --size: 60px; --fill: var(--mustard); --speed: 9s; --alpha: 0.3; --dx: -40px; top: 14%; right: 38%; }

.section-more { margin: var(--space-10) 0 0; text-align: center; }

.split .glyph { margin-bottom: var(--space-5); }
.split { scroll-margin-top: 90px; }

/* Comparison table (Por qué Tuka) */

.compare { display: grid; gap: var(--space-2); }

.compare__row {
  display: grid;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  background: var(--cream);
}

.compare__row--head { display: none; }
.compare__aspect { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.compare__tuka { font-weight: 600; }
.compare__tuka::before { content: "Tuka · "; color: var(--rust-ink); font-weight: 700; }
.compare__others { color: var(--color-text-muted); }
.compare__others::before { content: "Otros · "; font-weight: 600; }

@media (min-width: 800px) {
  .compare__row { grid-template-columns: 1fr 1.3fr 1.3fr; align-items: center; }
  .compare__row--head { display: grid; background: transparent; font-weight: 700; padding-block: 0; }
  .compare__row--head .compare__tuka { color: var(--rust-ink); font-family: var(--font-display); font-size: var(--text-xl); }
  .compare__tuka::before, .compare__others::before { content: none; }
  .compare__row:not(.compare__row--head) .compare__tuka { position: relative; padding-left: 30px; }
  .compare__row:not(.compare__row--head) .compare__tuka::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    background: var(--mint);
    border-radius: 0 100% 0 0;
  }
}

.section--dark .split p { color: var(--color-on-dark-muted); }

.contact-aside { display: grid; gap: var(--space-6); align-content: start; }
.contact-aside h2 { font-size: var(--text-xl); }
.whatsapp-card .glyph { margin-bottom: var(--space-4); }
.contact-aside__more { padding-inline: var(--space-2); }

/* Thank-you page: the toucan hops for joy three times, then settles with a happy eye */

.thanks__bird { display: block; width: 112px; margin: 0 auto var(--space-6); overflow: visible; }

.happy-bird {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: happy-hop 1.9s ease-in-out 0.2s both;
}

.happy-bird__eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: eye-close 0.18s ease-in 0.55s both;
}

.happy-bird__smile {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: smile-draw 0.3s ease-out 0.7s forwards;
}

@keyframes happy-hop {
  0%   { transform: none; }
  8%   { transform: scale(1.08, 0.9); }
  20%  { transform: translateY(-46px) rotate(-7deg) scale(0.96, 1.05); }
  32%  { transform: scale(1.07, 0.92); }
  44%  { transform: translateY(-34px) rotate(7deg) scale(0.97, 1.04); }
  56%  { transform: scale(1.05, 0.94); }
  68%  { transform: translateY(-18px) rotate(-3deg); }
  80%  { transform: scale(1.02, 0.97); }
  100% { transform: none; }
}

@keyframes eye-close { to { transform: scaleY(0); opacity: 0; } }
@keyframes smile-draw { to { stroke-dashoffset: 0; } }
.thanks__actions { justify-content: center; margin-top: var(--space-6); }

.page-hero + .section--tight { padding-top: 0; }

/* The other product, introduced on a product's home: text beside four of its glyphs */

/* minmax(0, …): a grid column is otherwise never narrower than its widest content, and on a 320px phone the
   button pushed the text past the card and the page sideways. The button's label wraps instead (below). */
.product-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--mint);
  color: var(--eye);
}

@media (min-width: 900px) { .product-promo { grid-template-columns: 1.4fr 1fr; gap: var(--space-16); } }

.product-promo h2 { font-size: var(--text-3xl); max-width: 18ch; }
.product-promo p { max-width: 52ch; font-size: var(--text-lg); color: rgb(35 33 26 / 0.82); }
.product-promo .kicker { color: var(--eye); }
.product-promo .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: var(--space-2); }

.product-promo__glyphs { display: grid; grid-template-columns: repeat(2, auto); gap: var(--space-4); justify-content: center; }
.product-promo__glyphs .glyph { width: clamp(72px, 10vw, 120px); height: auto; }
.product-promo--sand { background: var(--sand); }

/* Two plans side by side, centred (Tuka Cats' contracts) */
@media (min-width: 960px) { .plans--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; } }

/* Home page: the products, one card each. Each card's mark is its product's quarter circle, as in the
   product switch; Tuka Dogs' card is quieter until it's out. */

@media (min-width: 1000px) {
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.products { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .products { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  --mark: var(--mustard);
  --mark-radius: 100% 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  scroll-margin-top: 90px;
}

.product-card--colonias { --mark: var(--mint); --mark-radius: 0 100% 0 0; }
.product-card--hotel { --mark: var(--sage); --mark-radius: 0 0 0 100%; background: transparent; border-style: dashed; }

.product-card p { margin: 0; color: var(--color-text-muted); }
.product-card .ticks { margin: 0; }

.product-card__head { display: grid; gap: var(--space-1); }

.product-card__mark {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-3);
  background: var(--mark);
  border-radius: var(--mark-radius);
}

.product-card .product-card__for {
  font-size: var(--text-sm);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust-ink);
}

.product-card__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--text-2xl);
}

.product-card__actions {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  margin-top: auto;
  padding-top: var(--space-2);
}

.product-card__login { font-size: var(--text-sm); font-weight: 600; color: var(--color-link); }

.badge {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-pill);
  background: var(--sand-deep);
  color: var(--eye);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Tuka Cats' price: the plan, and beside it how the price drops each year (a bar per year, as long as
   that year's share of the first year's price; classes, not inline styles, for the CSP) */

.price-ladder { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 900px) { .price-ladder { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-12); } }

.plan__price small { font-size: 0.4em; font-weight: 600; letter-spacing: 0; margin-left: 0.15em; }

.price-ladder__years h2 { font-size: var(--text-2xl); }
.price-ladder__years > p { color: var(--color-text-muted); }

.price-table { width: 100%; margin-block: var(--space-6) var(--space-4); border-collapse: collapse; }
.price-table th,
.price-table td { padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--color-border); text-align: left; }
.price-table thead th { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 600; }
.price-table tbody th { font-weight: 600; white-space: nowrap; }
.price-table td:nth-child(2) { color: var(--color-text-muted); white-space: nowrap; }
.price-table td:last-child { width: 55%; }
.price-table td:last-child strong { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }
.price-table__last th,
.price-table__last td:last-child strong { color: var(--rust-ink); }

.price-table__bar {
  display: inline-block;
  height: 10px;
  margin-right: var(--space-3);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--mint);
  vertical-align: middle;
}
.price-table__last .price-table__bar { background: var(--rust); }
.price-table__bar--100 { width: 60%; }
.price-table__bar--90 { width: 54%; }
.price-table__bar--80 { width: 48%; }
.price-table__bar--70 { width: 42%; }
.price-table__bar--60 { width: 36%; }
.price-table__bar--50 { width: 30%; }

.price-ladder__note { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Tuka Dogs' "coming soon" band: dark, with its own sage quarter circle */
.cta-band--hotel { background: var(--slate-deep); }
.cta-band--hotel .badge { margin: 0 0 var(--space-4); font-size: 0.8rem; }
.cta-band--hotel::before { background: var(--sage); border-radius: 0 0 0 100%; right: -40px; top: -40px; bottom: auto; }
.cta-band--hotel::after { background: var(--mustard); }

/* A "Próximamente" badge on cards and headings */
.card .badge { margin-left: var(--space-2); }
.page-hero .badge { margin-bottom: var(--space-4); }

/* Tuka a medida: its promo on the home page, white like the product cards above it (its glyphs use every colour) */
.product-promo--medida { background: var(--white); border: 1px solid var(--color-border); }
.product-promo--medida .kicker { color: var(--rust-ink); }

/* Tuka a medida: the AI-first workflow drawn as a chat, the owner's request on the right, the AI's answer on the
   left, and the preview waiting to be published. An illustration: nothing in it is clickable. */
.ai-chat { margin: 0; }

.ai-chat__window {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--color-text);
}

.ai-chat__bubble {
  max-width: 85%;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-base);
  line-height: 1.45;
}

.section--dark .split .ai-chat__bubble { color: var(--color-text); font-size: var(--text-base); }

.ai-chat__bubble--you {
  justify-self: end;
  background: var(--mustard);
  border-bottom-right-radius: 4px;
}

.ai-chat__bubble--ai {
  justify-self: start;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}

.ai-chat__preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 2px dashed var(--sand-deep);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
}

.ai-chat__status { color: var(--color-text-muted); }
.ai-chat__actions { display: flex; gap: var(--space-2); }

.ai-chat__action {
  padding: var(--space-1) var(--space-3);
  border: 2px solid var(--eye);
  border-radius: var(--radius-pill);
}

.ai-chat__action--publish { background: var(--eye); color: var(--white); }

.ai-chat__caption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-on-dark-muted); }
