:root {
  --navy: #24182b;
  --navy-2: #3a2744;
  --blue: #92a7cc;
  --mauve: #c1a4b7;
  --accent: #e7b56a;
  --ink: #25252a;
  --muted: #62606a;
  --soft: #f7f5f8;
  --line: #dfd9e2;
}

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

.site-header {
  background: rgba(247, 245, 248, .94);
  border-bottom-color: rgba(36, 24, 43, .1);
}

.nav-cta,
.button-primary {
  color: var(--navy);
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(231, 181, 106, .22);
}

.nav-cta:hover,
.button-primary:hover {
  background: #f0c47e;
}

.section-dark {
  background: var(--navy);
}

.hero {
  background:
    radial-gradient(circle at 84% 24%, rgba(193, 164, 183, .18), transparent 28%),
    linear-gradient(135deg, #24182b 0%, #30203a 58%, #1f1728 100%);
}

.hero-orbit {
  border-color: rgba(231, 181, 106, .28);
}

.hero-orbit::before {
  border-color: rgba(146, 167, 204, .35);
}

.hero-orbit::after {
  border-color: rgba(193, 164, 183, .45);
}

.hero h1 em {
  color: var(--mauve);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 94%;
  background-size: 100% .12em;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(3.3rem, 5.7vw, 5.8rem);
}

.hero-visual {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px 18px 18px -18px;
  border: 1px solid rgba(231, 181, 106, .48);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px 42px 2px 2px;
  box-shadow: 0 30px 70px rgba(10, 6, 13, .38);
}

.hero-visual figcaption {
  position: absolute;
  right: -20px;
  bottom: -22px;
  min-width: 190px;
  padding: 16px 20px;
  color: var(--navy);
  background: var(--accent);
  box-shadow: 0 14px 35px rgba(10, 6, 13, .24);
}

.hero-visual figcaption strong,
.hero-visual figcaption span {
  display: block;
}

.hero-visual figcaption strong {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.hero-visual figcaption span {
  margin-top: 3px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.workshop-visual {
  position: relative;
  margin-top: clamp(55px, 8vw, 105px);
  margin-bottom: 0;
}

.workshop-visual img {
  width: 100%;
  height: clamp(330px, 48vw, 610px);
  object-fit: cover;
  object-position: center 48%;
  border-radius: 44px 2px 44px 2px;
  box-shadow: 0 30px 65px rgba(36, 24, 43, .15);
}

.workshop-visual figcaption {
  position: absolute;
  inset: auto 24px 24px auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.workshop-visual figcaption span {
  padding: 9px 14px;
  color: #fff;
  background: rgba(36, 24, 43, .88);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent);
}

.eyebrow.ink {
  color: #69506c;
}

.button-ghost {
  border-color: rgba(193, 164, 183, .6);
}

.hero-seal {
  color: var(--mauve);
  border-color: var(--accent);
}

.pillar {
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 0;
  height: 4px;
  background: var(--accent);
  transition: width .25s ease;
}

.pillar:hover::before {
  width: 100%;
}

.pillar span,
.method-steps b,
.big-number {
  color: var(--mauve);
}

.method {
  background:
    linear-gradient(90deg, rgba(146, 167, 204, .07) 1px, transparent 1px),
    linear-gradient(#2a1c33, #24182b);
  background-size: 72px 72px, auto;
}

.method-visual {
  position: relative;
  margin: 0 0 clamp(55px, 7vw, 90px);
}

.method-visual img {
  width: 100%;
  height: clamp(330px, 45vw, 590px);
  object-fit: cover;
  object-position: center 54%;
  border: 1px solid rgba(193, 164, 183, .35);
  border-radius: 2px 52px 2px 2px;
}

.method-visual figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 440px;
  padding: 18px 22px;
  color: var(--navy);
  background: var(--accent);
  font-size: .86rem;
  font-weight: 700;
}

.method-steps li:hover b {
  color: var(--accent);
}

.check-list li::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(231, 181, 106, .22);
}

.wheel-core {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 28%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--navy);
  color: var(--accent);
  box-shadow: 0 0 0 12px rgba(193, 164, 183, .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: .82;
}

.wheel-core span {
  color: #fff;
  display: block;
  max-width: 90%;
  margin-top: 9px;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}

.dimension-wheel {
  width: 100%;
  background:
    radial-gradient(circle, var(--soft) 0 27%, transparent 27.5%),
    conic-gradient(from 8deg, rgba(231, 181, 106, .22), rgba(146, 167, 204, .18), rgba(193, 164, 183, .25), rgba(231, 181, 106, .22));
}

@media (max-width: 900px) {
  .assessment-grid {
    gap: 72px;
  }

  .dimension-wheel {
    width: min(440px, calc(100vw - 64px));
    height: min(440px, calc(100vw - 64px));
    margin: 12px auto 28px;
    aspect-ratio: auto;
  }
}

@media (max-width: 600px) {
  .assessment {
    overflow: hidden;
    padding-bottom: 104px;
  }

  .assessment-grid {
    gap: 78px;
  }

  .assessment-copy {
    position: relative;
    z-index: 2;
  }

  .dimension-wheel {
    width: min(300px, calc(100vw - 72px));
    height: min(300px, calc(100vw - 72px));
    min-height: 280px;
    margin: 0 auto;
  }

  .dimension-wheel > span {
    width: 92px;
    font-size: .59rem;
    line-height: 1.25;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 51.43deg)) translateY(-112px) rotate(calc(var(--i) * -51.43deg));
  }

  .wheel-core {
    width: 88px;
    height: 88px;
    aspect-ratio: auto;
    font-size: 2.65rem;
  }

  .wheel-core span {
    max-width: 76px;
    margin-top: 7px;
    font-size: .48rem;
    letter-spacing: .045em;
  }
}

#metodologia,
#diagnostico,
#soluciones,
#experiencia,
#contacto {
  scroll-margin-top: 96px;
}

.hero-copy,
.hero .actions,
.hero .button {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.cookie-banner {
  position: fixed;
  inset: auto 18px 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 980px;
  margin-inline: auto;
  padding: 20px 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(36, 24, 43, .14);
  border-radius: 18px;
  box-shadow: 0 18px 54px rgba(36, 24, 43, .22);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner strong { color: var(--navy); }
.cookie-banner p { max-width: 650px; margin: 3px 0 0; font-size: .82rem; line-height: 1.45; }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.cookie-actions .button { padding: 10px 15px; font-size: .72rem; cursor: pointer; }

.service-list details[open] summary span,
.service-list details[open] summary i {
  color: #754915;
}

.service-list details[open] {
  background: linear-gradient(90deg, rgba(231, 181, 106, .18), transparent 45%);
}

.credential-list li::before,
.text-link {
  color: #bd7727;
}

.text-link {
  border-bottom-color: #bd7727;
}

.logo-grid img:hover {
  border-color: var(--mauve);
  box-shadow: 0 10px 24px rgba(36, 24, 43, .08);
}

.video-section {
  background: linear-gradient(140deg, #30203a, #24182b 68%);
}

.video-wrap {
  border-color: rgba(231, 181, 106, .38);
  box-shadow: 20px 20px 0 rgba(231, 181, 106, .14);
}

.contact {
  color: var(--navy);
  background: var(--accent);
}

.contact .eyebrow.ink {
  color: #6b4518;
}

.contact .button-dark {
  box-shadow: 0 10px 24px rgba(36, 24, 43, .18);
}

.contact .button-outline:hover {
  color: #fff;
  background: var(--navy);
}

.site-footer {
  background: #1d1323;
}

.footer-grid h2 {
  color: var(--accent);
}

.ai-launcher {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  color: var(--navy);
  background: var(--accent);
  border: 1px solid rgba(36, 24, 43, .12);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(36, 24, 43, .24);
  font: 700 .78rem/1 "DM Sans", Arial, sans-serif;
  cursor: pointer;
}

.ai-launcher > span:first-child { font-size: 1rem; }

.ai-assistant {
  position: fixed;
  right: 22px;
  bottom: 148px;
  z-index: 26;
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto auto auto;
  width: min(390px, calc(100vw - 28px));
  height: min(590px, calc(100vh - 180px));
  overflow: hidden;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid rgba(36, 24, 43, .16);
  border-radius: 24px 24px 4px 24px;
  box-shadow: 0 24px 70px rgba(20, 11, 25, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.ai-assistant.open { opacity: 1; visibility: visible; transform: none; }
.ai-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 19px; color: #fff; background: var(--navy); }
.ai-header > div { display: grid; grid-template-columns: 9px 1fr; column-gap: 9px; align-items: center; }
.ai-header strong { font-size: .94rem; }
.ai-header small { grid-column: 2; color: var(--mauve); font-size: .68rem; }
.ai-status { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(231,181,106,.14); }
.ai-close { width: 34px; height: 34px; color: #fff; background: transparent; border: 0; font-size: 1.65rem; cursor: pointer; }
.ai-messages { overflow-y: auto; padding: 18px; scroll-behavior: smooth; }
.ai-message { width: fit-content; max-width: 88%; margin: 0 0 12px; padding: 11px 13px; border-radius: 4px 15px 15px 15px; background: #fff; box-shadow: 0 4px 14px rgba(36,24,43,.06); font-size: .84rem; line-height: 1.45; white-space: pre-line; }
.ai-message.user { margin-left: auto; color: var(--navy); background: #dce4f1; border-radius: 15px 4px 15px 15px; }
.ai-message.typing { color: var(--muted); font-style: italic; }
.ai-message a { color: #8b5418; font-weight: 700; text-decoration: underline; }
.ai-suggestions { display: flex; gap: 7px; padding: 0 15px 12px; overflow-x: auto; }
.ai-suggestions button { flex: 0 0 auto; padding: 8px 11px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; font: 600 .68rem/1.2 "DM Sans",Arial,sans-serif; cursor: pointer; }
.ai-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 14px; background: #fff; border-top: 1px solid var(--line); }
.ai-form input { min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .82rem; outline: none; }
.ai-form input:focus { border-color: var(--mauve); box-shadow: 0 0 0 3px rgba(193,164,183,.18); }
.ai-form button { padding: 0 15px; color: var(--navy); background: var(--accent); border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; }
.ai-form button:disabled { opacity: .55; cursor: wait; }
.ai-privacy { margin: 0; padding: 8px 15px 11px; color: var(--muted); background: #fff; font-size: .61rem; line-height: 1.35; }

@media (max-width: 900px) {
  .main-nav {
    background: var(--soft);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .hero-visual figcaption {
    right: 14px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero-visual::before {
    inset: -10px 10px 10px -10px;
  }

  .hero-visual img {
    border-radius: 2px 28px 2px 2px;
  }

  .hero-visual figcaption {
    right: 10px;
    bottom: -18px;
    min-width: 160px;
    padding: 12px 15px;
  }

  .workshop-visual img,
  .method-visual img {
    height: 320px;
  }

  .workshop-visual figcaption {
    inset: auto 12px 12px 12px;
  }

  .method-visual figcaption {
    right: 0;
    max-width: none;
  }

  .ai-launcher { right: 14px; bottom: 78px; padding: 0 14px; }
  .ai-launcher span:last-child { display: none; }
  .ai-assistant { right: 14px; bottom: 138px; height: min(565px, calc(100vh - 155px)); border-radius: 20px 20px 4px 20px; }
  .cookie-banner { inset: auto 10px 10px; display: block; padding: 17px; }
  .cookie-banner[hidden] { display: none; }
  .cookie-actions { margin-top: 13px; }
  .cookie-actions .button { width: auto; }
}
