/* NCG - Nevocaliza | Construcción & Reformas
   Mobile-first, no external fonts/frameworks -> fast load */

:root {
  --navy: #101c33;
  --navy-2: #16233f;
  --blue: #2f6fed;
  --blue-light: #5b8dff;
  --violet: #6c5ce7;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1b1f27;
  --text-muted: #5b6272;
  --border: #e6e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 28, 51, 0.08);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { color: var(--blue); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--text-muted); }
.section.alt { background: var(--card); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 8px 20px rgba(47,111,237,.35); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(47,111,237,.45); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16,28,51,.92);
  backdrop-filter: blur(8px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: var(--max); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo svg { flex: none; }
.logo-text { line-height: 1.1; }
.logo-text strong { display: block; font-size: 1.25rem; letter-spacing: .04em; }
.logo-text span { display: block; font-size: .68rem; color: #aeb9d4; letter-spacing: .05em; text-transform: uppercase; }
.logo-img { height: 64px; width: auto; display: block; }

.nav-links {
  display: none;
  gap: 26px;
  align-items: center;
}
.nav-links a { color: #dbe1f2; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: none; }

.nav-toggle {
  background: none; border: none; cursor: pointer; padding: 6px;
  display: flex; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-2);
  padding: 10px 20px 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #dbe1f2; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 500;
}
.mobile-menu .btn { margin-top: 14px; }

.lang-switch {
  display: flex; gap: 2px; background: rgba(255,255,255,.1);
  border-radius: 999px; padding: 3px;
}
.lang-btn {
  background: none; border: none; cursor: pointer; color: #aeb9d4;
  font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.lang-btn.active { background: #fff; color: var(--navy); }
.mobile-menu .lang-switch { background: rgba(255,255,255,.08); align-self: flex-start; margin-top: 14px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero (gradient loads instantly; video fades in on top, lazy-loaded) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 90px 0 100px;
  background: linear-gradient(120deg, var(--navy), #1c2e52 45%, var(--navy-2));
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-video.loaded { opacity: .55; }
.hero::before {
  content: "";
  position: absolute; inset: -20%; z-index: 1;
  background:
    radial-gradient(600px 400px at 15% 25%, rgba(47,111,237,.35), transparent 60%),
    radial-gradient(700px 500px at 85% 75%, rgba(108,92,231,.30), transparent 60%);
  animation: driftGradient 16s ease-in-out infinite alternate;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(16,28,51,.55), rgba(16,28,51,.85) 80%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 100% 100%, 46px 46px, 46px 46px;
}
@keyframes driftGradient {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.hero p.lead { font-size: 1.08rem; color: #cbd4ec; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-video { display: none; }
}

/* ---------- Stats bar ---------- */
.stats {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
  margin-top: -46px; position: relative; z-index: 3;
}
.stat-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; text-align: center;
}
.stat-card .num { font-size: 1.7rem; font-weight: 800; color: var(--blue); }
.stat-card .label { color: var(--text-muted); font-size: .92rem; margin-top: 4px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16,28,51,.12); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: #fff;
}
.card h3 { font-size: 1.08rem; }
.card p { color: var(--text-muted); font-size: .93rem; margin-bottom: 0; }
.card a.more { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 600; font-size: .9rem; }

.card.has-img { padding: 0; overflow: hidden; }
.card.has-img .card-img { aspect-ratio: 16/10; overflow: hidden; }
.card.has-img .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.has-img .card-body { padding: 22px 24px 26px; }
.card.has-img:hover .card-img img { transform: scale(1.05); }
.card.has-img .card-img img { transition: transform .3s ease; }

/* Specialties highlight band */
.specialties {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: 20px; padding: 40px 28px;
  display: flex; flex-direction: column; gap: 26px;
}
@media (min-width: 860px) { .specialties { flex-direction: row; align-items: center; } }
.specialties .txt { flex: 1; }
.specialties h2 { font-size: 1.6rem; }
.specialties p { color: #c6cee6; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600;
}

/* Project placeholder image */
.proj-thumb {
  aspect-ratio: 4/3; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, #dfe6f5, #eef1fa);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .8rem; text-align: center; padding: 10px;
  border: 1px dashed #c6cede;
  overflow: hidden;
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--text-muted); background: #eef1fa;
  padding: 2px 9px; border-radius: 999px; margin-top: 8px;
}

/* Process steps */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step .num {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step h3 { font-size: 1.02rem; margin-bottom: 4px; }
.step p { color: var(--text-muted); margin: 0; font-size: .93rem; }

/* Why choose us list */
.check-list li { display: flex; gap: 10px; padding: 9px 0; color: var(--text); }
.check-list li svg { flex: none; color: var(--blue); margin-top: 3px; }

/* Testimonials */
.testimonial { background: var(--card); }
.testimonial .quote { font-size: 1.02rem; color: var(--text); }
.testimonial .who { color: var(--text-muted); font-size: .85rem; margin-top: 12px; }
.placeholder-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--violet); background: #f1eefe;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* Form */
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: .95rem; font-family: inherit; background: #fbfbfe;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: 14px; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 1rem; font-weight: 600; color: var(--text); gap: 16px;
}
.faq-q .plus { flex: none; transition: transform .2s ease; color: var(--blue); font-size: 1.4rem; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { color: var(--text-muted); padding-bottom: 18px; margin: 0; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff; padding: 60px 0 70px; text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.page-hero p { color: #c6cee6; max-width: 560px; margin: 0 auto; }
.page-hero.with-img {
  position: relative; background-size: cover; background-position: center;
  background-image: linear-gradient(180deg, rgba(16,28,51,.82), rgba(16,28,51,.92)), var(--hero-img);
}

.about-img {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 20px; padding: 44px 28px; text-align: center; color: #fff;
}
.cta-band h2 { font-size: 1.5rem; }
.cta-band p { color: rgba(255,255,255,.9); }

/* Footer */
.site-footer { background: var(--navy); color: #c6cee6; padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; }
.site-footer a:hover { color: #fff; }
.footer-links li { padding: 6px 0; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .82rem; color: #8b96b6;
}

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
}

.disabled-note {
  font-size: .75rem; color: var(--text-muted); background: #fff5e0;
  border: 1px dashed #e6c877; padding: 8px 12px; border-radius: 8px; margin-top: 10px;
}
