/* ============================================================
   Global Business Consulting Group — Demo corporativa
   ============================================================ */

:root {
  --navy-900: #061426;
  --navy-800: #0a2140;
  --navy-700: #0d3a66;
  --blue-600: #1476c4;
  --blue-500: #2296d9;
  --cyan-400: #4fc3e6;
  --cyan-300: #86d6ee;
  --cyan-200: #bfe9f5;
  --ice-100: #eef7fb;
  --gold: #c7a542;
  --green: #5a9e82;
  --whatsapp: #25b358;
  --whatsapp-dark: #1c8f45;
  --white: #ffffff;
  --ink: #10233d;
  --muted: #56698a;
  --muted-light: #8296b4;
  --border: #e3ecf4;

  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(10, 33, 64, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 33, 64, 0.1);
  --shadow-lg: 0 24px 60px rgba(6, 20, 38, 0.16);
  --container: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 100%; height: 100%; }
button { font-family: inherit; cursor: pointer; }

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

.section { padding: 108px 0; }
.section-tint { background: var(--ice-100); }
.section-navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, #0c2e52);
  color: #eaf3fa;
}
.section-navy h2, .section-navy h3 { color: #fff; }

@media (max-width: 780px) {
  .section { padding: 72px 0; }
}

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  padding-bottom: 10px;
  position: relative;
  margin-bottom: 6px;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.eyebrow-light { color: var(--cyan-300); }
.eyebrow-light::after { background: var(--cyan-300); }

.section-head {
  max-width: 680px;
  margin: 0 0 52px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 6px; }
.section-intro {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}
.section-head-light .section-intro { color: #c3d6e8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-solid {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 118, 196, 0.28);
}
.btn-solid:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 33, 64, 0.3); }
.btn-outline {
  border-color: var(--border);
  color: var(--navy-800);
  background: #fff;
}
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-2px); }
.btn-outline-light {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 179, 88, 0.28);
}
.btn-whatsapp svg { width: 19px; height: 19px; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(28, 143, 69, 0.32); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: #fff;
  box-shadow: 0 1px 0 rgba(10,33,64,0.06);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  padding: 16px 0;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 9px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 50px;
  width: auto;
  transition: height 0.3s ease;
}
.site-header.scrolled .brand-logo { height: 40px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue-500);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }
.nav-cta-mobile, .btn-whatsapp-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-wa {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
}
.header-wa svg { width: 21px; height: 21px; }
.header-wa:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none; background: transparent;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2.3px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.3px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.3px) rotate(-45deg); }

@media (max-width: 920px) {
  .header-cta, .header-wa { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(340px, 86vw);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 22px;
    box-shadow: -20px 0 50px rgba(6,20,38,0.2);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; }
  .nav-cta-mobile { display: inline-flex; margin-top: 10px; }
  .btn-whatsapp-mobile {
    display: inline-flex;
    align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 0.92rem;
    color: var(--whatsapp-dark);
  }
  .btn-whatsapp-mobile svg { width: 20px; height: 20px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (real HTML/CSS reconstruction over photo background) ---------- */
.hero {
  position: relative;
  margin-top: 82px;
  background: var(--navy-900);
}

/* ----- Photo layer + overlay content ----- */
.hero-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(560px, 74vh, 720px);
  overflow: hidden;
  background: var(--navy-900);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 42%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(255,255,255,0.93) 0%, rgba(255,255,255,0.86) 26%, rgba(255,255,255,0.5) 46%, rgba(255,255,255,0.1) 62%, rgba(255,255,255,0) 74%),
    linear-gradient(0deg, rgba(6,17,33,0.28) 0%, rgba(6,17,33,0) 22%);
}

/* ----- Top bar: logo + categories | values list ----- */
.hero-topbar {
  position: relative;
  z-index: 2;
  order: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
}
.hero-brand { display: flex; align-items: center; gap: 16px; }
.hero-logo { height: 72px; width: auto; }
.hero-brand-sep { width: 1px; height: 42px; background: rgba(10,33,64,0.28); flex-shrink: 0; }
.hero-categories {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-800);
  line-height: 1.4;
}
.hero-values {
  list-style: none;
  margin: 4px 0 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--cyan-300);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(4,13,26,0.6), 0 1px 4px rgba(4,13,26,0.5);
}

/* ----- Main content (title / subtitle / actions) ----- */
.hero-content {
  position: relative;
  z-index: 2;
  order: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px 40px;
  max-width: min(620px, 56%);
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.14;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}
.hero-title-accent {
  display: inline-block;
  font-size: 1.28em;
  background: linear-gradient(120deg, var(--navy-700), var(--blue-600) 60%, var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-outline-hero {
  background: rgba(255,255,255,0.85);
  border-color: var(--blue-600);
  color: var(--navy-800);
}
.btn-outline-hero:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ----- Decorative screen card (near monitor in photo) ----- */
.hero-screen-card {
  position: absolute;
  z-index: 1;
  top: 26%;
  right: 5%;
  width: 128px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(6, 20, 38, 0.42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero-screen-card span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-200);
}

/* ----- Bottom-right tagline near geometric shape ----- */
.hero-tagline {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 7%;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.28;
  color: #fff;
  text-align: right;
  text-shadow: 0 3px 14px rgba(4,13,26,0.55);
}

/* ----- Stats bar (separate solid band below the photo) ----- */
.hero-stats {
  position: relative;
  z-index: 2;
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 30px 24px;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-stat-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--cyan-300);
  display: flex; align-items: center; justify-content: center;
  padding: 11px;
}
.hero-stat-body { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
}
.hero-stat-label {
  font-size: 0.76rem;
  color: #b9cde0;
  line-height: 1.3;
}
.hero-stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.18);
}

@media (max-width: 1100px) {
  .hero-stats { gap: 20px; }
  .hero-stat-sep:nth-of-type(2) { display: none; }
}

@media (max-width: 900px) {
  .hero-screen-card { display: none; }
}

/* ----- Mobile: reorganize into a stacked, non-overlaid layout ----- */
@media (max-width: 767px) {
  .hero { margin-top: 74px; }
  .hero-photo {
    min-height: auto;
    background: var(--ice-100);
    overflow: visible;
  }
  .hero-scrim, .hero-screen-card, .hero-tagline { display: none; }

  .hero-topbar {
    order: 1;
    padding: 22px 24px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-values {
    width: 100%;
    color: var(--navy-800);
    text-shadow: none;
    border-left: none;
    border-top: 2px solid var(--blue-500);
    padding: 12px 0 0;
    font-size: 0.72rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .hero-content { order: 2; padding: 22px 24px 26px; max-width: none; }
  .hero-title { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .hero-subtitle { max-width: none; }

  .hero-media {
    position: relative;
    inset: auto;
    order: 3;
    aspect-ratio: 4 / 3;
    width: 100%;
  }

  .hero-stats {
    order: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    padding: 28px 20px;
  }
  .hero-stat-sep { display: none; }
}

@media (max-width: 420px) {
  .hero-brand { gap: 12px; }
  .hero-logo { height: 56px; }
  .hero-categories { font-size: 0.66rem; }
}

/* ---------- Nosotros / about (two-column) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 72px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-top: 6px; }
.about-quote {
  margin-top: 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy-700);
  border-left: 3px solid var(--cyan-400);
  padding-left: 18px;
}
.about-copy > p:not(.about-quote) { margin-top: 20px; color: var(--muted); font-size: 1.05rem; }
.about-copy .btn { margin-top: 30px; }

.about-graphic { display: flex; align-items: center; justify-content: center; }
.hub-svg { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.hub-node circle { transition: transform 0.3s ease; }
.hub-node:hover circle { filter: drop-shadow(0 6px 14px rgba(10,33,64,0.18)); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-graphic { order: -1; }
  .hub-svg { max-width: 340px; }
}

/* ---------- Servicios premium grid ---------- */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  grid-auto-flow: dense;
  gap: 20px;
}
.sp-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.sp-card::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-600), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.sp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.sp-card:hover::before { transform: scaleX(1); }
.sp-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--cyan-300);
  -webkit-text-stroke: 1px var(--blue-600);
  letter-spacing: 0.05em;
}
.sp-icon {
  margin-top: 14px;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--navy-700), var(--blue-600));
  color: #fff;
  padding: 11px;
}
.sp-card h3 { margin-top: 16px; font-size: 1.08rem; }
.sp-card p { margin-top: 10px; color: var(--muted); font-size: 0.94rem; flex-grow: 1; }

.sp-featured {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-800) 65%, #0c3357);
  border: none;
  justify-content: center;
}
.sp-featured .sp-num { color: rgba(255,255,255,0.35); -webkit-text-stroke: 0; font-size: 1rem; }
.sp-featured .sp-icon { background: rgba(255,255,255,0.12); width: 58px; height: 58px; padding: 14px; }
.sp-featured h3 { color: #fff; font-size: 1.5rem; margin-top: 22px; }
.sp-featured p { color: #c3d6e8; font-size: 1rem; max-width: 320px; }
.sp-featured::before { background: linear-gradient(90deg, var(--cyan-400), var(--cyan-300)); }

.sp-elevated {
  grid-column: span 2;
  background: linear-gradient(150deg, var(--ice-100), #fff 70%);
  border-color: var(--cyan-200);
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
}
.sp-elevated .sp-icon { margin-top: 0; width: 56px; height: 56px; padding: 13px; flex-shrink: 0; background: linear-gradient(140deg, var(--blue-600), var(--cyan-400)); }
.sp-elevated .sp-num { position: absolute; top: 18px; right: 22px; }
.sp-elevated h3 { margin-top: 0; font-size: 1.2rem; }
.sp-elevated p { margin-top: 6px; }
.sp-elevated::before { background: linear-gradient(90deg, var(--blue-500), var(--cyan-300)); }

@media (max-width: 980px) {
  .sp-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-featured, .sp-elevated { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .sp-grid { grid-template-columns: 1fr; }
  .sp-featured, .sp-elevated { grid-column: span 1; }
  .sp-elevated { flex-direction: column; align-items: flex-start; }
}

/* ---------- Trayectoria flow ---------- */
.traj-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.traj-flow::before {
  content: "";
  position: absolute;
  top: 27px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-500), var(--cyan-300));
  opacity: 0.35;
  z-index: 0;
}
.traj-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.traj-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-600);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.traj-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  background: linear-gradient(120deg, var(--navy-700), var(--blue-600) 55%, var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.traj-label {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 220px;
}

@media (max-width: 820px) {
  .traj-flow {
    display: block;
    position: relative;
  }
  .traj-flow::before {
    top: 4px; bottom: 4px; left: 19px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--navy-700), var(--blue-500), var(--cyan-300));
    opacity: 0.5;
  }
  .traj-item {
    display: block;
    position: relative;
    text-align: left;
    padding-left: 56px;
    padding-bottom: 36px;
  }
  .traj-item:last-child { padding-bottom: 0; }
  .traj-icon {
    position: absolute;
    left: 0; top: 0;
    width: 40px; height: 40px;
    padding: 10px;
  }
  .traj-num { display: block; }
  .traj-label { display: block; margin-top: 4px; max-width: none; text-align: left; }
}

/* ---------- Por qué Global Business (hub diagram on navy) ---------- */
.why-hub-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 10px;
}
.why-hub-svg {
  width: 100%;
  max-width: 640px;
  height: auto;
  overflow: visible;
}

@media (max-width: 900px) {
  .why-hub-svg { max-width: 460px; }
}
@media (max-width: 560px) {
  .why-hub-svg { max-width: 340px; }
}

/* ---------- Sectores (asymmetric bento) ---------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sector-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #fff, var(--ice-100));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.sector-card::after {
  content: "";
  position: absolute;
  right: -30px; bottom: -30px;
  width: 110px; height: 110px;
  background: var(--blue-500);
  opacity: 0.06;
  transform: rotate(24deg);
  border-radius: 20px;
}
.sector-card:nth-of-type(2)::after { background: var(--cyan-400); }
.sector-card:nth-of-type(3)::after { background: var(--navy-700); }
.sector-card:nth-of-type(4)::after { background: var(--gold); }
.sector-card:nth-of-type(5)::after { background: var(--cyan-300); }

.sec-icon {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  flex-shrink: 0;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--navy-700), var(--blue-600));
  color: #fff;
}
.sector-body { position: relative; z-index: 1; }
.sector-card h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-800);
  letter-spacing: 0.01em;
}
.sector-card p { margin-top: 8px; color: var(--muted); font-size: 0.94rem; line-height: 1.5; }

.sector-card-wide {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  padding: 26px 32px;
}
.sector-card-wide .sec-icon { width: 60px; height: 60px; padding: 14px; }
.sector-card-wide h3 { font-size: 1.2rem; }
.sector-card-wide p { max-width: 460px; }

@media (max-width: 900px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-card-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-card-wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
}

/* ---------- Metodología ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.method-line {
  position: absolute;
  top: 55px;
  left: calc(12.5% + 27px);
  right: calc(12.5% + 27px);
  height: 2px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-500), var(--cyan-400), var(--blue-500), var(--navy-700));
  opacity: 0.3;
  display: none;
}
@media (min-width: 981px) {
  .method-line { display: block; }
}
.method-step {
  position: relative;
  padding: 30px 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.method-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.method-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-600);
  color: var(--blue-600);
  padding: 13px;
  box-shadow: var(--shadow-sm);
}
.method-num {
  display: block;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  background: linear-gradient(120deg, var(--navy-700), var(--blue-600) 55%, var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.method-step h3 { margin-top: 8px; font-size: 1.1rem; }
.method-step p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

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

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800) 55%, #0c3357);
  padding: 128px 0;
}
.cta-pattern { position: absolute; inset: 0; opacity: 0.9; }
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
  color: #fff;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-inner p { margin-top: 18px; color: #c8dbea; font-size: 1.06rem; }
.cta-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-800);
  letter-spacing: 0.01em;
}
.contact-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list a:hover { color: var(--blue-600); }
.cl-icon { width: 22px; height: 22px; color: var(--blue-600); flex-shrink: 0; margin-top: 2px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.map-card {
  margin-top: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-visual {
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: #fff;
  padding: 34px 24px;
  text-align: center;
}
.map-pin { width: 34px; height: 34px; margin: 0 auto 10px; display: block; color: var(--cyan-300); }
.map-visual p { font-family: var(--font-head); font-weight: 700; }
.map-visual span { display: block; margin-top: 4px; font-size: 0.88rem; color: #cfe3f1; }
.map-card .btn { border-radius: 0; }

.contact-form {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px 34px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-600), var(--cyan-400));
}
.contact-form-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.contact-form-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--navy-700), var(--blue-600));
  color: #fff;
}
.contact-form-head h3 { font-size: 1.15rem; }
.contact-form-head p { margin-top: 4px; color: var(--muted); font-size: 0.92rem; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: 0.86rem; color: var(--navy-800); }
.field input, .field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: #fbfdfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(20,118,196,0.14);
}
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field-error { font-size: 0.8rem; color: #c0392b; min-height: 1em; }
.form-feedback {
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--ice-100);
  color: var(--navy-800);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #c3d6e8;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--navy-700), var(--blue-500), var(--cyan-400), var(--cyan-300), var(--blue-500), var(--navy-700)) 1;
}
.footer-inner {
  padding: 76px 0 46px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  display: inline-flex;
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
}
.footer-logo img { height: 40px; width: auto; }
.footer-desc { margin-top: 20px; max-width: 320px; font-size: 0.96rem; line-height: 1.6; }
.footer-social { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.86rem;
  color: #fff;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.footer-pill:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.footer-pill svg { width: 16px; height: 16px; }

.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-nav h4, .footer-contact h4 {
  color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-nav a { font-size: 0.95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { font-size: 0.95rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .container {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
  font-size: 0.85rem;
  color: #8fa5bf;
}
.footer-demo a { color: var(--cyan-300); font-weight: 600; }
.footer-demo a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Floating actions ---------- */
.wa-float {
  position: fixed;
  right: 24px; bottom: 82px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.wa-float.visible { opacity: 1; visibility: visible; transform: scale(1); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: var(--whatsapp-dark); transform: scale(1.06); }

.back-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 400;
}
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--blue-600); }
.back-top svg { width: 18px; height: 18px; }

@media (max-width: 560px) {
  .wa-float { right: 16px; bottom: 74px; width: 50px; height: 50px; }
  .wa-float svg { width: 26px; height: 26px; }
  .back-top { right: 16px; bottom: 18px; width: 40px; height: 40px; }
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
