/* ===================================================================
   VKA Ingeniería — Home premium
   Paleta clara y profesional, azul oscuro corporativo + acento verde
   El hero y el footer conservan la paleta oscura original (ver scope
   ".hero, .site-footer" más abajo) para dar impacto sin oscurecer
   el resto del sitio.
   =================================================================== */

:root {
  --bg-1: #ffffff;
  --bg-2: #f8f9fa;
  --muted-bg: #f0f2f5;
  --navy: #0c2340;
  --navy-deep: #081c33;
  --blue-accent: #0c447c;

  --panel: #ffffff;
  --panel-hover: #f8f9fa;
  --line: rgba(12, 35, 64, 0.12);
  --line-soft: rgba(12, 35, 64, 0.08);

  --ghost-border: rgba(12, 35, 64, 0.22);
  --ghost-hover-bg: rgba(12, 35, 64, 0.05);
  --ghost-hover-border: rgba(12, 35, 64, 0.38);

  --text: #0c2340;
  --text-soft: #444444;
  --text-mute: #6b7280;

  --green-1: #1f9e73;
  --green-2: #127f5c;
  --green-3: #0c5f45;

  --shadow-lg: 0 30px 70px rgba(12, 35, 64, 0.14);
  --shadow-card: 0 10px 28px rgba(12, 35, 64, 0.08);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --font-heading: "Poppins", "Montserrat", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --max-width: 1200px;
}

/* Scope oscuro: solo el hero y el footer conservan la paleta azul
   profunda original. Todo lo demás usa las variables claras de :root. */
.hero,
.site-footer {
  --text: #f2f6fb;
  --text-soft: #a9bacd;
  --text-mute: #7c90a6;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --ghost-border: rgba(255, 255, 255, 0.18);
  --ghost-hover-bg: rgba(255, 255, 255, 0.05);
  --ghost-hover-border: rgba(255, 255, 255, 0.32);
  color: var(--text-soft);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-soft);
  background: var(--bg-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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 0.6em;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

p {
  margin: 0 0 1em;
}

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

/* ---------- Grad text ---------- */

.grad-text {
  background: linear-gradient(90deg, var(--green-1), var(--green-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Chip ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.1em;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  box-shadow: 0 0 10px rgba(31, 158, 115, 0.65);
}

/* ---------- Divider ---------- */

.divider {
  height: 1px;
  max-width: 220px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------- Section rhythm ---------- */

.section {
  position: relative;
  padding: 120px 0;
}

.section--tight {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-head p {
  color: var(--text-mute);
  font-size: 1.02rem;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

  .section {
    padding: 80px 0;
  }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, background 200ms ease-out, border-color 200ms ease-out;
}

.btn--primary {
  background: linear-gradient(120deg, var(--green-1), var(--green-2));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 127, 92, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(18, 127, 92, 0.42);
}

.btn--secondary {
  background: transparent;
  border-color: var(--ghost-border);
  color: var(--text);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  background: var(--ghost-hover-bg);
  border-color: var(--ghost-hover-border);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.icon-inline {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 16px rgba(12, 35, 64, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 62px;
  width: auto;
}

.nav ul {
  display: flex;
  gap: 6px;
}

.nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.94rem;
  transition: background 180ms ease-out, color 180ms ease-out;
}

.nav a:hover,
.nav a.is-active {
  background: rgba(12, 35, 64, 0.06);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(12, 35, 64, 0.1);
    border-bottom: 1px solid var(--line-soft);
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 12px 24px 20px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 108px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, 0.75);
  z-index: 1;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 158, 115, 0.14), transparent 42%),
    radial-gradient(circle at 82% 4%, rgba(74, 144, 194, 0.18), transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(18, 127, 92, 0.1), transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5em;
}

.hero p.lead {
  font-size: 1.14rem;
  color: var(--text-soft);
  max-width: 620px;
  margin-bottom: 2.2em;
}

/* ---------- Cards (divisiones) ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, background 200ms ease-out, border-color 200ms ease-out;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--panel-hover);
  border-color: rgba(31, 158, 115, 0.35);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 158, 115, 0.14), rgba(18, 127, 92, 0.22));
  border: 1px solid rgba(31, 158, 115, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--green-2);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}

.card p {
  color: var(--text-mute);
  font-size: 0.96rem;
  margin-bottom: 1.4em;
}

.card-link {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--green-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 180ms ease-out, color 180ms ease-out;
}

.card-link:hover {
  gap: 10px;
  color: var(--green-3);
}

/* ---------- "Dos divisiones": layout horizontal, ícono circular ---------- */

#divisiones .card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

#divisiones .card-icon {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: none;
  color: #94a3b8;
}

#divisiones .card-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}

#divisiones .card-body {
  min-width: 0;
}

#divisiones .card-accent {
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  margin: 4px 0 16px;
  background: linear-gradient(90deg, var(--green-1), var(--green-2));
}

@media (max-width: 540px) {
  #divisiones .card {
    flex-direction: column;
  }
}

/* ---------- Proyectos destacados ---------- */

.project-card {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 400ms ease-out;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card figcaption {
  padding: 16px 18px;
  background: #ffffff;
  color: var(--text-mute);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Equipos (marquee) ---------- */

.equipos-section {
  background: #ffffff;
  overflow: hidden;
}

.equipos-marquee {
  width: 100%;
  overflow: hidden;
}

.equipos-marquee:hover .equipos-track {
  animation-play-state: paused;
}

.equipos-track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: equipos-scroll 50s linear infinite;
}

@keyframes equipos-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.equipo-card {
  margin: 0;
  flex: 0 0 260px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.equipo-img-wrap {
  height: 220px;
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.equipo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.equipo-card:hover img {
  transform: scale(1.12);
}

.equipo-card figcaption {
  padding: 16px 18px;
  background: #ffffff;
  color: var(--text-mute);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 760px) {
  .equipo-card {
    flex: 0 0 180px;
  }
}

/* ---------- Capacidades ---------- */

.capability {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease-out, background 200ms ease-out, box-shadow 200ms ease-out;
}

.capability:hover {
  transform: translateY(-4px);
  background: var(--panel-hover);
}

.eyebrow-green {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--green-1), var(--green-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1em;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
}

/* ---------- Marcas ---------- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  justify-items: stretch;
}

@media (max-width: 760px) {
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  min-height: 92px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.brand-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.brand-logo img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 760px) {
  .brand-logo {
    padding: 8px 10px;
    min-height: 64px;
  }

  .brand-logo img {
    height: 36px;
  }
}

/* ---------- Clientes ---------- */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 760px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 76px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.client-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.client-logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

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

.contact-info-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 28px;
  box-shadow: var(--shadow-card);
}

.contact-info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-info-list li:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(31, 158, 115, 0.14), rgba(18, 127, 92, 0.22));
  border: 1px solid rgba(31, 158, 115, 0.28);
  color: var(--green-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-list h4 {
  margin-bottom: 0.2em;
  font-size: 0.98rem;
}

.contact-info-list p,
.contact-info-list a {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.contact-info-list a:hover {
  color: var(--green-2);
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

/* ---------- CTA final ---------- */

.cta-band {
  position: relative;
  padding: 88px 0;
  text-align: center;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(31, 158, 115, 0.12), transparent 55%);
  pointer-events: none;
}

.cta-band h2 {
  position: relative;
  margin-bottom: 0.3em;
}

.cta-band p {
  position: relative;
  color: var(--text-mute);
  margin-bottom: 1.8em;
}

.cta-band .btn-row {
  position: relative;
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}

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

.footer-grid h4 {
  color: var(--text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1em;
}

.footer-brand p {
  color: var(--text-mute);
  max-width: 320px;
  font-size: 0.94rem;
}

.footer-grid ul li {
  margin-bottom: 11px;
  font-size: 0.94rem;
}

.footer-grid a:hover {
  color: var(--green-1);
}

.footer-bottom {
  padding: 22px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ---------- WhatsApp flotante ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, var(--green-1), var(--green-2));
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 16px 34px rgba(18, 127, 92, 0.38);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 42px rgba(18, 127, 92, 0.48);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    padding: 0;
    gap: 0;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ===================================================================
   Componentes compartidos por las páginas internas
   (Climatización, Ingeniería, Contacto)
   =================================================================== */

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-2);
  margin-bottom: 0.8em;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

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

/* ---------- Hero de página interna ---------- */

.hero--page {
  padding: 100px 0 76px;
}

.breadcrumb {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-1);
  margin-bottom: 14px;
}

/* ---------- Botones adicionales (alias del sistema primary/secondary) ---------- */

.btn--accent,
.btn--whatsapp {
  background: linear-gradient(120deg, var(--green-1), var(--green-2));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 127, 92, 0.32);
}

.btn--accent:hover,
.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(18, 127, 92, 0.42);
}

.btn--outline,
.btn--outline-dark {
  background: transparent;
  border-color: var(--ghost-border);
  color: var(--text);
}

.btn--outline:hover,
.btn--outline-dark:hover {
  transform: translateY(-2px);
  background: var(--ghost-hover-bg);
  border-color: var(--ghost-hover-border);
}

/* ---------- Variante de sección con fondo gris muy claro ---------- */

.section--steel {
  background: var(--muted-bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Segmentos (climatización) ---------- */

.segment-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.segment-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
}
