/* ============================================================
   ENKI-APOLO CONSTRUCCIÓN — hoja de estilos del sitio público
   Dirección de arte: "planos que cobran vida" — azul noche +
   dorado, retícula de plano técnico, tipografía de acero.
   ============================================================ */

:root {
  --navy-950: #050b16;
  --navy-900: #0a1730;
  --navy-800: #0f2144;
  --navy-700: #17335f;
  --navy-600: #204480;

  --gold-300: #f6d97a;
  --gold-400: #eec158;
  --gold-500: #d9a635;
  --gold-600: #a97a1c;

  --ivory: #f3ede1;
  --steel: #93a7c9;
  --steel-dim: #5c6f92;

  --line: rgba(238, 193, 88, 0.18);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", -apple-system, sans-serif;

  --container: 1240px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- retícula de plano (fondo decorativo reutilizable) ---- */
.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%);
  pointer-events: none;
}

.corner-brackets::before,
.corner-brackets::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--gold-400);
  opacity: 0.6;
}
.corner-brackets::before { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.corner-brackets::after { bottom: 18px; right: 18px; border-left: none; border-top: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-400);
}

/* ================= NAV ================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding .35s ease, background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(5, 11, 22, 0.86);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; flex-direction: row; align-items: center; gap: 12px; line-height: 1; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--ivory);
}
.brand-mark span { color: var(--gold-400); }
.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--steel);
  margin-top: 3px;
}

.brand-neon {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 23px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #39ff88, #4bf1ff 45%, #ff3ec8 75%, #39ff88);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(75, 241, 255, .55)) drop-shadow(0 0 16px rgba(57, 255, 136, .35));
  animation: brandNeonShift 5s linear infinite, brandNeonPulse 2.2s ease-in-out infinite;
  white-space: nowrap;
}
.brand-neon em {
  font-style: normal;
  color: var(--gold-400);
  opacity: .85;
  -webkit-text-fill-color: var(--gold-400);
}
@keyframes brandNeonShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes brandNeonPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(75, 241, 255, .55)) drop-shadow(0 0 16px rgba(57, 255, 136, .35)); }
  50% { filter: drop-shadow(0 0 10px rgba(255, 62, 200, .7)) drop-shadow(0 0 24px rgba(75, 241, 255, .55)); }
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ivory); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-400);
  color: var(--navy-950) !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: 2px;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--gold-300); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ================= HERO ================= */
.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(238,193,88,0.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 15% 15%, rgba(32,68,128,0.35), transparent 60%),
    var(--navy-950);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 22px 0 26px;
  text-transform: uppercase;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}
.hero p.lede {
  font-size: 19px;
  color: var(--steel);
  max-width: 540px;
  margin: 0 0 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 17px 30px;
  border-radius: 2px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  text-align: center;
  max-width: 100%;
}
.btn-primary { background: var(--gold-400); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-300); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--steel-dim); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-badge-row .seal {
  width: 54px; height: 54px;
  border: 1.5px solid var(--gold-400);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold-400);
  font-size: 15px;
  flex-shrink: 0;
}
.hero-badge-row .txt { font-size: 13.5px; color: var(--steel); line-height: 1.45; }
.hero-badge-row .txt strong { color: var(--ivory); display: block; font-size: 14.5px; }

/* animated blueprint lines drifting in hero */
.hero .blueprint-grid { animation: drift 40s linear infinite; }
@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 560px 560px, 560px 560px; }
}

/* ================= PILLARS (trust bar) ================= */
.pillars {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--navy-900);
}
.pillars-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.pillar {
  padding: 30px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: none; }
.pillar svg { width: 26px; height: 26px; color: var(--gold-400); margin-bottom: 12px; }
.pillar span { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--ivory); }

/* ================= SECTION scaffolding ================= */
section { position: relative; padding: 130px 0; }
.section-head { max-width: 620px; margin-bottom: 68px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
  margin: 18px 0 0;
}
.section-head p { color: var(--steel); font-size: 17px; margin-top: 18px; }

/* ================= SERVICIOS ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--navy-950);
  padding: 40px 34px;
  position: relative;
  transition: background .3s ease;
}
.service-card:hover { background: var(--navy-900); }
.service-card .num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-600);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 14px 0 10px;
  letter-spacing: 0.01em;
}
.service-card p { color: var(--steel); font-size: 14.5px; margin: 0; }
.service-card svg {
  position: absolute;
  top: 36px; right: 30px;
  width: 30px; height: 30px;
  color: var(--steel-dim);
  transition: color .3s ease, transform .3s ease;
}
.service-card:hover svg { color: var(--gold-400); transform: translateY(-3px); }

/* ================= PROCESO ================= */
.process { background: var(--navy-900); }
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 27px; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-600) 0 10px, transparent 10px 18px);
  opacity: 0.5;
}
.process-step { position: relative; }
.process-step .dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-950);
  border: 2px solid var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold-400);
  font-size: 20px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 8px;
}
.process-step p { font-size: 13.5px; color: var(--steel); margin: 0; }

/* ================= GARANTÍAS ================= */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.guarantee-card {
  border: 1px solid var(--line);
  padding: 44px 36px;
  position: relative;
}
.guarantee-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  border: 1px solid var(--gold-600);
  padding: 5px 11px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.guarantee-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.05;
}
.guarantee-card p { color: var(--steel); font-size: 14.5px; margin: 0; }

/* ================= PORTAFOLIO teaser ================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 18px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  display: flex;
  align-items: flex-end;
  padding: 22px;
}
.portfolio-item.tall { grid-row: span 2; }
.portfolio-item::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(238,193,88,0.05) 0 2px, transparent 2px 22px);
}
.portfolio-item span {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.02em;
}

/* ================= CTA BANNER ================= */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 110px 0;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 56px);
  margin: 20px 0 18px;
}
.cta-banner p { color: var(--steel); font-size: 17px; margin-bottom: 40px; }

/* ================= FOOTER ================= */
footer { background: var(--navy-950); border-top: 1px solid var(--line); padding: 80px 0 34px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-grid h5 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0 0 20px;
}
.footer-grid a, .footer-grid li { display: block; color: var(--steel); font-size: 14.5px; margin-bottom: 12px; }
.footer-grid a:hover { color: var(--ivory); }
.footer-tagline { color: var(--steel); font-size: 14.5px; max-width: 300px; margin-top: 16px; }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--steel-dim);
  flex-wrap: wrap; gap: 12px;
}
.footer-staff-link {
  color: var(--steel-dim) !important;
  font-size: 12.5px !important;
  opacity: 0.85;
}
.footer-staff-link:hover {
  opacity: 1;
  color: var(--steel) !important;
}

/* ================= WHATSAPP FLOAT ================= */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  animation: pulse-wa 2.6s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 34px rgba(37, 211, 102, 0.75), 0 0 0 8px rgba(37, 211, 102, 0.08); }
}

/* ================= SCROLL REVEAL ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { animation: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .pillars-row { grid-template-columns: repeat(3, 1fr); }
  .pillar:nth-child(3) { border-right: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-track::before { display: none; }
  .guarantees-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .portfolio-item.tall { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .brand-logo { height: 38px; }
  .brand-neon { font-size: 16px; letter-spacing: 0.02em; }
  .nav-links {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    height: calc(100vh - 66px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-950);
    padding: 12px 24px 40px;
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links .nav-cta { margin-top: 20px; width: 100%; justify-content: center; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: none;
    border: 1px solid var(--line);
    color: var(--ivory);
    font-size: 18px;
    border-radius: 2px;
    cursor: pointer;
  }
  .hero { padding: 150px 0 90px; }
  .pillars-row { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2n) { border-right: none; }
  .services-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 200px); }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  section { padding: 90px 0; }
  .hero-ctas .btn, .cta-banner .btn { width: 100%; }
  .btn { padding: 16px 22px; font-size: 14px; }
}
