/* DASSI — landing page. Sistema de diseño mínimo, sin dependencias externas. */

:root {
  --bg: #f7f5f2;
  --bg: oklch(97.5% 0.006 95);
  --bg-elevated: #ffffff;
  --bg-elevated: oklch(100% 0 0);
  --ink: #1c2330;
  --ink: oklch(22% 0.02 260);
  --ink-soft: #4c5566;
  --ink-soft: oklch(42% 0.03 260);
  --accent: #177996;
  --accent: oklch(53.7% 0.094 223.7);
  --accent-strong: #005470;
  --accent-strong: oklch(41% 0.094 223.7);
  --cta: #CB4500;
  --cta: oklch(57.3% 0.181 39.8);
  --cta-strong: #A71F00;
  --cta-strong: oklch(47% 0.181 39.8);
  --line: #dcdfe3;
  --line: oklch(88% 0.01 260);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}

/* Accesibilidad transversal */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 0.25rem;
  transition: top 150ms ease-out;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
  flex-wrap: wrap;
}
.wordmark { display: flex; align-items: center; }
.logo { display: block; height: 2rem; width: auto; }
.site-nav {
  display: flex;
  gap: clamp(1rem, 0.6rem + 1vw, 2rem);
  font-size: 0.95rem;
}
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  transition: transform 180ms ease-out, background-color 180ms ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn-cta { background: var(--cta); color: var(--bg-elevated); }
.btn-cta:hover { background: var(--cta-strong); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* Hero — momento único, layout artesanal */
.hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero-content { display: grid; gap: 1.75rem; max-width: 42rem; }
.hero-illustration {
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  height: auto;
}
@media (min-width: 56rem) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); }
  .hero-illustration { max-width: 100%; }
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--accent-strong);
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 42rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise 500ms ease-out both; }
  .hero-content > *:nth-child(2) { animation-delay: 60ms; }
  .hero-content > *:nth-child(3) { animation-delay: 120ms; }
  .hero-content > *:nth-child(4) { animation-delay: 180ms; }
  .hero-content > *:nth-child(5) { animation-delay: 240ms; }
  .hero-illustration { animation: rise 500ms ease-out 180ms both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Secciones generales */
section { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
section h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-lede {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

/* Servicios — layout algorítmico: la grilla decide columnas, no un breakpoint fijo */
.services { background: var(--bg-elevated); border-block: 1px solid var(--line); }
.services-grid {
  container-type: inline-size;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.25rem;
}
.service-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--bg);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px -12px oklch(22% 0.02 260 / 25%); }
.service-icon { width: 1.75rem; height: 1.75rem; color: var(--accent); margin-bottom: 0.9rem; }
.service-card h3 {
  font-size: 1.1rem;
  font-size: clamp(1.02rem, 0.88rem + 1.4cqi, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }
.service-tag {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Cómo trabajamos */
.process-list {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}
.process-num {
  font-family: var(--font-mono);
  color: var(--line);
  font-size: 2rem;
  font-weight: 700;
  display: block;
}
.process-list h3 { margin-block: 0.4rem 0.5rem; font-size: 1.1rem; }
.process-list p { color: var(--ink-soft); font-size: 0.95rem; }

/* Contacto */
.contact { background: var(--ink); color: var(--bg); border-radius: 0; }
.contact h2 { color: var(--bg-elevated); }
.contact p { color: color-mix(in oklch, var(--bg) 80%, transparent); margin-top: 0.6rem; max-width: 34rem; }
.contact-list {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
}
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover { color: var(--cta); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
