/* ---------- Tokens ---------- */
:root {
  --color-primary: #1c55ef;
  --color-primary-dark: #143eb8;
  --color-bg: #f3f8ff;
  --color-white: #ffffff;
  --color-black: #0a0a0a;
  --color-text: #1a1a1a;
  --color-muted: #888888;
  --color-muted-dark: #404040;
  --color-border: #dde0e7;

  --radius-lg: 15px;
  --radius-md: 10px;

  --container-width: 1200px;
  --container-pad: 24px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding-left: 1.2em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 19px 28px;
  border-radius: var(--radius-lg);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  text-transform: uppercase;
}
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover { background: rgba(28, 85, 239, 0.08); }
.btn--block { width: 100%; min-width: 0; }
.btn:active { transform: translateY(1px); }

.badge-text {
  display: inline-block;
  font-size: 12px;
  color: #a4a4a4;
  text-transform: uppercase;
}

/* ---------- Section heading ---------- */
.section-heading {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 56px;
}
.section-heading h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-heading p {
  font-size: 18px;
  color: var(--color-text);
}

/* ---------- Image crop utilities ---------- */
/* Reproduces the exact crop windows from the source design so product
   photography lines up the same way regardless of container size. */
.img-crop {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
}
.img-crop img {
  position: absolute;
  max-width: none;
  display: block;
}
.img-crop--hero { aspect-ratio: 460 / 405; }
.img-crop--hero img { width: 156.9%; height: 178.02%; left: -34.14%; top: -37.09%; }

.img-crop--armarios { aspect-ratio: 370 / 217; }
.img-crop--armarios img { width: 102.88%; height: 131.75%; left: -2.88%; top: -31.72%; }

.img-crop--climatizacion { aspect-ratio: 376 / 246; }
.img-crop--climatizacion img { width: 112.71%; height: 114.85%; left: -6.36%; top: -14.85%; }

.img-crop--distribucion { aspect-ratio: 420 / 190; }
.img-crop--distribucion img { width: 100.05%; height: 166.46%; left: -0.02%; top: -31.01%; }

.logo-crop { position: relative; overflow: hidden; display: block; }
.logo-crop img { position: absolute; max-width: none; display: block; }
.logo-crop--rittal { width: 130px; height: 61px; }
.logo-crop--rittal img { width: 163.03%; height: 346.43%; left: -29.97%; top: -216.67%; }
.logo-crop--lsi { width: 100px; height: 49px; }
.logo-crop--lsi img { width: 189.82%; height: 384.92%; left: -39.81%; top: -62.24%; }

.divider-line { display: inline-flex; align-items: center; justify-content: center; width: 1px; height: 36px; flex: none; }
.divider-line img { width: 36px; height: auto; transform: rotate(90deg); }

/* ---------- Header ---------- */
.topbar { background: var(--color-bg); padding-block: 20px; }
.topbar__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.topbar__badge {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar__badge-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.4;
  max-width: 210px;
}

/* ---------- Hero ---------- */
.hero { padding-block: 40px 56px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero__content h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 24px;
}
.hero__content p {
  font-size: 18px;
  color: var(--color-text);
  max-width: 520px;
}
.hero .badge-text { margin-top: 18px; }

.hero__media { position: relative; }
.hero__accent {
  position: absolute;
  left: 0.5%;
  top: 65%;
  width: 83.5%;
  height: 56%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
}
.hero__accent img {
  width: 96%;
  transform: rotate(-18.54deg);
}
.img-crop--hero {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--color-white);
  padding-block: 28px;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.trust-item__icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}
.trust-item p {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

/* ---------- Solutions / cards ---------- */
.solutions { padding-block: 88px; }

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

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(10, 10, 10, 0.18);
  display: flex;
  flex-direction: column;
}
.card__media {
  background: var(--color-black);
}
.card__media--cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 350 / 263;
}
.card__media--cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px;
}
.card__body h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 12px;
}
.card__body > p {
  font-size: 18px;
  margin-bottom: 16px;
}
.card__body ul {
  font-size: 15px;
  color: var(--color-muted-dark);
  margin-bottom: 24px;
}
.card__body li + li { margin-top: 6px; }
.card__body .btn { margin-top: auto; }

/* ---------- About ---------- */
.about { background: var(--color-white); padding-block: 96px; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.about__text h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}
.about__text p { font-size: 18px; }

.about__media {
  position: relative;
  width: 100%;
  max-width: 603px;
  aspect-ratio: 603 / 380;
  margin-inline: auto;
}
.about__photo {
  position: absolute;
  width: 58%;
  aspect-ratio: 340 / 189;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 20px 40px -20px rgba(10, 10, 10, 0.25);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--back {
  top: 0; left: 0;
  border: 3px solid var(--color-white);
  border-radius: 19px;
  z-index: 1;
}
.about__photo--front {
  top: 24%; left: 42%;
  border: 5px solid var(--color-white);
  border-radius: 20px;
  z-index: 2;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
}
.feature-item__icon {
  display: block;
  width: 26px;
  height: 26px;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.feature-item h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
.feature-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-muted);
}

/* ---------- Quote / form ---------- */
.quote { padding-block: 96px; }
.quote__inner { max-width: 800px; margin-inline: auto; }
.quote .section-heading { margin-bottom: 24px; }
.quote .badge-text { margin-bottom: 12px; }

.quote-form {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 16px;
}
.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 24px; }
.field input,
.field textarea {
  width: 100%;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-text);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.field--textarea textarea { resize: vertical; min-height: 96px; }

.form-feedback {
  background: rgba(28, 85, 239, 0.08);
  color: var(--color-primary-dark);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
}
.form-feedback[data-state="error"] {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.quote__privacy {
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
  max-width: 560px;
  margin: 24px auto 0;
}

/* ---------- Thank you page ---------- */
.thanks { padding-block: 120px; }
.thanks__inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}
.thanks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: rgba(28, 85, 239, 0.1);
  color: var(--color-primary);
}
.thanks__icon svg { width: 32px; height: 32px; }
.thanks h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}
.thanks p {
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 32px;
}
.thanks .btn-row { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-black);
  color: var(--color-muted);
  padding-block: 28px;
  text-align: center;
}
.footer__link {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: underline;
  margin-bottom: 10px;
}
.footer__copy { font-size: 12px; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { width: 100%; max-width: 460px; margin-inline: auto; }
  .hero__content { text-align: center; }
  .hero__content p { margin-inline: auto; }
  .btn-row { justify-content: center; }

  .about__inner { grid-template-columns: 1fr; }
  .about__text { text-align: center; order: -1; }
  .about__text p { max-width: 520px; margin-inline: auto; }
  .about__media { margin-top: 40px; }

  .cards-grid { grid-template-columns: 1fr; }

  .trust-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feature-list { grid-template-columns: repeat(2, 1fr); text-align: center; }
  .feature-item__icon { margin-inline: auto; }
}

@media (max-width: 640px) {
  :root { --container-pad: 16px; }

  .topbar { padding-block: 12px; }
  .topbar__inner { gap: 8px 16px; }
  .logo-crop--rittal { width: 92px; height: 43px; }
  .logo-crop--lsi { width: 68px; height: 33px; }
  .topbar__badge { gap: 10px; }
  .topbar__badge-text { font-size: 11px; max-width: 160px; }
  .divider-line { height: 28px; }
  .divider-line img { width: 28px; }

  .hero { padding-block: 16px 32px; }
  .hero__content h1 { font-size: 23px; line-height: 1.25; margin-bottom: 14px; }
  .hero__content p { font-size: 16px; }

  .btn { min-width: 0; width: 100%; padding: 15px 24px; }
  .btn-row { flex-direction: column; margin-top: 18px; }
  .hero .badge-text { margin-top: 12px; }

  .section-heading h2, .about__text h2 { font-size: 26px; }
  .solutions, .about, .quote { padding-block: 64px; }

  .trust-list { grid-template-columns: 1fr; gap: 16px; }
  .feature-list { grid-template-columns: 1fr; gap: 28px; }
  .quote-form { padding: 16px; }
}
