/* ═══════════════════════════════════════════════════════
   SOINBA – Soluciones Industriales de Celaya
   Hoja de estilos principal
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --steel-dark:  #1C2128;
  --steel-mid:   #252D38;
  --steel-card:  #2C3644;
  --blue-ind:    #0057A8;
  --blue-light:  #1A73E8;
  --accent:      #E8640A;
  --accent-glow: rgba(232, 100, 10, 0.25);
  --silver:      #C0C8D0;
  --white:       #F5F7FA;
  --text-muted:  #7F8EA0;
  --border:      rgba(192,200,208,0.12);
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--steel-dark);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #ff8533; }

/* ── NAVBAR ──────────────────────────────────────────────── */
#mainNav {
  background: rgba(28, 33, 40, 0.0);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

#mainNav.scrolled {
  background: rgba(28, 33, 40, 0.97);
  border-bottom-color: var(--border);
  padding: 0.5rem 0;
  backdrop-filter: blur(12px);
}

.navbar-brand { gap: 10px; }

.brand-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.brand-icon .fa-spin-slow {
  animation: spin 8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1;
}

.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--silver);
  text-transform: uppercase;
  line-height: 1;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver) !important;
  padding: 0.5rem 0.75rem !important;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--white) !important;
  border-bottom-color: var(--accent);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  position: relative;
  /* Metal texture via CSS + gradient */
  background:
    linear-gradient(135deg, rgba(0,87,168,0.15) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(28,33,40,0.6) 0%, var(--steel-dark) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.012) 2px,
      rgba(255,255,255,0.012) 4px
    ),
    var(--steel-dark);
  overflow: hidden;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 50%, rgba(0,87,168,0.08) 0%, transparent 70%);
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1rem;
}

.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 1.25rem;
}

.text-accent { color: var(--accent); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--silver);
  max-width: 520px;
  line-height: 1.75;
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.hero-scroll a { color: var(--silver); font-size: 1.2rem; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── CALIBRATOR WIDGET ───────────────────────────────────── */
.calibrator-widget {
  background: var(--steel-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 360px;
}

.caliper-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.caliper-value {
  font-family: 'Courier New', monospace;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.caliper-bar {
  width: 100%; height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.caliper-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-ind), var(--accent));
  border-radius: 4px;
  width: 0%;
  transition: width 2.5s ease-out;
}

.caliper-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.05em;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.25s;
}

.btn-accent:hover {
  background: #cc5608;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: all 0.25s;
}

.btn-whatsapp:hover {
  background: #1aad52;
  color: #fff;
  transform: translateY(-2px);
}

/* ── SECTION HELPERS ─────────────────────────────────────── */
.section-dark { background: var(--steel-dark); }
.section-mid  { background: var(--steel-mid); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--silver);
  max-width: 600px;
  margin: 0 auto;
}

/* ── IDENTITY CARDS (Misión/Visión/Alcance) ──────────────── */
.identity-card {
  background: var(--steel-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-ind);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.identity-card--accent {
  border-left-color: var(--accent);
  box-shadow: 0 0 30px rgba(232,100,10,0.08);
}

.identity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.identity-icon {
  width: 48px; height: 48px;
  background: rgba(232,100,10,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.identity-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.identity-card p {
  color: var(--silver);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* ── POLICY BANNER ───────────────────────────────────────── */
.section-policy {
  background: linear-gradient(135deg, var(--steel-mid) 0%, #1e3048 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.policy-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-light);
  border-radius: 12px;
  padding: 2rem;
}

.policy-icon {
  font-size: 2.5rem;
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.policy-content { flex: 1; }
.policy-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.policy-content p {
  color: var(--silver);
  font-size: 0.93rem;
  line-height: 1.75;
  margin: 0;
}

.policy-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}
.policy-badge i { font-size: 2rem; }

@media (max-width: 576px) {
  .policy-banner { flex-direction: column; }
  .policy-badge { flex-direction: row; gap: 0.5rem; }
}

/* ── SERVICE CARDS ───────────────────────────────────────── */
.service-card {
  background: var(--steel-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-ind), transparent);
  transition: opacity 0.3s;
}

.service-card--highlight::before {
  background: linear-gradient(90deg, var(--accent), #ff9944);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232,100,10,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.service-icon {
  width: 52px; height: 52px;
  background: rgba(0,87,168,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--blue-light);
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.service-card--highlight .service-icon {
  background: rgba(232,100,10,0.15);
  color: var(--accent);
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

.service-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--silver);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.service-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}

.service-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery-filters { margin-bottom: 1.5rem; }

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--silver);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-card {
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--steel-card);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.gallery-card:hover { transform: scale(1.02); box-shadow: 0 12px 35px rgba(0,0,0,0.4); }

.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(232,100,10,0.75);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-card:hover .gallery-overlay { opacity: 1; }

.gallery-item { transition: all 0.4s; }
.gallery-item.hidden { display: none; }

.gallery-upload-card {
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 2px dashed var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s;
}

.gallery-upload-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,100,10,0.05);
}

/* ── VALUES ──────────────────────────────────────────────── */
.value-pill {
  background: var(--steel-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.6rem;
}

.value-pill i {
  font-size: 1.5rem;
  color: var(--accent);
  width: 48px; height: 48px;
  background: rgba(232,100,10,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.value-pill span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}

.value-pill:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--accent-glow);
}

/* ── PROCESS TIMELINE ────────────────────────────────────── */
.process-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.process-step {
  flex: 1; min-width: 180px;
  background: var(--steel-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  position: relative;
}

.process-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.process-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.process-info p {
  font-size: 0.8rem;
  color: var(--silver);
  margin: 0;
}

.process-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  padding: 0 0.5rem;
  margin-top: 2rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .process-timeline { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); margin: 0.25rem auto; }
}

/* ── QUOTE FORM ──────────────────────────────────────────── */
.quote-form .form-control,
.quote-form .form-select {
  background: var(--steel-card);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-form .form-control:focus,
.quote-form .form-select:focus {
  background: var(--steel-card);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,100,10,0.15);
  color: var(--white);
}

.quote-form .form-control::placeholder { color: var(--text-muted); }
.quote-form .form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--silver);
  margin-bottom: 0.3rem;
}

.quote-form .form-select option { background: var(--steel-card); color: var(--white); }

/* ── CONTACT INFO ────────────────────────────────────────── */
.contact-info {
  background: var(--steel-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  height: 100%;
}

.contact-info h5 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.contact-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.contact-item i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 20px;
}

.contact-item a { color: var(--silver); }
.contact-item a:hover { color: var(--accent); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: #141920;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--silver);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.social-icons a {
  width: 34px; height: 34px;
  background: var(--steel-card);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--silver);
  font-size: 0.85rem;
  transition: all 0.25s;
}

.social-icons a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ── FLOATING ELEMENTS ───────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 1000;
  transition: all 0.3s;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

.back-to-top {
  position: fixed;
  bottom: 5.5rem; right: 2rem;
  width: 42px; height: 42px;
  background: var(--steel-card);
  border: 1px solid var(--border);
  color: var(--silver);
  border-radius: 8px;
  display: none; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.25s;
  font-size: 0.9rem;
}

.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── LIGHTBOX ────────────────────────────────────────────── */
#lightboxModal .modal-content {
  background: var(--steel-card) !important;
  border: 1px solid var(--border) !important;
}

/* ── SCROLL BAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--steel-dark); }
::-webkit-scrollbar-thumb { background: var(--steel-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .policy-banner { gap: 1rem; }
  .calibrator-widget { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}