/* =========================================
   DESIGN TOKENS
========================================= */
:root {
  --navy:          #0F2A4A;
  --navy-footer:   #0A2038;
  --navy-grid:     #1C3862;
  --navy-line:     #2A3D5C;
  --gold:          #D9B25C;
  --gold-hover:    #EAC875;
  --gold-brown:    #B8863A;
  --cream:         #F5EEDD;
  --cream-blue:    #B9C4D6;
  --blue-1:        #AEB9D6;
  --blue-2:        #8FA0BD;
  --blue-3:        #C9D2E2;
  --off-white:     #FBF8F2;
  --ink:           #1C2A3F;
  --body:          #4A5568;
  --warm-1:        #8A8472;
  --warm-2:        #9A9481;
  --warm-3:        #6B6455;
  --warm-4:        #7A7361;
  --hair-1:        #E3DCC9;
  --hair-2:        #EEE9DB;
  --hair-3:        #DCD4BF;
  --hair-4:        #D9D2C0;
}

/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: var(--gold-brown); text-decoration: none; }
a:hover { color: var(--navy); }

::selection { background: var(--gold); color: var(--navy); }

/* =========================================
   LAYOUT
========================================= */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.sec-light {
  padding: 72px 0;
  background: var(--off-white);
}

.sec-dark {
  padding: 72px 0;
  background: var(--navy);
  color: var(--cream);
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -1px;
  color: var(--cream);
  margin: 0 0 30px;
}

h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 70px;
}

.sec-light h2 { color: var(--navy); }
.sec-dark h2  { color: var(--cream); }

h2.centered { text-align: center; margin-left: auto; margin-right: auto; }
h2.max-680  { max-width: 680px; }
h2.max-720  { max-width: 720px; }
h2.max-600  { max-width: 600px; }
h2.max-560  { max-width: 560px; }
h2.mb-84    { margin-bottom: 84px; }
h2.mb-76    { margin-bottom: 76px; }

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

/* =========================================
   EYEBROW
========================================= */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.eyebrow.centered { justify-content: center; }

.eyebrow-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  color: var(--gold);
  line-height: 1;
}

.eyebrow-label {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.sec-light .eyebrow-label, .eyebrow-label.light { color: var(--warm-1); }
.sec-dark  .eyebrow-label, .eyebrow-label.dark  { color: var(--blue-2); }

.eyebrow-line {
  width: 32px;
  height: 1px;
}
.sec-light .eyebrow-line { background: var(--hair-3); }
.sec-dark  .eyebrow-line { background: var(--navy-line); }

/* hero eyebrow overrides */
.hero-eyebrow .eyebrow-line  { background: var(--gold); width: 44px; }
.hero-eyebrow .eyebrow-label { color: var(--gold); font-size: 12.5px; letter-spacing: 2.5px; }

/* =========================================
   BUTTONS
========================================= */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 17px 40px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-hover); color: var(--navy); }

.btn-nav {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 11px 24px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--gold-hover); }

.link-secondary {
  color: var(--blue-3);
  font-size: 14px;
  border-bottom: 1px solid var(--navy-line);
  padding-bottom: 4px;
  transition: color 0.2s;
}
.link-secondary:hover { color: var(--cream); }

/* =========================================
   NAV
========================================= */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow 0.3s, background 0.3s;
}

#nav.scrolled {
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
  background: rgba(15, 42, 74, 0.97);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: var(--cream);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--cream); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 14px;
}

.nav-links a:not(.btn-nav) {
  color: var(--blue-3);
  transition: color 0.2s;
}
.nav-links a:not(.btn-nav):hover { color: var(--cream); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
========================================= */
.hero-section {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-compass {
  position: absolute;
  right: -200px;
  top: -160px;
  width: 680px;
  height: 680px;
  opacity: 0.06;
  pointer-events: none;
  animation: compass-spin 140s linear infinite;
}

@keyframes compass-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-diag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  position: relative;
}

.hero-sub {
  font-size: 17px;
  color: var(--cream-blue);
  max-width: 520px;
  margin: 0 0 44px;
}

.hero-ctas {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-photos {
  position: relative;
  height: 320px;
}

.photo-main {
  position: absolute;
  left: 0;
  top: 0;
  width: 78%;
  height: 78%;
  overflow: hidden;
}

.photo-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54%;
  height: 52%;
  border: 6px solid var(--navy);
  overflow: hidden;
}

/* =========================================
   EL PROBLEMA
========================================= */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.prob-p {
  font-size: 16.5px;
  color: var(--body);
  max-width: 460px;
  margin-bottom: 18px;
}
.prob-p:last-child { margin-bottom: 0; }

/* Radial diagram */
.radial-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.radial {
  position: relative;
  width: min(440px, 88vw);
  aspect-ratio: 1;
}

.radial-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.radial-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px solid var(--gold);
  z-index: 2;
  padding: 10px;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.radial-center:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 24px rgba(217, 178, 92, 0.45);
}

.radial-center-title {
  font-weight: 700;
  font-size: clamp(12px, 2vw, 17px);
  line-height: 1.15;
}

.radial-center-sub {
  font-size: clamp(7.5px, 1.2vw, 9.5px);
  color: var(--gold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1.2;
}

.orbit {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 23%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(8.5px, 1.45vw, 11px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.2px;
  line-height: 1.15;
  padding: 6px;
  z-index: 2;
  hyphens: manual;
  cursor: default;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.orbit:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  z-index: 3;
}

/* =========================================
   MODELO DE TRABAJO
========================================= */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.step { padding: 0 0 0 28px; border-left: 1px solid var(--gold); }

.step-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 14px;
}

.step p {
  font-size: 14.5px;
  color: var(--blue-1);
  margin: 0;
}

/* =========================================
   DIFERENCIACIÓN
========================================= */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.diff-col-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 30px;
  padding-bottom: 18px;
}
.diff-col-title.muted { color: var(--warm-2); border-bottom: 1px solid var(--hair-1); }
.diff-col-title.strong { color: var(--navy); border-bottom: 2px solid var(--gold); }

.diff-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair-2);
  font-size: 15.5px;
}
.diff-item .mk { flex-shrink: 0; }
.diff-item.muted-row { color: var(--warm-3); }
.diff-item.muted-row .mk { color: #C4BCA5; }
.diff-item.strong-row { color: var(--ink); font-weight: 500; }
.diff-item.strong-row .mk { color: var(--gold); font-weight: 700; }

.pull-quote {
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
  font-size: clamp(22px, 2.6vw, 29px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
  border-top: 1px solid var(--hair-1);
  padding-top: 50px;
  font-style: normal;
}

/* =========================================
   SERVICIOS
========================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--navy-grid);
}

.svc-card {
  background: var(--navy);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.svc-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}

.svc-price {
  font-size: 12px;
  color: var(--blue-2);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: right;
}

.svc-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--cream);
  margin: 0;
}

.svc-card p {
  font-size: 14.5px;
  color: var(--blue-1);
  margin: 0;
  line-height: 1.6;
}

/* =========================================
   PLANES COMERCIALES
========================================= */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hair-1);
}

.plan-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--hair-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.plan-card p {
  font-size: 14px;
  color: var(--body);
  margin: 0;
  line-height: 1.6;
}

.plan-ded {
  font-size: 12.5px;
  color: var(--gold-brown);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* =========================================
   RESULTADOS
========================================= */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--navy-line);
}

.stat-card {
  background: var(--navy);
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-val {
  font-family: 'Archivo Black', sans-serif;
  font-size: 32px;
  color: var(--gold);
  line-height: 1.1;
}

.stat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.2px;
}

.stat-detail {
  font-size: 13.5px;
  color: var(--blue-2);
  line-height: 1.5;
}

/* =========================================
   EQUIPO
========================================= */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.team-photo-wrap {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--hair-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-1);
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
}

.team-name {
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}

.team-role {
  color: var(--gold-brown);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 700;
}

.team-bio-text {
  font-size: 15px;
  color: var(--body);
  max-width: 440px;
  line-height: 1.65;
}

/* =========================================
   INDUSTRIAS
========================================= */
.ind-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--navy-line);
}

.ind-card {
  background: var(--navy);
  padding: 44px 36px;
}

.ind-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 12px;
}

.ind-card p {
  font-size: 14.5px;
  color: var(--blue-1);
  margin: 0;
  line-height: 1.6;
}

/* =========================================
   CIERRE / CONTACTO
========================================= */
.contact-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.contact-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 820px;
  height: 820px;
  opacity: 0.035;
  pointer-events: none;
}

.contact-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
}

.contact-hair {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 44px;
}

.contact-statement {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin: 0 0 52px;
}

.contact-alt {
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--warm-4);
}

.contact-alt a {
  color: var(--gold-brown);
}

/* =========================================
   SECTION TEXTURES — dark sections
   Each uses a distinct subtle pattern at ~5% opacity
   via ::before pseudo-element to avoid extra HTML
========================================= */

/* Shared setup */
#modelo,
#servicios,
.results-section,
#industrias {
  position: relative;
  overflow: hidden;
}

/* Ensure content sits above the pattern */
#modelo       > .wrap,
#servicios    > .wrap,
.results-section > .wrap,
#industrias   > .wrap {
  position: relative;
  z-index: 1;
}

/* Modelo: coordinate grid (graph-paper feel — planning, structure) */
#modelo::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(217, 178, 92, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 178, 92, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Servicios: diagonal lines at 45° (technical drawing / blueprint) */
#servicios::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0px,
    transparent 28px,
    rgba(217, 178, 92, 0.055) 28px,
    rgba(217, 178, 92, 0.055) 29px
  );
}

/* Resultados: horizontal ruled lines (ledger / data report aesthetic) */
.results-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 42px,
    rgba(217, 178, 92, 0.065) 42px,
    rgba(217, 178, 92, 0.065) 43px
  );
}

/* Industrias: diagonal lines at -45° (mirrors Servicios for visual rhythm) */
#industrias::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 28px,
    rgba(217, 178, 92, 0.055) 28px,
    rgba(217, 178, 92, 0.055) 29px
  );
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: var(--navy-footer);
  color: #5C6E8C;
  padding: 36px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo span {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-2);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #5C6E8C;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--blue-2); }

/* Contact section social links */
.contact-social {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 36px;
}

.contact-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warm-4);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-social a:hover { color: var(--navy); }

/* =========================================
   RESPONSIVE — TABLET & DESKTOP
========================================= */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .ind-grid      { grid-template-columns: repeat(3, 1fr); }
  .plans-grid    { grid-template-columns: repeat(2, 1fr); }
  .diff-grid     { grid-template-columns: repeat(2, 1fr); gap: 64px; }
}

@media (min-width: 769px) {
  .wrap { padding: 0 40px; }

  .sec-light, .sec-dark { padding: 150px 0; }
  .contact-section      { padding: 170px 0; }

  .nav-inner { padding: 32px 40px; }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 96px 40px 140px;
    gap: 40px;
  }
  .hero-sub  { font-size: 18px; }
  .hero-photos { height: 440px; }

  .problem-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 80px;
    align-items: start;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .step { padding: 0 36px; border-left-width: 1px; }
  .step:first-child  { border-left-color: var(--gold); }
  .step:not(:first-child) { border-left-color: var(--navy-line); }

  .diff-grid { margin-bottom: 80px; }

  .services-grid { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
  .plans-grid    { grid-template-columns: repeat(4, 1fr); }
  .plan-card     { padding: 34px 32px 34px 0; }
  .stats-grid    { grid-template-columns: repeat(4, 1fr); }
  .team-grid     { grid-template-columns: repeat(2, 1fr); }

  footer { padding: 36px 40px; }
  .contact-inner { padding: 0 40px; }
  .footer-right { align-items: flex-end; flex-direction: row; gap: 24px; }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 42, 74, 0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--navy-line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn-nav) {
    padding: 13px 0;
    border-bottom: 1px solid var(--navy-line);
    width: 100%;
    font-size: 15px;
  }
  .nav-links .btn-nav { margin-top: 16px; width: 100%; text-align: center; padding: 13px 0; }

  .hero-photos { height: 260px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 16px; }

  h2 { margin-bottom: 48px; }
  h2.mb-84, h2.mb-76 { margin-bottom: 48px; }

  .step { padding: 0 0 0 22px; border-left: 1px solid var(--gold) !important; }
  .steps-grid { gap: 36px; }
  .diff-grid { margin-bottom: 48px; }
}

@media (max-width: 400px) {
  .hero-photos { display: none; }
}
