:root {
  --orange: #ff681d;
  --orange-dark: #e35414;
  --ink: #1c1c1c;
  --gray: #5c5c5c;
  --gray-light: #f4f4f2;
  --border: #e6e3de;
  --radius: 14px;
  --max-width: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.brand img { height: 36px; width: 36px; border-radius: 50%; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }

nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-ghost { background: var(--gray-light); color: var(--ink); }
.btn-ghost:hover { background: var(--border); }

/* Hero */
.hero {
  padding: 96px 0 72px;
  background: radial-gradient(circle at 85% 0%, rgba(255, 104, 29, 0.09), transparent 55%);
}

.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-dark);
  background: rgba(255, 104, 29, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 52ch;
  margin: 0 0 32px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.hero-card h3 { margin-top: 0; font-size: 1rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem; }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }

.hero-stats .stat-num { font-size: 2rem; font-weight: 800; color: var(--orange); line-height: 1; }
.hero-stats .stat-label { font-size: 0.85rem; color: var(--gray); margin-top: 6px; }

/* Sections */
section { padding: 72px 0; }

.section-head { max-width: 62ch; margin-bottom: 44px; }

.section-head .eyebrow { margin-bottom: 14px; }

h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; letter-spacing: -0.01em; }

.section-head p { color: var(--gray); font-size: 1.05rem; margin: 0; }

/* Value props */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
}

.value-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 104, 29, 0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.value-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.value-card p { margin: 0; color: var(--gray); font-size: 0.95rem; }

/* Asistente de soporte con IA */
.ai-section { background: var(--gray-light); }
.ai-section .value-card { background: #fff; }
.ai-cta { margin-top: 32px; }
.note { margin: 18px 0 0; color: var(--gray); font-size: 0.9rem; max-width: 70ch; }

/* Quote CTA band */
.quote-band {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
}

.quote-band .wrap {
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 56px 24px;
}

.quote-band h2 { color: #fff; }
.quote-band p { color: #d8d4cd; font-size: 1.02rem; }
.quote-band .cta-row { margin-top: 6px; }
.quote-band .btn-outline { color: #fff; border-color: #4a4a4a; }
.quote-band .btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* Casos */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--gray-light);
}

.case-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orange-dark);
  margin-bottom: 12px;
}

.case-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.case-card p { margin: 0; color: var(--gray); font-size: 0.92rem; }

/* Methodology (como trabajamos) */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step .num {
  counter-increment: step;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 104, 29, 0.12);
  color: var(--orange-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.step h3 { margin: 4px 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--gray); }

/* Final CTA */
.final-cta { text-align: center; padding: 88px 0; }
.final-cta h2 { max-width: 30ch; margin-left: auto; margin-right: auto; }
.final-cta .cta-row { justify-content: center; margin-top: 28px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--gray-light);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .brand img { height: 28px; width: 28px; }
footer .contact { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.92rem; color: var(--gray); }
footer .contact a { text-decoration: none; color: var(--ink); font-weight: 600; }
footer .copy { width: 100%; text-align: center; font-size: 0.82rem; color: var(--gray); margin-top: 16px; }

footer .footer-nav { display: none; gap: 20px; flex-wrap: wrap; font-size: 0.92rem; }
footer .footer-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  footer .footer-nav { display: flex; width: 100%; order: -1; }
}

/* Page header for subpages */
.page-hero { padding: 64px 0 24px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

/* Mobile */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .quote-band .wrap { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; }
}

@media (max-width: 540px) {
  .value-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
