/* Ganamás: public site styles. Plain CSS, mobile first. */

:root {
  --bg: #fbf5ec;          /* warm cream */
  --surface: #ffffff;
  --ink: #1c1a17;
  --ink-2: #4f4a43;
  --ink-3: #847c71;
  --line: #e8dfd1;
  --red: #c4381f;         /* achiote red: main action color */
  --red-dark: #a62c16;
  --red-soft: #fbe5de;
  --teal: #1d6b5e;        /* Andean lake green */
  --teal-dark: #133f37;
  --teal-soft: #dcefe9;
  --gold: #e9a93a;
  --gold-ink: #a8680c;
  --gold-soft: #fbefd6;
  --shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 22px 44px -28px rgba(28, 26, 23, .45);
  --radius: 20px;
  --header-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1, h2, .brand { font-family: Fraunces, Georgia, serif; letter-spacing: -.02em; font-weight: 700; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--red); color: #fff; font-weight: 700; font-size: 16.5px; text-decoration: none; line-height: 1.2;
  box-shadow: 0 12px 24px -14px var(--red); transition: background .15s, transform .08s, opacity .15s;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; color: var(--teal-dark); flex: none; }
.brand-a { color: var(--red); }
.nav { display: none; gap: 26px; margin-left: 18px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.lang button {
  border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: 13px;
  min-width: 40px; min-height: 34px; border-radius: 8px; color: var(--ink-3);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 920px) { .nav { display: flex; } }

/* ---------- Shared section bits ---------- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.eyebrow {
  margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red);
}
.section-title { font-size: clamp(30px, 6.5vw, 46px); max-width: 18ch; }
.section-lead { margin: 14px 0 0; font-size: 18px; color: var(--ink-2); max-width: 56ch; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px 0 0; }
.hero-grid { display: grid; gap: 36px; align-items: center; padding-bottom: 48px; }
.hero h1 { font-size: clamp(38px, 9.4vw, 66px); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--teal); display: inline-block; margin-top: 4px; }
.hero-lead { font-size: 18px; color: var(--ink-2); margin: 20px 0 28px; max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-ctas .btn { flex: 0 0 auto; } }
.hero-proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.hero-art { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); background: #f3dfc0; }
.peaks { width: 100%; height: 100%; }
.float {
  position: absolute; background: var(--surface); border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 18px 36px -18px rgba(20, 30, 25, .55); font-size: 13.5px; max-width: 74%;
}
.float p { margin: 4px 0 0; line-height: 1.4; }
.float-head { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: #25b864; }
.float-msg { top: 7%; left: 5%; }
.float-ok { right: 5%; bottom: 7%; display: flex; gap: 10px; align-items: center; }
.float-ok strong { display: block; font-size: 14px; }
.float-ok small { color: var(--ink-3); font-size: 12.5px; }
.check { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 800; }
@media (prefers-reduced-motion: no-preference) {
  .float-msg { animation: rise .7s .2s both cubic-bezier(.2, .8, .2, 1); }
  .float-ok { animation: rise .7s .55s both cubic-bezier(.2, .8, .2, 1); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (min-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; padding-bottom: 72px; }
  .hero-art { aspect-ratio: 1 / 1.04; }
}

/* Andean-textile-style band between hero and the rest */
.band {
  height: 18px;
  background:
    linear-gradient(135deg, var(--red) 25%, transparent 25%) -9px 0 / 18px 18px,
    linear-gradient(225deg, var(--red) 25%, transparent 25%) -9px 0 / 18px 18px,
    linear-gradient(315deg, var(--gold) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(45deg, var(--gold) 25%, transparent 25%) 0 0 / 18px 18px,
    var(--teal-dark);
}

/* ---------- Insight ---------- */
.insight { background: var(--surface); }
.insight-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.insight-list li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start;
  padding: 18px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
}
.insight-list b {
  grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-ink); font-size: 14px;
}
.insight-list strong { font-size: 16.5px; }
.insight-list span { color: var(--ink-2); font-size: 15px; }
@media (min-width: 700px) { .insight-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .insight-list { grid-template-columns: repeat(4, 1fr); }
  .insight-list li { grid-template-columns: 1fr; row-gap: 6px; }
  .insight-list b { grid-row: auto; margin-bottom: 8px; }
}

/* ---------- Services ---------- */
.cards { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; font-family: Fraunces, Georgia, serif; letter-spacing: -.01em; }
.card > p { color: var(--ink-2); margin: 10px 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%231d6b5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Why us ---------- */
.why { background: var(--teal-dark); color: #f4efe6; }
.why .section-title { color: #fff; }
.eyebrow-light { color: var(--gold); }
.why-lead { margin: 16px 0 0; font-size: 18px; color: #cfdcd6; max-width: 46ch; }
.why-grid { display: grid; gap: 36px; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why-list li { padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.why-list strong { display: block; font-size: 17px; color: #fff; margin-bottom: 4px; }
.why-list span { color: #c4d3cc; font-size: 15px; }
@media (min-width: 700px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; } }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; padding: 22px 22px 22px 78px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span:not(.step-n) { color: var(--ink-2); font-size: 15px; }
.step-n {
  position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 20px;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps li { padding: 24px; }
  .step-n { position: static; margin-bottom: 16px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; } .contact-copy { position: sticky; top: calc(var(--header-h) + 32px); } }
.contact-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-weight: 500; }
.contact-points li { display: flex; gap: 10px; align-items: center; }
.contact-points li::before { content: "✓"; color: var(--teal); font-weight: 800; }

.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 22px 18px; }
@media (min-width: 600px) { .form-card { padding: 30px; } }
.demo-note { margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); font-size: 14px; font-weight: 600; }
form { display: flex; flex-direction: column; gap: 16px; }
.row-2 { display: grid; gap: 16px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: 14.5px; }
input, textarea, select {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 16px; transition: border-color .15s, box-shadow .15s; min-height: 50px;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23847c71' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") right 15px center / 12px no-repeat;
}
input::placeholder, textarea::placeholder { color: #a99f92; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
input.invalid { border-color: var(--red); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.hint { margin: -6px 0 0; font-size: 13.5px; color: var(--ink-3); }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-flow: row wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 8px; width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chips span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); font-weight: 600; font-size: 14.5px; transition: all .12s; user-select: none;
}
.chips input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--teal) 50%, transparent); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red-dark); font-weight: 600; font-size: 14.5px; }

.thanks { text-align: center; padding: 28px 8px; outline: none; }
.thanks-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 28px; font-weight: 800; }
.thanks h3 { font-family: Fraunces, Georgia, serif; font-size: 28px; margin: 16px 0 8px; }
.thanks p { color: var(--ink-2); margin: 0 auto 22px; max-width: 38ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b1a6; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.site-footer .brand { color: #fff; }
.brand-sm { font-size: 20px; }
