/* ==========================================================
   Soft Warehouse — Hoja de estilos
   ========================================================== */

:root {
  --navy: #0E2240;
  --navy-dark: #0A1830;
  --navy-line: #2A3D5C;
  --ink: #1C2230;
  --text: #4A5263;
  --muted: #5B6374;
  --line: #E4E6EA;
  --line-soft: #EDEFF2;
  --surface: #F6F7F9;
  --field: #C3C8D1;
  --accent: #8A5A2B;
  --accent-light: #C9A77E;
  --white: #FFFFFF;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); }
a:hover { color: var(--accent); }

h1, h2, h3, p, ul, ol { margin: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

/* ---------- Tipografía común ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  color: var(--navy);
}

.lead { font-size: 17px; line-height: 1.7; color: var(--text); }

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

.section { padding-block: 112px; }
.section--alt { background: var(--surface); }
.section--bordered { border-bottom: 1px solid var(--line); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Barra superior ---------- */

.topbar { background: var(--navy); color: #D5DAE3; font-size: 13px; }
.topbar__inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 8px 24px; padding-block: 10px;
}
.topbar__links { display: flex; gap: 20px; align-items: center; }
.topbar a { color: #D5DAE3; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar a.is-active { color: var(--white); font-weight: 600; }
.topbar__sep { color: #8F9AAE; }

/* ---------- Encabezado / navegación ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(14, 34, 64, .08); }
.header__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px 32px; padding-block: 18px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand__logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 700; letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav a.is-current:not(.btn) { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  color: var(--navy); cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 12px 24px rgba(14, 34, 64, .08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */

.hero { border-bottom: 1px solid var(--line); }
.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px; align-items: center;
  padding-block: 96px 88px;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  color: var(--navy);
}
.hero__text { font-size: 19px; line-height: 1.6; color: var(--text); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.placeholder {
  background: #EEF0F3;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; text-align: center;
  padding: 24px;
}
.placeholder--hero { aspect-ratio: 4 / 3; }
.placeholder--wide { aspect-ratio: 16 / 9; background: #E4E7EC; color: var(--text); }
.photo { display: block; width: 100%; height: auto; object-fit: cover; background: #EEF0F3; }
.photo--hero { aspect-ratio: 4 / 3; }
.photo--wide { aspect-ratio: 16 / 9; }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line); border-top: 0;
}
.facts__item { padding: 18px 20px; }
.facts__item + .facts__item { border-left: 1px solid var(--line); }
.facts__label { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.facts__value { margin-top: 6px; font-weight: 600; color: var(--navy); }

@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts__item + .facts__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Clientes ---------- */

.clients { background: var(--surface); border-bottom: 1px solid var(--line); }
.clients__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 20px 48px; padding-block: 40px;
}
.clients__label { font-size: 14px; color: var(--text); flex: 1 1 200px; }
.clients__logos {
  flex: 999 1 640px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px;
}
.clients__logos { align-items: center; justify-items: center; gap: 24px; }
.client-logo {
  display: block; width: 100%; max-width: 160px; height: 64px;
  object-fit: contain;
}

/* ---------- Soluciones ---------- */

.solutions__inner { display: flex; flex-direction: column; gap: 56px; padding-block: 112px 96px; }
.solutions__intro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px 56px; align-items: end;
}
.solutions__intro .section-head { max-width: none; }

.solutions__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 32px;
  border-top: 2px solid var(--navy);
}
.solution-group {
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
}
.solution-group__num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent); }
.solution-group__title { font-size: 20px; font-weight: 600; color: var(--navy); }
.solution-list { list-style: none; padding: 0; }
.solution-list li {
  padding: 12px 0; border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.solution-list strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.solution-list span { font-size: 14px; line-height: 1.5; color: var(--muted); }

.callout {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px 32px; background: var(--surface); padding: 28px 32px;
}
.callout p { font-size: 17px; }
.callout a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Industrias ---------- */

.industries { background: var(--navy); color: var(--white); }
.industries__inner { display: flex; flex-direction: column; gap: 48px; padding-block: 104px; }
.industries .eyebrow { color: var(--accent-light); }
.industries .section-title { color: var(--white); }
.industries__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--navy-line); border: 1px solid var(--navy-line);
}
.industry { background: var(--navy); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; transition: background-color .2s ease; }
.industry:hover { background: #13294B; }
.industry h3 { font-size: 19px; font-weight: 600; }
.industry p { font-size: 15px; line-height: 1.6; color: #C3CAD7; }

/* ---------- Metodología ---------- */

.method__inner { display: flex; flex-direction: column; gap: 56px; }
.steps {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 32px;
}
.step { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--navy); padding-top: 24px; }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.step h3 { font-size: 19px; font-weight: 600; color: var(--navy); }
.step p { font-size: 15px; line-height: 1.6; color: var(--text); }

/* ---------- Nosotros ---------- */

.about__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px 80px;
}
.about__copy { display: flex; flex-direction: column; gap: 24px; }
.reasons { align-self: center; }
.reason {
  padding: 28px 0; border-top: 1px solid #D5D9E0;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px;
}
.reason svg { margin-top: 2px; }
.reason h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.reason p { font-size: 15px; line-height: 1.6; color: var(--text); }

/* ---------- Contacto ---------- */

.contact { border-top: 1px solid var(--line); }
.contact__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px 80px;
}
.contact__copy { display: flex; flex-direction: column; gap: 24px; }
.contact-list { border-top: 1px solid var(--line); margin-top: 8px; }
.contact-list__row {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
}
.contact-list__row span:first-child { color: var(--muted); font-size: 14px; }
.contact-list__row span:last-child,
.contact-list__row a { font-weight: 500; }

.form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; background: var(--surface); padding: 40px; align-self: start;
}
@media (max-width: 480px) { .form { padding: 24px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--field);
  background: var(--white);
  font: inherit; font-size: 16px; color: var(--ink);
  border-radius: 0;
  transition: border-color .2s ease;
}
.field input, .field select { height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14, 34, 64, .12); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #B42318; }
.field__error { font-size: 13px; color: #B42318; min-height: 0; }

.form__footer {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.form__privacy { font-size: 13px; color: var(--muted); }

.form__status { grid-column: 1 / -1; font-size: 15px; padding: 14px 16px; display: none; }
.form__status.is-success { display: block; background: #E8F3EC; color: #1E5B36; }
.form__status.is-error { display: block; background: #FDECEA; color: #8A1C13; }

/* ---------- Footer ---------- */

.footer { background: var(--navy-dark); color: #C3CAD7; }
.footer__inner { display: flex; flex-direction: column; gap: 56px; padding-block: 72px 32px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__about { display: flex; flex-direction: column; gap: 16px; flex: 1 1 280px; max-width: 360px; }
.footer__about .brand__name { color: var(--white); }
.footer__about p { font-size: 15px; line-height: 1.6; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px 64px; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-title { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8F9AAE; }
.footer a { color: #E3E7EE; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom {
  border-top: 1px solid #22355A; padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: #8F9AAE;
}

/* ---------- Ajustes móviles ---------- */

@media (max-width: 640px) {
  .section, .solutions__inner { padding-block: 72px; }
  .hero__inner { padding-block: 56px 64px; gap: 40px; }
  .industries__inner { padding-block: 72px; }
  .callout { padding: 24px; }
}

/* ---------- Animación al aparecer ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
