/* ============================================================
   Hoby Works - Hoja de estilos del sitio
   Paleta y tipografías tomadas del diseño original.
   ============================================================ */

:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --ink: #1b1d1f;
  --ink-2: #2d3135;
  --ink-3: #2d3135;
  --copper: #b87333;
  --copper-dark: #96602a;
  --line: #e5e7eb;
  --line-dark: #d6d9de;
  --muted: #6c727a;
  --muted-light: #9ba0a6;
  --on-dark: #c3c6cb;
  --panel-dark: #2d3135;

  --display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 1200px;
  --gutter: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--copper); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--copper-dark); }
::selection { background: var(--copper); color: var(--bg); }

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

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

/* ---------------------------------------------------- utilidades */

.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-wrap: pretty;
}

.section-lead {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 48px;
  max-width: 90ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--copper);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; color: var(--bg); }

/* ---------------------------------------------------- botones */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 500;
  padding: 15px 28px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--copper); color: var(--bg); }
.btn-primary:hover { background: var(--copper-dark); color: var(--bg); }

.btn-ghost {
  color: var(--bg);
  border-color: rgba(247, 247, 248, 0.28);
}
.btn-ghost:hover { background: var(--panel-dark); color: var(--bg); }

.btn-sm { font-size: 14.5px; padding: 10px 20px; }

/* ---------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
}

.site-header .wrap {
  padding-top: 15px;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 13px; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.08em;
  color: var(--ink);
}
.brand-mark span { color: var(--copper); }

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--bg);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name span { color: var(--copper); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14.5px; color: var(--on-dark); }
.nav a:hover { color: var(--bg); }
.nav a.btn-primary { color: var(--bg); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(247, 247, 248, 0.28);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bg);
  border-radius: 2px;
}
.nav-toggle span + span { margin-top: 4px; }

/* ---------------------------------------------------- hero */

.hero { background: var(--ink); color: var(--bg); scroll-margin-top: 80px; }

.hero .wrap {
  padding-top: 100px;
  padding-bottom: 92px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: pretty;
}

.hero-lead {
  font-size: clamp(17px, 2.2vw, 19.5px);
  line-height: 1.6;
  color: var(--on-dark);
  margin: 0 0 16px;
  max-width: 54ch;
}

.hero-claim {
  font-weight: 600;
  font-size: clamp(17px, 2.2vw, 19.5px);
  line-height: 1.6;
  color: var(--bg);
  margin: 0 0 38px;
  max-width: 54ch;
}

.hero-actions { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; }

.servicios-panel {
  background: var(--panel-dark);
  border-radius: 18px;
  padding: 34px;
}
.servicios-panel .eyebrow { font-size: 10.5px; letter-spacing: 0.18em; margin-bottom: 22px; }

.servicio {
  padding: 16px 0;
  border-bottom: 1px solid rgba(247, 247, 248, 0.13);
}
.servicio:last-child { border-bottom: none; padding-bottom: 0; }

.servicio h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--bg);
  margin: 0 0 5px;
}
.servicio p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted-light);
  margin: 0;
}

/* ---------------------------------------------------- capacidades */

.capacidades { border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.capacidades .wrap { padding-top: 92px; padding-bottom: 92px; }
.capacidades .section-title { max-width: 20ch; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}

.card-num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--copper);
}

.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  margin: 12px 0;
  letter-spacing: -0.02em;
}

.card p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* ---------------------------------------------------- proceso */

.proceso {
  background: var(--line);
  border-bottom: 1px solid var(--line-dark);
  scroll-margin-top: 80px;
}
.proceso .wrap { padding-top: 84px; padding-bottom: 84px; }
.proceso .eyebrow { color: var(--copper-dark); }
.proceso .section-title { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; max-width: 22ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

.paso { border-top: 2px solid #b4b8bf; padding-top: 20px; }
.paso:first-child { border-top-color: var(--copper); }

.paso .card-num { color: var(--copper-dark); }
.paso:first-child .card-num { color: var(--copper); }

.paso h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  margin: 10px 0;
  letter-spacing: -0.02em;
}
.paso p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* ---------------------------------------------------- industrias */

.industrias { border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.industrias .wrap { padding-top: 92px; padding-bottom: 92px; }
.industrias .section-title { max-width: 26ch; }
.industrias .section-lead { margin-bottom: 44px; }

.industrias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.industria {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.industria-img {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #eff0f2;
}
.industria-img img { width: 100%; height: 100%; object-fit: cover; }

.industria h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.industria p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* ---------------------------------------------------- nosotros */

.nosotros {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.nosotros .wrap { padding-top: 92px; padding-bottom: 92px; }
.nosotros .section-title { max-width: 24ch; line-height: 1.09; margin-bottom: 36px; }

.nosotros-foto {
  float: right;
  width: 400px;
  max-width: 100%;
  margin: 6px 0 32px 44px;
}
.nosotros-foto div {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #eff0f2;
  border: 1px solid var(--line);
}
.nosotros-foto img { width: 100%; height: 100%; object-fit: cover; }

.nosotros p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 20px; }
.nosotros strong { font-weight: 600; color: var(--ink); }

.quote {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--copper);
  padding-left: 20px;
}

.nosotros h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 44px 0 16px;
}

.clear { clear: both; }

/* ---------------------------------------------------- contacto */

.contacto { scroll-margin-top: 80px; }
.contacto .wrap {
  padding-top: 92px;
  padding-bottom: 92px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contacto .section-title { max-width: 16ch; margin-bottom: 20px; }
.contacto-intro { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 18px; }
.contacto-intro:last-of-type { margin-bottom: 32px; }
.contacto-intro strong { font-weight: 600; color: var(--ink); }

.datos { display: flex; flex-direction: column; gap: 14px; }
.dato { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.dato dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  width: 78px;
  flex-shrink: 0;
}
.dato dd { margin: 0; font-size: 16px; color: var(--ink-2); }

/* ---------------------------------------------------- formulario */

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.campo { display: flex; flex-direction: column; gap: 7px; }

.campo label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.campo input,
.campo textarea {
  font-family: var(--body);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease;
}
.campo textarea { resize: vertical; min-height: 110px; }

.campo input:focus,
.campo textarea:focus { border-color: var(--copper); }

.campo.invalido input,
.campo.invalido textarea { border-color: #c0392b; }

.campo-error {
  font-size: 13px;
  line-height: 1.4;
  color: #c0392b;
  min-height: 0;
}
.campo-error:empty { display: none; }

.form button[type="submit"] { border: none; }
.form button[disabled] { opacity: 0.6; cursor: progress; }

.form-status {
  font-size: 15px;
  line-height: 1.5;
  border-radius: 9px;
  padding: 14px 16px;
  margin: 0;
}
.form-status:empty { display: none; }
.form-status.exito { background: #edf7ef; color: #1e6b32; border: 1px solid #c6e6cf; }
.form-status.error { background: #fdf0ee; color: #a5342a; border: 1px solid #f2cdc7; }

/* ---------------------------------------------------- footer */

.site-footer { background: var(--ink); }

.footer-top {
  padding-top: 54px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-tagline { font-size: 14.5px; color: var(--muted-light); margin: 14px 0 0; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }

.footer-col-title,
.footer-legal span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a { font-size: 14.5px; color: var(--on-dark); }
.footer-col a:hover { color: var(--bg); }

.footer-bottom { border-top: 1px solid rgba(247, 247, 248, 0.12); }
.footer-legal {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal span:last-child { text-transform: none; letter-spacing: 0.14em; }

/* ---------------------------------------------------- animación de entrada */

.reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   Responsivo
   ============================================================ */

@media (max-width: 1024px) {
  .industrias-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .contacto .wrap { grid-template-columns: 1fr; gap: 44px; }
  .grid-3 { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }

  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    border-top: 1px solid rgba(247, 247, 248, 0.12);
  }
  .nav.abierto { display: flex; }
  .nav a { padding: 14px 0; font-size: 16px; }
  .nav a.btn-primary { text-align: center; margin-top: 10px; padding: 14px 20px; }

  .site-header .wrap { position: relative; }

  .hero .wrap { padding-top: 64px; padding-bottom: 60px; }
  .capacidades .wrap,
  .industrias .wrap,
  .nosotros .wrap,
  .contacto .wrap { padding-top: 60px; padding-bottom: 60px; }
  .proceso .wrap { padding-top: 56px; padding-bottom: 56px; }

  .grid-2 { grid-template-columns: 1fr; }
  .section-lead { margin-bottom: 32px; }

  .card { padding: 26px; }
  .form { padding: 24px; }
  .servicios-panel { padding: 26px; }

  .nosotros-foto {
    float: none;
    width: 100%;
    margin: 0 0 28px;
  }
  .nosotros h3 { margin-top: 32px; }
}

@media (max-width: 640px) {
  .industrias-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .btn-sm, .nav a.btn-primary { width: auto; }
  .hero-actions { gap: 10px; }
  .footer-cols { gap: 32px; }
  .dato dt { width: 100%; }
}
