@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow+Condensed:wght@400;500;600;700&family=Barlow:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --ink: #161718;
  --charcoal: #2A2B2D;
  --charcoal-deep: #1B1C1D;
  --red: #BE0C0F;
  --red-deep: #960A0C;
  --gray-50: #F4F4F5;
  --gray-100: #E9E9EA;
  --line: #D4D5D6;
  --text-2: #5F6062;
  --text-3: #4E4F51;
  --text-muted: #8E8F91;
  --on-dark-muted: #B3B4B6;
  --white: #FFFFFF;

  --font-display: 'Oswald', sans-serif;
  --font-tech: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--gray-100);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button { font-family: inherit; }
input, textarea, button { font-family: var(--font-body); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }

.rule { height: 8px; background: var(--red); width: 64px; }
.rule--red { background: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-family: var(--font-tech);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease;
}
.nav a:hover { color: var(--white); text-decoration: none; }
.nav a.is-active { color: var(--white); border-bottom-color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--white); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 660px;
  background: var(--charcoal-deep);
  overflow: hidden;
  display: flex;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 480ms cubic-bezier(.2,.7,.2,1);
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,28,29,.62) 0%, rgba(27,28,29,.86) 62%, rgba(27,28,29,.94) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 56px 48px;
  max-width: 760px;
  width: 100%;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1.04;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 420ms cubic-bezier(.2,.7,.2,1), transform 520ms cubic-bezier(.2,.7,.2,1), filter 420ms cubic-bezier(.2,.7,.2,1);
}
.hero-headline.is-out { opacity: 0; transform: translateY(-28px); filter: blur(6px); }
.hero-headline.is-pre { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: none; }
.hero-lead {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
  max-width: 600px;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 26px;
  font-family: var(--font-tech);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-deep); }
.btn-outline { background: transparent; border: 1.5px solid var(--white); color: var(--white); }

.hero-dots { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.hero-dot {
  width: 44px; height: 6px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.40);
  transition: background 160ms ease;
}
.hero-dot.is-active { background: var(--red); }
.hero-counter {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-muted);
}

/* ---------- Sections ---------- */
.section { padding: 96px 48px; }
.section--white { background: var(--white); border-bottom: 1px solid var(--line); }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--charcoal); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto 48px;
}
.eyebrow {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow--light { color: var(--white); }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
}
.section-title--light { color: var(--white); }

/* content containers center within max width */
.section > .section-head,
.about-grid, .services-grid, .clients-carousel, .contact-grid {
  max-width: 1184px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(27,28,29,.10);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--red);
}
.about-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
}
.placeholder-box {
  min-height: 120px;
  border: 1.5px dashed #B3B4B6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: center;
}

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(27,28,29,.10);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 172px;
}
.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--red);
}
.service-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
}
.service-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-3);
}

/* ---------- Clientes ---------- */
.section--clientes { padding-bottom: 136px; }
.clients-carousel { display: flex; align-items: center; gap: 16px; }
.carousel-btn {
  flex: none;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--charcoal);
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.carousel-btn:hover { background: var(--charcoal); color: var(--white); }
.carousel-btn:active { transform: translateY(1px); }

.clients-viewport { flex: 1; min-width: 0; overflow: hidden; }
.clients-track {
  display: flex;
  transition: transform 480ms cubic-bezier(.2,.7,.2,1);
}
.clients-track.no-anim { transition: none; }
.client-slide {
  flex: 0 0 25%;
  box-sizing: border-box;
  padding: 0 10px;
}
.client-logo {
  height: 140px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
}
.client-logo--white { background: var(--white); border: 1px solid var(--line); }
.client-logo--navy { background: #1A1444; padding: 0; border: 1px solid var(--line); }
.client-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Workshop strip ---------- */
.workshop-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 220px;
  overflow: hidden;
  background: var(--charcoal);
}
.workshop-strip img { width: 100%; height: 100%; object-fit: cover; }
.workshop-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,43,45,.15) 0%, rgba(42,43,45,.55) 45%, rgba(42,43,45,.78) 100%);
  pointer-events: none;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 64px;
  align-items: start;
}
.contact-intro { display: flex; flex-direction: column; gap: 16px; color: var(--white); }
.contact-lead {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--white);
  max-width: 420px;
}
.contact-city { margin-top: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.contact-city-label {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field-label {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field input, .field textarea {
  padding: 0 14px;
  height: 48px;
  border: 1px solid #B3B4B6;
  border-radius: 2px;
  background: var(--white);
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.field textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--charcoal);
  box-shadow: 0 0 0 2px rgba(42,43,45,.18);
}

.dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1.5px dashed #B3B4B6;
  border-radius: 2px;
  background: var(--gray-50);
  cursor: pointer;
  transition: border-color 120ms ease;
}
.dropzone:hover { border-color: var(--charcoal); }
.dropzone input[type="file"] { display: none; }
.dropzone-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dropzone-label {
  min-width: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.btn-submit {
  align-self: flex-start;
  border: 0;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(27,28,29,0);
}
.btn-submit:active { transform: translateY(1px); }
.form-success {
  font-family: var(--font-body);
  font-size: 14px;
  color: #2E7D4F;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-deep);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.18);
}
.footer-logo { height: 36px; width: auto; }
.footer-tag {
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .header-inner { padding: 0 20px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--charcoal-deep);
    border-bottom: 1px solid rgba(255,255,255,.18);
  }
  .site-header.nav-open .nav a {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-bottom: 2px solid transparent;
  }

  .hero { min-height: 520px; }
  .hero-content { padding: 24px 20px 32px; justify-content: flex-end; }
  .hero-headline { font-size: 40px; line-height: 1.06; }
  .hero-lead { font-size: 16px; }
  .hero-ctas .btn-outline { display: none; }

  .section { padding: 48px 20px; }
  .section--clientes { padding-bottom: 48px; }
  .section-head { margin-bottom: 24px; }
  .section-title { font-size: 32px; }

  .about-grid, .services-grid { grid-template-columns: 1fr; gap: 12px; }

  .client-slide { flex: 0 0 50%; padding: 0 5px; }
  .client-logo { height: 96px; padding: 12px 16px; }
  .carousel-btn { width: 44px; height: 44px; }

  .workshop-strip { grid-template-columns: repeat(2, 1fr); height: 200px; }
  .workshop-strip img:nth-child(3), .workshop-strip img:nth-child(4) { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 20px; }

  .site-footer { padding: 20px; }
  .footer-logo { height: 30px; }
}

@media (min-width: 961px) and (max-width: 1280px) {
  .header-inner, .section > .section-head, .about-grid, .services-grid, .clients-carousel, .contact-grid {
    padding-left: 0;
    padding-right: 0;
  }
}
