/* =========================================================
   NC INGENIERIA DS SAS — Hoja de estilos principal
   Paleta basada en el catálogo e identidad de marca
   ========================================================= */

:root {
  --navy: #0d2c54;
  --navy-dark: #081b36;
  --blue: #1565c0;
  --blue-light: #1e88e5;
  --cyan: #29b6f6;
  --cyan-light: #7fd8fb;
  --white: #ffffff;
  --bg-soft: #f4f8fc;
  --bg-soft-2: #eaf3fb;
  --text-dark: #16233a;
  --text-muted: #4a5a72;
  --whatsapp: #25d366;
  --whatsapp-dark: #1fb355;

  --gradient-brand: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--cyan) 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(13,44,84,0.92) 0%, rgba(21,101,192,0.85) 55%, rgba(41,182,246,0.75) 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-md: 0 10px 30px rgba(13, 44, 84, 0.12);
  --shadow-lg: 0 20px 50px rgba(13, 44, 84, 0.18);
  --container: 1180px;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.2;
}

h2.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: .3em;
}

.section-kicker {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .6em;
}

.section-lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

section { padding: 88px 0; position: relative; }
section.alt { background: var(--bg-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .9em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.15); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); }

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(13,44,84,.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7em;
  font-weight: 800;
  color: var(--navy);
}
.brand img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(13,44,84,.25);
}
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-size: 1.05rem; letter-spacing: .02em; }
.brand-text span { display: block; font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-dark);
  position: relative;
  padding: .3em 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width .2s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .btn { padding: .65em 1.3em; font-size: .9rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 26px; height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 78px;
  color: var(--white);
  overflow: hidden;
  background: var(--navy) url('../assets/img/hero-bg.jpg') center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-brand-soft);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 60px 0;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  padding: .4em 1em;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.4em;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: .3em;
}
.hero h1 em {
  font-style: normal;
  color: var(--cyan-light);
}
.hero p.tagline {
  font-size: 1.2rem;
  font-family: Georgia, serif;
  font-style: italic;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.4em;
}
.hero p.desc {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2.2em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: auto; display: block; }

.trust-strip {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-top: 1px solid #e6edf5;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  justify-content: center;
  align-items: center;
  padding: 26px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6em;
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
}
.trust-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
}

/* ================= NOSOTROS ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-copy p { color: var(--text-muted); margin-bottom: 1.1em; }
.mv-cards { display: grid; gap: 1.2rem; }
.mv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--cyan);
}
.mv-card h3 { font-size: 1.15rem; margin-bottom: .4em; color: var(--blue); }
.mv-card p { color: var(--text-muted); margin: 0; font-size: .96rem; }

/* ================= PERFIL CEO ================= */
.ceo-card {
  margin-top: 4rem;
  background: var(--gradient-brand);
  border-radius: var(--radius);
  color: var(--white);
  padding: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.ceo-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 3px solid rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ceo-avatar svg { width: 72px; height: 72px; color: var(--white); }
.ceo-name { color: var(--white); font-size: 1.5rem; margin-bottom: .15em; }
.ceo-role {
  display: inline-block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(255,255,255,.16);
  padding: .3em .9em;
  border-radius: 999px;
  margin-bottom: 1em;
}
.ceo-bio { color: rgba(255,255,255,.9); max-width: 620px; margin-bottom: 1.2em; }
.ceo-contact { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .92rem; }
.ceo-contact a { display: flex; align-items: center; gap: .5em; font-weight: 600; }
.ceo-contact svg { width: 18px; height: 18px; }

/* ================= SERVICIOS ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
  border-top: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--cyan);
}
.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.service-icon svg { width: 30px; height: 30px; color: var(--white); }
.service-card h3 { font-size: 1.1rem; margin-bottom: .5em; }
.service-card p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* ================= CATALOGO ================= */
.catalog-panel {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 3rem;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.catalog-tags {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin: 1.4em 0 1.8em;
}
.catalog-tags span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  padding: .45em 1em;
  border-radius: 999px;
  font-size: .85rem;
}
.catalog-panel p { color: rgba(255,255,255,.85); }
.catalog-badge {
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.catalog-badge strong { display: block; font-size: 1.1rem; margin-bottom: .3em; }
.catalog-badge small { color: var(--text-muted); }
.catalog-badge .cert-chip {
  display: inline-block;
  margin-top: 1rem;
  padding: .4em 1em;
  background: #c8102e;
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  border-radius: 6px;
  letter-spacing: .04em;
}

/* ================= PROYECTOS ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(13,44,84,.92), transparent);
  color: var(--white);
  padding: 1.6rem 1rem .8rem;
  font-size: .88rem;
  font-weight: 600;
}

.before-after {
  margin-top: 2.4rem;
  background: var(--bg-soft-2);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1.4rem;
}
.ba-item { text-align: center; }
.ba-item img {
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.ba-item .tag {
  display: inline-block;
  margin-top: .8em;
  padding: .3em 1em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
}
.ba-item.antes .tag { background: #ffe3e0; color: #b3261e; }
.ba-item.despues .tag { background: #dff5e5; color: #1e7e42; }

/* ================= CONTACTO ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow-md);
}
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 1em;
  margin-bottom: 1.3rem;
  font-size: .98rem;
}
.contact-list .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-soft-2);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .icon svg { width: 20px; height: 20px; color: var(--blue); }
.contact-list a { font-weight: 700; color: var(--navy); }
.contact-list .muted { color: var(--text-muted); display: block; font-size: .85rem; margin-top: .15em; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 300px; border: 0; flex: 1; }
.map-footer {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.map-footer span { font-size: .9rem; }

form.contact-form { display: grid; gap: 1rem; margin-top: 1.6rem; }
.contact-form label {
  font-size: .85rem; font-weight: 700; color: var(--navy);
  display: block; margin-bottom: .35em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .8em 1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid #d7e2ee;
  font-family: inherit;
  font-size: .95rem;
  background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: .4rem; }

/* ================= FOOTER ================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.85);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; align-items: center; gap: .8em; margin-bottom: 1em; }
.footer-brand img { height: 46px; width: 46px; border-radius: 50%; }
.footer-brand strong { color: var(--white); font-size: 1.1rem; }
.site-footer p { color: rgba(255,255,255,.65); font-size: .92rem; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .7em; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .92rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  font-size: .82rem; color: rgba(255,255,255,.5);
}

/* ================= WHATSAPP FLOAT ================= */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 999;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
  animation: pulse 2.6s infinite;
}
.wa-float svg { width: 32px; height: 32px; color: var(--white); }
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-panel { grid-template-columns: 1fr; }
  .ceo-card { grid-template-columns: 1fr; text-align: center; }
  .ceo-avatar { margin: 0 auto; }
  .ceo-contact { justify-content: center; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 24px 1.5rem;
    box-shadow: 0 12px 24px rgba(13,44,84,.12);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links li { width: 100%; padding: .7em 0; border-bottom: 1px solid #eef2f7; }
  .nav-cta .btn-outline { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .catalog-panel, .ceo-card { padding: 2rem 1.4rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
