:root {
  --ink: #101412;
  --jungle: #123c35;
  --jungle-deep: #0b211e;
  --teal: #1f6963;
  --leaf: #dce8df;
  --sand: #f4efe5;
  --shell: #fffaf1;
  --coral: #b45f4e;
  --gold: #c99a4a;
  --line: rgba(16, 20, 18, .14);
  --white-line: rgba(255, 250, 241, .2);
  --shadow: 0 28px 80px rgba(10, 18, 16, .2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::selection {
  color: var(--shell);
  background: var(--coral);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.page-shell {
  overflow: hidden;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--shell);
  background: linear-gradient(180deg, rgba(8, 16, 15, .78), rgba(8, 16, 15, .05));
  pointer-events: none;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}

.nav.is-scrolled {
  padding-top: 13px;
  padding-bottom: 13px;
  background: rgba(9, 20, 18, .94);
  box-shadow: 0 18px 42px rgba(10, 18, 16, .2);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: auto;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 250, 241, .58);
  display: grid;
  place-items: center;
}

.brand-mark::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 250, 241, .86);
  font-size: 13px;
  font-weight: 850;
  pointer-events: auto;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  color: var(--shell);
  background:
    radial-gradient(circle at 84% 18%, rgba(201, 154, 74, .2), transparent 30%),
    linear-gradient(135deg, #123c35 0%, #0f2522 50%, #7f342f 115%);
}

.hero-copy {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(22px, 4vw, 36px);
  padding: clamp(92px, 12vw, 160px) clamp(24px, 6vw, 86px) clamp(54px, 8vw, 94px);
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 250, 241, .82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 11vw, 156px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: .82;
}

.hero-lead {
  max-width: 780px;
  color: rgba(255, 250, 241, .84);
  font-size: clamp(22px, 2.45vw, 32px);
  line-height: 1.34;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 18px 40px rgba(201, 154, 74, .22);
}

.button.ghost {
  color: var(--shell);
  border-color: rgba(255, 250, 241, .34);
  background: rgba(255, 250, 241, .06);
}

.hero-panel {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(92px, 11vw, 150px) clamp(24px, 5vw, 64px) clamp(44px, 7vw, 82px);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, .06), rgba(255, 250, 241, .015)),
    linear-gradient(135deg, rgba(255, 250, 241, .04), rgba(31, 105, 99, .14));
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255, 250, 241, .12);
  background:
    linear-gradient(90deg, rgba(255, 250, 241, .045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, rgba(255, 250, 241, .04) 1px, transparent 1px) 0 0 / 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}

.system-frame {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  display: grid;
  gap: 14px;
}

.dark-card {
  padding: 24px;
  border: 1px solid var(--white-line);
  color: var(--shell);
  background: rgba(9, 20, 18, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dark-card span,
.metric b,
.map-card b {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.dark-card strong {
  display: block;
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
}

.dark-card p {
  margin-top: 16px;
  color: rgba(255, 250, 241, .78);
  font-size: 19px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--white-line);
}

.metric {
  padding: 18px 16px;
  background: rgba(10, 18, 16, .54);
  backdrop-filter: blur(14px);
}

.metric span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 250, 241, .82);
  font-size: 15px;
  font-weight: 750;
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.map-card {
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--white-line);
  background: rgba(255, 250, 241, .065);
  backdrop-filter: blur(14px);
}

.map-card.wide {
  grid-column: 1 / -1;
  min-height: 138px;
}

.map-card p {
  margin-top: 10px;
  color: rgba(255, 250, 241, .78);
  font-size: 16px;
}

.section {
  padding: clamp(64px, 9vw, 124px) clamp(20px, 5vw, 76px);
}

.inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.8vw, 78px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: .96;
}

.intro,
.method,
.custom {
  background: var(--shell);
}

.split,
.leadership-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.copy {
  display: grid;
  gap: 20px;
  color: #4f5b56;
  font-size: 22px;
}

.copy strong {
  color: var(--ink);
}

.dark-section {
  color: var(--shell);
  background: var(--jungle);
}

.dark-section .eyebrow,
.leadership .eyebrow {
  color: var(--gold);
}

.pressure-list {
  display: grid;
  gap: 12px;
}

.pressure-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--white-line);
}

.pressure-item:last-child {
  border-bottom: 1px solid var(--white-line);
}

.pressure-item b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(201, 154, 74, .48);
  font-size: 13px;
}

.pressure-item span {
  color: rgba(255, 250, 241, .84);
  font-size: 22px;
  line-height: 1.28;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fit-card {
  padding: 18px;
  border: 1px solid var(--white-line);
  background: rgba(255, 250, 241, .06);
  color: rgba(255, 250, 241, .82);
  font-size: 17px;
  font-weight: 760;
}

.services {
  background: linear-gradient(180deg, var(--sand), var(--leaf));
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, .64fr);
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-head p {
  color: #56625d;
  font-size: 21px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(255, 250, 241, .4);
}

.service-card {
  min-height: 318px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, .64);
  transition: background .2s ease, transform .2s ease;
}

.service-card.featured {
  color: var(--shell);
  background: var(--jungle);
}

.service-card:hover {
  transform: translateY(-3px);
  background: var(--shell);
}

.service-card.featured:hover {
  background: #16493f;
}

.service-number {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.service-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
}

.service-card p {
  color: #58645f;
  font-size: 16px;
}

.service-card.featured p,
.service-card.featured li {
  color: rgba(255, 250, 241, .82);
}

.service-card ul,
.topic-list {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  color: #34423d;
  font-size: 15px;
  font-weight: 720;
}

.service-card li,
.topic-list li {
  position: relative;
  padding-left: 16px;
}

.service-card li::before,
.topic-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.method-step {
  min-height: 206px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-step b {
  display: block;
  margin-bottom: 34px;
  color: var(--coral);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.method-step span {
  display: block;
  color: #29332f;
  font-size: 22px;
  font-weight: 820;
  line-height: 1.15;
}

.photo-panel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, .22);
  box-shadow: var(--shadow);
}

.photo-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.photo-panel.office::after {
  background: linear-gradient(180deg, rgba(8, 16, 15, .02), rgba(8, 16, 15, .18));
}

.photo-panel.training img {
  object-position: 24% center;
}

.photo-panel.training::after {
  background: linear-gradient(90deg, rgba(18, 60, 53, .1), rgba(8, 16, 15, .42));
}

.leadership {
  color: var(--shell);
  background: var(--jungle);
}

.leadership-copy {
  display: grid;
  gap: 20px;
}

.leadership-copy p {
  color: rgba(255, 250, 241, .8);
  font-size: 22px;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.credential {
  padding: 10px 12px;
  border: 1px solid rgba(255, 250, 241, .22);
  color: rgba(255, 250, 241, .82);
  font-size: 13px;
  font-weight: 800;
}

.closing {
  padding: clamp(78px, 12vw, 150px) clamp(20px, 5vw, 76px);
  text-align: center;
  background: linear-gradient(180deg, var(--sand), #efe5d8);
}

.closing .inner {
  max-width: 940px;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.closing p {
  max-width: 780px;
  color: #53605b;
  font-size: 23px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.contact-card a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--shell);
  font-weight: 900;
  text-decoration: none;
}

.review-button,
.copy-edit-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(16, 20, 18, .16);
  border-radius: 4px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 12px 30px rgba(16, 20, 18, .18);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.copy-edit-target {
  position: relative;
  outline: 1px dashed rgba(201, 154, 74, .42);
  outline-offset: 5px;
}

.copy-edit-button {
  top: -12px;
  right: -8px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  opacity: .92;
}

.review-panel {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 30;
  width: min(420px, calc(100vw - 28px));
  display: none;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 241, .22);
  color: var(--shell);
  background: rgba(9, 20, 18, .95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.review-panel.is-open {
  display: grid;
}

.review-panel h3 {
  font-size: 18px;
}

.review-panel p {
  color: rgba(255, 250, 241, .72);
  font-size: 13px;
}

.review-panel textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 12px;
  border: 1px solid rgba(255, 250, 241, .18);
  color: var(--shell);
  background: rgba(255, 250, 241, .08);
  font: inherit;
  line-height: 1.45;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 250, 241, .22);
  color: var(--shell);
  background: rgba(255, 250, 241, .08);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.review-actions button:first-child {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.review-actions .danger {
  border-color: rgba(180, 95, 78, .9);
  color: var(--shell);
  background: rgba(180, 95, 78, .42);
}

footer {
  padding: 26px clamp(20px, 5vw, 76px);
  color: rgba(255, 250, 241, .68);
  background: #0a1210;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .leadership-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel {
    min-height: auto;
  }

  .hero-panel {
    min-height: 620px;
  }

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

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

@media (max-width: 700px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    gap: 10px;
    font-size: 11px;
  }

  .hero-copy {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: clamp(62px, 19vw, 94px);
  }

  .actions,
  .actions .button,
  .contact-card,
  .contact-card a {
    width: 100%;
  }

  .metric-strip,
  .map-grid,
  .fit-grid,
  .service-grid,
  .method-steps {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 0;
    padding-top: 48px;
  }

  .dark-card {
    padding: 20px;
  }

  .dark-card strong {
    font-size: clamp(29px, 9vw, 42px);
  }

  .service-card {
    min-height: 0;
  }

  .photo-panel {
    min-height: 430px;
  }
}

/* --- Variante de hero centrado para la página de Capacitaciones ---
   (no hay panel lateral con foto, así que el hero se centra en vez de
   usar el grid de dos columnas de la página de Consultoría) */
body[data-page="capacitaciones"] .hero {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #123c35 0%, #0f2522 100%);
}

body[data-page="capacitaciones"] .hero-panel {
  display: none;
}

body[data-page="capacitaciones"] .hero-copy {
  width: 100%;
  max-width: 800px;
  text-align: center;
  padding: 40px;
  justify-content: center;
  align-items: center;
}

body[data-page="capacitaciones"] .hero h1 {
  margin: 0 auto;
}
@media (max-width: 700px) {
    body[data-page="capacitaciones"] .hero-copy {
        max-width: 100% !important;
        padding: 10px !important;
    }
}
/* Centrar y ajustar solo el título de capacitaciones */
body[data-page="capacitaciones"] .hero-copy {
    text-align: center !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

@media (max-width: 600px) {
    body[data-page="capacitaciones"] h1 {
        font-size: 2.5rem !important; /* Ajuste moderado para que no se vea minúsculo */
        line-height: 1.1 !important;
    }
}