/* =================================================================
   EMERAX INDUSTRIAL — Sitio Web
   Paleta tomada del logo corporativo
   ================================================================= */

:root {
  --c-petrol: #1F3A3D;
  --c-petrol-dark: #142628;
  --c-petrol-light: #2E5557;
  --c-copper: #B36A3D;
  --c-copper-light: #D89968;
  --c-copper-bright: #E8B27E;
  --c-cream: #F5F0E3;
  --c-cream-soft: #FAF6EC;
  --c-white: #FFFFFF;
  --c-gray-100: #F4F5F5;
  --c-gray-200: #E4E6E6;
  --c-gray-400: #9AA4A5;
  --c-gray-600: #5C6B6E;
  --c-gray-800: #2A3537;
  --c-text: #1A2426;

  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1280px;
  --container-wide: 1440px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 6px rgba(20, 38, 40, 0.06);
  --shadow: 0 10px 30px rgba(20, 38, 40, 0.10);
  --shadow-lg: 0 25px 60px rgba(20, 38, 40, 0.18);

  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-cream-soft);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; color: var(--c-petrol); margin: 0 0 .6em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container { width: 92%; max-width: var(--container); margin-inline: auto; }
.container-wide { width: 94%; max-width: var(--container-wide); margin-inline: auto; }
section { padding: clamp(60px, 9vw, 120px) 0; }
.bg-cream { background: var(--c-cream); }
.bg-petrol { background: var(--c-petrol); color: var(--c-cream); }
.bg-petrol h1, .bg-petrol h2, .bg-petrol h3, .bg-petrol h4 { color: var(--c-cream); }
.bg-white { background: var(--c-white); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-copper);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--c-copper);
  display: inline-block;
}
.bg-petrol .eyebrow { color: var(--c-copper-bright); }
.bg-petrol .eyebrow::before { background: var(--c-copper-bright); }
.section-title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin-bottom: .35em; }
.section-lead { font-size: 1.125rem; max-width: 720px; color: var(--c-gray-600); }
.bg-petrol .section-lead { color: rgba(245, 240, 227, 0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--c-copper);
  color: var(--c-white);
  border-color: var(--c-copper);
}
.btn-primary:hover { background: var(--c-copper-light); border-color: var(--c-copper-light); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(179, 106, 61, 0.35); }
.btn-outline {
  background: transparent;
  color: var(--c-petrol);
  border-color: var(--c-petrol);
}
.btn-outline:hover { background: var(--c-petrol); color: var(--c-cream); }
.btn-ghost {
  color: var(--c-cream);
  border-color: rgba(245, 240, 227, 0.5);
}
.btn-ghost:hover { background: var(--c-cream); color: var(--c-petrol); border-color: var(--c-cream); }
.btn-arrow::after {
  content: "→";
  transition: transform var(--transition);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 58, 61, 0.08);
  z-index: 1000;
  transition: all var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { font-family: var(--font-serif); font-weight: 700; color: var(--c-petrol); font-size: 1.35rem; letter-spacing: .04em; }
.nav-list { display: flex; align-items: center; gap: 38px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--c-petrol);
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.01em;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--c-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); }
.nav-list a.active { color: var(--c-copper); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-size: .88rem; color: var(--c-gray-600); display: inline-flex; gap: 6px; align-items: center; }
.header-phone strong { color: var(--c-petrol); font-weight: 600; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--c-petrol); position: relative; transition: all var(--transition); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--c-petrol); transition: all var(--transition); }
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after { top: 8px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .header-phone { display: none; }
  .nav-list { gap: 24px; }
}
@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .nav-list {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--c-petrol);
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 8%;
    gap: 12px;
    z-index: 99;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav-list a { color: var(--c-cream); font-size: 1.4rem; font-family: var(--font-serif); }
  .nav-list a::after { background: var(--c-copper-bright); }
  .nav-list.is-open { transform: translateX(0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 90vh, 800px);
  padding-top: calc(var(--header-h) + 50px);
  display: flex;
  align-items: center;
  background: var(--c-petrol);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(0.85);
  transform: scale(1.04);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 38, 40, 0.85) 0%, rgba(20, 38, 40, 0.55) 55%, rgba(31, 58, 61, 0.25) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: var(--container);
  margin-inline: auto;
  color: var(--c-cream);
}
.hero__inner .eyebrow { color: var(--c-copper-bright); }
.hero__inner .eyebrow::before { background: var(--c-copper-bright); }
.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  color: var(--c-cream);
  max-width: 14ch;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  color: var(--c-copper-bright);
  font-weight: 500;
}
.hero__lead {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  max-width: 56ch;
  color: rgba(245, 240, 227, 0.9);
  margin-bottom: 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  position: absolute;
  bottom: 40px;
  right: 5%;
  display: flex;
  gap: 36px;
  color: rgba(245, 240, 227, 0.85);
  font-size: .85rem;
  z-index: 2;
}
.hero__meta strong { display: block; color: var(--c-cream); font-family: var(--font-serif); font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }
@media (max-width: 720px) { .hero__meta { display: none; } }

/* ---------- Hero variant - inner page ---------- */
.hero--inner { min-height: 60vh; padding-top: calc(var(--header-h) + 60px); padding-bottom: 80px; }
.hero--inner .hero__title { font-size: clamp(2.2rem, 5vw, 4rem); }

/* ---------- Pillars / Value props ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid rgba(31, 58, 61, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-white);
  margin-top: 60px;
}
.pillar {
  padding: 38px 32px;
  border-right: 1px solid rgba(31, 58, 61, 0.08);
  transition: background var(--transition);
}
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--c-cream-soft); }
.pillar__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--c-copper);
  margin-bottom: 14px;
}
.pillar__title { font-size: 1.25rem; margin-bottom: 8px; }
.pillar__text { font-size: .95rem; color: var(--c-gray-600); margin: 0; }
@media (max-width: 720px) {
  .pillar { border-right: 0; border-bottom: 1px solid rgba(31, 58, 61, 0.08); }
}

/* ---------- Product Categories ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}
@media (max-width: 980px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .categories-grid { grid-template-columns: 1fr; } }

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
  background: var(--c-petrol);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 32px;
  color: var(--c-cream);
  transition: transform var(--transition);
}
.category-card:hover { transform: translateY(-6px); }
.category-card__img {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.category-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: brightness(0.7) saturate(0.9);
}
.category-card:hover .category-card__img img { transform: scale(1.08); }
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 38, 40, 0.1) 0%, rgba(20, 38, 40, 0.5) 50%, rgba(20, 38, 40, 0.95) 100%);
}
.category-card__tag {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-copper-bright);
  margin-bottom: 16px;
  font-weight: 600;
}
.category-card__title { font-size: 1.7rem; color: var(--c-cream); margin-bottom: 8px; }
.category-card__text { font-size: .95rem; color: rgba(245, 240, 227, 0.85); margin: 0 0 18px; }
.category-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--c-copper-bright);
  font-size: .9rem;
  letter-spacing: 0.04em;
}
.category-card__cta::after { content: "→"; transition: transform var(--transition); }
.category-card:hover .category-card__cta::after { transform: translateX(4px); }

/* ---------- Two column with image ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.split__img { position: relative; }
.split__img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__img::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid var(--c-copper);
  border-radius: calc(var(--radius) + 8px);
  z-index: -1;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 50px;
  padding-top: 50px;
  border-top: 1px solid rgba(245, 240, 227, 0.15);
}
@media (max-width: 720px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  color: var(--c-copper-bright);
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 700;
}
.stat__label { font-size: .9rem; color: rgba(245, 240, 227, 0.85); letter-spacing: 0.04em; }

/* ---------- Product gallery (Productos page) ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 50px;
}
.product-card {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-gray-100);
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--transition); }
.product-card:hover .product-card__img img { transform: scale(1.06); }
.product-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.product-card__cat { font-size: .72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-copper); font-weight: 600; margin-bottom: 8px; }
.product-card__title { font-size: 1.2rem; margin-bottom: 10px; }
.product-card__text { font-size: .9rem; color: var(--c-gray-600); margin: 0 0 16px; flex: 1; }
.product-card__features { list-style: none; padding: 0; margin: 0 0 4px; font-size: .82rem; color: var(--c-gray-600); }
.product-card__features li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.product-card__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 2px;
  background: var(--c-copper);
}

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(31, 58, 61, 0.10);
}
.filter-tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-gray-600);
  border: 1px solid rgba(31, 58, 61, 0.12);
  transition: all var(--transition);
}
.filter-tab:hover { color: var(--c-petrol); border-color: var(--c-petrol); }
.filter-tab.is-active {
  background: var(--c-petrol);
  color: var(--c-cream);
  border-color: var(--c-petrol);
}

/* ---------- Services list ---------- */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}
.service-item {
  padding: 36px 30px;
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid rgba(31, 58, 61, 0.08);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-item:hover {
  border-color: var(--c-copper);
  transform: translateY(-4px);
}
.service-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-item:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--c-cream);
  color: var(--c-copper);
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-title { font-size: 1.25rem; margin-bottom: 10px; }
.service-text { font-size: .94rem; color: var(--c-gray-600); margin: 0; }

/* ---------- Process / Timeline ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: rgba(31, 58, 61, 0.18);
  border-top: 1px dashed var(--c-copper);
}
@media (max-width: 880px) { .process-steps { grid-template-columns: 1fr 1fr; } .process-steps::before { display: none; } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }

.process-step { text-align: center; position: relative; }
.process-step__num {
  width: 56px; height: 56px;
  margin: 0 auto 22px;
  background: var(--c-white);
  border: 2px solid var(--c-copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-copper);
  position: relative;
  z-index: 1;
}
.process-step__title { font-size: 1.1rem; margin-bottom: 8px; }
.process-step__text { font-size: .88rem; color: var(--c-gray-600); margin: 0; }

/* ---------- Case Study (HELLA) ---------- */
.case-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: 80px 0;
}
@media (max-width: 880px) { .case-hero { grid-template-columns: 1fr; } }

.case-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  background: rgba(179, 106, 61, 0.12);
  color: var(--c-copper);
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}
.case-badge::before { content: "★"; }

.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 50px 0;
}
@media (max-width: 720px) { .case-results { grid-template-columns: 1fr; } }
.case-result {
  padding: 28px 24px;
  background: var(--c-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--c-copper);
}
.case-result__num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--c-petrol);
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 700;
}
.case-result__label { font-size: .9rem; color: var(--c-gray-600); margin: 0; }

/* ---------- Logos strip ---------- */
.clients-strip {
  padding: 50px 0;
  border-block: 1px solid rgba(31, 58, 61, 0.08);
  background: var(--c-white);
}
.clients-strip__title {
  text-align: center;
  font-family: var(--font-sans);
  font-size: .8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: 32px;
}
.clients-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 60px;
}
.client-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--c-gray-400);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.client-logo:hover { color: var(--c-petrol); }
.client-logo--bold { font-family: var(--font-sans); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; font-size: 1.1rem; }

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 30px;
}
.testimonial__mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--c-copper);
  margin-bottom: 30px;
}
.testimonial__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--c-cream);
  line-height: 1.4;
  margin-bottom: 30px;
}
.testimonial__author { color: var(--c-copper-bright); font-weight: 600; font-size: .95rem; letter-spacing: 0.05em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  margin-top: 60px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--c-white);
  padding: 50px 44px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--c-petrol); margin-bottom: 8px; letter-spacing: 0.04em; }
.form-field input, .form-field textarea, .form-field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid rgba(31, 58, 61, 0.18);
  border-radius: var(--radius-sm);
  background: var(--c-cream-soft);
  color: var(--c-text);
  transition: all var(--transition);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 0;
  border-color: var(--c-copper);
  background: var(--c-white);
  box-shadow: 0 0 0 4px rgba(179, 106, 61, 0.12);
}
.form-field textarea { min-height: 140px; resize: vertical; }

.contact-info {
  padding: 50px 40px;
  background: var(--c-petrol);
  color: var(--c-cream);
  border-radius: var(--radius);
}
.contact-info h3 { color: var(--c-cream); font-size: 1.6rem; margin-bottom: 24px; }
.contact-info p { color: rgba(245, 240, 227, 0.85); font-size: .95rem; margin-bottom: 30px; }

.contact-detail {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(245, 240, 227, 0.12);
}
.contact-detail:last-child { border-bottom: 0; }
.contact-detail__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(216, 153, 104, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-copper-bright);
  flex-shrink: 0;
}
.contact-detail__icon svg { width: 20px; height: 20px; }
.contact-detail__label { font-size: .78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-copper-bright); margin-bottom: 6px; font-weight: 600; }
.contact-detail__value { color: var(--c-cream); font-size: 1rem; line-height: 1.4; }
.contact-detail__value a:hover { color: var(--c-copper-bright); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--c-petrol) 0%, var(--c-petrol-light) 100%);
  color: var(--c-cream);
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 106, 61, 0.35) 0%, transparent 70%);
}
.cta-banner::before { width: 400px; height: 400px; top: -150px; right: -100px; }
.cta-banner::after { width: 360px; height: 360px; bottom: -180px; left: -80px; }
.cta-banner__title { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--c-cream); max-width: 16ch; margin: 0 auto 18px; position: relative; }
.cta-banner__text { font-size: 1.1rem; color: rgba(245, 240, 227, 0.85); max-width: 56ch; margin: 0 auto 36px; position: relative; }
.cta-banner__actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-petrol-dark);
  color: rgba(245, 240, 227, 0.75);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 52px; margin-bottom: 20px; display: block; }
.footer-brand p { font-size: .9rem; color: rgba(245, 240, 227, 0.65); margin-bottom: 20px; line-height: 1.7; }

.footer-col h4 {
  color: var(--c-cream);
  font-family: var(--font-sans);
  font-size: .85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: .92rem; color: rgba(245, 240, 227, 0.70); }
.footer-col a:hover { color: var(--c-copper-bright); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(245, 240, 227, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: rgba(245, 240, 227, 0.55);
}
.footer-bottom a:hover { color: var(--c-copper-bright); }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 900;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition);
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =================================================================
   MOBILE OPTIMIZATION — Adaptación específica para dispositivos
   Breakpoints: 1280px (laptop), 1024px (tablet H), 768px (tablet V), 480px (mobile)
   ================================================================= */

/* ---------- Touch-friendly tap targets ---------- */
@media (hover: none) and (pointer: coarse) {
  .btn, .filter-tab, .nav-list a, .opt, .product-card, .category-card {
    min-height: 44px;  /* WCAG AAA touch target */
  }
  /* Disable hover transforms on touch devices */
  .category-card:hover, .product-card:hover, .service-item:hover {
    transform: none !important;
  }
}

/* ---------- Body class set by JS detection ---------- */
body.is-mobile .header-phone { display: none; }
body.is-mobile .hero__meta { display: none; }

/* ---------- iOS safe-area-inset ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .fab-whatsapp { bottom: calc(26px + env(safe-area-inset-bottom)); }
}

/* ---------- Improved breakpoints ---------- */

/* Laptops (≤ 1280px) - reduce container padding */
@media (max-width: 1280px) {
  .nav-list { gap: 28px; }
  .nav-list a { font-size: 0.88rem; }
}

/* Tablets landscape (≤ 1024px) */
@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .brand img { height: 38px; }
  .header-cta .btn { padding: 10px 18px; font-size: .82rem; }
  .hero__title { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
  .section-title { font-size: clamp(1.8rem, 3.8vw, 3rem); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-right: 1px solid rgba(31, 58, 61, 0.08); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid rgba(31,58,61,0.08); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Tablets portrait (≤ 880px) - menu becomes mobile */
@media (max-width: 880px) {
  :root { --header-h: 68px; }
  section { padding: clamp(48px, 8vw, 80px) 0; }
  .hero { min-height: clamp(480px, 80vh, 700px); padding-top: calc(var(--header-h) + 30px); }
  .hero__title { font-size: clamp(2rem, 7vw, 3.4rem); }
  .hero__lead { font-size: .98rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; width: 100%; }
  .header-cta { gap: 10px; }
  .header-cta .btn { padding: 9px 16px; font-size: .78rem; }

  /* Stack split layouts */
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split__img::before { display: none; }

  /* Categories: 2 columns */
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .category-card { min-height: 320px; padding: 24px 20px; }
  .category-card__title { font-size: 1.4rem; }

  /* Footer stacking */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; font-size: .78rem; }

  /* Filter tabs scrollable */
  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-inline: -4%;
    padding-inline: 4%;
    padding-bottom: 12px;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex-shrink: 0; }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { width: 90%; }
  .brand img { height: 34px; }
  .header-cta { gap: 6px; }
  .header-cta .btn { padding: 8px 14px; font-size: .75rem; }
  .lang-switch, .header-cta a:first-child { font-size: .72rem !important; }
  
  .hero { min-height: 540px; padding-top: calc(var(--header-h) + 24px); padding-bottom: 36px; }
  .hero__title { font-size: clamp(1.8rem, 8vw, 2.8rem); line-height: 1.1; max-width: 100%; }
  .hero__lead { font-size: .92rem; margin-bottom: 28px; }
  .eyebrow { font-size: 11px; }
  
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-lead { font-size: 1rem; }
  
  /* Categories: 1 column on mobile */
  .categories-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 280px; }
  
  /* Products grid: 1 column */
  .products-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-card__title { font-size: 1.1rem; }
  
  /* Process steps stack */
  .process-steps { grid-template-columns: 1fr; gap: 24px; }
  .process-steps::before { display: none; }
  
  /* Stats: 2 columns even on small */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat__num { font-size: 2.2rem; }
  .stat__label { font-size: .8rem; }
  
  /* Contact form full width */
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-form { padding: 30px 24px; }
  .contact-info { padding: 36px 28px; }
  .form-row { grid-template-columns: 1fr; }
  
  /* CTA banner */
  .cta-banner__title { font-size: 1.8rem; }
  .cta-banner__actions { flex-direction: column; align-items: stretch; }
  .cta-banner__actions .btn { width: 100%; justify-content: center; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand img { height: 44px; }
  
  /* Testimonial */
  .testimonial { padding: 40px 16px; }
  .testimonial__mark { font-size: 3.5rem; margin-bottom: 16px; }
  .testimonial__quote { font-size: 1.1rem; }
  
  /* Case study sheet */
  .case-results { grid-template-columns: 1fr; }
  
  /* WhatsApp button slightly smaller */
  .fab-whatsapp { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .fab-whatsapp svg { width: 26px; height: 26px; }
}

/* Extra small (≤ 380px) - very tight phones */
@media (max-width: 380px) {
  .header-cta .btn { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero__title { font-size: 1.6rem; }
  .stats-row { grid-template-columns: 1fr; }
}

/* Landscape phones - reduce vertical paddings */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 420px; }
  section { padding: 40px 0; }
}

/* High-density displays (Retina) - slightly thinner borders */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .pillar, .opt, .filter-tab { border-width: 0.5px; }
}

/* Print styles - friendlier output */
@media print {
  .site-header, .fab-whatsapp, .menu-toggle, .header-cta,
  .cta-banner, .quoter__nav, .hero__bg, .hero__bg::after { display: none !important; }
  .hero { min-height: auto; padding: 20px 0; background: white !important; color: var(--c-text) !important; }
  .hero__title, .hero__lead { color: var(--c-petrol) !important; }
  section { padding: 20px 0; page-break-inside: avoid; }
  .category-card, .product-card { break-inside: avoid; }
  a { color: var(--c-petrol) !important; text-decoration: underline; }
}

/* Dark mode preference (respects user settings) - optional friendly mode */
@media (prefers-color-scheme: dark) {
  /* We keep the original light brand identity but smoothen high-contrast areas */
  body { background: #1a2426; }
  body.bg-light-force { background: var(--c-cream-soft); }
}

/* Reduce motion preference (already partial but enforce stronger) */
@media (prefers-reduced-motion: reduce) {
  .hero__bg img { transform: none; }
  .category-card__img img, .product-card__img img { transition: none; }
}


/* ==========================================================================
   AUDITORÍA 2026: UI/UX PREMIUM & MOBILE RESPONSIVE
   ========================================================================== */

/* 1. Micro-interacciones (Premium UX) */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Formularios - Focus states premium */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--c-copper, #C86C3E);
    box-shadow: 0 0 0 3px rgba(200, 108, 62, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 2. Optimización Móvil (Touch Targets & Responsiveness) */
@media (max-width: 768px) {
    /* Tipografía fluida */
    html {
        font-size: 15px;
    }
    
    .hero__title {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    /* Touch Targets (a11y) */
    .btn, 
    .nav-list a, 
    .header-cta a {
        min-height: 44px; /* Estándar mínimo Apple/Google */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Inputs amigables en móvil */
    input, textarea, select {
        font-size: 16px !important; /* Evita zoom automático en iOS */
        padding: 12px !important;
    }
    
    /* Grids a 1 columna */
    .categories-grid, .process-steps {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }
}

