/* ==========================================================================
   Sitis — landing page
   Design tokens (paleta violeta) + componentes, mobile-first.
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-surface: #f4f1ff;
  --color-text: #191636;
  --color-accent: #6c3ef5;
  --color-accent-2: #8b5cf6;

  --color-accent-100: #f3efff;
  --color-accent-200: #e6dcff;
  --color-accent-300: #cdbaff;
  --color-accent-400: #a98cfa;
  --color-accent-500: #8b5cf6;
  --color-accent-600: #5b2ade;
  --color-accent-700: #4a1cb5;
  --color-accent-800: #361388;
  --color-accent-900: #241059;

  --color-divider: color-mix(in srgb, #191636 15%, transparent);
  --sitis-grad: linear-gradient(115deg, #5b2ade 0%, #7c3aed 48%, #9333ea 100%);

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --container-max: 1240px;
  --container-pad: 20px;
}

@media (min-width: 640px) {
  :root { --container-pad: 40px; }
}
@media (min-width: 1000px) {
  :root { --container-pad: 64px; }
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.rule { height: 2px; border: 0; margin: 0; background: var(--color-divider); }

.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  margin: 0 0 16px;
}

.section-title { font-size: clamp(26px, 6vw, 44px); max-width: 22ch; }
.section-title--md { max-width: 24ch; }
.section-title--lg { max-width: 26ch; }

.section-lead {
  font-size: 16px;
  line-height: 1.75;
  max-width: 48ch;
  margin: 18px 0 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}
.section-lead--md { max-width: 56ch; }
.section-lead--lg { max-width: 58ch; }

.dot { display: block; width: 10px; height: 10px; background: var(--color-accent); flex: none; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  background: var(--color-accent-100);
  color: var(--color-accent-800);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--color-accent); color: #ffffff; }
.btn-primary:hover { background: var(--color-accent-600); color: #ffffff; }
.btn-outline-light {
  border-color: rgba(255,255,255,0.75);
  color: #ffffff;
}
.btn-outline-light:hover { background: #ffffff; color: var(--color-accent-700); border-color: #ffffff; }

/* ---- header / nav ---- */
.site-header { position: relative; z-index: 50; border-bottom: 2px solid var(--color-divider); }
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px var(--container-pad);
}
.brand-logo {
  display: inline-block;
  background: url('../assets/sitis-logo.png') left center / contain no-repeat;
}
.nav-brand {
  width: 110px;
  aspect-ratio: 419 / 174;
  margin-right: auto;
  opacity: 1;
  transition: opacity .15s ease;
}
.nav-brand:hover { opacity: 0.8; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-divider);
  padding: 8px var(--container-pad) 20px;
}
.nav-menu.is-open { display: flex; }
.nav-menu a {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-divider);
}
.nav-menu a:last-child { border-bottom: 0; }
.nav-menu a:hover { color: var(--color-accent-700); }

.nav-cta { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.nav-cta span:first-child { border-bottom: 2px solid var(--color-accent); padding-bottom: 3px; width: fit-content; }
.nav-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 14px;
}

@media (min-width: 860px) {
  .nav { position: relative; padding-left: 0; padding-right: 0; }
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    border: 0;
    padding: 0;
    gap: clamp(12px, 2vw, 28px);
  }
  .nav-menu a { border: 0; padding: 0; font-weight: 500; }
  .nav-cta { margin-left: auto; }
}

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; background: var(--sitis-grad); color: #ffffff; }
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 12% 0%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 58%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  padding: 56px var(--container-pad) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { font-size: clamp(32px, 8vw, 58px); max-width: 20ch; margin-left: -0.02em; }
.hero-copy p { font-size: 17px; line-height: 1.75; max-width: 46ch; margin: 24px 0 0; color: rgba(255,255,255,0.82); }
.hero-actions { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 36px; }
.hero-link { display: inline-flex; align-items: center; gap: 14px; color: #ffffff; font-family: var(--font-heading); font-weight: 700; font-size: 15px; }
.hero-link:hover { color: var(--color-accent-200); }
.hero-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-accent-600);
  font-size: 14px;
}
.hero-media { justify-self: center; width: 100%; max-width: 420px; }
.hero-media img { width: 100%; }

@media (min-width: 720px) {
  .hero-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(72px, 8vw, 120px); gap: clamp(40px, 5vw, 72px); }
  .hero-media { justify-self: end; max-width: 560px; }
}

/* ---- sections / grids ---- */
.section { padding: 32px 0; }
@media (min-width: 720px) { .section { padding: clamp(32px, 4vw, 56px) 0; } }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 64px); }
}

.grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 40px;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; }
}

.divided { background: var(--color-divider); gap: 2px; }
.divided > * { background: var(--color-bg); padding: 28px 24px 32px; }
@media (min-width: 720px) { .divided > * { padding: 32px 28px 36px; } }

/* services */
.service-card h3 { font-size: 21px; line-height: 1.3; margin: 20px 0 12px; }
.service-card p { font-size: 15.5px; line-height: 1.8; margin: 0; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* proceso */
.proceso-subtitle { font-family: var(--font-heading); font-weight: 700; font-size: 18px; margin: 32px 0 8px; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; align-items: baseline; padding: 20px 0; border-top: 2px solid var(--color-divider); }
.step-number { font-family: var(--font-heading); font-weight: 800; font-size: 15px; margin: 0; font-feature-settings: 'tnum' 1; color: var(--color-accent-700); }
.step-text { font-size: 16px; line-height: 1.75; margin: 0; }
@media (min-width: 640px) { .step { grid-template-columns: 72px minmax(0, 1fr); gap: 0 24px; } }

/* casos */
.cases { margin-top: 40px; }
.case {
  display: grid;
  gap: 8px;
  padding: 28px 0;
  border-top: 2px solid var(--color-divider);
  align-items: start;
}
.case-title { font-size: clamp(22px, 4vw, 32px); line-height: 1.15; margin: 0; }
.case p { font-size: 15.5px; line-height: 1.8; margin: 0; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
@media (min-width: 640px) {
  .case { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px clamp(24px, 4vw, 64px); padding: 32px 0; }
}

/* testimonios */
.testimonial { margin: 0; }
.testimonial blockquote { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.6; margin: 0; }
.testimonial figcaption { font-size: 14px; line-height: 1.6; margin-top: 24px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }

/* faq */
.faq-item { border-top: 2px solid var(--color-divider); }
.faq-question {
  display: flex;
  width: 100%;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 20px 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
}
.faq-sign { font-family: var(--font-body); font-weight: 400; color: var(--color-accent); font-size: 22px; line-height: 1; flex: none; }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .25s ease;
}
.faq-answer p {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer p { padding-bottom: 24px; }

@media (min-width: 640px) { .faq-question { padding: 24px 0; font-size: 18px; } }

/* contacto */
.contact-form { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .contact-form { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 110px; resize: vertical; }
.form-status { font-size: 14px; margin: 14px 0 0; color: var(--color-accent-700); min-height: 1.4em; }

.contact-aside { border-top: 2px solid var(--color-divider); padding-top: 24px; }
.contact-aside-title { font-family: var(--font-heading); font-weight: 700; font-size: 19px; margin: 0 0 18px; }
.contact-aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-aside-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 16px; align-items: start; }
.contact-aside-list li .dot { margin-top: 8px; }
.contact-aside-list li span:last-child { font-size: 16px; line-height: 1.75; }

/* cta band */
.cta-band { background: var(--sitis-grad); color: #ffffff; }
.cta-band .container { padding-top: 56px; padding-bottom: 56px; }
.cta-band h3 { font-size: clamp(26px, 7vw, 56px); line-height: 1.1; max-width: 26ch; margin-left: -0.02em; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.cta-band .btn-outline-light { color: var(--color-bg); border-color: var(--color-bg); }
@media (min-width: 720px) { .cta-band .container { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); } }

/* footer */
.site-footer { border-top: 2px solid var(--color-divider); }
.footer-inner {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  padding: 32px var(--container-pad);
  font-size: 13px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.footer-brand { width: 90px; aspect-ratio: 419 / 174; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- scroll reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
