/* ============================================================================
   SMC GROUP — IMPLEMENTACIÓN DE MARCA
   Mismo sistema visual que el sitio principal, foco en portfolio.
   ========================================================================== */

:root {
  --bg-0: #080A0F;
  --bg-1: #0D1B35;
  --bg-soft: #0F1626;
  --ink: #F0EDE8;
  --smc: #2B6FD4;
  --smc-light: #5BA4F5;
  --silver: #8C9BB5;
  --line: rgba(43, 111, 212, 0.15);
  --line-strong: rgba(91, 164, 245, 0.35);

  --font-display: "Raleway", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.section { position: relative; padding-block: clamp(70px, 10vh, 130px); }
.section h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.01em; max-width: 20ch; margin-top: 14px; }

.kicker {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}

.section-index {
  position: absolute;
  top: clamp(16px, 5vh, 40px);
  left: var(--gutter);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(90px, 18vw, 240px);
  line-height: 0.8;
  color: rgba(43, 111, 212, 0.06);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- NAV ---------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: rgba(8, 10, 15, 0.92);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo .fallback { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.04em; }
.nav-division {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--smc-light); border-left: 1px solid var(--line-strong); padding-left: 12px;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.nav-links a { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; opacity: 0.85; transition: opacity 0.3s, color 0.3s; }
.nav-links a .n { font-family: var(--font-mono); font-size: 10px; color: var(--silver); }
.nav-links a:hover { opacity: 1; color: var(--smc-light); }
.nav-cta {
  font-weight: 600; font-size: 14px !important;
  background: var(--smc); color: #fff !important; padding: 10px 20px; border-radius: 40px;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.nav-cta:hover { background: var(--smc-light); color: #fff !important; transform: translateY(-2px); }

.burger { display: none; width: 36px; height: 36px; position: relative; z-index: 1100; }
.burger span { position: absolute; left: 7px; right: 7px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.25s; }
.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 17px; }
.burger span:nth-child(3) { top: 22px; }
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 24px;
    background: rgba(8,10,15,0.97); backdrop-filter: blur(16px);
    transform: translateX(100%); transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 20px; }
}

/* ---------- HERO ---------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-block: 140px 60px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,15,0.55) 0%, rgba(8,10,15,0.82) 60%, var(--bg-0) 100%),
              linear-gradient(90deg, rgba(8,10,15,0.75), rgba(8,10,15,0.35));
}
.hero-content { position: relative; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -0.01em;
  max-width: 18ch; margin-top: 22px;
}
.hero h1 .accent { color: var(--smc-light); }
.hero-tagline { margin-top: 22px; font-size: clamp(17px, 1.9vw, 22px); color: var(--silver); max-width: 52ch; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-tags span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 30px; padding: 8px 16px; color: var(--silver);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 15px 30px; border-radius: 44px;
  transition: transform 0.35s var(--ease), background 0.35s, box-shadow 0.35s, border-color 0.35s, color 0.35s;
}
.btn-primary { background: var(--smc); color: #fff; box-shadow: 0 10px 30px rgba(43,111,212,0.3); }
.btn-primary:hover { background: var(--smc-light); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(43,111,212,0.45); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--smc-light); color: var(--smc-light); transform: translateY(-3px); }

/* ---------- QUIÉNES SOMOS -------------------------------------------------- */
.somos-grid { display: grid; gap: clamp(28px, 5vw, 60px); position: relative; z-index: 1; margin-top: 14px; }
@media (min-width: 900px) { .somos-grid { grid-template-columns: 1fr 1fr; } }
.somos-lead { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 32px); line-height: 1.3; }
.somos-body p { color: var(--silver); font-size: 16px; margin-bottom: 16px; max-width: 56ch; }

/* ---------- QUÉ HACEMOS ---------------------------------------------------- */
.services-grid { display: grid; gap: 18px; margin-top: 40px; position: relative; z-index: 1; grid-template-columns: 1fr; }
@media (min-width: 700px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px;
  background: var(--bg-soft); transition: border-color 0.3s, transform 0.3s var(--ease);
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.service-n { color: var(--smc-light); font-size: 13px; }
.service-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-top: 14px; }
.service-card p { color: var(--silver); margin-top: 10px; font-size: 15px; }

/* ---------- PROCESO --------------------------------------------------------- */
.process-grid { margin-top: 44px; position: relative; z-index: 1; display: grid; gap: 0; border-top: 1px solid var(--line); }
.process-step { display: grid; grid-template-columns: 60px 1fr; gap: 4px 20px; padding-block: 26px; border-bottom: 1px solid var(--line); align-items: start; }
.process-n { grid-column: 1; grid-row: 1; color: var(--smc-light); font-size: 14px; padding-top: 4px; }
.process-step h3 { grid-column: 2; grid-row: 1; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.process-step p { grid-column: 2; grid-row: 2; color: var(--silver); font-size: 15px; max-width: 56ch; margin-top: 6px; }
@media (min-width: 700px) {
  .process-step { grid-template-columns: 80px 260px 1fr; }
  .process-n { grid-row: auto; }
  .process-step h3 { grid-column: 2; grid-row: 1; }
  .process-step p { grid-column: 3; grid-row: 1; margin-top: 0; }
}

/* ---------- GALERÍA --------------------------------------------------------- */
.gallery { margin-top: 40px; position: relative; z-index: 1; column-count: 1; column-gap: 16px; }
@media (min-width: 640px) { .gallery { column-count: 2; } }
@media (min-width: 1180px) { .gallery { column-count: 3; } }
.gallery-item { display: block; width: 100%; margin-bottom: 16px; break-inside: avoid; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: border-color 0.3s var(--ease); }
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-item:hover { border-color: var(--line-strong); }

/* ---------- CHECKLIST -------------------------------------------------------- */
.checklist { margin-top: 30px; position: relative; z-index: 1; max-width: 64ch; }
.checklist li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.checklist li::before { content: "✔"; position: absolute; left: 0; color: var(--smc-light); }

/* ---------- CONTACTO ---------------------------------------------------------- */
.contact-intro { color: var(--silver); font-size: 18px; margin-top: 18px; max-width: 50ch; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; position: relative; z-index: 1; }

/* ---------- FOOTER ---------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px 24px; margin-top: 40px; }
.footer-body { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; color: var(--silver); }
.footer-body a { color: var(--smc-light); }
.footer-body a:hover { color: var(--ink); }
.footer-legal { margin-top: 24px; font-size: 13px; color: var(--silver); font-family: var(--font-mono); }

/* ---------- LIGHTBOX ---------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center;
  background: rgba(8,10,15,0.94); padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); font-size: 18px;
}
.lightbox-close:hover { border-color: var(--smc-light); color: var(--smc-light); }
