/* ============================================================
   NAVALCA Ingeniería — Landing
   Paleta: azul marino oscuro + naranja industrial
   ============================================================ */

:root {
  --navy-900: #0a1626;
  --navy-800: #0d1b2a;
  --navy-700: #14283d;
  --navy-600: #1d3a57;
  --orange: #f2911f;
  --orange-600: #e07c0c;
  --orange-300: #ffb454;
  --ink: #0d1b2a;
  --text: #2a3645;
  --muted: #5d6b7a;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -22px rgba(13, 27, 42, .45);
  --container: 1160px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 800;
}

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

/* ---------- Hazard strip ---------- */
.hazard-strip {
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--ink) 0, var(--ink) 18px,
    var(--orange) 18px, var(--orange) 36px
  );
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 12px 24px -10px rgba(242,145,31,.7); }
.btn-orange:hover { background: var(--orange-600); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 38, .92);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 50px; width: auto; display: block; }
.brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: .5px;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text small {
  font-size: .62rem;
  letter-spacing: 4px;
  font-weight: 600;
  color: var(--orange);
  margin-top: 3px;
}
.brand-text--lg { font-size: 1.8rem; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a {
  color: #d7dee6;
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s;
}
.nav > a:hover { color: var(--orange); }
.nav .nav-cta { color: #fff; }
.nav .nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(10,22,38,.96) 0%, rgba(13,27,42,.82) 45%, rgba(13,27,42,.55) 100%),
    url('img/hero.jpg') center/cover no-repeat,
    var(--navy-800);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(242,145,31,.18), transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 720px; padding: 90px 24px; }
.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange-300);
  border-left: 3px solid var(--orange);
  padding-left: 12px;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 900;
  margin-bottom: 22px;
}
.hero h1 .hl { color: var(--orange); }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: #cdd6e0;
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  list-style: none;
}
.hero-tags li {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: #e7edf3;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  padding: 7px 16px;
  border-radius: 999px;
}

/* ---------- Trust ---------- */
.trust {
  background: var(--orange);
  color: var(--ink);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(13,27,42,.12);
}
.trust-item {
  background: var(--orange);
  padding: 30px 22px;
  text-align: center;
}
.trust-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.trust-label { font-size: .9rem; font-weight: 500; color: #34281a; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-dark { background: var(--navy-800); color: #cdd6e0; }
.section-dark h2, .section-dark h3 { color: #fff; }

.kicker {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--orange);
  margin-bottom: 14px;
}
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-lead { color: #9fb0c2; }

/* ---------- Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 22px; }
.about-text p { margin-bottom: 16px; color: var(--text); }
.check-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242,145,31,.55);
  box-shadow: 0 26px 50px -28px rgba(0,0,0,.7);
}
.service-card--featured {
  background: linear-gradient(160deg, var(--navy-600), var(--navy-700));
  border-color: rgba(242,145,31,.45);
}
.service-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: rgba(242,145,31,.16);
  border: 1px solid rgba(242,145,31,.4);
  border-radius: 16px;
  margin-bottom: 22px;
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-card > p { color: #a9b8c8; margin-bottom: 20px; font-size: .98rem; }
.service-card ul { list-style: none; display: grid; gap: 10px; }
.service-card ul li {
  position: relative;
  padding-left: 22px;
  font-size: .95rem;
  color: #d3dce6;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-700);
}
.gallery-wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 18px 14px;
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  background: linear-gradient(transparent, rgba(10,22,38,.9));
}

/* placeholder cuando falta la imagen */
.img-fallback {
  background:
    repeating-linear-gradient(-45deg, rgba(242,145,31,.12) 0 14px, transparent 14px 28px),
    var(--navy-700);
  display: grid;
  place-items: center;
  min-height: 220px;
}
.img-fallback img { display: none; }
.img-fallback::after {
  content: "🖼  Imagen pendiente";
  color: #7d8da9;
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); text-align: center; color: var(--ink); }
.cta-inner { padding: 64px 24px; }
.cta-inner h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 12px; max-width: 760px; margin-inline: auto; }
.cta-inner p { font-size: 1.1rem; margin-bottom: 28px; color: #3a2c19; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aebccb; padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand p { margin-top: 16px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.contact-list, .footer-links { list-style: none; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list a:hover, .footer-links a:hover { color: var(--orange); }
.ci { font-size: 1.05rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  font-size: .86rem;
  color: #7e8da0;
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 200;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.7);
  transition: transform .2s var(--ease);
  animation: fabPulse 2.6s infinite;
}
.whatsapp-fab:hover { transform: scale(1.08); }
@keyframes fabPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { order: -1; }
  .about-media img { aspect-ratio: 16 / 10; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-column: span 2; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 74px; right: 0;
    width: min(80vw, 320px);
    height: calc(100vh - 74px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--navy-800);
    padding: 26px;
    transform: translateX(110%);
    transition: transform .3s var(--ease);
    box-shadow: -20px 0 40px -20px rgba(0,0,0,.6);
  }
  .nav.open { transform: translateX(0); }
  .nav > a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav .nav-cta { margin-top: 12px; border-bottom: 0; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery, .gallery-wide { grid-template-columns: 1fr; grid-column: auto; }
}

@media (max-width: 440px) {
  .trust-grid { grid-template-columns: 1fr; }
}
