:root {
  --paper: #fdfdfb;
  --paper-2: #f3eee2;
  --cream: #ede5d3;
  --ink: #141414;
  --ink-2: #4a4740;
  --ink-3: #6b665a; /* AA (4.5:1) on --paper, --paper-2 and --cream */
  --line: #e2dccd;
  --brand: #ffbf33;
  --brand-deep: #e9a20f;
  --brand-soft: #fff1cc;
  --dark: #121212;
  --dark-2: #1d1d1b;

  --serif: "Petrona", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --section-pad: clamp(44px, 5.5vw, 80px);
}

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

html { scroll-behavior: smooth; }

/* Menu jumps: land with the eyebrow ~24px below the sticky header, skipping the section's top padding */
section[id] { scroll-margin-top: calc(var(--header-h) + 24px - var(--section-pad)); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

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

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.eyebrow-light { color: #cfc9ba; }
.eyebrow-light::before { box-shadow: 0 0 0 4px rgba(255, 191, 51, 0.18); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 600 0.98rem/1 var(--sans);
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}
.btn-ghost { background: transparent; color: var(--ink); }
.btn-small { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand img { width: 150px; height: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--brand);
  transition: right 0.25s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { right: 0; }

/* Language link: chip with the globe in a yellow dot (like the eyebrow) + the other language's code */
.nav a.lang-link:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 3px 0.75rem 3px 3px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav a.lang-link:not(.btn)::after { display: none; }
.lang-link svg {
  box-sizing: content-box;
  padding: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  transition: transform 0.5s ease;
}
.nav a.lang-link:not(.btn):hover { border-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.lang-link:hover svg { transform: rotate(180deg); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero {
  padding: clamp(24px, 3.5vw, 48px) 0 clamp(40px, 5vw, 72px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.1rem);
  font-weight: 600;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(transparent 62%, var(--brand) 62%, var(--brand) 92%, transparent 92%);
  padding: 0 0.08em;
}
.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 36em;
  margin: 1.6rem 0 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}
.glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 51, 0.55) 0%, rgba(255, 191, 51, 0.12) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  animation: pulse 5s ease-in-out infinite;
}
.hero-bulb {
  position: relative;
  width: 190px;
  animation: float 6s ease-in-out infinite;
}

.card {
  position: absolute;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  max-width: 230px;
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow: 5px 5px 0 var(--ink);
}
.card p { margin: 0.45rem 0 0; }
.card-before { top: 8%; left: 0; transform: rotate(-3deg); color: var(--ink-2); }
.card-before p { text-decoration: line-through; text-decoration-color: rgba(20, 20, 20, 0.35); }
.card-after { bottom: 6%; right: 0; transform: rotate(2deg); background: var(--brand-soft); }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
}
.tag-muted { background: var(--paper-2); color: var(--ink-3); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -58%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -58%) scale(1.08); }
}

/* Hero bulb built from particles (main.js) */
.hero-bulb {
  transition: opacity 0.3s ease;
  /* Dragging a finger over the bulb moves the particles instead of scrolling the page */
  touch-action: none;
}
.bulb-reveal .hero-bulb { transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.1s; }
.bulb-anim .hero-bulb { opacity: 0; animation-play-state: paused; }
.bulb-live .hero-bulb { opacity: 0; transition-duration: 0.12s; }
.bulb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.38s ease;
}
.bulb-canvas.on { opacity: 1; transition-duration: 0.12s; }

/* Promise words light up while scrolling (main.js) */
.promise blockquote.words .w { color: rgba(244, 241, 234, 0.16); transition: color 0.45s ease; }
.promise blockquote.words .w.on { color: #f4f1ea; }
.promise blockquote.words .w-accent.on { color: var(--brand); }
/* The word spans would otherwise pick up the italic meant only for the highlighted part */
.promise blockquote.words .w:not(.w-accent) { font-style: normal; }

/* Promise pillars slide in from the left and draw their top line, one after another */
.pillars.scroll .pillar { position: relative; border-top-color: transparent; }
.pillars.scroll .pillar::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.pillars.scroll .pillar > * {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.pillars.scroll .pillar.on::before { transform: scaleX(1); }
.pillars.scroll .pillar.on > * { opacity: 1; transform: none; }

/* Values band: the four promises, static (replaced an auto-scrolling marquee) */
.values-band { background: var(--ink); color: var(--paper); }
.values {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.value {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.6rem 1.4rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.value:first-child { border-left: 0; padding-left: 0; }
.value strong {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.25;
}
.value strong::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 191, 51, 0.18);
}
.value span { font-size: 0.9rem; line-height: 1.5; color: #cfc9ba; padding-left: calc(9px + 0.6rem); }

/* Sections */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 48px); }

/* Enfoque: heading left, satisfaction highlight right */
.enfoque-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.enfoque-head .section-head { margin-bottom: 0; }
.highlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.highlight-text {
  margin: 0;
  text-wrap: balance;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.highlight-text em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(transparent 62%, var(--brand) 62%, var(--brand) 92%, transparent 92%);
}
.highlight-sub {
  margin: 1rem 0 0;
  color: var(--ink-2);
  font-size: 1.05rem;
}
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.section-lead {
  color: var(--ink-2);
  font-size: 1.12rem;
  margin: 1.2rem 0 0;
  max-width: 40em;
}
.section-lead a { text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* Compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-col { padding: clamp(28px, 4vw, 48px); }
.compare-col h3 { font-size: 1.5rem; margin-bottom: 1.4rem; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.compare-col li { position: relative; padding-left: 2rem; }
.compare-col li::before {
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.compare-them { background: #fff; color: var(--ink-2); }
.compare-them li::before { content: "✕"; background: var(--paper-2); color: var(--ink-3); }
.compare-us { background: var(--brand); border-left: 2px solid var(--ink); }
.compare-us li { font-weight: 500; }
.compare-us li::before { content: "✓"; background: var(--ink); color: var(--brand); }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.service:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--ink);
  background: #fff;
}
.service-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  margin-bottom: 1.4rem;
}
.service h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.service p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.product-logo {
  height: 170px;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 28px;
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}
/* Alto fijo (170 menos el padding de 28 arriba y abajo): con max-height en % no se resuelve y el logo alto se desbordaba y quedaba descentrado. */
.product-logo img { display: block; max-height: 114px; max-width: 75%; width: auto; height: auto; margin: auto; object-fit: contain; }
.product-logo-empty span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 2px dashed #cfc7b4;
  border-radius: 12px;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.product-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  flex: 1;
}
.product-body h3 { font-size: 1.45rem; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-dev { background: var(--ink); color: var(--paper); }
.product-body p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.product-link {
  margin-top: auto;
  padding-top: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--brand);
}
.product-link::after { content: " →"; }
.product-link:hover { border-bottom-color: var(--ink); }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: none;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  border-top: 2px dashed var(--line);
}
.step { position: relative; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
  transition: background 0.25s ease;
}
.step:hover .step-num { background: var(--brand); }
.step h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* Dark / promise */
.section-dark {
  background: var(--dark);
  color: #f4f1ea;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -200px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 51, 0.22), transparent 65%);
  pointer-events: none;
}
.promise { max-width: 920px; position: relative; }
.promise blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.promise blockquote span { color: var(--brand); font-style: italic; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  position: relative;
}
.pillar {
  border-top: 2px solid var(--brand);
  padding-top: 1.4rem;
}
.pillar h3 { font-size: 1.4rem; margin-bottom: 0.7rem; color: #fff; }
.pillar p { margin: 0; color: #bdb7a8; font-size: 0.98rem; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq-grid .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand); }
.faq details p { margin: 0.9rem 0 0; color: var(--ink-2); max-width: 38em; }

/* Contact */
.section-cta { background: var(--cream); padding-bottom: clamp(36px, 4vw, 52px); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-copy h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.9rem; }
.contact-list li { display: flex; gap: 1rem; font-weight: 500; flex-wrap: wrap; }
.contact-list span {
  min-width: 70px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  padding-top: 0.15rem;
}
.contact-list a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.contact-form {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: 8px 8px 0 var(--ink);
  display: grid;
  gap: 0.85rem;
}
/* start: an error under Nombre must not stretch the Empresa input */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; align-items: start; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.field.invalid input,
.field.invalid textarea { border-color: #c2410c; }
.field-error { margin: 0; font-size: 0.82rem; color: #c2410c; }
.field-error:empty { display: none; }
.field label .optional { font-weight: 400; color: var(--ink-3); }
/* Honeypot field: off-screen for people, still filled by bots */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; }
.form-note { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.form-note:empty { display: none; }

/* Footer */
.site-footer {
  background: var(--paper);
  padding: 24px 0;
  border-top: 2px solid var(--ink);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.92rem;
}
.footer-inner p { margin: 0; }
.footer-logo { width: 100px; }
.muted { color: var(--ink-3); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 1.4rem; }
}

@media (max-width: 980px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(odd) { border-left: 0; padding-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .enfoque-head { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Hamburger menu from tablet down */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 0.5rem var(--gutter) 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav a.lang-link:not(.btn) { align-self: flex-start; margin-top: 1rem; padding: 3px 0.85rem 3px 3px; border: 1.5px solid var(--line); }
  .nav .btn { margin-top: 1rem; padding: 0.9rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header-h: 68px; }
  .brand img { width: 128px; }

  /* Hero: bulb on top, before/after cards side by side below it */
  .hero-visual {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 8px;
    place-items: stretch;
  }
  .hero-bulb { grid-column: 1 / -1; width: 112px; justify-self: center; margin-bottom: 8px; }
  .glow { width: 240px; height: 240px; top: 0; transform: translate(-50%, -12%); animation: none; }
  .card {
    position: relative;
    inset: auto;
    max-width: none;
    height: 100%;
    font-size: 0.86rem;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .card-before { transform: rotate(-1.5deg); }
  .card-after { transform: rotate(1.5deg); }

  .compare { grid-template-columns: 1fr; }
  .compare-us { border-left: 0; border-top: 2px solid var(--ink); }
  .services { grid-template-columns: 1fr; gap: 14px; }
  .products { grid-template-columns: 1fr; gap: 14px; }
  .product-logo { height: 140px; }
  .product-logo img { max-height: 84px; }
  .product:hover { transform: none; box-shadow: 5px 5px 0 var(--ink); }
  .service { padding: 24px 22px 26px; }
  .service:hover { transform: none; box-shadow: 5px 5px 0 var(--ink); }

  /* Steps as a vertical timeline: number left, text right */
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; }
  .step-num { width: 48px; height: 48px; font-size: 1.2rem; margin: 0; grid-row: span 2; align-self: start; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 56px;
    bottom: -26px;
    border-left: 2px dashed var(--line);
  }
  .step h3 { font-size: 1.3rem; align-self: center; }

  .faq summary { font-size: 1.12rem; }
  .faq summary::after { width: 30px; height: 30px; }
  .contact-form { box-shadow: 5px 5px 0 var(--ink); }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; align-items: flex-start; }
  .eyebrow::before { margin-top: 0.3em; flex: none; }
  .hero-actions .btn { width: 100%; }
  .card { padding: 0.75rem 0.85rem; font-size: 0.8rem; }
  .compare-col { padding: 24px 20px; }
}

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

@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .value { border-left: 0; padding: 1.1rem 0; }
  .value + .value { border-top: 1px solid rgba(255, 255, 255, 0.12); }
}
