/* Diagnóstico interactivo de Camino Digital — conserva DESIGN.md */
.diag-main {
  min-height: calc(100vh - 142px);
  padding: clamp(38px, 6.5vw, 86px) 20px 90px;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0, #e0e8ef 0%, transparent 70%),
    #f3f5f7;
}
.diag-container { width: min(100%, 790px); margin: 0 auto; }
.diag-panel { background: #fff; padding: clamp(25px, 5vw, 56px); border: 1px solid #e1e6ed; border-radius: 17px; }
.diag-mark { display: inline-block; color: #425b71; font-size: 13px; font-weight: 700; margin-bottom: 22px; }
.diag-panel h1 { font-size: clamp(32px, 4.3vw, 52px); line-height: 1.13; letter-spacing: -.035em; margin: 0 0 17px; color: #10233a; text-wrap: balance; }
.diag-panel h1 span { color: #936000; }
.diag-panel h2 { font-size: clamp(20px, 2.5vw, 26px); line-height: 1.25; letter-spacing: -.02em; color: #10233a; }
.diag-lead { font-size: 16px; line-height: 1.7; color: #48596a; max-width: 66ch; margin: 0 0 30px; }
.diag-prompt { margin: 31px 0 17px; }
.diag-choices { display: grid; gap: 12px; }
.diag-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 88px;
  padding: 19px 20px;
  gap: 16px;
  text-align: left;
  color: #15283d;
  background: #fff;
  border: 1px solid #b4c1ce;
  border-radius: 11px;
  transition: border-color .17s ease, background-color .17s ease, transform .17s ease;
}
.diag-choice:hover { border-color: #0d5484; background: #f4f8fb; transform: translateX(2px); }
.diag-choice:active { transform: translateX(1px); }
.diag-choice strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.4; }
.diag-choice small { display: block; font-size: 13px; font-weight: 500; color: #516273; margin-top: 5px; line-height: 1.5; }
.diag-arrow { font-size: 25px; font-weight: 400; color: #a16e0e; }
.diag-secondary { color: #475b6b; font-size: 14px; margin: 28px 0 0; }
.diag-secondary a { color: #0a5587; font-weight: 800; }
.diag-progress-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: 13px; }
.diag-flow-name { font-weight: 800; color: #213d58; }
.diag-count { font-weight: 700; color: #586978; font-variant-numeric: tabular-nums; }
.diag-progress { height: 7px; margin: 0 0 34px; border-radius: 999px; background: #e2e8ee; overflow: hidden; }
.diag-progress > span { display: block; width: 25%; height: 100%; background: #ffb81c; transition: width .23s ease-out; }
#diag-question h1 { font-size: clamp(30px, 3.9vw, 43px); margin-bottom: 14px; }
#diag-question .diag-lead { margin-bottom: 27px; }
.diag-option-number { display: flex; align-items: center; justify-content: center; flex: 0 0 37px; width: 37px; height: 37px; border-radius: 8px; background: #eff3f6; color: #204b6b; font-weight: 800; }
.diag-answer { justify-content: flex-start; min-height: 82px; }
.diag-answer:hover .diag-option-number { background: #ffe8ad; color: #6a4800; }
.diag-nav { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 26px; }
.diag-back { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: transparent; color: #0a507c; padding: 8px 0; font-weight: 800; }
.diag-back:hover { text-decoration: underline; }
.diag-short { font-size: 12px; color: #667687; }
.diag-result-type { display: block; color: #745004; font-weight: 800; font-size: 14px; margin-bottom: 17px; }
.diag-result h1 { font-size: clamp(31px, 4.3vw, 48px); }
.diag-result > h2 { margin: 27px 0 14px; }
.diag-recommendations { counter-reset: rec; list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.diag-recommendations li { position: relative; padding: 16px 20px 16px 57px; min-height: 65px; background: #f3f6f8; border-radius: 9px; color: #2d3e4c; }
.diag-recommendations li:before { counter-increment: rec; content: counter(rec); position: absolute; left: 16px; top: 15px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #ffe1a0; color: #5c4006; border-radius: 50%; font-weight: 800; font-size: 12px; }
.diag-timing { background: #fff5dc; border-radius: 9px; padding: 17px 20px; color: #62480d; margin: 24px 0; line-height: 1.6; }
.diag-disclaimer { color: #516475; font-size: 13px; margin: 20px 0 28px; }
.diag-result-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.diag-result-actions .pill { min-height: 54px; padding: 12px 23px; font-size: 15px; }
.diag-text-action { padding: 10px 1px; border: 0; background: none; text-decoration: underline; color: #0c4d7b; font-weight: 700; min-height: 44px; }
.diag-meeting { border-top: 1px solid #dce2e8; margin-top: 36px; padding-top: 29px; }
.diag-meeting h2 { margin: 0 0 10px; font-size: clamp(23px,3vw,30px); scroll-margin-top: 105px; }
.diag-meeting > p { color: #4b5e70; margin: 0 0 24px; max-width: 60ch; }
.diag-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; }
.diag-fields label { display: block; font-size: 13px; font-weight: 800; color: #293d4e; }
.diag-fields label > span { color: #905d06; }
.diag-fields input { display: block; width: 100%; min-height: 49px; padding: 12px 13px; margin-top: 7px; border: 1px solid #9caebe; border-radius: 8px; background: #fff; color: #132337; }
.diag-fields input::placeholder { color: #647687; opacity: 1; }
.diag-check { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.6; margin: 24px 0 20px; color: #354c60; }
.diag-check input { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: #0a5f8f; }
.diag-check a { color: #075b89; font-weight: 700; }
.diag-submit { width: 100%; min-height: 53px; }
.diag-meeting .fine { font-size: 12px; max-width: 65ch; margin-top: 13px; }
.diag-noscript { position: fixed; bottom: 20px; left: 20px; right: 20px; background: #fff1d3; color: #322a1b; border-radius: 9px; padding: 14px; z-index: 100; }
.diag-noscript a { color: #184d7a; }
@media(max-width:700px) {
  .diag-main { padding: 25px 15px 60px; }
  .diag-panel { padding: 25px 19px; border-radius: 13px; }
  .diag-choice { min-height: 83px; padding: 16px; }
  .diag-choice strong { font-size: 15px; }
  .diag-choices { gap: 10px; }
}
@media(max-width:460px) {
  .diag-main { padding-inline: 10px; }
  .diag-panel { padding: 25px 17px; }
  .diag-panel h1 { font-size: clamp(29px, 8.5vw, 36px); }
  .diag-lead { font-size: 15px; }
  .diag-fields { grid-template-columns: 1fr; }
  .diag-result-actions .pill { width: 100%; text-align: center; }
  .diag-short { display: none; }
  .diag-option-number { width: 32px; height: 32px; flex-basis: 32px; }
}
@media(prefers-reduced-motion:reduce) {
  .diag-choice, .diag-progress > span { transition: none; }
  .diag-choice:hover,.diag-choice:active { transform: none; }
}

/* In the diagnostic, cookie preferences live in the footer instead of floating over an answer. */
.footer #camino-privacy-controls {
  position: static;
  min-height: 44px;
  margin: -10px 0;
  border: 1px solid #e1e7ed;
  border-radius: 8px;
  padding: 9px 14px;
  background: #ffffff;
  color: #10233a;
  font: 700 13px var(--font);
  opacity: 1;
}

/* Advisory report: deeper detail without turning the result into a sales pitch. */
.diag-result > .diag-lead { margin-bottom: 18px; }
.diag-takeaway {
  margin: 0 0 31px;
  padding: 15px 18px;
  color: #654707;
  background: #fff5d9;
  border: 1px solid #f2e0b5;
  border-radius: 9px;
  font-weight: 800;
  line-height: 1.55;
}
.diag-detail-section { padding: 27px 0; border-top: 1px solid #e1e7ed; }
.diag-detail-section > h2 { margin: 0 0 14px; font-size: clamp(22px, 2.5vw, 29px); }
.diag-detail-section > h3 { margin: 23px 0 14px; color: #233a50; font-size: 16px; font-weight: 800; }
.diag-context, .diag-detail-section > p:not(.diag-timing) {
  margin: 0 0 16px;
  line-height: 1.75;
  color: #354a5d;
  max-width: 68ch;
}
.diag-section-intro { font-size: 14px; }
.diag-signals { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.diag-signals li {
  border: 1px solid #dee6ed;
  border-radius: 10px;
  padding: 15px 18px;
  background: #f8fafb;
}
.diag-signals li strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #0b2948;
  font-weight: 800;
}
.diag-signals li p { margin: 5px 0 0; font-size: 13px; line-height: 1.65; color: #506174; }
.diag-result .diag-recommendations li {
  padding: 18px 19px 18px 60px;
  background: #f4f7f9;
  border: 1px solid #e4eaf0;
  min-height: 105px;
}
.diag-result .diag-recommendations li::before { left: 17px; top: 20px; }
.diag-recommendations li strong {
  display: block;
  color: #12324c;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}
.diag-recommendations li p { margin: 8px 0 0; color: #40566a; font-size: 14px; line-height: 1.65; }
.diag-caution {
  padding: 20px 21px;
  margin: 7px 0 9px;
  border-left: 3px solid #dca32a;
  background: #fffaf0;
  border-radius: 0 10px 10px 0;
}
.diag-caution h2 { font-size: 18px; margin: 0 0 9px; color: #6f4e10; line-height: 1.4; }
.diag-caution p { color: #5d4c32; font-size: 14px; line-height: 1.7; margin: 0; }
.diag-result .diag-timing { margin: 17px 0 4px; }
.diag-result .diag-disclaimer {
  font-size: 12px;
  color: #576b7b;
  margin: 16px 0 24px;
  max-width: 68ch;
}
.diag-result-actions {
  padding: 23px 0 6px;
  border-top: 1px solid #e1e7ed;
}
.diag-result-actions .pill { width: 100%; }
.diag-result-actions .diag-text-action { align-self: flex-start; }
.diag-choice { transition: border-color 180ms ease, background-color 180ms ease, transform 180ms cubic-bezier(.16,1,.3,1); }
.diag-choice:focus-visible { border-color: #1b577d; background: #f5f9fb; }
.diag-choice:active { background: #fff5d9; border-color: #daa32c; transform: scale(.997); }
.diag-option-number { transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.diag-answer:hover .diag-option-number { transform: scale(1.06); }
.diag-result:not([hidden]) .diag-signals li {
  animation: diag-soft-arrive 300ms cubic-bezier(.16,1,.3,1) both;
}
.diag-result:not([hidden]) .diag-signals li:nth-child(2) { animation-delay: 45ms; }
.diag-result:not([hidden]) .diag-signals li:nth-child(3) { animation-delay: 90ms; }
.diag-result:not([hidden]) .diag-recommendations li {
  animation: diag-soft-arrive 340ms cubic-bezier(.16,1,.3,1) both;
}
.diag-result:not([hidden]) .diag-recommendations li:nth-child(2) { animation-delay: 65ms; }
.diag-result:not([hidden]) .diag-recommendations li:nth-child(3) { animation-delay: 130ms; }
@keyframes diag-soft-arrive {
  from { opacity: .45; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 460px) {
  .diag-detail-section { padding: 23px 0; }
  .diag-signals li { padding: 14px 15px; }
  .diag-result .diag-recommendations li { padding: 16px 16px 16px 52px; }
  .diag-result .diag-recommendations li::before { left: 14px; }
  .diag-result .diag-timing { margin-top: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .diag-result:not([hidden]) .diag-signals li,
  .diag-result:not([hidden]) .diag-recommendations li { animation: none; }
  .diag-choice, .diag-option-number { transition: none; }
  .diag-option-number, .diag-answer:hover .diag-option-number { transform: none; }
}

.diag-quick-meeting {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: -16px 0 27px;
  padding: 9px 0;
  color: #07527d;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}
.diag-quick-meeting:hover { color: #003e66; }
.diag-quick-meeting[hidden] { display: none; }
.diag-quick-meeting span { display: inline-block; transition: transform 180ms ease; }
.diag-quick-meeting:hover span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .diag-quick-meeting span { transition: none; }
  .diag-quick-meeting:hover span { transform: none; }
}

/* Google Calendar link appears only when an actual appointment schedule URL is configured. */
.diag-booking-note { color: #526677; font-size: 13px; line-height: 1.6; margin: -3px 0 15px; }
.diag-result-actions #diag-google-booking { min-height: 52px; width: 100%; }
.diag-result-actions:has(#diag-google-booking:not([hidden])) #diag-meeting-trigger {
  background: transparent;
  color: #07527d;
  border-color: #acc6d8;
}
.diag-result-actions:has(#diag-google-booking:not([hidden])) #diag-meeting-trigger:hover { background: #eef5fa; }

/* Verified lead capture before opening an external booking provider. */
.diag-intake-success {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid #aacfc0;
  border-radius: 12px;
  background: #f1faf5;
  color: #234636;
}
.diag-intake-success h3 { margin: 0 0 10px; font-size: 21px; }
.diag-intake-success p { color: #345544; line-height: 1.65; }
.diag-intake-success .pill { display: flex; margin: 22px 0 14px; }
.diag-ref { font-size: 12px; overflow-wrap: anywhere; }
.diag-ref strong { font-variant-numeric: tabular-nums; }
#diag-meeting .diag-submit[hidden] { display: none; }
@media (max-width: 460px) { .diag-intake-success { padding: 19px 16px; } }

.diag-copy-reference { min-height: 44px; padding: 9px 2px; background: transparent; border: 0; color: #07527d; font-weight: 800; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.diag-copy-reference:hover { color: #003f64; }
