:root {
  --paper: #ffffff;
  --paper-alt: #f6f4ef;
  --ink: #1c2430;
  --navy: #1f3a5f;
  --navy-deep: #14283f;
  --muted: #5b6472;
  --accent: #2f5fa8;
  --accent-hover: #244a86;
  --accent-ink: #ffffff;
  --line: #dfdcd2;
  --paper-tint: #eef2f8;
  --paper-tint-2: #dde6f1;

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Source Sans 3", sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  color: var(--navy-deep);
}

p { margin: 0 0 1em; color: var(--ink); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9em;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 100px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 20ch; margin-bottom: 0.6em; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 28px -20px rgba(20, 40, 63, 0.45); }

.bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-logo { height: 32px; width: auto; }
.brand-divider { width: 1px; height: 24px; background: var(--line); }
.brand-baumer-logo { height: 18px; width: auto; }

@media (max-width: 560px) {
  .brand-divider, .brand-baumer-logo { display: none; }
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
}
.nav a:hover { color: var(--accent); }
.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  color: var(--navy) !important;
}
.nav-cta:hover { background: var(--navy); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-deep); margin: 0 8px; }

.nav-mobile { display: none; flex-direction: column; padding: 4px 28px 20px; }
.nav-mobile a {
  text-decoration: none;
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  font-weight: 500;
}
.nav-mobile .nav-cta { border: none; padding: 13px 0; color: var(--accent) !important; }

.site-header.is-open .nav-mobile { display: flex; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-block { width: 100%; }

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 1.1em;
  margin-bottom: 1.1em;
  border-bottom: 1px solid var(--line);
}
.brand-badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.baumer-logo { height: 22px; width: auto; }
.baumer-logo-lg { height: 40px; }
.footer-logo { height: 28px; }

.brand-badge-plain {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
  flex-shrink: 0;
}

/* ---------- split layout (contacto) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.split-reverse { grid-template-columns: 1fr 1.1fr; }

.split-main h2 { margin-bottom: 0.55em; }
.split-main p + p { margin-top: 1em; }

@media (max-width: 900px) {
  .split, .split-reverse { grid-template-columns: 1fr; }
}

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

.video-hero {
  background: var(--navy-deep);
}
.video-hero-media {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

/* ---------- products ---------- */

.prod-lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .brand-badge-plain { flex-direction: column; align-items: flex-start; gap: 8px; }
  .baumer-logo-lg { height: auto; width: 150px; max-width: 100%; }
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 2.4em;
}
.showcase-tile {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.showcase-tile:hover {
  box-shadow: 0 28px 48px -26px rgba(20, 40, 63, 0.4);
  transform: translateY(-4px);
}
.showcase-photo {
  height: 260px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--paper-tint), var(--paper-tint-2));
}
.showcase-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.showcase-caption {
  padding: 22px 26px;
  border-top: 1px solid var(--line);
}
.showcase-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4em;
}
.showcase-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy-deep);
}

@media (max-width: 700px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-photo { height: 220px; }
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2.4em;
}
.prod-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.prod-card:hover {
  box-shadow: 0 20px 36px -22px rgba(20, 40, 63, 0.35);
  transform: translateY(-4px);
  border-color: var(--navy);
}
.prod-icon {
  width: 38px; height: 38px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  margin-bottom: 18px;
}

.prod-icon-dot { fill: var(--accent); stroke: none; }

.prod-card-photo { padding-top: 0; }
.prod-photo {
  margin: 0 -24px 20px;
  padding: 14px 20px;
  height: 140px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-photo img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.prod-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7em;
}
.prod-card h3 { font-size: 1.08rem; margin-bottom: 0.45em; }
.prod-card p { color: var(--muted); font-size: 0.89rem; }

@media (max-width: 760px) {
  .prod-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .prod-grid { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */

.contact-info { list-style: none; margin: 2em 0 0; padding: 0; }
.contact-info li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--accent); }
.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  width: 90px;
  flex-shrink: 0;
}

.quote-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 48px -32px rgba(20, 40, 63, 0.35);
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-2 > div { display: flex; flex-direction: column; gap: 8px; }

.quote-form label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-form input, .quote-form textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 12px 14px;
  resize: vertical;
}
.quote-form input:focus, .quote-form textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

.form-note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  min-height: 1.2em;
  margin: 0;
}
.form-note.is-error { color: #a4341f; }

@media (max-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ---------- scroll reveal ---------- */

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

.prod-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.prod-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.prod-grid .reveal:nth-child(5) { transition-delay: 0.06s; }
.prod-grid .reveal:nth-child(6) { transition-delay: 0.12s; }

.showcase-grid .reveal:nth-child(2) { transition-delay: 0.08s; }

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

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

.site-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- whatsapp fab ---------- */

.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(20, 40, 63, 0.45);
  z-index: 40;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(20, 40, 63, 0.5);
}

@media (max-width: 560px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* ---------- focus ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
