/* =========================================================
   Cimiento Systems: estilos de la web
   Colores de marca (los mismos del one-pager y las propuestas)
   ========================================================= */
:root {
  --ink: #1A1A18;          /* texto principal y fondos oscuros */
  --ink-soft: #3A3833;     /* texto de párrafos */
  --bone: #F5F3EE;         /* fondo cálido */
  --terracotta: #9A4A2F;   /* acento */
  --terracotta-light: #C77A55; /* acento sobre fondo oscuro */
  --warm-grey: #C1B9A8;
  --muted: #6B6A64;        /* texto secundario */
  --line: #DAD5CB;         /* líneas finas */
  --white: #FFFFFF;

  --serif: 'Lora', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  --max: 1120px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 500; }
p { margin: 0; }
a { color: inherit; }
ol { margin: 0; padding: 0; list-style: none; }

/* Foco visible para quien navega con teclado */
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}
.site-header a:focus-visible, .hero a:focus-visible,
.contact a:focus-visible, .site-footer a:focus-visible { outline-color: var(--terracotta-light); }

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

.eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--terracotta-light); }

.section { padding: 112px 0; }
.section-bone { background: var(--bone); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 56px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: #7F3C25; }
.btn-ghost { color: var(--bone); border-color: rgba(245,243,238,.35); }
.btn-ghost:hover { border-color: var(--bone); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(26,26,24,.94);
  backdrop-filter: blur(8px); /* avoid-ai-design-ignore: K3 (el menú queda encima del contenido al hacer scroll) */
  border-bottom: 1px solid rgba(245,243,238,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: block; line-height: 0; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: rgba(245,243,238,.78); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--bone); }
.nav .nav-cta {
  color: var(--bone);
  border: 1px solid rgba(245,243,238,.35);
  padding: 8px 16px;
}
.nav .nav-cta:hover { border-color: var(--bone); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  padding: 96px 0 120px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: center;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bone);
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 920px;
}
.hero-proof {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px;
  font-size: 14px;
  color: rgba(245,243,238,.72);
}
/* mini barras del logo como sello */
.proof-mark { display: inline-flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.proof-mark i { display: block; height: 3px; background: var(--terracotta-light); }
.proof-mark i:nth-child(1) { width: 8px; }
.proof-mark i:nth-child(2) { width: 12px; }
.proof-mark i:nth-child(3) { width: 16px; }
.hero-lead {
  margin-top: 32px;
  max-width: 600px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: rgba(245,243,238,.78);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

/* Visual: tablero ilustrativo; la línea y las barras se "construyen" al cargar */
.hero-visual { margin: 0; }
.hero-visual svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(0,0,0,.35)); }
.chart-line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s .3s cubic-bezier(.3,.7,.2,1) forwards; }
.hero-visual .bar { transform-box: fill-box; transform-origin: left; animation: build .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes build { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 2. Beneficios ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.benefit { border-top: 1px solid var(--ink); padding-top: 24px; }
.benefit h3 { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin-bottom: 12px; }
.benefit p { font-size: 16px; }

/* Bloques de dos columnas (título a la izquierda) */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.split-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
}

/* ---------- 3. Qué hacemos ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
}
.service { padding: 28px 0 40px; border-top: 1px solid var(--ink); }
.service h3 { font-size: 19px; font-weight: 600; line-height: 1.35; margin-bottom: 12px; }
.service p { font-size: 16px; }

/* ---------- 4. Cómo trabajamos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.step { border-top: 2px solid var(--line); padding-top: 24px; }
.step:first-child { border-top-color: var(--terracotta); }
.step-num { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--terracotta); margin-bottom: 20px; }
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 16px; }

/* ---------- 5. Casos de éxito ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  background: var(--white);
  padding: 32px 30px 36px;
}
.case-tag {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.case h3 { font-family: var(--serif); font-size: 23px; line-height: 1.25; margin-bottom: 14px; }
.case p:last-child { font-size: 16px; }

/* ---------- 6. Por qué Cimiento ---------- */
.why { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.stat { font-family: var(--serif); font-size: 28px; color: var(--ink); line-height: 1.1; }
.stat span { display: block; font-size: clamp(88px, 11vw, 132px); line-height: .95; color: var(--terracotta); }
.stat-note { margin-top: 18px; max-width: 380px; }
.why-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.why-item:first-child { border-top: 1px solid var(--ink); }
.why-item h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }

/* ---------- 7. Preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  color: var(--terracotta);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; font-size: 16px; }

/* ---------- 8. Contacto ---------- */
.contact-email { margin-top: 18px; font-size: 15px; color: rgba(245,243,238,.7); }
.contact-email a { color: var(--bone); }
.contact { background: var(--ink); color: var(--bone); padding: 120px 0; text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bone);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  max-width: 780px;
}
.contact-lead { margin: 24px 0 40px; max-width: 540px; color: rgba(245,243,238,.78); }
.contact-meta { margin-top: 20px; font-size: 14px; color: #9C978C; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); border-top: 1px solid rgba(245,243,238,.1); color: #9C978C; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px var(--gutter); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--bone); }

/* ---------- Tableta ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 520px; }
  .benefits { grid-template-columns: 1fr; gap: 32px; }
  .services, .cases { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .why { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .section-title { margin-bottom: 40px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 48px 0 88px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { margin-top: 20px; font-size: 16px; }
  .hero-actions { margin-top: 28px; gap: 10px; }
  .hero-actions .btn { padding: 13px 20px; }
  .hero-proof { margin-top: 24px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .services, .cases, .steps { grid-template-columns: 1fr; }
  .contact { padding: 88px 0; }
  .contact .btn { width: 100%; justify-content: center; }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chart-line { animation: none; stroke-dashoffset: 0; }
  .hero-visual .bar { animation: none; }
}
