/* BajaLabel - Industrial Premium Design
   Font: Inter | Paleta: Grises Monocromáticos
   Estilo: Minimalista, Tecnológico, Preciso
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
  /* Paleta monocromática industrial */
  --bg: #ffffff;
  --fg: #2a2a2a;           /* Gris grafito oscuro */
  --fg-light: #3d3d3d;     /* Gris oscuro suave */
  --muted: #6b6b6b;        /* Gris medio metálico */
  --muted-light: #9a9a9a;  /* Gris claro */
  --line: #e5e5e5;         /* Líneas sutiles */
  --line-dark: #d0d0d0;    /* Líneas definidas */
  --panel: #f7f7f7;        /* Gris claro satinado */
  --panel-dark: #f0f0f0;   /* Panel con contraste */

  --brand: #2a2a2a;
  --brand-2: #6b6b6b;

  /* Layout fluido con espaciado amplio */
  --container: 1400px;
  --radius: 0;  /* Bordes rectos en todo el diseño */

  /* Espaciado generoso para diseño respirado */
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;
  --space-10: 192px;

  /* Tipografía con tracking amplio */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 22px;
  --text-2xl: 36px;
  --text-3xl: 48px;
  --text-4xl: 64px;

  --lh: 1.6;
  --tracking: 0.01em;      /* Tracking ligeramente amplio */
  --tracking-wide: 0.03em; /* Para títulos */
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: var(--lh);
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.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;
}

img { max-width: 100%; height: auto; display: block; border: none; outline: none; }

a { 
  color: inherit; 
  text-decoration: none; 
  transition: none;
}

a:hover { 
  color: inherit;
  opacity: 1;
  text-decoration: none; 
}

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

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

/* Header - Limpio y espacioso */
.site-header, .header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
  padding: var(--space-3) 0;
  min-height: 70px;
}

.logo, .brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover, .brand:hover {
  opacity: 1;
}

.logo img, .brand img {
  height: 64px;
  width: auto;
  transition: none;
}

.brand {
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: var(--tracking);
  color: var(--fg);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 2px solid var(--fg);
  border-radius: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-mark svg { width: 16px; height: 16px; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name strong { 
  font-size: 16px; 
  letter-spacing: 0.5px;
  font-weight: 700;
}

.brand-name span { 
  font-size: 13px; 
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  transition: border-color 0.2s ease;
}

.site-search:focus-within {
  border-color: var(--muted);
}

.site-search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: 0 0 auto;
}

.site-search-icon svg { width: 18px; height: 18px; display: block; }

.site-search-input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 14px;
  background: transparent;
  color: var(--fg);
  font-family: 'Source Sans Pro', sans-serif;
}

.site-search-input::placeholder { 
  color: var(--muted);
  opacity: 0.7;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.btn, .btn-primary, .btn--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 0;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: none;
  font-family: 'Inter', sans-serif;
  letter-spacing: var(--tracking);
  box-shadow: none;
}

.btn:hover, .btn-primary:hover, .btn--pill:hover { 
  opacity: 1;
  transform: none;
  box-shadow: none;
  background: var(--fg);
  color: var(--bg);
}

.btn--secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-dark);
  box-shadow: none;
}

.btn--secondary:hover {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-dark);
  transform: none;
  box-shadow: none;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-6);
  flex: 1;
  margin: 0 var(--space-6);
}

.header-nav a,
.nav-dropdown summary {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  transition: none;
  letter-spacing: var(--tracking);
  position: relative;
}

.header-nav a:hover { 
  color: var(--fg);
  opacity: 1;
}

.header-nav a::after {
  display: none;
}

.header-nav a:hover::after {
  display: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: var(--tracking);
}

.nav-dropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
  transition: none;
}

.nav-dropdown:hover .nav-dropdown-trigger::after { 
  transform: none;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 6px;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.3s;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--fg);
  border-radius: 0;
  transition: none;
}

.nav-dropdown-panel a::after {
  display: none;
}

.nav-dropdown-panel a:hover {
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  padding-left: 16px;
}

/* Layout primitives - Espaciado generoso */
.section {
  padding: var(--space-7) 0;
}

.section--tight {
  padding: var(--space-6) 0;
}

.section-title {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0 0 var(--space-3);
  letter-spacing: var(--tracking-wide);
  line-height: 1.2;
  color: var(--fg);
}

.section-lead {
  margin: 0 0 var(--space-2);
  max-width: 65ch;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: var(--tracking);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-3 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: none;
  border-radius: var(--radius);
  background: transparent;
  padding: 0 0 var(--space-3);
}

.card--panel {
  background: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--space-5) 0;
}

/* Section headers - Limpios y espaciosos */
.section-header {
  max-width: 960px;
  margin: 0 auto var(--space-5);
  text-align: center;
}

.section-header h2 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  margin: 0 0 var(--space-4);
  letter-spacing: var(--tracking-wide);
  line-height: 1.15;
  color: var(--fg);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.7;
  margin: 0 auto var(--space-3);
  padding-bottom: var(--space-2);
  font-weight: 400;
  letter-spacing: var(--tracking);
  max-width: 720px;
}

.section-header.center {
  text-align: center;
}

/* Background panels - Alternancia automática */
main > .section:nth-child(even),
main .section:nth-child(even) {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bg-panel {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Feature cards - Diseño minimalista industrial */
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: none;
}

.feature-card:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--fg);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--space-3);
  transition: none;
}

.feature-card:hover .feature-icon {
  background: var(--fg);
  transform: none;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.feature-card h3 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  letter-spacing: var(--tracking);
  line-height: 1.3;
  color: var(--fg);
}

.feature-card p {
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-2);
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: var(--tracking);
}

/* On-scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance - Corporate (scoped to only selected hero sections)
   Nota: solo fade-in sin movimiento */
.hero--corporate .hero-grid > .reveal {
  opacity: 0;
  transition: opacity 780ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero--corporate .hero-grid > .reveal.is-visible {
  opacity: 1;
}

.hero--corporate .hero-grid > :first-child.reveal {
  transition-delay: 0ms;
}

.hero--corporate .hero-grid > .hero-figure.reveal {
  transition-delay: 90ms;
}

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

  .hero--corporate .hero-grid > .reveal {
    transition: none;
    opacity: 1;
  }
}

/* Materials layout - Corporate / elegant (no extra wrapper for image) */
.materials-elegant .materials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.materials-elegant .material-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.materials-elegant .material-card img {
  flex: 0 0 168px;
  width: 168px;
  height: 112px;
  object-fit: contain;
}

.materials-elegant .material-card h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-lg);
  line-height: 1.25;
}

.materials-elegant .material-card p {
  margin: 0;
  padding-bottom: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .materials-elegant .materials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .materials-elegant .material-card {
    align-items: flex-start;
  }

  .materials-elegant .material-card img {
    flex-basis: 132px;
    width: 132px;
    height: 96px;
  }
}

/* Compact variant (used for materials blocks) */
.materials-compact .grid {
  gap: var(--space-4);
}

.materials-compact .feature-card {
  padding: var(--space-4);
  gap: var(--space-3);
}

.materials-compact .feature-card h3 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-1);
}

.materials-compact .feature-card p {
  margin: 0;
  padding-bottom: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.materials-compact .feature-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* Product grid - More spacious */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-8);
  margin-top: var(--space-7);
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* Product cards and content blocks */
article h3 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 var(--space-1);
  letter-spacing: -0.3px;
  color: var(--fg);
}

article p {
  margin: 0;
  padding-bottom: var(--space-2);
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.65;
  font-weight: 400;
}

article .kicker {
  margin-bottom: var(--space-1);
}

/* Pills / stats */
.pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.pill {
  border: none;
  padding: 0;
  font-size: var(--text-md);
  color: var(--fg);
  border-radius: 0;
  background: transparent;
  font-weight: 600;
  transition: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pill:hover {
  border-color: transparent;
  background: transparent;
}

.pill::before {
  content: "→";
  font-size: 18px;
  color: var(--fg);
  font-weight: 700;
}

/* Hero - Espacioso y limpio */
.hero {
  padding: var(--space-4) 0 var(--space-10);
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
}

.hero-grid > * {
  border: none;
  outline: none;
}

.hero h1 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: clamp(32px, 5.5vw, 72px);
  line-height: 1.1;
  margin: var(--space-3) 0 var(--space-4);
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--fg);
}

.hero p {
  margin: 0 0 var(--space-5);
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 17px);
  max-width: 60ch;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: var(--tracking);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-figure {
  border: none !important;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none !important;
  outline: none !important;
}

.hero-figure img {
  display: block;
  width: 125%;
  height: auto;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

.hero-figure .caption {
  padding: var(--space-4);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

/* Process - Corporativo Grid Layout */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.process-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.process-card:hover {
  border-color: var(--fg);
}

.process-card-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(to bottom, #fafafa 0%, #fff 100%);
}

.process-number {
  font-size: 28px;
  font-weight: 900;
  font-family: 'Roboto', sans-serif;
  color: var(--fg);
  line-height: 1;
  min-width: 48px;
  letter-spacing: -0.02em;
}

.process-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: var(--tracking);
}

.process-card-body {
  padding: 24px 28px;
}

.process-card-body > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.6;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.process-list li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}

.process-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--fg);
  border-radius: 0;
}

/* Process - Legacy Steps (mantener para compatibilidad) */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-6);
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-5);
  align-items: start;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 52px;
  height: 52px;
  border: 2px solid var(--fg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: #fff;
  font-size: 20px;
  color: var(--fg);
}

.step h3 {
  margin: 0 0 10px;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--fg);
}

.step p {
  margin: 0;
  padding-bottom: var(--space-2);
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.65;
}

/* Form - Estilo minimalista */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.field {
  display: grid;
  gap: 12px;
}

.label {
  font-size: var(--text-sm);
  color: var(--fg);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: var(--tracking);
}

.input, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 18px;
  font-size: var(--text-md);
  background: #fff;
  color: var(--fg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  letter-spacing: var(--tracking);
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: none;
}

.textarea { 
  min-height: 140px; 
  resize: vertical; 
  grid-column: 1 / -1; 
  line-height: 1.6;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.form-shell {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: var(--space-7);
  background: #fff;
  box-shadow: none;
}

.note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--space-8) 0 var(--space-6);
  background: var(--panel);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.footer-col h4 {
  font-size: var(--text-md);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  color: var(--fg);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: none;
}

.footer-col a:hover {
  color: var(--muted);
  opacity: 1;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer small { 
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

/* Product cards - Precisión industrial */
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  transition: none;
  min-width: 0;
}

.product-card:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 220px;
  background: var(--panel);
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-image .iconify {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.product-card-content {
  min-width: 0;
}

.product-card .kicker,
.product-card h3,
.product-card p,
.product-card .material-tags {
  padding: 0 var(--space-4);
}

.product-card .kicker {
  padding-top: var(--space-3);
}

.product-card p {
  padding-bottom: var(--space-4);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-card .material-tags {
  padding-bottom: var(--space-4);
}

/* Index - Aplicaciones por industria (imagen como fondo + overlay)
   Scoped: solo afecta a `.applications-grid` en index.html */
.applications-grid .product-card {
  position: relative;
  min-height: 340px;
}

.applications-grid .product-card .product-card-image {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-bottom: none;
  background: var(--panel);
}

.applications-grid .product-card .product-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.applications-grid .product-card .product-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--fg) 22%, transparent),
    color-mix(in srgb, var(--fg) 72%, transparent)
  );
}

.applications-grid .product-card .product-card-overlay {
  position: relative;
  z-index: 1;
  min-height: 340px;
  padding: var(--space-5) var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-2);
}

.applications-grid .product-card .kicker,
.applications-grid .product-card h3,
.applications-grid .product-card p,
.applications-grid .product-card .material-tags {
  padding: 0;
}

.applications-grid .product-card .kicker {
  color: var(--bg);
  opacity: 0.9;
}

.applications-grid .product-card h3 {
  color: var(--bg);
  margin: 0;
}

.applications-grid .product-card p {
  color: color-mix(in srgb, var(--bg) 88%, transparent);
  margin: 0;
}

.applications-grid .product-card .btn {
  margin-top: var(--space-3);
  align-self: flex-start;
}

/* Materials zigzag layout - Corporativo alternado */
.materials-zigzag {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  margin-top: var(--space-7);
}

.material-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-7);
  align-items: center;
}

.material-row--white {
  background: var(--bg);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.material-row--reverse {
  grid-template-columns: 1fr 320px;
}

.material-row--reverse .material-image {
  order: 2;
}

.material-row--reverse .material-content {
  order: 1;
}

.material-image {
  width: 320px;
  height: 240px;
  object-fit: cover;
}

.material-content h3 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
}

.material-content > p {
  margin: 0 0 var(--space-3);
  font-size: 16px;
  line-height: 1.6;
  color: #525252;
  font-weight: 400;
}

.materials-zigzag .material-content .kicker {
  margin-top: var(--space-2);
}

.materials-zigzag .material-uses {
  margin: 0;
  padding-left: 1.15em;
  font-size: 16px;
  line-height: 1.6;
  color: #525252;
  list-style-type: square;
}

.materials-zigzag .material-uses li {
  margin: 0.25em 0;
}

@media (max-width: 900px) {
  .material-row {
    grid-template-columns: 280px 1fr;
    gap: var(--space-6);
  }

  .material-row--reverse {
    grid-template-columns: 1fr 280px;
  }

  .material-image {
    width: 280px;
    height: 210px;
  }
}

@media (max-width: 640px) {
  .materials-zigzag {
    gap: var(--space-6);
  }

  .material-row,
  .material-row--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .material-row--reverse .material-image,
  .material-row--reverse .material-content {
    order: initial;
  }

  .material-row--white {
    padding: var(--space-5);
  }

  .material-image {
    width: 100%;
    height: 220px;
    display: block;
    max-width: 100%;
  }

  .material-content h3 {
    font-size: 26px;
  }
}

.material-usage {
  margin-top: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
}

.material-usage a {
  color: inherit;
}

.material-usage strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bg);
  margin-bottom: 0;
}

.material-usage p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--bg);
  font-weight: 500;
  letter-spacing: 0;
}

/* Technology section - Alternating layout */
.tech-zigzag {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.tech-row {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--space-8);
  align-items: center;
}

.tech-row--reverse {
  grid-template-columns: 1fr 400px;
}

.tech-row--reverse .tech-image {
  order: 2;
}

.tech-row--reverse .tech-content {
  order: 1;
}

.tech-image {
  width: 400px;
  height: 300px;
  object-fit: cover;
}

.tech-content .kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg);
  margin-bottom: var(--space-3);
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 2px;
}

.tech-content h3 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
}

.tech-content p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #525252;
  font-weight: 400;
}

@media (max-width: 900px) {
  .tech-zigzag {
    gap: var(--space-7);
  }

  .tech-row {
    grid-template-columns: 340px 1fr;
    gap: var(--space-7);
  }

  .tech-row--reverse {
    grid-template-columns: 1fr 340px;
  }

  .tech-image {
    width: 340px;
    height: 255px;
  }
}

@media (max-width: 640px) {
  .tech-row,
  .tech-row--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .tech-row--reverse .tech-image,
  .tech-row--reverse .tech-content {
    order: initial;
  }

  .tech-image {
    width: 100%;
    height: 240px;
    display: block;
    max-width: 100%;
  }

  .tech-content h3 {
    font-size: 26px;
  }
}

/* Material tags - Planos y minimalistas */
.material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.material-tags .pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: var(--tracking);
  transition: none;
}

.material-tags .pill::before {
  display: none;
}

.material-tags .pill:hover {
  background: var(--panel);
  color: var(--muted);
  border-color: var(--line);
  transform: none;
  box-shadow: none;
}

.material-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  transition: none;
}

.material-item:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.material-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--panel);
  border-radius: 0;
  display: grid;
  place-items: center;
}

.material-icon svg {
  width: 24px;
  height: 24px;
}

.material-content h4 {
  margin: 0 0 4px;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--fg);
}

.material-content p {
  margin: 0;
  padding-bottom: var(--space-2);
  font-size: 14px;
  color: var(--muted);
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #25d366;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  transform: none;
  opacity: 1;
}

/* Espaciado general para párrafos en contenedores */
.feature-card > div > p,
.card > div > p,
[style*="flex-direction: column"] > div > p {
  padding-bottom: var(--space-2);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: var(--space-4) 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 var(--space-5);
  }
}

/* Tablet layout: keep content in a true tablet grid (not phone-like) */
@media (max-width: 1130px) {
  .hero-grid {
    gap: var(--space-7);
  }

  /* Prevent hero image overflow that makes tablet feel cramped */
  .hero-figure img {
    width: 100%;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .header-top { 
    grid-template-columns: 160px 1fr auto; 
    gap: var(--space-5);
  }
  .site-search {
    max-width: 420px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--space-6);
  }
  .hero h1 { 
    font-size: clamp(34px, 5vw, 56px); 
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: var(--space-7); 
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: var(--space-7) 0;
  }

  .hero h1 {
    font-size: clamp(28px, 7vw, 44px);
    margin: var(--space-3) 0 var(--space-5);
  }

  .hero p {
    font-size: clamp(14px, 3vw, 16px);
    margin: 0 0 var(--space-6);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Keep small-tablet grids usable (2 cols) */
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .section {
    padding: var(--space-7) 0;
  }

  .section--tight {
    padding: var(--space-6) 0;
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
  }

  .material-item {
    flex-direction: column;
    text-align: center;
  }

  .form {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .form-shell {
    padding: var(--space-5);
  }

  .feature-card {
    padding: var(--space-4);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .product-card-image {
    aspect-ratio: 16/9;
  }

  .pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 1358px) {
  .mobile-menu-toggle {
    display: flex;
  }

  /* Close (X) stays at the far right when active */
  .mobile-menu-toggle.active {
    position: fixed;
    top: var(--space-4);
    right: var(--space-5);
    z-index: 1002;
  }

  .header-top { 
    grid-template-columns: 1fr auto; 
    gap: var(--space-4);
    position: relative;
  }
  
  .site-search {
    display: none;
  }
  
  .header-actions { 
    justify-content: flex-end;
    gap: var(--space-2);
  }

  /* Keep CTA, but force the hamburger/X to be the rightmost control */
  .header-actions .btn,
  .header-actions .btn--pill {
    order: 1;
  }

  .header-actions .mobile-menu-toggle {
    order: 2;
  }
  
  .header-nav { 
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-8) var(--space-5);
    gap: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .header-nav.active {
    display: flex;
  }
  
  .header-nav > * {
    width: 100%;
  }

  .header-nav > a {
    display: block;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    font-weight: 600;
    padding: var(--space-3) 0;
    color: var(--fg);
    list-style: none;
    position: relative;
    padding-right: var(--space-6);
  }

  .nav-dropdown-trigger::-webkit-details-marker {
    display: none;
  }

  .nav-dropdown-trigger::marker {
    content: "";
  }

  .nav-dropdown-trigger::after {
    content: "";
    position: absolute;
    right: var(--space-4);
    top: 50%;
    width: 18px;
    height: 18px;
    display: block;
    background-color: currentColor;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
    transform: translateY(-50%);
    opacity: 0.85;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-dropdown.active .nav-dropdown-trigger::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .nav-dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 0;
    background: transparent;
    border-top: none;
    border-left: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-dropdown.active .nav-dropdown-panel {
    max-height: 1500px;
    border-top: 1px solid var(--line);
    border-left: 2px solid var(--line-dark);
    padding: var(--space-2) 0 var(--space-3) var(--space-5);
    margin-top: var(--space-2);
    background: var(--panel);
  }

  .nav-dropdown-panel a {
    display: block;
    padding: var(--space-2) 0;
    border-bottom: none;
    font-size: 15px;
    color: var(--fg-light);
    transition: none;
  }

  .nav-dropdown-panel a:hover {
    background: transparent;
    color: var(--fg);
    padding-left: 0;
  }

  /* Process Grid Responsive */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-card-header {
    padding: 20px;
  }

  .process-card-body {
    padding: 20px;
  }

  .process-number {
    font-size: 24px;
    min-width: 40px;
  }

  .process-card h3 {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  :root {
    --space-7: 48px;
    --space-8: 56px;
    --space-9: 64px;
    --space-10: 72px;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .logo img, .brand img {
    max-width: 130px;
  }

  .hero h1 {
    font-size: clamp(24px, 6.5vw, 36px);
  }

  .section-title {
    font-size: clamp(22px, 5.5vw, 32px);
  }

  .btn, .btn-primary {
    padding: 12px 20px;
    font-size: 13px;
  }

  .feature-card h3,
  article h3 {
    font-size: var(--text-md);
  }

  .feature-card {
    padding: var(--space-3);
    gap: var(--space-2);
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-2);
  }

  .feature-icon svg {
    width: 24px;
    height: 24px;
  }

  .material-tags .pill {
    padding: 6px 12px;
    font-size: 11px;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .step::before {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

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

/* Modal de cotización */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  overflow-y: auto;
  padding: var(--space-5);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
  color: var(--fg);
}

.modal-header p {
  margin: var(--space-2) 0 0;
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--panel);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--fg);
}

.modal-body {
  padding: var(--space-5);
}

/* Formulario */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--fg);
  margin-bottom: var(--space-2);
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: var(--text-base);
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-message {
  padding: var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  display: none;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-5);
}

.form-actions .btn {
  min-width: 140px;
}

/* Responsive para modal */
@media (max-width: 768px) {
  .modal {
    padding: var(--space-3);
  }

  .modal-content {
    max-width: 100%;
  }

  .modal-header,
  .modal-body {
    padding: var(--space-4);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}
