/* ==========================================================================
   J2M MAQUINADOS — SISTEMA DE DISEÑO INDUSTRIAL B2B
   Paleta de colores oficial derivada del emblema hexagonal de J2M:
   - Deep Navy Core: #051336 / #0A1E4A
   - Brushed Steel / Titanium: #94A3B8 / #CBD5E1
   - Precision Electric Blue: #1E6BFF / #38BDF8
   ========================================================================== */

:root {
  --bg-dark: #040b1e;
  --bg-navy: #071433;
  --bg-navy-light: #0d214f;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-steel: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;

  --brand-navy: #061742;
  --brand-blue: #ffffff;
  --brand-blue-hover: rgba(255, 255, 255, 0.85);
  --brand-cyan: #ffffff;
  --brand-steel: #8e9bae;
  --brand-amber: #f59e0b;
  --brand-emerald: #10b981;

  --border-light: #e2e8f0;
  --border-dark: rgba(148, 163, 184, 0.18);

  --shadow-sm: 0 2px 8px rgba(4, 11, 30, 0.05);
  --shadow-md: 0 12px 32px -8px rgba(4, 11, 30, 0.1);
  --shadow-lg: 0 24px 48px -12px rgba(4, 11, 30, 0.18);
  --shadow-glow: 0 0 32px rgba(255, 255, 255, 0.45);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-surface);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  padding-top: 82px;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video {
  max-width: 100%;
  display: block;
}

/* Evitar que elementos flex y grid desborden sus contenedores en pantallas estrechas */
.hero-grid > *,
.trust-grid > *,
.process-grid > *,
.services-bento > *,
.machinery-layout > *,
.cert-grid > *,
.portfolio-grid > *,
.about-grid > *,
.contact-grid > *,
.form-grid > *,
.footer-grid > * {
  min-width: 0;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TIPOGRAFÍA, TÍTULOS Y ETIQUETAS
   ========================================================================== */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--brand-blue);
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.section-tag.tag-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.section-tag.tag-dark::before {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

.section-header {
  max-width: 740px;
  margin-bottom: 56px;
}

.text-center {
  text-align: center !important;
}

.section-header.center,
.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   BOTONES Y LLAMADOS A LA ACCION
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: #ffffff;
  color: #040b1e;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
  background: #ffffff;
  color: #040b1e;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-navy);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
}

.btn-whatsapp:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* ==========================================================================
   BARRA DE NAVEGACION SUPERIOR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 20, 51, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(4, 11, 30, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-header {
  margin-left: 36px;
  transition: var(--transition);
}

.brand-header .brand-logo-wrap {
  width: 58px;
  height: 62px;
}

@media (max-width: 768px) {
  .brand-header {
    margin-left: 8px;
  }
}

.brand-logo-wrap {
  position: relative;
  width: 54px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: var(--transition);
}

.brand:hover .brand-logo-wrap {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.45));
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-cyan);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: #cbd5e1;
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
  transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-dark);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   SECCIÓN PRINCIPAL (INICIO)
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #102a6b 0%, var(--bg-navy) 45%, var(--bg-dark) 100%);
  color: #ffffff;
  padding: 76px 0 96px;
  overflow: hidden;
}

/* Cuadrícula técnica de ingeniería en el fondo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
  color: #e0f2fe;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.35rem, 4.3vw, 3.65rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 22px;
  color: #ffffff;
}

.hero-title .accent {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow: none;
}

.hero-lead {
  font-size: 1.12rem;
  color: #cbd5e1;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-lead strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
}

.hero-pillar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-pillar-num {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-pillar-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  color: #cbd5e1;
}

.hero-pillar-desc {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Exhibición visual principal (Hero) */
.hero-visual {
  position: relative;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  background: var(--bg-dark);
}

.hero-main-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.hero-main-card:hover .hero-main-img {
  transform: scale(1.03);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 11, 30, 0.94) 0%, rgba(4, 11, 30, 0.65) 35%, rgba(4, 11, 30, 0.1) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.hero-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(4, 11, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

.hero-hud-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.hero-caption-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  margin-bottom: 4px;
}

.hero-caption-sub {
  font-size: 0.9rem;
  color: #e2e8f0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  max-width: 480px;
}

/* Tarjetas secundarias flotantes en la cabecera */
.hero-float-logo {
  position: absolute;
  top: -22px;
  left: -22px;
  background: rgba(7, 20, 51, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  z-index: 3;
}

.hero-float-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.hero-float-logo-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: #ffffff;
}

.hero-float-logo-text span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-cyan);
}

.hero-float-mold {
  position: absolute;
  bottom: -26px;
  right: -18px;
  width: 225px;
  background: rgba(7, 20, 51, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-float-mold img {
  width: 66px;
  height: 66px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-float-mold-info strong {
  display: block;
  font-size: 0.82rem;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 3px;
}

.hero-float-mold-info span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #cbd5e1;
}

/* ==========================================================================
   FRANJA DE INDICADORES Y CONFIANZA
   ========================================================================== */
.trust-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 36px 0;
  position: relative;
  z-index: 5;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.trust-item:hover {
  background: var(--bg-steel);
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-navy) 0%, var(--bg-navy-light) 100%);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(6, 23, 66, 0.15);
}

.trust-content h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.trust-content p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   PROCESO Y METODOLOGIA DE MANUFACTURA
   ========================================================================== */
.process-section {
  padding: 96px 0;
  background: var(--bg-surface);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #061742, #ffffff, #cbd5e1); box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  opacity: 0.75;
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.process-card:hover::before {
  opacity: 1;
  height: 6px;
}

.process-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.process-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: var(--bg-steel);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 6px;
}

.process-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--bg-navy-light) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(6, 23, 66, 0.25);
  flex-shrink: 0;
  transition: var(--transition);
}

.process-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.process-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-primary);
}

.process-list li svg {
  color: var(--brand-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   NUESTROS PRODUCTOS Y SOLUCIONES
   ========================================================================== */
.services-section {
  padding: 100px 0;
  background: var(--bg-navy);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.services-section .section-title {
  color: #ffffff;
}

.services-section .section-subtitle {
  color: #cbd5e1;
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.service-card {
  grid-column: span 6;
  background: rgba(13, 33, 79, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-card.featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.service-media {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #040b1e;
}

.service-card.featured .service-media {
  height: 100%;
  min-height: 360px;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-badge {
  display: none !important;
}

.service-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.service-body h3 {
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.service-body p {
  color: #cbd5e1;
  font-size: 0.96rem;
  margin-bottom: 22px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
}

.service-link:hover {
  color: #ffffff;
  gap: 12px;
}

/* ==========================================================================
   INFRAESTRUCTURA Y PARQUE DE MAQUINARIA CNC
   ========================================================================== */
.machinery-section {
  padding: 100px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.machinery-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.machinery-showcase {
  position: relative;
}

.machinery-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.machinery-main-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.machinery-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.machinery-sub-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 170px;
  border: 1px solid var(--border-light);
}

.machinery-sub-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machinery-sub-card span {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(4, 11, 30, 0.82);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 32px;
}

.spec-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
}

.spec-box-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 4px;
  display: block;
}

.spec-box-value {
  font-family: var(--font-heading);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text-primary);
}

.spec-box-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   SISTEMA DE CALIDAD Y CERTIFICACION ISO 9001:2015
   ========================================================================== */
.cert-section {
  padding: 100px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.cert-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.cert-showcase {
  position: relative;
}

.cert-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  background: var(--bg-dark);
}

.cert-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.cert-caption-bar {
  background: var(--bg-navy);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cert-caption-bar strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.cert-caption-bar span {
  font-size: 0.84rem;
  color: #94a3b8;
}

.cert-pill-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
}

.cert-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cert-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.cert-feature-item:hover {
  border-color: rgba(6, 23, 66, 0.22);
  transform: translateX(4px);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 23, 66, 0.08);
}

.cert-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--bg-navy-light) 100%);
  box-shadow: 0 8px 18px rgba(6, 23, 66, 0.28);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-feature-item h4 {
  font-size: 1.05rem;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.cert-feature-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PORTAFOLIO Y GALERIA DE PROYECTOS REALES
   ========================================================================== */
.portfolio-section {
  padding: 100px 0;
  background: var(--bg-surface);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.filter-btn.active {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
  box-shadow: 0 6px 16px rgba(6, 23, 66, 0.25);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.4);
}

.portfolio-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--bg-dark);
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img-wrap img {
  transform: scale(1.06);
}

.portfolio-zoom-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(4, 11, 30, 0.8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-zoom-badge {
  background: var(--brand-blue);
  transform: scale(1.08);
}

.portfolio-info {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-cat {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 6px;
}

.portfolio-info h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECCION NOSOTROS Y EQUIPO DE TRABAJO
   ========================================================================== */
.about-section {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.value-card h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.value-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.team-showcase {
  position: relative;
}

.team-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  background: var(--bg-dark);
}

.team-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.team-caption-bar {
  background: var(--bg-navy);
  color: #ffffff;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.team-caption-bar strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.team-caption-bar span {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================================
   SECCION DE CONTACTO Y SOLICITUD DE COTIZACION
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-dark) 100%);
  color: #ffffff;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.contact-card {
  background: rgba(13, 33, 79, 0.65);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
  background: rgba(13, 33, 79, 0.9);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-body {
  min-width: 0;
  flex: 1;
}

.contact-card-body span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 3px;
}

.contact-card-body strong, .contact-card-body a {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: inline-block;
  max-width: 100%;
}

.contact-card-body a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  height: 220px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Caja del formulario de contacto y cotización */
.rfq-box {
  background: #ffffff;
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  max-width: 100%;
  overflow: hidden;
}

.rfq-box h3 {
  font-size: 1.55rem;
  margin-bottom: 6px;
  color: var(--brand-navy);
}

.rfq-box > p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--text-primary);
  background: #f8fafc;
  transition: var(--transition);
  text-overflow: ellipsis;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); border-color: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.rfq-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.rfq-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065f46;
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.footer {
  background: #020713;
  color: #94a3b8;
  padding: 72px 0 32px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 340px;
  color: #94a3b8;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
}

/* ==========================================================================
   VENTANA MODAL PARA FOTOGRAFIAS Y BOTON DE WHATSAPP
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(2, 7, 19, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 960px;
  width: 100%;
  background: var(--bg-navy);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(4, 11, 30, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox-img-wrap {
  max-height: 70vh;
  background: #020713;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-caption {
  padding: 20px 28px;
  color: #ffffff;
}

.lightbox-caption span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
  text-transform: uppercase;
}

.lightbox-caption h3 {
  font-size: 1.3rem;
  margin: 4px 0 6px;
}

.lightbox-caption p {
  font-size: 0.92rem;
  color: #cbd5e1;
}

/* Botón flotante directo de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #10b981;
  color: #ffffff;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
}

.whatsapp-float:hover {
  background: #059669;
  transform: translateY(-3px);
}

/* ==========================================================================
   DISENO RESPONSIVO (TABLETS, MOVILES Y PANTALLAS PEQUENAS)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid,
  .machinery-layout,
  .cert-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .service-card.featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-float-logo {
    top: 12px;
    left: 12px;
  }

  .hero-float-mold {
    bottom: 12px;
    right: 12px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .container {
    padding: 0 16px;
  }

  .nav-inner {
    height: 70px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-logo-wrap {
    width: 44px;
    height: 48px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .mobile-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 24px 20px;
    gap: 18px;
    border-bottom: 1px solid var(--border-dark);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    padding: 44px 0 60px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
    overflow-wrap: break-word;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-main-img {
    height: 300px;
  }

  .hero-img-overlay {
    padding: 16px;
  }

  .hero-caption-title {
    font-size: 1.02rem;
  }

  .hero-caption-sub {
    font-size: 0.82rem;
  }

  .process-section,
  .services-section,
  .machinery-section,
  .cert-section,
  .portfolio-section,
  .about-section,
  .contact-section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(1.55rem, 6.2vw, 2.1rem);
    overflow-wrap: break-word;
  }

  .section-subtitle {
    font-size: 0.96rem;
  }

  .services-bento {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .service-card,
  .service-card.featured {
    grid-column: 1 / -1;
  }

  .service-card.featured .service-media,
  .service-media {
    min-height: 220px;
    height: 220px;
  }

  .service-body {
    padding: 22px 18px;
  }

  .service-body h3 {
    font-size: 1.22rem;
    overflow-wrap: break-word;
  }

  .hero-pillars,
  .trust-grid,
  .process-grid,
  .portfolio-grid,
  .machinery-sub-grid,
  .spec-list,
  .about-values,
  .form-grid,
  .rfq-actions,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .machinery-main-img img {
    height: 260px;
  }

  .process-card {
    padding: 26px 20px;
  }

  .cert-caption-bar,
  .team-caption-bar {
    padding: 16px 18px;
  }

  .contact-card {
    padding: 16px;
    gap: 12px;
  }

  .form-group.full {
    grid-column: 1 / -1;
  }

  .rfq-box {
    padding: 24px 16px;
  }

  .rfq-box h3 {
    font-size: 1.3rem;
  }

  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    width: 100%;
    padding: 13px 18px;
  }

  .portfolio-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-caption {
    padding: 16px;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 15px;
    border-radius: 50%;
  }
}

@media (max-width: 390px) {
  .container {
    padding: 0 14px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .service-badge {
  display: none !important;
}
}


/* ==========================================================================
   CARRUSELES INDUSTRIALES J2M (MAQUINARIA Y PROYECTOS)
   ========================================================================== */
.j2m-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(8, 18, 44, 0.85) 0%, rgba(5, 12, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  margin: 32px 0 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  min-width: 0;
}

/* Controles superiores del carrusel */
.carousel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.carousel-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  letter-spacing: 0.05em;
  user-select: none;
}

.carousel-counter .carousel-current {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.carousel-counter .carousel-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
}

.carousel-counter .carousel-total {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.carousel-progress {
  flex: 1;
  max-width: 380px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.carousel-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 100%);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 22px rgba(255, 255, 255, 0.4);
}

.carousel-nav-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(12, 26, 60, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: #ffffff;
  color: #040b1e;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

.carousel-btn:active {
  transform: translateY(0);
}

/* Ventana de visualización y pista de diapositivas */
.carousel-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-width: 0;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
  min-height: 340px;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide.active .carousel-slide-media img {
  animation: carouselImgZoom 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes carouselImgZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1);
  }
}

/* Fotografía de la diapositiva (Columna izquierda) */
.carousel-slide-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 340px;
  min-height: 340px;
  max-height: 340px;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  background: #030818;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.carousel-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.carousel-slide-media:hover img {
  transform: scale(1.035);
}

.carousel-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(4, 11, 30, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  pointer-events: none;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.carousel-slide-media:hover .carousel-zoom-hint {
  opacity: 1;
  transform: translateY(-2px);
  background: #ffffff;
  color: #040b1e;
  border-color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.75);
}

/* Ficha técnica de la diapositiva (Columna derecha) */
.carousel-slide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 4px;
  min-width: 0;
}

.carousel-slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.carousel-badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.carousel-slide-num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.carousel-slide-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.carousel-slide-desc {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0 0 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.carousel-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.carousel-spec-pill {
  font-size: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 5px 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.carousel-spec-pill::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
}

.carousel-slide-actions {
  margin-top: auto;
}

.btn-carousel-zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-carousel-zoom:hover {
  background: #ffffff;
  color: #040b1e;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.85);
}

/* Puntos indicadores de posición */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 16px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
  background: #ffffff;
  width: 26px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 22px rgba(255, 255, 255, 0.6);
}

/* Riel de miniaturas fotográficas */
.carousel-thumbs-rail {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.carousel-thumbs-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  min-width: 0;
}

.carousel-thumbs-track::-webkit-scrollbar {
  height: 4px;
}

.carousel-thumbs-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.carousel-thumbs-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.carousel-thumb-item {
  flex: 0 0 110px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #060e24;
  padding: 0;
  cursor: pointer;
  position: relative;
  opacity: 0.5;
  transition: all 0.22s ease;
  scroll-snap-align: start;
}

.carousel-thumb-item:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.45);
}

.carousel-thumb-item.active {
  opacity: 1;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.8), 0 0 24px rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.carousel-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-thumb-title {
  display: none;
}

/* Estructura de resumen de capacidad y maquinaria */
.machinery-specs-summary {
  margin-top: 40px;
}

.machinery-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Diseño responsivo para carruseles en dispositivos móviles */
@media (max-width: 880px) {
  .j2m-carousel {
    padding: 18px 14px;
    margin: 24px 0 16px;
  }

  .carousel-slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .carousel-slide-media {
    width: 100%;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
  }

  .carousel-slide-title {
    font-size: 1.25rem;
  }

  .carousel-slide-desc {
    font-size: 0.9rem;
  }

  .carousel-thumb-item {
    flex: 0 0 86px;
    height: 58px;
  }

  .carousel-progress {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .j2m-carousel {
    padding: 14px 10px;
    border-radius: var(--radius-md, 12px);
  }

  .carousel-topbar {
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .carousel-counter .carousel-current {
    font-size: 18px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }

  .carousel-slide-media {
    width: 100%;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }

  .carousel-slide-title {
    font-size: 1.15rem;
  }

  .carousel-specs-list {
    gap: 6px;
    margin-bottom: 16px;
  }

  .carousel-spec-pill {
    font-size: 11px;
    padding: 4px 8px;
  }

  .carousel-thumb-item {
    flex: 0 0 72px;
    height: 50px;
  }

  .carousel-dots {
    gap: 6px;
    margin: 14px 0 12px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
  }

  .carousel-dot.active {
    width: 18px;
  }
}

.btn-carousel-zoom, .carousel-slide-actions {
  display: none !important;
}

.carousel-specs-list, .carousel-spec-pill {
  display: none !important;
}

/* Ocultar numeración redundante de diapositivas */
.carousel-counter, .carousel-slide-num {
  display: none !important;
}


/* ==========================================================================
   ESTRUCTURA PRINCIPAL: NOSOTROS (CON ISO), PRODUCTOS Y CLIENTES
   ========================================================================== */
.about-iso-divider {
  margin: 64px auto;
  width: 100%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
}

.products-section {
  padding-top: 80px;
  position: relative;
}

.products-subblock {
  position: relative;
}

/* ==========================================================================
   SECCION DE CLIENTES (Companias que confian en NOSOTROS)
   ========================================================================== */
.clients-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.clients-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}

.clientes-pretitle {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #0f2963 !important;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  text-transform: none;
}

.clientes-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #061742 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 16px;
  line-height: 1.05;
  text-shadow: none !important;
}

.clientes-lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: #334155 !important;
  line-height: 1.65;
  max-width: 740px;
  margin: 0 auto;
}

/* Marco gráfico auténtico para fotografías */
.clients-banner-frame {
  max-width: 980px;
  margin: 0 auto 48px;
  background: #ffffff;
  border-radius: var(--radius-lg, 16px);
  padding: 20px;
  box-shadow: 0 12px 32px rgba(4, 11, 30, 0.08), 0 2px 6px rgba(4, 11, 30, 0.04);
  border: 1px solid var(--border-light, #e2e8f0);
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clients-banner-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(4, 11, 30, 0.12), 0 4px 12px rgba(4, 11, 30, 0.06);
}

.clients-banner-frame img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

/* Cuadrícula de logotipos de clientes */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.client-card {
  background: #ffffff;
  border-radius: var(--radius-md, 12px);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 150px;
  box-shadow: 0 4px 16px rgba(4, 11, 30, 0.06);
  border: 1px solid var(--border-light, #e2e8f0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(4, 11, 30, 0.12);
  border-color: #cbd5e1;
}

.client-logo-wrap {
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.client-logo-wrap img {
  max-height: 52px;
  max-width: 90%;
  object-fit: contain;
  display: block;
}

.client-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.client-sector {
  font-size: 0.76rem;
  font-weight: 600;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .clients-section {
    padding: 70px 0;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .client-card {
    padding: 18px 12px;
    min-height: 130px;
  }
  .client-logo-wrap {
    height: 50px;
    margin-bottom: 8px;
  }
  .client-logo-wrap img {
    max-height: 42px;
  }
  .client-name {
    font-size: 0.88rem;
  }
  .client-sector {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}


.carousel-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(4, 11, 30, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 4;
}

.carousel-zoom-hint svg {
  width: 18px;
  height: 18px;
  display: block;
}

.carousel-slide-media:hover .carousel-zoom-hint {
  transform: scale(1.1);
  background: #ffffff;
  color: #040b1e;
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   ESTILOS BASADOS EN LA PRESENTACION OFICIAL J2M 2025
   ========================================================================== */
.hero-slogan-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
}

/* Recuadro de ubicación estratégica en el Bajío (Página 8 del PDF) */
.bajio-highlight-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #040b1e 0%, #071946 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(4, 11, 30, 0.14);
}

.bajio-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 4px;
}

.bajio-highlight-text h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.bajio-highlight-text p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin: 0;
}

.bajio-highlight-map {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bajio-highlight-map img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  display: block;
}

/* Cuadrícula de los 6 Valores Oficiales J2M (Página 3 del PDF) */
.valores-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.valor-pill-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #061742 0%, #0d214f 100%);
  color: #ffffff;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(6, 23, 66, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}

.valor-pill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(6, 23, 66, 0.22);
}

.valor-pill-card strong {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.valor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

/* Fichas de productos y listas técnicas oficiales (Páginas 4-7 del PDF) */
.products-section .service-card {
  background: linear-gradient(145deg, #051235 0%, #0a1f52 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 32px rgba(4, 11, 30, 0.16);
}

.pdf-product-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdf-product-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.pdf-product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.pdf-product-list li strong {
  color: #ffffff;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

/* Cuadrícula de Proveedores Confiables (Página 9 del PDF) */
.suppliers-subsection {
  border-top: 1px solid var(--border-light, #e2e8f0);
  margin-top: 56px;
  padding-top: 12px;
}

.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* Cuadrícula de Capacidad Instalada (Páginas 12, 13 y 14 del PDF) */
.capacidad-pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.capacidad-card {
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(4, 11, 30, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.capacidad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(4, 11, 30, 0.12);
}

.capacidad-img-wrap {
  height: 185px;
  background: linear-gradient(135deg, #061742 0%, #0d255c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.capacidad-img-wrap img {
  max-width: 100%;
  max-height: 155px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.capacidad-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.capacidad-info .spec-box-label {
  color: #0f2963;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.capacidad-info .spec-box-value {
  color: #061742;
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.capacidad-info .spec-box-desc {
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 992px) {
  .capacidad-pdf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .valores-grid-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .bajio-highlight-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .capacidad-pdf-grid {
    grid-template-columns: 1fr;
  }
  .valores-grid-6 {
    background: linear-gradient(135deg, #061742 0%, #0d214f 100%);
    border-radius: 14px;
    padding: 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(6, 23, 66, 0.16);
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .valor-pill-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 6px !important;
    justify-content: flex-start !important;
    transform: none !important;
  }
  .valor-pill-card strong {
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 600;
  }
  .valor-dot {
    width: 6px;
    height: 6px;
    background: #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .valores-grid-6 {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 14px;
  }
}


/* ==========================================================================
   ESTRUCTURA MULTIPÁGINA Y TRANSICIÓN DE DESVANECIMIENTO ENTRE PÁGINAS
   ========================================================================== */
html {
  width: 100%;
}

body.sitio-multipagina {
  display: block;
  width: 100%;
  min-height: 100vh;
}

body.fondo-oscuro {
  background-color: var(--bg-dark);
}

.transicion-pagina {
  display: block;
  width: 100%;
  opacity: 0;
  transition: opacity 0.38s ease;
}

body.pagina-visible .transicion-pagina {
  opacity: 1;
}

body.pagina-saliendo .transicion-pagina {
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.contenido-principal {
  display: block;
  width: 100%;
}

body.pagina-inicio .hero {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  body.pagina-inicio .hero {
    min-height: calc(100vh - 70px);
  }
}

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


/* ==========================================================================
   SUBMENÚ DESPLEGABLE DE PRODUCTOS Y SUBPÁGINAS (MOLDES, GAGES, HERRAMENTALES)
   ========================================================================== */
.nav-desplegable {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link-con-flecha {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-flecha {
  transition: transform 0.25s ease;
  opacity: 0.8;
}

.nav-desplegable:hover .nav-flecha,
.nav-desplegable:focus-within .nav-flecha {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 205px;
  padding: 8px;
  background: rgba(6, 20, 51, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(2, 7, 19, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1050;
}

/* Puente invisible para mantener el hover al bajar el cursor al submenú */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-desplegable:hover .nav-submenu,
.nav-desplegable:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-subenlace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.nav-subenlace:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding-left: 18px;
}

.nav-subenlace.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-desplegable {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .nav-flecha {
    display: none;
  }

  .nav-submenu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    width: 100%;
    max-width: 300px;
    padding: 8px 10px;
    background: rgba(13, 33, 79, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-subenlace {
    padding: 6px 12px;
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-subenlace:hover {
    padding-left: 12px;
  }
}

/* Barra rápida de subcategorías en páginas de Productos */
.subnav-productos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 36px;
}

.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(6, 23, 66, 0.05);
  transition: all 0.25s ease;
}

.subnav-pill:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  transform: translateY(-1px);
}

.subnav-pill.active {
  background: linear-gradient(135deg, #061742 0%, #0d214f 100%);
  color: #ffffff;
  border-color: #061742;
  box-shadow: 0 8px 20px rgba(6, 23, 66, 0.22);
}

/* Cuadrícula de 3 categorías principales en productos.html */
.grid-categorias-productos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

.tarjeta-categoria-producto {
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, #081b4b 0%, #051130 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tarjeta-categoria-producto:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px -10px rgba(4, 11, 30, 0.32);
  border-color: rgba(255, 255, 255, 0.45);
}

.categoria-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #040b1e;
}

.categoria-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tarjeta-categoria-producto:hover .categoria-media img {
  transform: scale(1.05);
}

.categoria-cuerpo {
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 18px;
}

.categoria-cuerpo h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.categoria-cuerpo p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.categoria-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 600;
  color: #ffffff;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.categoria-cta svg {
  transition: transform 0.25s ease;
}

.tarjeta-categoria-producto:hover .categoria-cta svg {
  transform: translateX(5px);
}

/* Ficha destacada horizontal para subpáginas de categoría única (Gages / Herramentales) */
.ficha-producto-destacada {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: linear-gradient(155deg, #081b4b 0%, #051130 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  margin-bottom: 64px;
}

.ficha-producto-destacada .ficha-destacada-media {
  min-height: 360px;
  background: #040b1e;
  overflow: hidden;
}

.ficha-producto-destacada .ficha-destacada-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ficha-producto-destacada .ficha-destacada-cuerpo {
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ficha-producto-destacada h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: #ffffff;
  margin-bottom: 18px;
}

@media (max-width: 992px) {
  .grid-categorias-productos {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .ficha-producto-destacada {
    grid-template-columns: 1fr;
  }

  .ficha-producto-destacada .ficha-destacada-media {
    min-height: 260px;
    max-height: 320px;
  }

  .ficha-producto-destacada .ficha-destacada-cuerpo {
    padding: 28px 22px;
  }
}


/* Íconos para las tarjetas de Nuestros Valores en Nosotros */
.valor-icono {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #7dd3fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.valores-grid-6 .valor-pill-card {
  justify-content: flex-start;
  padding: 14px 18px;
  gap: 12px;
}

.pilares-calidad-titulo {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #061742;
  margin-bottom: 14px;
}

.cert-feature-item {
  align-items: center;
  padding: 16px 20px;
}

.cert-feature-item h4 {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .valor-icono {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .valor-icono svg {
    width: 15px;
    height: 15px;
  }
}


/* ==========================================================================
   PÁGINA 3 · PRODUCTOS (3 FOTOGRAFÍAS PRINCIPALES + FICHAS LIMPIAS SUBPÁGINAS)
   ========================================================================== */
.grid-categorias-foto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.tarjeta-foto-categoria {
  position: relative;
  display: block;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #061742;
  border: 1px solid rgba(6, 23, 66, 0.14);
  box-shadow: var(--shadow-md);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.tarjeta-foto-categoria:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -12px rgba(6, 23, 66, 0.32);
}

.tarjeta-foto-categoria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.tarjeta-foto-categoria:hover img {
  transform: scale(1.06);
}

.tarjeta-foto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 66, 0.08) 32%, rgba(6, 23, 66, 0.82) 76%, rgba(4, 11, 30, 0.96) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 32px 28px;
  gap: 16px;
}

.tarjeta-foto-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.btn-categoria-aqui {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #061742;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(4, 11, 30, 0.28);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.tarjeta-foto-categoria:hover .btn-categoria-aqui {
  background: #e2e8f0;
  transform: translateX(4px);
}

/* Paneles informativos limpios en subpáginas (Gages, Moldes, Herramentales) */
.panel-info-producto {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto 56px;
}

.panel-info-producto.una-columna {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.bloque-info-lista {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.bloque-info-lista h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.lista-capacidades-limpia {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.lista-capacidades-limpia li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #1e293b;
}

.lista-capacidades-limpia .check-icono {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(6, 23, 66, 0.08);
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Galería limpia de fotografías reales en subpáginas (ej. Moldes) */
.galeria-trabajos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto 24px;
}

.tarjeta-trabajo-foto {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.tarjeta-trabajo-foto:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(6, 23, 66, 0.25);
}

.trabajo-foto-wrap {
  position: relative;
  height: 250px;
  background: #061742;
  overflow: hidden;
}

.trabajo-foto-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tarjeta-trabajo-foto:hover .trabajo-foto-wrap img {
  transform: scale(1.05);
}

.trabajo-foto-pie {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trabajo-foto-pie span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.trabajo-foto-pie h4 {
  font-family: var(--font-heading);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0;
}

@media (max-width: 960px) {
  .grid-categorias-foto,
  .galeria-trabajos-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .tarjeta-foto-categoria {
    height: 360px;
  }

  .panel-info-producto {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PÁGINA 4 · CLIENTES Y PROVEEDORES (SOLO LOGOTIPOS LIMPIOS)
   ========================================================================== */
.clients-grid.solo-logos,
.suppliers-grid.solo-logos {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.solo-logos .client-card {
  min-height: 136px;
  padding: 24px 22px;
}

.solo-logos .client-logo-wrap {
  height: 82px;
  margin-bottom: 0;
}

.solo-logos .client-logo-wrap img {
  max-height: 68px;
  max-width: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .clients-grid.solo-logos,
  .suppliers-grid.solo-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .solo-logos .client-card {
    min-height: 112px;
    padding: 18px 14px;
  }

  .solo-logos .client-logo-wrap {
    height: 64px;
  }

  .solo-logos .client-logo-wrap img {
    max-height: 54px;
  }
}


/* ==========================================================================
   PÁGINA 5 · INFRAESTRUCTURA (FICHAS LIMPIAS: FOTO, NOMBRE, CAPACIDAD, CANTIDAD)
   ========================================================================== */
.maquina-especificaciones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.maquina-dato {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.maquina-dato-etiqueta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.maquina-dato-valor {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

/* Datos limpios dentro de cada tarjeta de Capacidad Instalada */
.capacidad-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.capacidad-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.capacidad-meta-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.capacidad-meta-valor {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: #061742;
}

.capacidad-meta-item.cantidad {
  text-align: right;
  padding-left: 12px;
  border-left: 1px solid var(--border-light);
}

@media (max-width: 640px) {
  .maquina-especificaciones {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .maquina-dato {
    padding: 12px 14px;
  }
}


/* ==========================================================================
   PÁGINA 6 · CONTACTO (TARJETAS DE CONTACTOS DIRECTOS J2M)
   ========================================================================== */
.contactos-personas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.tarjeta-persona-contacto {
  background: rgba(13, 33, 79, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.tarjeta-persona-contacto:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(13, 33, 79, 0.72);
}

.persona-avatar-icono {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.persona-contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.persona-contacto-nombre {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.persona-contacto-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 0 0;
  padding: 0;
}

.persona-contacto-lista li {
  font-size: 0.9rem;
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.persona-contacto-lista strong {
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  align-self: center;
}

.persona-contacto-lista span {
  color: #e2e8f0;
  font-weight: 500;
}


/* ==========================================================================
   PÁGINA 1 · INICIO (HERO EDITORIAL FULL-BLEED ESTILO CORPORATIVO INDUSTRIAL)
   ========================================================================== */
body.pagina-inicio {
  padding-top: 0 !important;
}

body.pagina-inicio .navbar {
  background: linear-gradient(180deg, rgba(4, 15, 42, 0.72) 0%, rgba(4, 15, 42, 0.18) 72%, rgba(4, 15, 42, 0) 100%);
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.pagina-inicio .navbar.scrolled {
  background: rgba(4, 11, 30, 0.96);
  border-bottom-color: var(--border-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-inicio-editorial {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 130px 0 96px;
  overflow: hidden;
  background-color: #061742;
  color: #ffffff;
}

/* Contenedor multimedia de fondo (video nativo HTML5 local a pantalla completa) */
.hero-fondo-multimedia {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-fondo-multimedia img,
.hero-fondo-multimedia video,
.hero-video-nativo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.6) contrast(1.06);
  pointer-events: none;
}

/* Veladura azul corporativa profunda sobre el fondo para máxima legibilidad */
.hero-veladura-azul {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(12, 46, 114, 0.72) 0%, rgba(5, 22, 64, 0.88) 100%),
    linear-gradient(180deg, rgba(6, 23, 66, 0.55) 0%, rgba(6, 23, 66, 0.45) 55%, rgba(4, 15, 42, 0.82) 100%);
}

.hero-editorial-contenido {
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-editorial-etiqueta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 18px;
}

.hero-editorial-titulo {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.2vw, 4.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 24px;
  text-align: center;
  text-shadow: 0 6px 28px rgba(3, 12, 34, 0.35);
}

.hero-editorial-texto {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.75;
  color: rgba(241, 245, 249, 0.94);
  max-width: 740px;
  margin: 0 auto 34px;
  text-align: center;
}

.hero-btn-pildora {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.25s ease;
}

.hero-btn-pildora:hover {
  background: #ffffff;
  color: #061742;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero-btn-pildora svg {
  transition: transform 0.25s ease;
}

.hero-btn-pildora:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .hero-inicio-editorial {
    min-height: 100vh;
    padding: 112px 0 72px;
    align-items: center;
  }

  .hero-editorial-titulo {
    font-size: clamp(2rem, 8.5vw, 2.7rem);
    margin-bottom: 18px;
  }

  .hero-editorial-texto {
    font-size: 0.96rem;
    margin-bottom: 26px;
  }
}
