:root {
  --ink: #121212;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --accent: #e15e3d;
  --accent-dark: #c24a2c;
  --bg: #ffffff;
  --bg-soft: #f7f5f2;
  --border: #e7e3dd;
  --max-w: 1180px;
  --radius: 10px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; margin: 0; }

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.9rem;
}

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

section { padding: 5.5rem 0; }
section.tight { padding: 4rem 0; }

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

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 130px;
}

.brand img { height: 76px; width: auto; position: relative; top: 6px; }

nav.main-nav { display: flex; align-items: center; gap: 2.2rem; }

nav.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
nav.main-nav a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(225, 94, 61, 0.10), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.hero h1 span { color: var(--accent); }

.hero .lede {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 48ch;
}

.hero .actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
}

.hero-panel .stat { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.hero-panel .stat:last-child { border-bottom: none; }
.hero-panel .stat b { display: block; font-size: 1rem; }
.hero-panel .stat span { color: var(--muted); font-size: 0.9rem; text-align: right; }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.08);
}

.service-card .num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

.service-card h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- Enfoque / proceso ---------- */
.enfoque { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step { position: relative; padding-top: 0.5rem; }
.step .n {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-grid p { color: var(--muted); font-size: 1.05rem; }
.about-grid p + p { margin-top: 1rem; }

.about-panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.4rem;
}
.about-panel .word { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.3rem; }
.about-panel .word span { color: var(--accent); }
.about-panel ul { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.about-panel li { padding: 0.7rem 0; border-top: 1px solid rgba(255,255,255,0.14); color: #d8d8d8; font-size: 0.95rem; }
.about-panel li:first-child { border-top: none; }

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  min-width: 220px;
}

.team-card .avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.team-card .role { color: var(--muted); font-size: 0.85rem; }

/* ---------- Clientes ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  gap: 1.5rem;
  justify-content: start;
}

.client-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.client-photo {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.75rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.client-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.client-card:hover .client-photo img {
  transform: scale(1.03);
}

.client-body { padding: 1.1rem 1.3rem; }
.client-body h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.client-body p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Prensa ---------- */
.prensa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.prensa-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.prensa-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.prensa-card:hover .prensa-photo img {
  transform: scale(1.04);
}

.prensa-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.prensa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.08);
}

.prensa-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(225, 94, 61, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.prensa-card h3 { font-size: 1.02rem; line-height: 1.35; margin-bottom: 0.7rem; }
.prensa-meta { color: var(--muted); font-size: 0.85rem; }
.prensa-empty { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--muted); max-width: 42ch; }

.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-top: 1px solid var(--border); }
.contact-list li:first-child { border-top: none; }
.contact-list b { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.2rem; }

form.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
}

.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }
.form-status { font-size: 0.9rem; margin-top: 1rem; display: none; }
.form-status.ok { color: #2e7d4f; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #fff;
  padding: 3rem 0 2rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.02em; }
.footer-brand span { color: var(--accent); }
.footer-tagline { color: #b9b9b9; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; }
.footer-copy { color: #9a9a9a; font-size: 0.82rem; margin-top: 2rem; text-align: center; }

.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: #d8d8d8; font-size: 0.92rem; transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  nav.main-nav { position: fixed; inset: 130px 0 auto 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1.2rem; border-bottom: 1px solid var(--border); transform: translateY(-140%); transition: transform 0.2s ease; }
  nav.main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 3rem; }
  section { padding: 3.5rem 0; }
}
