/* ============================================================
   MB — PROPUESTA FINAL — look & feel de B (redondeado, pills,
   Space Grotesk, cortes diagonales) + paleta de A (navy/copper)
   ============================================================ */

:root {
  --deep: #0E1E33;
  --deep-2: #16283F;
  --white: #FFFFFF;
  --mist: #F6F3EC;
  --gold: #B9713A;
  --gold-l: #D79A63;
  --coral: #C4491F;
  --gray: #5B6B7D;
  --line: #DDD5C4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter',sans-serif;
  color: var(--deep);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: 'Space Grotesk',sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

.text-gold {
  color: var(--gold);
}

.text-coral {
  color: var(--coral);
}

.text-gray {
  color: var(--gray);
}

.bg-mist {
  background: var(--mist);
}

.bg-deep {
  background: var(--deep);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--deep);
  background: var(--gold-l);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

/* ---------- NAV ---------- */

.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.navbar.scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.navbar .navbar-brand img {
  height: 60px;
  width: auto;
}

.navbar .nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--deep);
  margin: 0 0.75rem;
  border-radius: 100px;
  padding: 0.4rem 0.2rem !important;
}

.lang-pill {
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  background: none;
  color: var(--deep);
  cursor: pointer;
}

.lang-pill:hover {
  border-color: var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: var(--deep);
  border: none;
  border-radius: 100px;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-gold:hover {
  background: var(--coral);
  color: #fff;
}

.btn-ghost-white {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 100px;
  padding: 0.68rem 1.6rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.btn-deep-outline {
  border: 1.5px solid var(--deep);
  color: var(--deep);
  border-radius: 100px;
  padding: 0.68rem 1.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  background: none;
}

.btn-deep-outline:hover {
  background: var(--deep);
  color: #fff;
}

/* ---------- HERO — diagonal cut signature ---------- */

.hero-b {
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #fff;
  padding-top: 8.5rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-b h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 14ch;
}

.hero-b .accent {
  color: var(--gold-l);
}

.hero-b p.lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.12rem;
  max-width: 44ch;
  line-height: 1.65;
  font-family: 'Inter',sans-serif;
}

.diag-visual {
  position: relative;
  min-height: 460px;
}

.diag-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
  border-radius: 18px;
}

.diag-panel.p1 {
  left: 0;
  width: 42%;
  background-image: url('https://placehold.co/500x900/144B4C/D9A441?text=L%C3%8DNEA+1');
}

.diag-panel.p2 {
  left: 30%;
  width: 42%;
  background-image: url('https://placehold.co/500x900/0F3D3E/E8C583?text=L%C3%8DNEA+2');
  filter: brightness(1.08);
}

.diag-panel.p3 {
  left: 60%;
  width: 42%;
  background-image: url('https://placehold.co/500x900/144B4C/D9A441?text=L%C3%8DNEA+3');
}

/* floating stat cards, overlapping hero bottom edge */

.stat-float-row {
  position: relative;
  margin-top: -4.5rem;
  z-index: 5;
}

.stat-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 45px -15px rgba(15,61,62,0.25);
  padding: 1.8rem 1.6rem;
  height: 100%;
}

.stat-card .num {
  font-family: 'Space Grotesk',sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--deep);
  line-height: 1;
}

.stat-card .label {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* ---------- SECTIONS ---------- */

section {
  padding: 6.5rem 0 5rem;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Quienes somos */

.value-pill-card {
  background: var(--mist);
  border-radius: 20px;
  padding: 1.8rem;
  height: 100%;
}

.value-pill-card .icon-dot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--deep);
  color: var(--gold-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk',sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

.value-pill-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.value-pill-card p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0;
}

/* Portafolio */

.port-card-b {
  border-radius: 22px;
  padding: 2.1rem 1.9rem;
  height: 100%;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.port-card-b.c1 {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
}

.port-card-b.c2 {
  background: linear-gradient(160deg, #1B5B54 0%, #0F3D3E 100%);
}

.port-card-b.c3 {
  background: linear-gradient(160deg, var(--gold) 0%, #C08A34 100%);
  color: var(--deep);
}

.port-card-b.c4 {
  background: var(--mist);
  color: var(--deep);
  border: 1px solid var(--line);
}

.port-card-b .tag-pill {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.port-card-b.c3 .tag-pill, .port-card-b.c4 .tag-pill {
  background: rgba(15,61,62,0.1);
  color: var(--deep);
}

.port-card-b h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1rem 0 1rem;
}

.port-card-b ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.port-card-b ul li {
  padding: 0.28rem 0;
  opacity: 0.9;
}

.port-card-b ul li::before {
  content: "— ";
}

/* Proceso */

.process-step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step .step-circle {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk',sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.process-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.process-step p {
  color: var(--gray);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* Capacidad */

.cap-band-b {
  background: var(--deep);
  border-radius: 32px;
  color: #fff;
  padding: 4rem 3rem;
}

.cap-stat-b .num {
  font-family: 'Space Grotesk',sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-l);
  line-height: 1;
}

.cap-stat-b .label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.6rem;
}

/* Calidad */

.cert-card-b {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.8rem;
}

.cert-card-b .badge-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--mist);
  color: var(--deep);
  font-family: 'Space Grotesk',sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1.1rem;
}

.cert-card-b h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cert-card-b p {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 0;
}

/* Mapa */

.map-teaser-b {
  border-radius: 26px;
  min-height: 340px;
}

/* Clientes */

.client-pill {
  background: var(--mist);
  border-radius: 100px;
  padding: 0.9rem 1.4rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
}

/* CTA final */

.cta-band-b {
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
  border-radius: 32px;
  color: #fff;
  padding: 4.5rem 3rem;
  margin: 0 auto;
}

.cta-band-b h2 {
  font-size: clamp(2rem,3.6vw,2.8rem);
  font-weight: 700;
  max-width: 16ch;
}

.corp-logo-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.corp-logo-chip {
  height: 38px;
  width: auto;
}

/* Footer */

footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 1.6rem;
  font-size: 0.9rem;
  color: var(--gray);
}

footer a {
  color: var(--gray);
  text-decoration: none;
}

footer a:hover {
  color: var(--deep);
}

footer h4 {
  font-family: 'Space Grotesk',sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray);
}

/* ---------- PROCESO — diagrama ilustrativo (ref. presentación cliente) ---------- */

.flow-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  height: 100%;
}

.flow-header {
  background: var(--deep);
  color: #fff;
  padding: 1.1rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: 'Space Grotesk',sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.flow-header .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-header .icon-circle svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-l);
}

.flow-body {
  padding: 1.8rem 1.6rem 2.1rem;
}

.flow-body > p {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.flow-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 75px;
}

.flow-node .node-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  background: var(--mist);
}

.flow-node .node-circle svg {
  width: 24px;
  height: 24px;
}

.flow-node .node-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--deep);
  line-height: 1.2;
}

.flow-op {
  align-self: center;
  font-family: 'Space Grotesk',sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold);
  padding-top: 1rem;
}

@media (max-width:420px) {
  .flow-node {
    width: 62px;
  }
}

@media (max-width:420px) {
  .flow-node .node-circle {
    width: 48px;
    height: 48px;
  }
}

@media (max-width:420px) {
  .flow-node .node-circle svg {
    width: 20px;
    height: 20px;
  }
}

/* ---------- CALIDAD — layout de A (columna + lista), look redondeado de B ---------- */

.cert-list-b {
  margin-top: 0;
}

.cert-row-b {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}

.cert-row-b:last-child {
  border-bottom: 1px solid var(--line);
}

.cert-row-b h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cert-row-b p {
  font-size: 0.92rem;
  color: var(--gray);
  margin-bottom: 0;
}

/* ---------- PROCESO — 2 tarjetas lado a lado (A), redondeadas (B) ---------- */

.process-card-b {
  border-radius: 22px;
  padding: 2.3rem;
  height: 100%;
}

.process-card-b.alt {
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--deep);
}

.process-card-b.solid {
  background: var(--deep);
  color: #fff;
}

.process-card-b h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1rem 0 1rem;
}

.process-card-b p {
  font-size: 0.93rem;
  opacity: 0.85;
  margin-bottom: 0;
}

/* ---------- PORTAFOLIO — tarjetas blancas con lista (A), esquinas redondeadas (B) ---------- */

.port-card-flat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.1rem 1.9rem;
  height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}

.port-card-flat:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.port-card-flat h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.7rem 0 1rem;
  color: var(--deep);
}

.port-card-flat ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--gray);
}

.port-card-flat ul li {
  padding: 0.32rem 0;
  border-top: 1px solid var(--line);
}

.port-card-flat ul li:first-child {
  border-top: none;
}

/* ---------- NUEVAS SECCIONES (Rev 6) ---------- */

.granel-banner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--deep);
  color: #fff;
  border-radius: 20px;
  padding: 1.8rem 2rem;
}

.granel-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.granel-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-l);
}

.granel-banner h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.granel-banner p {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.mini-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--deep);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.mini-icon-circle svg {
  width: 20px;
  height: 20px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ml-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep);
}

.plain-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.plain-list li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--gray);
}

.plain-list li:first-child {
  border-top: none;
}

/* ---------- PAGE HEADER (páginas internas) ---------- */

.page-header {
  background: var(--mist);
  padding: 8.5rem 0 3rem;
}

.page-header h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  max-width: 22ch;
}

/* ---------- CONTACTO ---------- */

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.8rem;
  height: 100%;
  text-align: center;
}

.contact-card .mini-icon-circle {
  margin: 0 auto 1rem;
  display: flex;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-card p, .contact-card a {
  font-size: 0.92rem;
  color: var(--gray);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--gold);
}

@media (max-width:767px) {
  section {
    padding: 4rem 0 3rem;
  }
}

@media (max-width:767px) {
  .cap-band-b, .cta-band-b {
    padding: 2.5rem 1.6rem;
    border-radius: 24px;
  }
}

@media (max-width:767px) {
  .stat-float-row {
    margin-top: 2rem;
  }
}

@media (max-width:767px) {
  .diag-visual {
    min-height: 320px;
    margin-top: 2rem;
  }
}

