/* Chajá Labs
   Paleta Tangerine: crema, naranja quemado y espresso. */

:root {
  --ink: #24140e;
  --white: #fffaf4;
  --paper: #fbf1e4;
  --lime: #ff8c2a;
  --green: #f4a261;
  --green-dark: #2a120c;
  --red: #8d1d12;
  --link: #ffd09a;
  --footer: #1a0c08;
  --muted: #5c4638;
  --line: 3px;
  --shadow: 5px 5px 0 var(--ink);
  --radius: 16px;
  --display: "Titan One", "Arial Black", Impact, sans-serif;
  --body: "Nunito", "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Titan One";
  src: url("/fonts/titan-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}

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

h1, h2, h3, h4, p { overflow-wrap: break-word; }

h1, h2, h3, .cat-num, .step-num {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

h1, h2, h3, h4 { text-wrap: balance; }

p { margin: 0 0 0.8rem; }

a { color: inherit; }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

::selection { background: var(--lime); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--lime);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - clamp(1.25rem, 4vw, 3rem)));
  margin-inline: auto;
}

.checker {
  height: 16px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 16px, var(--lime) 16px 32px);
}

.section { padding: clamp(2.75rem, 6vw, 4.75rem) 0; }

#inicio, #servicios, #soluciones, #proceso, #contacto { scroll-margin-top: 1rem; }

.site-header {
  background: var(--green-dark);
  color: var(--white);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  padding-block: 0.55rem;
}

.logo { display: block; line-height: 0; }

.logo img { height: 86px; width: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
}

.nav a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover { color: var(--link); }

.hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.8rem;
  background: var(--lime);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
}

.eye {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--ink);
}

h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.35rem, 9vw, 4.4rem);
  max-width: 12ch;
  transform: skewX(-5deg);
  transform-origin: left center;
  text-shadow: 3px 3px 0 var(--lime), 5px 5px 0 var(--green-dark);
}

.mark {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-size: 100% 0.34em;
  background-position: 0 88%;
}

.lead {
  max-width: 38rem;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.tags li {
  border: var(--line) solid var(--ink);
  background: var(--white);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-weight: 800;
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--lime); }

.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

.btn:disabled { cursor: progress; opacity: 0.72; }

.hero-art { margin: 0; }

.hero-art img {
  display: block;
  width: min(100%, 280px);
  margin-inline: auto;
  filter: drop-shadow(6px 6px 0 var(--ink));
}

.intro { max-width: 40rem; font-size: 1.125rem; }

h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  transform: skewX(-4deg);
  transform-origin: left center;
  text-shadow: 2px 2px 0 var(--lime), 4px 4px 0 var(--green-dark);
}

.category + .category { margin-top: 2.4rem; }

.cat-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0 0 1rem;
}

.cat-num {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  margin-top: 0.1rem;
  display: grid;
  place-items: center;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.15rem;
}

.cat-num-1 { background: var(--lime); color: var(--ink); }
.cat-num-2 { background: var(--green); color: var(--ink); }
.cat-num-3 { background: var(--green-dark); color: var(--white); }

.cat-head h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  transform: skewX(-4deg);
  transform-origin: left center;
}

.cat-head p { margin: 0.25rem 0 0; font-weight: 700; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.card {
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.1rem 1.15rem;
}

.icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  background: var(--lime);
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.icon svg { width: 1.55rem; height: 1.55rem; display: block; }

.card h4 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 800;
}

.card-meta {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--green-dark);
}

.card p:last-child { margin-bottom: 0; }

.sol-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.card-featured {
  border-color: var(--lime);
  box-shadow: 5px 5px 0 var(--lime);
}

.sol-badge {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.2rem 0.7rem;
  background: var(--lime);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.sol-grid h3 {
  margin: 0 0 0.35rem;
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  transform: none;
  text-shadow: none;
}

.sol-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  margin-top: 1.4rem;
}

.sol-cta p {
  margin: 0;
  max-width: 38rem;
  font-weight: 800;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.step {
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.1rem 1.2rem;
}

.step-num {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  background: var(--lime);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.35rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
}

.step p:last-child { margin-bottom: 0; }

.contact {
  background: var(--green-dark);
  color: var(--white);
}

.contact .lead { color: var(--white); }

.contact a { color: var(--link); font-weight: 800; }

.form-card {
  margin-top: 1.3rem;
  background: var(--white);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--lime);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.fields {
  display: grid;
  gap: 0.85rem;
}

.field label { display: block; font-weight: 800; margin-bottom: 0.35rem; }

.hint { font-weight: 700; color: var(--muted); }

input, select, textarea {
  width: 100%;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
}

textarea { min-height: 8.5rem; resize: vertical; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23141414' d='M5 7.5 10 13l5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
}

input::placeholder, textarea::placeholder { color: var(--muted); }

.form-status {
  margin: 0 0 0.9rem;
  padding: 0.85rem 1rem;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  font-weight: 800;
}

.form-status[data-state="success"] { background: var(--lime); }

.form-status[data-state="error"] {
  background: var(--white);
  box-shadow: inset 8px 0 0 var(--red);
}

.form-card .btn { width: 100%; margin-top: 0.95rem; }

.fine {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.noscript {
  margin-top: 0.8rem;
  font-weight: 800;
}

.site-footer {
  background: var(--footer);
  color: var(--white);
  padding: 2.4rem 0 6.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.footer-logo { display: block; width: max-content; line-height: 0; }

.footer-logo img { width: 118px; height: auto; }

.footer-name {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
  margin: 0 0 0.35rem;
  transform: skewX(-6deg);
  transform-origin: left center;
  text-shadow: 2px 2px 0 var(--lime);
}

.site-footer a { color: var(--link); font-weight: 800; }

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.legal {
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
  color: var(--paper);
}

.wa-float {
  position: fixed;
  z-index: 40;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 76px;
  height: 76px;
  padding: 4px;
  border-radius: 20px;
  border: var(--line) solid var(--ink);
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--ink);
  line-height: 0;
}

.wa-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.wa-dot {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: #25d366;
}

.wa-float:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

@media (hover: hover) {
  .card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
  .card-featured:hover { box-shadow: 7px 7px 0 var(--lime); }
}

@media (max-width: 1023px) {
  .hero-art { display: none; }
  .footer-logo img { width: 84px; }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-copy h1 { transform-origin: center center; }
  .hero-copy .tags,
  .hero-copy .cta-row { justify-content: center; }
}

@media (max-width: 639px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }
  .nav {
    justify-content: center;
    width: 100%;
    gap: 0.1rem 0.55rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 739px) {
  .cta-row { flex-direction: column; width: 100%; }
  .cta-row .btn { width: 100%; }
  .form-card .btn { width: calc(100% - 5.25rem); }
}

@media (max-width: 639px) {
  .cta-row .btn { width: calc(100% - 5.25rem); }
}

@media (min-width: 740px) {
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: start;
  }
  .card-featured .sol-badge { grid-column: 1 / -1; justify-self: start; }
  .card-featured .icon { grid-row: 2 / span 2; margin-bottom: 0; }
  .fields { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
  .form-card .btn { width: auto; min-width: 220px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: auto 1fr auto; }
}

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

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

@media (min-width: 1024px) {
  .sol-grid { grid-template-columns: repeat(3, 1fr); }
  .card-featured { grid-column: 1 / -1; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
    gap: 2rem;
  }
  .hero-art img { width: min(100%, 380px); margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover, .btn:active, .card:hover, .wa-float:hover {
    transform: none;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .form-card { box-shadow: 8px 8px 0 var(--lime); }
}

@media print {
  .checker, .wa-float, .nav, .cta-row { display: none; }
  body { background: white; }
}
