/* ==========================================================================
   EMRO QA S.A.C. — Official Design System & UI Engine
   Standard: Dark Industrial Premium (Impeccable & MW-FX Architecture)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* ── 1. PALETA CROMÁTICA: DARK INDUSTRIAL & MINING GOLD ── */
  --bg:          #07080a;
  --bg-rgb:      7, 8, 10;
  --surface:     #0d1017;
  --surface-rgb: 13, 16, 23;
  --card:        #131722;
  --card-hover:  #1a2030;
  --card-alt:    #10141f;

  /* ── BORDES Y SEPARADORES ── */
  --border:      rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-acc:  rgba(245, 158, 11, 0.35);
  --border-acc-glow: rgba(245, 158, 11, 0.6);

  /* ── ACENTO: INDUSTRIAL MINING GOLD (KOMATSU AMBER) ── */
  --accent:      #f59e0b;
  --accent-dim:  #d97706;
  --accent-glow: rgba(245, 158, 11, 0.16);
  --accent-rgb:  245, 158, 11;
  --accent-light: #fbbf24;

  /* ── ACENTO SECUNDARIO: TITANIUM SLATE ── */
  --slate-acc:   #38bdf8;
  --slate-dim:   rgba(56, 189, 248, 0.15);

  /* ── VERDE WHATSAPP OFICIAL ── */
  --green-wa:    #25d366;
  --green-wa-dk: #1ea952;
  --green-wa-glow: rgba(37, 211, 102, 0.25);

  /* ── TIPOGRAFÍA & CONTRASTE (WCAG AA COMPLIANT) ── */
  --font-display: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --text:        #f8fafc;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;
  --text-inverse: #07080a;

  /* ── GEOMETRÍA ── */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* ── SOMBRAS & VOLUMEN ── */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow:     0 12px 36px rgba(0, 0, 0, 0.55);
  --shadow-lg:  0 24px 60px rgba(0, 0, 0, 0.7);
  --shadow-acc: 0 0 40px rgba(245, 158, 11, 0.22);

  /* ── CURVAS DE TRANSICIÓN (EMIL KOWALSKI STANDARDS) ── */
  --transition:        0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-spring: 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── RESET Y BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

section {
  scroll-margin-top: 88px;
}

/* ── PATRÓN INDUSTRIAL SUBYACENTE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Envoltorio principal */
.site-wrapper {
  position: relative;
  z-index: 1;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── PILAR 2: STAGGERED SCROLL REVEAL (MW-FX) ── */
.sgp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1), transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.sgp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sgp-stagger-1 { transition-delay: 0.08s; }
.sgp-stagger-2 { transition-delay: 0.16s; }
.sgp-stagger-3 { transition-delay: 0.24s; }
.sgp-stagger-4 { transition-delay: 0.32s; }
.sgp-stagger-5 { transition-delay: 0.40s; }
.sgp-stagger-6 { transition-delay: 0.48s; }

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

/* ── PILAR 1: PURE OPTICAL DISSOLVE (FADE-SKILL) ── */
.optical-fade-wrapper {
  position: relative;
}

.optical-fade-panel {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.optical-fade-panel.is-active {
  opacity: 1;
  position: relative;
  pointer-events: all;
}

/* ── TIPOGRAFÍA Y JERARQUÍA EDITORIAL ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-acc);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}

.section-title span.highlight {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  max-width: 68ch;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 56px;
}

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

.section-header.center .section-lead {
  margin: 0 auto;
}

/* ── BOTONES & MICROINTERACCIONES TÁCTILES ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: #000;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-wa {
  background: var(--green-wa);
  color: #000;
  box-shadow: 0 4px 18px var(--green-wa-glow);
}

.btn-wa:hover {
  background: var(--green-wa-dk);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

/* ── NAVBAR FLOTANTE CON GLASSMORPHISM ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 8, 10, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(7, 8, 10, 0.94);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0, 0, 0, 0.6);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.nav-brand:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.nav-brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
  opacity: 1 !important;
  filter: none !important;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 10, 0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.is-open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 10px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.08);
}

/* ── HERO SECTION (IMPACTO PESADO) ── */
.hero-section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 130px 0 60px;
  background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
  filter: contrast(1.15) brightness(0.75);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 8, 10, 0.6) 0%,
    rgba(7, 8, 10, 0.85) 60%,
    var(--bg) 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 22px;
}

.hero-headline span.gold-text {
  color: var(--accent);
  text-shadow: 0 0 35px rgba(245, 158, 11, 0.4);
}

.hero-desc {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-acc);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-family: var(--font-mono);
  color: var(--accent-light);
  margin-bottom: 20px;
}

.hero-featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--card);
}

.hero-featured-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-featured-card:hover img {
  transform: scale(1.04);
}

.card-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(7, 8, 10, 0.95) 0%, rgba(7, 8, 10, 0.4) 70%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.caption-meta h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.caption-meta p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.caption-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-acc);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ── BARRA DE MÉTRICAS (STAT TICKER) ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-top: 36px;
  box-shadow: var(--shadow);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── CLIENTES & LOGO WALL (SOCIAL PROOF) ── */
.clients-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
}

.clients-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 42px;
}

.clients-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.clients-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.clients-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 82px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 199, 44, 0.25);
}

.logo-item img, .logo-item svg {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
}

@media (max-width: 1100px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .logo-item {
    height: 72px;
    padding: 10px 14px;
  }
  .logo-item img, .logo-item svg {
    max-height: 38px;
  }
}

/* ── QUIÉNES SOMOS & 5 PILARES DE VALOR ── */
.about-section {
  padding: 110px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.about-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-badge-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(13, 16, 23, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-acc);
  padding: 18px 24px;
  border-radius: var(--radius);
  max-width: 320px;
}

.about-badge-card h5 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.about-badge-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: var(--transition);
}

.pillar-card:hover {
  background: var(--card-hover);
  border-color: var(--border-acc);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid var(--border-acc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.pillar-card h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── BENTO GRID: 5 EJES DE SERVICIOS (BROCHURE 2026) ── */
.services-section {
  padding: 110px 0;
  background: var(--surface);
  position: relative;
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.bento-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.bento-media {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-card:hover .bento-media img {
  transform: scale(1.05);
}

.bento-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bento-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.bento-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.bento-list {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-list li {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bento-list li::before {
  content: '▸';
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1.4;
}

/* Bento Sizing Rules */
.bento-col-8 {
  grid-column: span 8;
}
.bento-col-8 .bento-media {
  height: 280px;
}

.bento-col-4 {
  grid-column: span 4;
}
.bento-col-4 .bento-media {
  height: 220px;
}

.bento-col-6 {
  grid-column: span 6;
}
.bento-col-6 .bento-media {
  height: 240px;
}

.bento-col-12 {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.bento-col-12 .bento-media {
  height: 100%;
  min-height: 320px;
}

/* ── CATÁLOGO INTERACTIVO DE MAQUINARIA & FLOTA ── */
.fleet-section {
  padding: 110px 0;
  position: relative;
}

.fleet-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.fleet-tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.fleet-tab-btn:hover {
  color: var(--text);
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.fleet-tab-btn.is-active {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.fleet-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.fleet-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.fleet-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.fleet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fleet-card:hover .fleet-img-wrap img {
  transform: scale(1.06);
}

.fleet-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(7, 8, 10, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-acc);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.fleet-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fleet-model {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.fleet-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}

.spec-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fleet-btn-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.inspect-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inspect-btn:hover {
  color: var(--accent-light);
}

/* ── SEGURIDAD INDUSTRIAL & HSE ── */
.hse-section {
  padding: 90px 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.04) 0%, rgba(7, 8, 10, 0.95) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hse-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}

.hse-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.hse-box h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.hse-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── SEDES & COBERTURA NACIONAL ── */
.locations-section {
  padding: 110px 0;
  background: var(--surface);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 992px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.location-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.location-card:hover {
  border-color: var(--border-acc);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.location-watermark {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 140px;
  height: 140px;
  opacity: 0.05;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  filter: drop-shadow(0 0 10px rgba(255, 199, 44, 0.4));
}

.location-card:hover .location-watermark {
  opacity: 0.16;
  transform: scale(1.1) rotate(-4deg);
}

.location-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-acc);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.location-city {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.location-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.location-addr {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.location-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  transition: var(--transition);
}

.location-link:hover {
  color: #fff;
  transform: translateX(4px);
  text-decoration: none;
}

/* Central Nacional Direct Contact Banner */
.central-banner {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(20, 24, 33, 0.98), rgba(12, 14, 18, 0.98));
  border: 1px solid var(--border-acc);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 199, 44, 0.2);
}

.central-banner-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 580px;
}

.central-banner-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.central-banner-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.central-banner-promise {
  font-size: 0.92rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.central-banner-promise strong {
  color: var(--accent);
}

.central-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.central-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.central-btn.wa {
  background: var(--green-wa);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.central-btn.wa:hover {
  background: var(--green-wa-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.central-btn.mail {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #fff;
}

.central-btn.mail:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── COTIZADOR & FORMULARIO INTERACTIVO ── */
.contact-section {
  padding: 110px 0;
  position: relative;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.65;
}

.direct-contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-pill:hover {
  border-color: var(--border-acc);
  transform: translateX(4px);
}

.pill-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-icon.wa {
  background: rgba(37, 211, 102, 0.15);
  color: var(--green-wa);
}

.pill-texts span {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
}

.pill-texts strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
}

.quote-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.quote-form-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.quote-form-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: span 2;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-control {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* ── FOOTER CORPORATIVO ── */
.site-footer {
  background: #040507;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.footer-brand .footer-logo-wrap img {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 1 !important;
  filter: none !important;
  display: block;
  margin-bottom: 0;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 36ch;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-legal-links a:hover {
  color: var(--text);
}

/* ── MODAL / LIGHTBOX DE MAQUINARIA ── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 5, 7, 0.95);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-dialog {
  max-width: 960px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-acc);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.is-open .lightbox-dialog {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--accent);
  color: #000;
}

.lightbox-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.lightbox-img-pane {
  background: #000;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-info-pane {
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.lightbox-info-pane h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.lightbox-info-pane p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.lightbox-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}

.lightbox-specs-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.lightbox-specs-table td:first-child {
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.lightbox-specs-table td:last-child {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

/* ── WHATSAPP FLOATING BADGE ── */
.wa-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-wa);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px var(--green-wa-glow);
  transition: var(--transition-spring);
}

.wa-float-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.wa-float-btn svg {
  width: 22px;
  height: 22px;
}

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-headline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
  .bento-col-12 {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lightbox-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: 18px;
    gap: 16px;
  }
  .locations-grid, .hse-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .quote-form-card {
    padding: 24px;
  }
  .wa-float-btn span {
    display: none;
  }
  .wa-float-btn {
    padding: 14px;
    bottom: 20px;
    right: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
