:root {
  --ivory: #fffaf1;
  --paper: #fffdf8;
  --sand: #f5eadc;
  --peach: #f1d7c0;
  --apricot: #dda078;
  --terracotta: #bd704f;
  --copper: #914d2d;
  --coach: #7a5544;
  --ink: #3c2f29;
  --muted: #745f54;
  --line: #e7d2bd;
  --shadow: 0 18px 48px rgba(78, 48, 31, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: Inter, Arial, sans-serif; font-size: 17px; line-height: 1.65; overflow-wrap: normal; word-break: normal; hyphens: none; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid rgba(189,112,79,.35); outline-offset: 3px; }

.app-header { position: sticky; top: 0; z-index: 20; height: 112px; padding: 12px clamp(18px, 4vw, 48px); display: flex; align-items: center; gap: 26px; background: rgba(255,253,248,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand-logo { width: 250px; height: 86px; object-fit: contain; object-position: left center; }
.product-name { padding-left: 24px; border-left: 1px solid #dfc4a7; display: flex; flex-direction: column; line-height: 1.25; }
.product-name strong { font: 500 1.2rem Lora, Georgia, serif; }
.product-name span { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.header-progress { margin-left: auto; width: 190px; font-size: .75rem; color: var(--muted); }
.header-progress b { color: var(--copper); letter-spacing: .08em; }
.progress-track { height: 5px; background: #eadaca; margin: 8px 0; }
.progress-track i { display: block; height: 100%; background: var(--terracotta); }
.outline-button, .primary-button { border-radius: 999px; padding: 11px 17px; border: 1px solid #d9b99d; background: transparent; color: #704a39; }
.primary-button { border: 0; background: var(--terracotta); color: white; }

.download-resource { margin: 34px 0 10px; padding: clamp(24px,4vw,38px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg,rgba(245,234,220,.92),rgba(255,253,248,.98)); box-shadow: var(--shadow); }
.download-resource__type { display: block; margin-bottom: 8px; color: var(--terracotta); font-size: .76rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.download-resource h2 { margin: 0 0 10px; color: var(--ink); font: 500 clamp(1.55rem,3vw,2.25rem)/1.15 Lora,Georgia,serif; }
.download-resource p { max-width: 760px; margin: 0 0 22px; }
.download-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.download-button:hover { background: var(--copper); }

.landing { min-height: 100vh; display: grid; grid-template-columns: minmax(0,.85fr) minmax(480px,1.15fr); gap: clamp(34px, 6vw, 90px); align-items: start; padding: clamp(38px, 6vw, 78px); background: radial-gradient(circle at 85% 10%, #f0cfb0 0, #f8ead9 20%, transparent 42%), var(--ivory); }
.landing-intro { position: sticky; top: 50px; }
.landing-logo { width: min(480px, 80%); max-height: 310px; object-fit: contain; object-position: left; margin-bottom: 20px; }
.landing h1 { font: 500 clamp(2.8rem, 6vw, 5.5rem)/1.02 Lora, Georgia, serif; margin: 0; max-width: 830px; }
.commercial-claim { max-width: 720px; margin: 25px 0 0; padding-left: 22px; border-left: 2px solid var(--terracotta); color: #914d2d; font: italic 500 clamp(1.35rem,2.5vw,2rem)/1.38 Lora, Georgia, serif; }
.landing .subtitle { font: 400 1.3rem/1.55 Lora, Georgia, serif; color: var(--muted); max-width: 700px; }
.journey { min-width: 0; }
.journey-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.journey-heading h2 { font: 500 2rem/1.15 Lora, serif; margin: 8px 0 0; }
.journey-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.journey-card { min-height: 130px; padding: 20px; text-align: left; border: 1px solid #e2c7ad; border-radius: 18px; background: rgba(255,253,248,.88); color: var(--ink); box-shadow: 0 7px 22px rgba(78,48,31,.06); transition: transform .18s ease, box-shadow .18s ease; }
.journey-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.journey-card span { display: block; color: var(--terracotta); font-size: .76rem; letter-spacing: .09em; }
.journey-card strong { display: block; margin: 8px 0 5px; font: 500 1.28rem Lora,serif; }
.journey-card small { display: block; color: var(--muted); line-height: 1.4; }
.landing-legal { grid-column: 1 / -1; display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.landing-legal strong { font: 500 1rem Lora, serif; }
.landing-legal span { display: block; font-size: .78rem; }
.landing-legal p { margin: 0; font-size: .78rem; line-height: 1.55; }

.app-shell { display: grid; grid-template-columns: 270px minmax(0,1fr); min-height: calc(100vh - 112px); }
.sidebar { padding: 28px 18px; background: #f0e1d1; border-right: 1px solid #dfc8b1; }
.group-label { display: block; margin: 0 10px 7px; color: var(--copper); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.sidebar select { width: calc(100% - 20px); margin: 0 10px 16px; padding: 10px 12px; border: 1px solid #d7b99c; border-radius: 10px; background: var(--paper); color: var(--ink); }
.sidebar-section { margin: 25px 10px 9px; color: var(--copper); font-size: .72rem; letter-spacing: .11em; }
.nav-item { width: 100%; border: 0; background: transparent; color: #654e43; text-align: left; border-radius: 11px; padding: 11px 12px; margin: 3px 0; font-size: .87rem; line-height: 1.35; }
.nav-item:hover { background: rgba(255,255,255,.5); }
.nav-item.active { background: var(--paper); color: #6d381f; box-shadow: 0 4px 14px rgba(77,43,27,.07); }
.nav-item:disabled { cursor: not-allowed; opacity: .48; }
.nav-item.complete::before { content: "✓ "; color: var(--terracotta); }
.main { width: min(980px, 100%); min-width: 0; padding: 44px clamp(22px, 6vw, 70px) 28px; margin: 0 auto; }
.eyebrow { color: var(--copper); font-size: .75rem; letter-spacing: .13em; }
.source-title { margin: 0 0 4px; color: var(--copper); font-size: .78rem; font-weight: 600; letter-spacing: .13em; }
.source-subtitle { margin: 0 0 22px; color: var(--muted); font: 400 1.02rem/1.6 Lora, Georgia, serif; }
.main h1 { font: 500 clamp(2.15rem, 4vw, 3.4rem)/1.12 Lora, Georgia, serif; margin: 12px 0 20px; }
.main h2 { font: 500 1.75rem/1.25 Lora, Georgia, serif; margin: 28px 0 12px; }
.main h3 { font: 500 1.3rem Lora, Georgia, serif; }
.content-block { margin: 0 0 18px; }
.content-block p { margin: 0 0 16px; }
.content-block > p:not(.source-title):not(.source-subtitle), .case-hero > p, .activity > p { text-align: left; hyphens: none; text-wrap: pretty; }
.lead { font: 400 1.15rem/1.75 Lora, Georgia, serif; color: #56453c; }
.bullet-list { padding-left: 24px; }
.bullet-list li { margin: 9px 0; }
.bullet-list .journey-stage { margin-top: 18px; color: #50382d; }
.bullet-list .related-case { margin: 4px 0 4px 26px; padding-left: 8px; color: #765345; list-style-type: circle; }
.bullet-list .related-case + .journey-stage { margin-top: 20px; }

.dialogue { margin: 26px 0; padding: 22px; background: var(--sand); border-radius: 20px; }
.dialogue-line { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 12px; max-width: 84%; margin: 12px 0; align-items: start; }
.dialogue-line.client { margin-left: 9%; }
.speaker { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--terracotta); color: white; font-weight: 600; }
.dialogue-line.client .speaker { background: #d89972; }
.speech { padding: 14px 18px; border-radius: 5px 17px 17px; background: var(--paper); }
.dialogue-line.coach .speech { background: var(--coach); color: #fffaf2; }
.speech b { display: block; font-size: .76rem; letter-spacing: .07em; margin-bottom: 4px; }

.activity { margin: 28px 0; padding: clamp(22px, 4vw, 34px); background: var(--paper); border-radius: 20px; border-bottom: 4px solid var(--terracotta); box-shadow: var(--shadow); }
.activity-label { color: var(--copper); font-size: .76rem; letter-spacing: .1em; }
.activity textarea { display: block; width: 100%; min-height: 120px; resize: none; overflow: hidden; padding: 15px; margin: 14px 0; border: 1px solid #dcbda1; border-radius: 12px; background: #fffefa; color: var(--ink); font-size: 1rem; line-height: 1.55; }
.field-label { display: block; font-weight: 500; margin-top: 18px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin: 7px 0; border-radius: 10px; background: #f9eee2; }
.choice input { margin-top: 7px; transform: scale(1.15); }
.choice-prompt { margin-top: 18px; font-weight: 500; }
.activity-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.save-status { color: var(--muted); font-size: .84rem; }
.feedback { margin-top: 18px; padding: 20px 22px; background: var(--peach); border-radius: 14px; }
.feedback[hidden] { display: none; }
.feedback h3 { margin: 0 0 8px; }
.feedback p, .feedback li { font-size: .96rem; }
.save-status.standalone { margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--line); }
.check-line { display: flex; align-items: flex-start; gap: 12px; margin: 9px 0; padding: 12px 14px; border-radius: 10px; background: #f9eee2; }
.check-line input, .inline-check { width: 19px; height: 19px; accent-color: var(--terracotta); }
.inline-options { padding: 13px 15px; border-radius: 10px; background: #f9eee2; }
.inline-check { margin: 0 7px; vertical-align: middle; }
.radio-group { display: grid; gap: 10px; margin: 16px 0; padding: 0; border: 0; }
.radio-choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #ead3bf; border-radius: 12px; background: #fbf1e7; cursor: pointer; }
.radio-choice:has(input:checked) { border-color: var(--terracotta); background: #f3ddca; box-shadow: 0 0 0 2px rgba(189,112,79,.1); }
.radio-choice input { width: 19px; height: 19px; margin-top: 4px; accent-color: var(--terracotta); flex: 0 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.reflection-item { margin: 20px 0; padding: 18px 20px; border-left: 3px solid #d49a74; background: #fbf2e9; border-radius: 0 16px 16px 0; }
.reflection-item p { margin: 0; color: var(--copper); font: 500 1.08rem/1.5 Lora, Georgia, serif; }
.reflection-item textarea { min-height: 130px; }
.form-error { margin: 14px 0 0 !important; color: #8f351f !important; font-weight: 600 !important; text-align: left !important; }
.inline-response { margin: 12px 0; padding: 13px 15px; border-radius: 10px; background: #f9eee2; line-height: 2.5; }
.inline-response input { min-width: 150px; margin: 0 7px; padding: 8px 10px; border: 1px solid #dcbda1; border-radius: 8px; background: #fffefa; color: var(--ink); }
.record-fields { display: grid; gap: 14px; margin: 22px 0 12px; padding: 16px; border-radius: 12px; background: #f9eee2; }
.record-fields--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.record-fields--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.record-fields label { display: grid; gap: 8px; min-width: 0; }
.record-fields span { font-weight: 600; line-height: 1.3; }
.record-fields input { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #dcbda1; border-radius: 9px; background: #fffefa; color: var(--ink); font: inherit; }
.table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { min-width: 150px; padding: 13px 14px; border: 1px solid #dfc6af; text-align: left; vertical-align: middle; }
th { background: #efd8c2; color: #6c402b; font-size: .9rem; }
td input { width: 100%; padding: 9px; border: 1px solid #dcbda1; border-radius: 8px; background: #fffefa; color: var(--ink); }

.case-hero { padding: 28px; border-radius: 22px; background: #efd0ad; }
.case-hero p { max-width: 760px; }
.scene-note { margin: 18px auto; padding-left: 16px; border-left: 3px solid var(--terracotta); color: #654e43; font: 400 .98rem/1.6 Lora, serif; max-width: 780px; }
.stage-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 32px 0 20px; }
.stage-footer span { color: var(--muted); font-size: .85rem; }
.legal-footer { display: grid; grid-template-columns: 230px 1fr; gap: 28px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }
.legal-footer strong { font: 500 1rem Lora, serif; }
.legal-footer span, .legal-footer p { font-size: .75rem; line-height: 1.5; margin: 0; }
.author { display: flex; flex-direction: column; }

/* Tres pantallas piloto · dirección Cuaderno de autor */
.main.editorial-preview { width: min(1180px, 100%); }
.editorial-screen { position: relative; color: #352721; }
.line-art { fill: none; stroke: var(--terracotta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.editorial-kicker { display: grid; grid-template-columns: max-content 1fr max-content; align-items: center; gap: 16px; color: var(--copper); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.editorial-kicker i { height: 1px; background: linear-gradient(90deg, var(--terracotta), transparent); }
.spread-heading { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 26px; align-items: end; min-height: 235px; padding: 35px 0 18px; }
.spread-heading h1 { position: relative; z-index: 2; max-width: 780px; margin: 0; font-size: clamp(3rem, 5vw, 5.3rem); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.ghost-number { position: absolute; z-index: 0; left: -18px; top: -16px; color: #efdcc9; font: 500 12rem/.8 Lora, Georgia, serif; }
.listening-mark { width: 100%; max-width: 310px; opacity: .85; }
.editorial-lead { position: relative; z-index: 2; max-width: 760px; margin: 4px 0 28px; color: #59463c; font: 400 1.2rem/1.7 Lora, Georgia, serif; }
.concept-contrast { display: grid; grid-template-columns: minmax(0,1fr) 74px minmax(0,1fr); align-items: stretch; margin: 28px 0 12px; }
.concept { min-height: 170px; padding: 28px 31px; background: rgba(255,253,248,.86); border-top: 1px solid #d9ae8c; border-bottom: 1px solid #ead6c4; }
.concept:first-child { border-radius: 22px 0 0 22px; }
.concept:last-child { border-radius: 0 22px 22px 0; }
.concept > span { color: var(--copper); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.concept p { max-width: 390px; margin: 18px 0 0; font: 500 1.35rem/1.45 Lora, Georgia, serif; }
.contrast-axis { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; align-items: center; color: var(--terracotta); }
.contrast-axis span { width: 1px; height: 100%; background: #dba17e; }
.contrast-axis b { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #dba17e; border-radius: 50%; background: var(--ivory); font: 400 1.45rem Lora, serif; }
.source-example { max-width: 850px; margin: 16px auto 35px; color: var(--muted); font-size: .9rem; line-height: 1.55; text-align: center; }
.question-feature { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 32px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.question-intro { margin: 5px 0 0; color: var(--copper); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.question-feature blockquote { margin: 0; padding-left: 28px; border-left: 2px solid var(--terracotta); color: #9b4826; font: italic 500 clamp(1.55rem, 3vw, 2.5rem)/1.3 Lora, Georgia, serif; }
.editorial-note { display: grid; grid-template-columns: 190px 1fr; gap: 30px; margin: 24px 0 8px; padding: 20px 24px; border-radius: 4px 18px 18px 4px; background: linear-gradient(90deg, #f0d7c4, #f8e9dc); border-left: 4px solid var(--terracotta); }
.editorial-note b { color: var(--copper); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.editorial-note p { margin: 0; font: 500 1.06rem/1.55 Lora, Georgia, serif; }

.editorial-dialogue { position: relative; overflow: hidden; padding-top: 6px; }
.editorial-dialogue > .eyebrow { display: inline-block; margin-top: 12px; }
.editorial-dialogue > h1 { max-width: 770px; font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.03em; }
.editorial-dialogue > p:not(.source-title):not(.source-subtitle) { max-width: 760px; font: 400 1.08rem/1.72 Lora, Georgia, serif; text-align: left; }
.dialogue-mark { position: absolute; top: 4px; right: 0; width: 250px; opacity: .22; }
.editorial-dialogue .dialogue { margin-top: 34px; padding: 30px clamp(18px,4vw,45px); border-radius: 3px 34px 3px 34px; background: linear-gradient(135deg, #f3e4d4, #f8eee3); border: 1px solid #ead0b9; }
.editorial-dialogue .dialogue-line { max-width: 76%; margin: 18px 0; }
.editorial-dialogue .dialogue-line.client { margin-left: auto; }
.editorial-dialogue .speech { padding: 18px 22px; border-radius: 3px 22px 22px 22px; box-shadow: 0 8px 24px rgba(83,48,30,.07); }
.editorial-dialogue .dialogue-line.client .speech { border-radius: 22px 3px 22px 22px; }
.editorial-dialogue .speaker { font-family: Lora, Georgia, serif; box-shadow: 0 0 0 5px rgba(189,112,79,.12); }

.editorial-activity { position: relative; padding: clamp(28px,5vw,52px); border: 1px solid #dfbea4; border-bottom-width: 5px; border-radius: 3px 30px 3px 30px; background: linear-gradient(145deg, #fffdf8 0 65%, #f7e8da 100%); }
.editorial-activity::before { content: "PRÁCTICA"; position: absolute; top: 23px; right: 28px; color: #d5a488; font-size: .7rem; font-weight: 600; letter-spacing: .2em; }
.editorial-activity h1 { max-width: 760px; margin-right: 120px; font-size: clamp(2.7rem,4.6vw,4.3rem); line-height: 1.03; }
.editorial-activity > p { max-width: 790px; font: 400 1.08rem/1.72 Lora, Georgia, serif; text-align: left; }
.editorial-activity .field-label { margin-top: 28px; color: var(--copper); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.editorial-activity textarea { min-height: 180px; padding: 22px; border: 0; border-left: 3px solid var(--terracotta); border-radius: 0 18px 18px 0; background: #fffaf3; box-shadow: inset 0 0 0 1px #ead4c1; font: 400 1.05rem/1.65 Lora, Georgia, serif; }
.editorial-activity .feedback { padding: 26px 30px; border-radius: 2px 22px 22px 2px; border-left: 4px solid var(--terracotta); background: #f3dac6; }
.editorial-activity .feedback h2, .editorial-activity .feedback h3 { color: var(--copper); }

/* Sistema editorial aplicado al recorrido completo */
.editorial-preview > article { position: relative; isolation: isolate; }
.editorial-preview > article > .semantic-mark { position: absolute; z-index: -1; top: 8px; right: 0; width: 220px; max-height: 155px; opacity: .16; }
.editorial-preview > article > .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; text-transform: uppercase; }
.editorial-preview > article > .eyebrow::after { content: ""; width: 58px; height: 1px; background: var(--terracotta); }
.editorial-preview > article > h1 { max-width: 820px; text-wrap: balance; }
.editorial-preview > article > h1 + p { max-width: 820px; color: #56443a; font: 400 1.14rem/1.72 Lora, Georgia, serif; }
.editorial-preview p, .editorial-preview li, .editorial-preview blockquote { overflow-wrap: normal; word-break: normal; hyphens: none; }
.editorial-quote { margin: 26px 0; padding: 8px 0 8px 28px; border-left: 2px solid var(--terracotta); color: #994925; font: italic 500 clamp(1.35rem,2.4vw,2rem)/1.45 Lora, Georgia, serif; }
.editorial-example { margin: 24px 0 !important; padding: 22px 25px; border-radius: 2px 20px 20px 2px; background: linear-gradient(90deg,#f2dfcf,#faf2e9); border-left: 3px solid #d49a74; font-family: Lora, Georgia, serif; }
.editorial-caution { margin: 24px 0 !important; padding: 19px 23px; border: 1px solid #e3c2a7; border-radius: 18px 3px 18px 3px; background: #fff8ef; color: #6d402d; font-weight: 500; }
.editorial-question { margin: 28px 0 !important; color: #91421f; font: 500 clamp(1.45rem,2.8vw,2.25rem)/1.35 Lora, Georgia, serif !important; text-align: left !important; text-wrap: balance; }
.editorial-prompt { margin: 23px 0 10px !important; color: var(--copper); font-size: .8rem !important; font-weight: 600; letter-spacing: .075em; text-align: left !important; text-transform: uppercase; }

.chapter-opening { min-height: 570px; display: grid; align-content: center; padding: clamp(42px,7vw,86px); overflow: hidden; border: 1px solid #ead5c2; border-radius: 3px 36px 3px 36px; background: radial-gradient(circle at 85% 18%,rgba(221,160,120,.24),transparent 27%), linear-gradient(135deg,#fffdf8,#f8eadc); }
.chapter-opening::before { content: attr(data-stage); position: absolute; z-index: -1; left: 3%; top: 8%; color: rgba(189,112,79,.09); font: 500 15rem/.8 Lora,Georgia,serif; }
.chapter-opening > .semantic-mark { top: auto !important; right: 5% !important; bottom: 7%; width: min(32vw,330px) !important; max-height: 240px !important; opacity: .35 !important; }
.chapter-opening .source-title, .chapter-opening h1 { max-width: 760px; color: var(--ink); font: 500 clamp(3.3rem,6vw,6rem)/.98 Lora,Georgia,serif; letter-spacing: -.035em; }
.chapter-opening .source-subtitle, .chapter-opening > p { max-width: 700px; color: #614a3e; font: 400 1.18rem/1.7 Lora,Georgia,serif; }

.editorial-concept { padding: clamp(10px,2vw,24px) 0; }
.editorial-concept > p { max-width: 820px; }
.concept-variation-1 { padding-left: clamp(0px,4vw,54px); border-left: 1px solid #ddb595; }
.concept-variation-1 > h1 { margin-left: clamp(-1px,-4vw,-54px); padding-left: clamp(0px,4vw,54px); }
.concept-variation-2 > h1 { max-width: 930px !important; font-style: italic !important; color: #7f3f25; }
.concept-variation-2::after { content: ""; display: block; width: 42%; height: 1px; margin: 36px auto 0; background: linear-gradient(90deg,transparent,var(--terracotta),transparent); }
.concept-variation-3 { display: block; max-width: 920px; }
.concept-variation-3 > p { position: relative; max-width: 800px; padding: 14px 20px; margin: 0 0 12px; border-left: 1px solid #deb99b; background: linear-gradient(90deg,rgba(245,234,220,.7),transparent); }
.concept-variation-3 > p:nth-of-type(even) { margin-left: clamp(0px,4vw,48px); }
.concept-variation-3 > .semantic-mark { position: absolute !important; opacity: .14 !important; }
.concept-variation-4 { padding: clamp(28px,4vw,50px); border-radius: 28px 4px 28px 4px; background: linear-gradient(145deg,rgba(245,234,220,.78),rgba(255,253,248,.55)); }

.editorial-comparison { padding: clamp(25px,4vw,48px); border-top: 1px solid #d7a985; border-bottom: 1px solid #e1c4aa; background: linear-gradient(90deg,rgba(245,234,220,.68),transparent 48%,rgba(241,215,192,.32)); }
.editorial-comparison .table-wrap { border-radius: 18px 3px 18px 3px; box-shadow: var(--shadow); }
.editorial-comparison table { overflow: hidden; }
.editorial-comparison th { background: #efd6c1; }
.editorial-comparison td { background: rgba(255,253,248,.88); }

.editorial-sequence { padding-left: clamp(28px,5vw,72px); }
.editorial-sequence::before { content: ""; position: absolute; left: 12px; top: 95px; bottom: 20px; width: 1px; background: linear-gradient(var(--terracotta),#efd6bf); }
.editorial-sequence > p, .editorial-sequence > ul, .editorial-sequence > h2 { position: relative; }
.editorial-sequence > p::before, .editorial-sequence > h2::before { content: ""; position: absolute; left: clamp(-60px,-5vw,-34px); top: .75em; width: 9px; height: 9px; border: 2px solid var(--terracotta); border-radius: 50%; background: var(--ivory); }

.editorial-closing { padding: clamp(34px,6vw,72px); border-radius: 50% 3px 3px 3px / 55px 3px 3px 3px; background: linear-gradient(150deg,#f0d6c0,#fbf1e7 52%,#fffdf8); }
.editorial-closing > h1 { font-style: italic !important; }
.editorial-closing .bullet-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 28px; padding: 0; list-style: none; }
.editorial-closing .bullet-list li { padding: 15px 0 15px 24px; border-bottom: 1px solid #ddbda3; }
.editorial-closing .bullet-list li::before { content: "•"; margin-left: -22px; margin-right: 13px; color: var(--terracotta); }

.case-hero.chapter-opening { background: radial-gradient(circle at 84% 20%,rgba(189,112,79,.24),transparent 26%), linear-gradient(135deg,#f1d0ad,#faeadb); }
.case-hero.editorial-concept { padding: clamp(30px,5vw,56px); border-radius: 3px 28px 3px 28px; background: linear-gradient(140deg,#f3d7bd,#faeee2); }
.case-hero.editorial-dialogue { padding: clamp(22px,4vw,42px); background: transparent; }

.activity-variation-2 { border-radius: 28px 3px 28px 3px; background: linear-gradient(160deg,#f8eadc,#fffdf8 45%); }
.activity-variation-2 textarea { border-left: 0; border-top: 3px solid var(--terracotta); border-radius: 0 0 18px 18px; }
.activity-variation-3 { border-radius: 26px; border-bottom-color: #d69972; box-shadow: 0 22px 55px rgba(92,51,28,.12); }
.activity-variation-3::after { content: ""; position: absolute; z-index: -1; inset: 12px 0 0 12px; border: 1px solid #e7cbb3; border-radius: inherit; }

/* Etapa 7 · documento profesional y guía pedagógica */
.stage7-model > h1 { max-width: 850px; }
.model-introduction { max-width: 850px; margin: 0 0 34px; }
.model-introduction p:first-child { font: 500 1.2rem/1.65 Lora, Georgia, serif; color: #664838; }
.client-agreement { padding: clamp(28px,5vw,62px); border: 1px solid #d9c0aa; border-radius: 3px; background: #fffefa; box-shadow: 0 24px 65px rgba(78,48,31,.1); }
.client-agreement > header { margin-bottom: 38px; padding-bottom: 25px; border-bottom: 2px solid #b9704f; text-align: center; }
.client-agreement > header > span { color: var(--copper); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.client-agreement > header h2 { margin: 12px 0 8px; font: 600 clamp(2rem,4vw,3.2rem)/1.1 Lora, Georgia, serif; }
.client-agreement > header > p { margin: 0; font-style: italic; font-weight: 600; }
.agreement-parties { display: flex; justify-content: center; gap: 34px; margin-top: 18px; }
.agreement-parties p { margin: 0; }
.agreement-section { margin: 38px 0; }
.agreement-section h2 { margin: 0 0 16px; padding-bottom: 9px; border-bottom: 1px solid #e1c5ad; color: #713c28; font-size: 1.55rem; }
.agreement-section h3 { margin: 22px 0 10px; color: #6f4939; font: 600 1rem/1.4 Inter, Arial, sans-serif; }
.agreement-section p { margin: 0 0 14px; }
.agreement-section li { margin: 8px 0; }
.agreement-commitment { padding: 1px 22px 10px; margin: 16px 0; border-left: 3px solid #d79a74; background: #fbf3ea; }
.agreement-condition { padding: 18px 21px; border: 1px solid #d9ad8b; background: #fff5ea; font-weight: 600; }
.agreement-signatures { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 30px; margin-top: 24px; }
.agreement-signatures p:last-child { grid-column: 1 / -1; }
.agreement-closing { margin-top: 30px !important; color: #854225; font: italic 500 1.2rem/1.5 Lora, Georgia, serif; text-align: center; }
.editorial-policy-note { margin: 28px 0 50px; padding: 22px 25px; border: 1px dashed #c88965; background: #f6e8da; }
.editorial-policy-note strong { color: #823e25; }
.editorial-policy-note p { margin: 8px 0 0; }
.personalization-guide { padding: clamp(28px,5vw,52px); border-radius: 3px 30px 3px 30px; background: linear-gradient(145deg,#f4e3d3,#fffaf2); }
.personalization-guide > h2 { max-width: 800px; margin-top: 10px; font-size: clamp(2rem,4vw,3.2rem); }
.guide-intro { font: 500 1.1rem/1.6 Lora, Georgia, serif; }
.guide-step { margin: 26px 0; padding-left: 24px; border-left: 2px solid #c77c58; }
.guide-step h3 { margin: 0 0 8px; color: #713c28; font: 600 1.08rem/1.45 Inter, Arial, sans-serif; }
.guide-step p { margin: 7px 0; }
.remember-panel { margin-top: 30px; padding: 28px; border-radius: 22px 3px 22px 3px; background: #efd5bf; }
.remember-panel h2 { margin-top: 0; }
.remember-panel p { margin: 8px 0; }

/* Cierre del recorrido · contenido configurable */
.closing-screen { position: relative; padding-left: clamp(24px,5vw,66px); border-left: 1px solid #d8a986; }
.closing-screen > .eyebrow { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; }
.closing-screen > .eyebrow::after { content: ""; width: 58px; height: 1px; background: var(--terracotta); }
.closing-screen > h1 { max-width: 820px; margin-bottom: 28px; font-size: clamp(2.8rem,5vw,4.8rem); letter-spacing: -.025em; }
.closing-introduction { max-width: 850px; }
.closing-introduction p { margin: 0 0 17px; }
.closing-introduction p:first-child { color: var(--copper); font: 500 1.28rem/1.55 Lora,Georgia,serif; }
.closing-reflection { margin: 42px 0 58px; padding: clamp(25px,4vw,42px); border: 1px solid #dfb99d; border-radius: 3px 24px 3px 24px; background: var(--paper); box-shadow: var(--shadow); }
.closing-reflection > span, .closing-section-label { color: var(--copper); font-size: .75rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.closing-reflection h2 { max-width: 790px; margin: 10px 0 22px; color: #91421f; font: italic 500 clamp(1.65rem,3vw,2.45rem)/1.35 Lora,Georgia,serif; }
.closing-reflection textarea { display: block; width: 100%; min-height: 165px; resize: none; overflow: hidden; padding: 20px; border: 1px solid #dfc2a7; border-left: 3px solid var(--terracotta); border-radius: 0 15px 15px 0; background: #fffaf3; color: var(--ink); font: 400 1.05rem/1.65 Lora,Georgia,serif; }
.closing-learning { padding-top: 8px; }
.closing-learning > h2 { margin: 8px 0 10px; font-size: clamp(2rem,4vw,3.25rem); }
.closing-section-intro { max-width: 780px; margin: 0 0 28px; color: #59463c; }
.closing-proposals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.closing-proposal { display: flex; flex-direction: column; align-items: flex-start; padding: 27px 24px 30px; }
.closing-proposal + .closing-proposal { border-left: 1px solid var(--line); }
.closing-proposal > span { color: var(--terracotta); font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.closing-proposal h3 { margin: 10px 0 12px; font-size: 1.28rem; line-height: 1.35; }
.closing-proposal p { flex: 1; margin: 0 0 22px; color: #5f4b41; font-size: .95rem; }
.closing-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.closing-link:hover { background: var(--copper); color: white; }
.closing-secondary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 38px; margin: 58px 0; padding-top: 38px; border-top: 1px solid #d9b79c; }
.closing-secondary > div { padding-left: 22px; border-left: 2px solid #d8a986; }
.closing-secondary h2 { margin: 0 0 13px; font-size: 1.75rem; }
.closing-secondary p { margin: 0 0 16px; }
.closing-feedback .closing-link { margin-top: 6px; }
.closing-feedback button:disabled { cursor: not-allowed; opacity: .58; background: transparent; color: #704a39; }
.closing-farewell { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 38px; align-items: center; margin-top: 48px; padding: 36px 0; border-top: 1px solid var(--line); }
.closing-farewell img { width: 100%; max-height: 125px; object-fit: contain; object-position: left center; }
.closing-farewell p { margin: 0 0 13px; }
.closing-signature { display: flex; flex-direction: column; margin-top: 25px !important; color: var(--muted); font-size: .88rem; }
.closing-signature strong { color: var(--copper); font: 500 1.18rem Lora,Georgia,serif; }

@media (max-width: 1100px) {
  body { font-size: 16px; }
  .app-header { height: 90px; padding: 8px 15px; }
  .brand-logo { width: 175px; height: 70px; }
  .product-name, .header-progress { display: none; }
  .app-header .outline-button { margin-left: auto; padding: 10px 13px; }
  .landing { min-height: 100vh; grid-template-columns: 1fr; padding: 32px 20px 50px; }
  .landing-intro { position: static; }
  .landing-logo { width: 90%; max-height: 240px; }
  .landing h1 { font-size: 3rem; }
  .landing-legal { grid-template-columns: 1fr; gap: 6px; }
  .app-shell { grid-template-columns: 1fr; min-height: calc(100vh - 90px); }
  .sidebar { position: sticky; top: 90px; z-index: 10; padding: 9px 12px; border-right: 0; border-bottom: 1px solid #dfc8b1; display: flex; gap: 6px; overflow-x: auto; }
  .sidebar { scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar .group-label, .sidebar .sidebar-section { display: none; }
  .sidebar select { min-width: 170px; width: auto; margin: 0 4px 0 0; }
  .nav-item { min-width: max-content; padding: 9px 12px; }
  .main { padding: 28px 18px 22px; }
  .main > article, .stage-footer, .legal-footer { min-width: 0; max-width: 100%; }
  .main h1 { font-size: 2.35rem; }
  .dialogue { padding: 16px 12px; }
  .dialogue-line { max-width: 96%; grid-template-columns: 40px minmax(0,1fr); }
  .dialogue-line.client { margin-left: 4%; }
  .speaker { width: 39px; height: 39px; }
  .activity { padding: 21px 17px; }
  .activity-actions { align-items: flex-end; }
  .stage-footer span { display: none; }
  .legal-footer { grid-template-columns: 1fr; gap: 10px; }
  .journey-heading { align-items: stretch; flex-direction: column; }
  .journey-grid { grid-template-columns: 1fr; }
  .main.editorial-preview { padding-left: 18px; padding-right: 18px; }
  .spread-heading { grid-template-columns: 1fr; min-height: 0; padding-top: 54px; }
  .spread-heading h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .ghost-number { top: -4px; font-size: 8rem; }
  .listening-mark { display: none; }
  .concept-contrast { grid-template-columns: 1fr; gap: 10px; }
  .concept { min-height: 0; border: 1px solid #ead6c4; border-radius: 16px !important; }
  .contrast-axis { grid-template: 36px / 1fr auto 1fr; }
  .contrast-axis span { width: 100%; height: 1px; }
  .question-feature { grid-template-columns: 1fr; gap: 12px; }
  .question-feature blockquote { font-size: 1.6rem; }
  .editorial-note { grid-template-columns: 1fr; gap: 8px; }
  .dialogue-mark { display: none; }
  .editorial-dialogue .dialogue-line { max-width: 96%; }
  .editorial-activity::before { position: static; display: block; margin-bottom: 16px; }
  .editorial-activity h1 { margin-right: 0; font-size: 2.65rem; }
  .editorial-preview > article > .semantic-mark { display: none; }
  .chapter-opening { min-height: 470px; padding: 38px 24px; }
  .chapter-opening > .semantic-mark { display: block; right: 7% !important; bottom: 7% !important; width: 180px !important; opacity: .28 !important; }
  .chapter-opening .source-title, .chapter-opening h1 { font-size: clamp(2.4rem,10.5vw,4rem); overflow-wrap: normal; }
  .concept-variation-3 { display: block; }
  .concept-variation-3 > p:nth-of-type(even) { padding-left: 0; border-left: 0; }
  .client-agreement { padding: 24px 18px; }
  .agreement-parties, .agreement-signatures { grid-template-columns: 1fr; display: grid; gap: 5px; text-align: left; }
  .agreement-signatures p:last-child { grid-column: auto; }
  .editorial-closing .bullet-list { grid-template-columns: 1fr; }
  .editorial-sequence { padding-left: 30px; }
  .closing-screen { padding-left: 18px; }
  .closing-screen > h1 { font-size: clamp(2.45rem,11vw,3.8rem); }
  .closing-proposals, .closing-secondary, .closing-farewell { grid-template-columns: 1fr; }
  .closing-proposal { padding-left: 0; padding-right: 0; }
  .closing-proposal + .closing-proposal { border-left: 0; border-top: 1px solid var(--line); }
  .closing-secondary { gap: 30px; }
  .closing-farewell { gap: 20px; }
  .closing-farewell img { width: 210px; }
}

@media (max-width: 760px) {
  .record-fields--three, .record-fields--two { grid-template-columns: 1fr; }
}

/* Acceso comercial: usa la identidad existente sin alterar las pantallas. */
.access-shell{min-height:100vh;display:grid;place-items:center;padding:32px;background:var(--ivory,#fffaf2)}
.access-card{width:min(520px,100%);padding:42px;border:1px solid #dfb58f;background:#fffaf5;box-shadow:0 20px 60px rgba(91,48,29,.10)}
.access-card img{display:block;width:220px;max-width:72%;height:auto;object-fit:contain;object-position:left center;margin:0 0 24px}
.access-card h1{font-family:Lora,serif;color:#3f3029;font-size:clamp(2rem,5vw,3rem);line-height:1.08}
.access-card form{display:grid;gap:18px;margin-top:28px}
.access-card label{display:grid;gap:8px;font-weight:600;color:#5b3526}
.access-card input{width:100%;padding:13px 14px;border:1px solid #d9a77e;border-radius:10px;background:#fff;font:inherit}
.access-card .text-button{margin-top:14px;border:0;background:transparent;color:#9d4c2b;text-decoration:underline;cursor:pointer}
.access-message{min-height:1.5em;color:#8b3725}

@media (max-height:900px){
  .access-shell{padding:16px}
  .access-card{padding:26px 36px}
  .access-card img{width:185px;margin-bottom:12px}
  .access-card h1{font-size:clamp(1.85rem,4vw,2.55rem);margin:.35em 0}
  .access-card form{gap:12px;margin-top:18px}
}

@media (max-width:560px){
  .access-shell{display:block;padding:0;background:#fffaf5}
  .access-card{min-height:100vh;width:100%;padding:26px 24px;border:0;box-shadow:none}
  .access-card img{width:170px;max-width:68%;margin-bottom:16px}
  .access-card h1{font-size:clamp(2rem,11vw,2.75rem)}
  .access-card input,.access-card .primary-button{min-height:48px}
}
