/* ==========================================================================
   Cumbre Consulting Group — stylesheet
   ========================================================================== */

:root {
  --navy-950: #061421;
  --navy-900: #0a1f33;
  --navy-800: #0d2b47;
  --navy-700: #123a5e;
  --blue-600: #0f7fb8;
  --blue-500: #1596d6;
  --blue-400: #3db3e8;
  --ice-300: #8fdcf7;
  --ice-100: #eaf7fd;
  --ice-50: #f5fbfe;
  --white: #ffffff;
  --ink-900: #10202f;
  --ink-700: #34495c;
  --ink-500: #5b7286;
  --ink-300: #a9bccb;
  --border: #dce8ef;
  --shadow-sm: 0 2px 10px rgba(10, 31, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 31, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(6, 20, 33, 0.22);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -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, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue-500);
  display: inline-block;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--navy-900); }
.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.2; }
.section-head p { margin-top: 14px; color: var(--ink-500); font-size: 1.05rem; }
.section-pad { padding: 96px 0; }
.bg-ice { background: var(--ice-50); }
.bg-navy { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-500); color: var(--white); box-shadow: 0 10px 24px rgba(21, 150, 214, 0.35); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(21, 150, 214, 0.4); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.scrolled { background: rgba(6, 20, 33, 0.92); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(6, 20, 33, 0.25);
  transition: width 0.25s ease, height 0.25s ease;
}
.site-header.scrolled .brand-badge { width: 52px; height: 52px; }
.brand-name { color: var(--white); line-height: 1.15; }
.brand-name strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-name span { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice-300); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--blue-400);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 120px;
  background: radial-gradient(ellipse at 20% -10%, #163f60 0%, transparent 55%), linear-gradient(160deg, var(--navy-950) 10%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 130px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 160" preserveAspectRatio="none"><path d="M0 160 L0 90 L140 20 L230 75 L340 5 L460 95 L560 40 L700 110 L820 55 L940 120 L1060 60 L1200 100 L1200 160 Z" fill="%23f5fbfe"/></svg>') no-repeat bottom / cover;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  color: var(--white);
}
.hero h1 em { font-style: normal; color: var(--ice-300); }
.hero-lede {
  margin-top: 22px;
  font-size: 1.12rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
}
.hero-ctas { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-family: var(--font-serif); font-size: 1.9rem; color: var(--white); }
.hero-stats div span { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,20,33,0) 40%, rgba(6,20,33,0.75) 100%);
}
.hero-visual-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  right: 20px;
  color: var(--white);
  z-index: 2;
  font-size: 0.9rem;
}
.hero-visual-badge strong { font-family: var(--font-serif); font-size: 1.1rem; display: block; margin-bottom: 4px; }

/* ---------- Logos / trust strip ---------- */
.trust-strip {
  padding: 30px 0;
  background: var(--ice-100);
  border-bottom: 1px solid var(--border);
}
.trust-strip .container {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.trust-strip span {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
}
.trust-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-700);
  font-weight: 600;
}

/* ---------- Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { color: var(--ink-700); margin-bottom: 16px; font-size: 1.02rem; }
.mv-cards { display: grid; gap: 18px; }
.mv-card {
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.mv-card h3 { font-size: 1.1rem; color: var(--blue-600); margin-bottom: 10px; font-family: var(--font); font-weight: 700; }
.mv-card p { color: var(--ink-700); font-size: 0.98rem; }

/* ---------- Por qué Cumbre ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.why-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-serif);
  margin-bottom: 18px;
}
.why-card h3 { font-size: 1.05rem; font-family: var(--font); color: var(--navy-900); margin-bottom: 10px; }
.why-card p { color: var(--ink-500); font-size: 0.95rem; }

/* ---------- Servicios ---------- */
.services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}
.service-tag {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.15s ease;
}
.service-tag:hover { border-color: var(--blue-500); color: var(--blue-600); }
.service-tag.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.service-list { display: grid; gap: 16px; }
.service-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.service-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
}
.service-item-head .num { font-family: var(--font-serif); color: var(--ice-300); background: var(--navy-900); width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.95rem;}
.service-item-title { flex: 1; }
.service-item-title h3 { font-family: var(--font); font-size: 1.08rem; color: var(--navy-900); }
.service-item-title p { color: var(--ink-500); font-size: 0.9rem; margin-top: 4px; }
.chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.25s ease; color: var(--ink-300); }
.service-item.open .chevron { transform: rotate(180deg); color: var(--blue-500); }
.service-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.service-item-body-inner {
  padding: 0 28px 28px 88px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 26px;
}
.service-item-body-inner li {
  color: var(--ink-700);
  font-size: 0.94rem;
  padding-left: 18px;
  position: relative;
}
.service-item-body-inner li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
}

/* ---------- Proceso ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 0 24px 0 0;
}
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px; right: -4px;
  width: 90%;
  border-top: 2px dashed var(--border);
}
.process-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--blue-500);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700;
  margin-bottom: 20px;
  background: var(--white);
  position: relative; z-index: 1;
}
.process-step h3 { font-size: 1.02rem; color: var(--navy-900); margin-bottom: 8px; }
.process-step p { color: var(--ink-500); font-size: 0.92rem; }

/* ---------- Historia (timeline) ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--blue-500), var(--ice-300));
}
.timeline-item { position: relative; padding: 0 0 40px 76px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.timeline-item h3 { font-size: 1.08rem; color: var(--navy-900); margin-bottom: 8px; }
.timeline-item ul { display: grid; gap: 6px; }
.timeline-item li { color: var(--ink-500); font-size: 0.94rem; padding-left: 16px; position: relative; }
.timeline-item li::before { content: "—"; position: absolute; left: 0; color: var(--blue-400); }

/* ---------- Sectores ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.sector-card {
  padding: 24px 18px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}
.sector-card .icon { width: 30px; height: 30px; margin: 0 auto 14px; color: var(--blue-500); }
.sector-card span { font-size: 0.88rem; font-weight: 600; color: var(--ink-700); }

/* ---------- Clientes y proyectos ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.client-card {
  padding: 30px 30px 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.client-card-logo { height: 44px; max-width: 220px; width: auto; object-fit: contain; object-position: left; margin-bottom: 18px; }
.client-card-names { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.client-card-names .trust-pill { padding: 6px 14px; font-size: 0.78rem; }
.client-card h3 { font-family: var(--font); font-size: 1.05rem; color: var(--navy-900); margin-bottom: 14px; }
.client-card ul { display: grid; gap: 9px; }
.client-card li {
  color: var(--ink-500);
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}
.client-card li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
}

/* ---------- Team strip ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.team-photo img { width: 100%; height: 260px; object-fit: cover; }

/* ---------- CTA banda ---------- */
.cta-band {
  padding: 70px 0;
  background: linear-gradient(120deg, var(--blue-600), var(--navy-700));
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}
.contact-info { display: grid; gap: 20px; align-content: start; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-card .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--ice-100);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.contact-card h4 { font-family: var(--font); font-size: 0.95rem; color: var(--navy-900); margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.92rem; color: var(--ink-500); }
.contact-card a:hover { color: var(--blue-600); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--ice-50);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--ink-300); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 60px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name strong { color: var(--white); }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; max-width: 280px; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: var(--white); font-size: 0.92rem; margin-bottom: 16px; font-family: var(--font); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--blue-400); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 0.82rem; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 10px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.footer-social a:hover { background: var(--blue-500); }

/* ---------- Back to top / whatsapp ---------- */
.float-actions { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 12px; z-index: 400; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--white);
  transition: transform 0.15s ease;
}
.float-btn:hover { transform: translateY(-3px); }
.float-whatsapp { background: #25D366; }
.float-top { background: var(--navy-900); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.15s ease; }
.float-top.visible { opacity: 1; pointer-events: auto; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Mobile nav panel ---------- */
.mobile-panel {
  position: fixed; inset: 0;
  background: var(--navy-950);
  z-index: 600;
  display: flex; flex-direction: column;
  padding: 28px 26px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-panel a { color: var(--white); font-size: 1.3rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: var(--font-serif); }
.mobile-close { background: none; border: none; color: var(--white); font-size: 1.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-step:not(:last-child)::after { display: none; }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
  .client-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .service-item-body-inner { grid-template-columns: 1fr; padding-left: 28px; }
  .service-item-head .num { display: none; }
  .service-item-body-inner { padding-left: 28px; }
}
@media (max-width: 620px) {
  .section-pad { padding: 64px 0; }
  .hero { padding: 140px 0 90px; }
  .why-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; }
}
