/* Paleta inspirada en el sitio UP; no es una identidad institucional oficial. */
:root {
  --wine: #8c1f3d;
  --wine-dark: #501528;
  --gold: #c8a568;
  --paper: #f6f3ec;
  --ink: #271d22;
  --muted: #685b61;
  --line: #ded5cf;
  --white: #fffdf9;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 5px; }
.objection-section :focus-visible, .hero-art :focus-visible { outline-color: var(--gold); }
::selection { background: var(--gold); color: var(--wine-dark); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { letter-spacing: -.055em; }
em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.section-shell { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 96px; }
.eyebrow { font-size: .71rem; letter-spacing: .16em; font-weight: 750; color: var(--wine); line-height: 1.5; }
.site-header { min-height: 88px; padding: 18px 48px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: .82rem; font-weight: 800; letter-spacing: .09em; line-height: 1.3; }
.brand-mark { display: grid; place-items: center; background: var(--wine); color: var(--paper); width: 42px; height: 46px; border-radius: 2px 2px 16px 2px; font-family: Georgia, serif; font-size: 2rem; }
.wordmark-sub { display: block; margin-top: 4px; font-size: .56rem; font-weight: 500; letter-spacing: .15em; color: var(--muted); }
nav { display: flex; gap: 30px; font-size: .8rem; font-weight: 600; }
nav a { text-decoration: none; }
nav a:hover { color: var(--wine); text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 64px; padding-top: 76px; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; }
.status-dot { height: 7px; width: 7px; background: var(--wine); border-radius: 50%; }
h1 { margin-top: 26px; font-size: clamp(3.3rem, 5.5vw, 5.2rem); font-weight: 800; }
h1 em { color: var(--wine); }
.hero-lead { margin-top: 28px; font-size: 1.18rem; font-weight: 600; }
.hero-description { max-width: 430px; margin-top: 10px; color: var(--muted); font-size: .96rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 13px 22px; border-radius: 6px; border: 1px solid transparent; font-size: .87rem; font-weight: 650; text-decoration: none; transition: background .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--wine); color: var(--white); }
.button-primary:hover { background: var(--wine-dark); }
.microcopy { font-size: .76rem; color: var(--muted); }
.hero-art { align-self: center; color: var(--paper); background: var(--wine); padding: 26px 30px; border-radius: 6px 6px 90px 6px; min-height: 440px; transform: rotate(2deg); box-shadow: 12px 12px 0 #e9e1d6; position: relative; overflow: hidden; }
.hero-art::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid #ffffff1a; border-radius: 50%; right: -120px; top: 60px; pointer-events: none; }
.art-topline, .art-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.art-topline { color: #ead9d4; font-size: .62rem; letter-spacing: .16em; padding-bottom: 18px; border-bottom: 1px solid #ffffff40; }
.folder-title { padding: 36px 0 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.folder-title > span:first-child { font: .7rem "Consolas", monospace; letter-spacing: .2em; }
.folder-title strong { font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: .98; letter-spacing: -.04em; }
.cover-stamp { display: inline-block; border: 2px solid var(--gold); color: var(--gold); font: 700 .88rem "Consolas", monospace; padding: 6px 12px; transform: rotate(-7deg); letter-spacing: .12em; }
.art-footer { border-top: 1px solid #ffffff40; padding-top: 16px; font-size: .6rem; letter-spacing: .12em; }
.art-asterisk { font-size: 3rem; line-height: 1; color: var(--gold); margin-right: 24px; }
.hero-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; padding: 48px 0 24px; margin-top: 24px; color: var(--muted); font-size: .63rem; letter-spacing: .1em; }
.hero-bottom a { text-decoration: none; white-space: nowrap; }
.thesis-band { background: #eae3d8; border-block: 1px solid #ded5c7; }
.thesis-inner { display: grid; grid-template-columns: .55fr 1.5fr 1.1fr; align-items: start; gap: 36px; padding-block: 40px; }
.thesis-inner h2 { font-size: 2rem; letter-spacing: -.035em; }
.thesis-inner h2 em { color: var(--wine); }
.thesis-inner > p:last-child { color: #55494e; font-size: .86rem; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-top: 14px; }
.section-heading > p { max-width: 340px; color: var(--muted); font-size: .9rem; }
.court { border: 1px solid #d5c4aa; border-top: 6px solid var(--gold); border-radius: 5px 5px 18px 18px; padding: 30px 36px 36px; background: var(--white); box-shadow: 6px 7px 0 #e7ded0; }
.court-bar { display: flex; justify-content: space-between; gap: 20px; font: .66rem "Consolas", monospace; color: var(--muted); }
.case-trail { display: flex; list-style: none; padding: 0; margin: 24px 0 32px; border-bottom: 1px solid var(--line); counter-reset: stage; }
.case-trail li { flex: 1; padding: 12px 4px; font-size: .78rem; color: var(--muted); border-bottom: 3px solid transparent; }
.case-trail li::before { counter-increment: stage; content: "0" counter(stage) " / "; font: .7rem "Consolas", monospace; }
.case-trail li[aria-current] { color: var(--wine); font-weight: 700; border-color: var(--wine); }
.case-trail li.completed { border-color: var(--gold); }
.case-intro h3, .case-result h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; margin-top: 12px; }
.case-intro > p:last-child { color: var(--muted); margin-top: 18px; max-width: 800px; }
.case-quote { margin: 24px 0 32px; padding: 22px 26px; background: var(--paper); border-left: 3px solid var(--gold); }
.case-quote p { font: italic 1.35rem/1.45 Georgia, serif; }
.case-quote cite { display: block; margin-top: 12px; color: var(--muted); font: .7rem "Consolas", monospace; }
.case-desk { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; }
.case-desk h4 { font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; color: var(--wine); }
.evidence-document { border: 1px solid var(--line); border-radius: 4px; margin-bottom: 10px; background: #f5efe4; }
.evidence-document summary { padding: 14px 16px; font: .78rem/1.5 "Consolas", monospace; }
.evidence-document > p { padding: 0 16px 18px; font-size: .86rem; color: var(--muted); }
#case-options { display: grid; gap: 10px; }
.decision-button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 66px; padding: 15px 18px; text-align: left; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: .9rem; font-weight: 600; transition: background .18s, border-color .18s; }
.decision-button:hover:not(:disabled) { border-color: var(--wine); background: #f5e9ec; }
.decision-button:disabled { cursor: default; opacity: 1; }
.decision-button[aria-pressed="true"] { border: 2px solid var(--wine); padding: 14px 17px; background: #f1e2e7; color: var(--wine-dark); }
.decision-number { color: var(--wine); font: .7rem "Consolas", monospace; }
.signature-line { font: .6rem "Consolas", monospace; color: var(--muted); text-align: right; margin-top: 14px; letter-spacing: .1em; }
.case-response:not(:empty) { margin-top: 32px; padding: 24px; border: 1px solid #c8a56880; background: #faf4e9; }
.decision-stamp { display: inline-block; border: 2px solid var(--wine); color: var(--wine); padding: 5px 10px; font: 700 .78rem/1.5 "Consolas", monospace; letter-spacing: .04em; transform: rotate(-1deg); }
.case-response p { margin-top: 16px; font-size: .94rem; }
#case-next { margin-top: 22px; }
.case-result { padding-block: 12px; }
.resolution-stamp { display: inline-block; color: var(--wine); border: 3px double var(--wine); padding: 8px 14px; margin: 0 0 24px; font: 700 .9rem "Consolas", monospace; letter-spacing: .1em; transform: rotate(-3deg); }
.case-result > p:not(.eyebrow) { margin-top: 20px; max-width: 820px; }
.decision-record { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.decision-record li { padding: 18px; border-top: 3px solid var(--gold); background: var(--paper); }
.decision-record strong { color: var(--wine); font-size: .85rem; }
.decision-record p { margin-top: 8px; font-size: .83rem; color: var(--muted); }
.result-thesis { font-size: 1.3rem; line-height: 1.45; }
.case-disclaimer { margin-top: 22px; color: var(--muted); font-size: .73rem; max-width: 860px; }
.result-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 26px; }
.text-button { display: inline-block; border: 0; background: transparent; padding: 12px 0; text-decoration: underline; text-underline-offset: 4px; font-size: .86rem; font-weight: 600; }
.concepts-section { background: #eee8df; border-block: 1px solid var(--line); }
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.concept-card { padding: 28px; background: var(--paper); border: 1px solid #ded5c7; border-radius: 12px; display: flex; flex-direction: column; }
.card-number { color: var(--wine); font-size: .76rem; font-family: "Consolas", monospace; }
.concept-card h3 { font-size: 2rem; margin-top: 20px; letter-spacing: -.04em; }
.concept-question { margin-top: 16px; font-weight: 650; font-size: .94rem; }
.concept-card > p:not(.concept-question) { font-size: .87rem; color: var(--muted); margin: 10px 0 24px; }
.concept-label { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; font-size: .6rem; font-weight: 650; letter-spacing: .11em; color: var(--wine); }
.concept-note { font-size: .82rem; color: var(--muted); margin-top: 26px; max-width: 970px; }
.pillar { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-top: 44px; }
.pillar-heading { display: flex; gap: 16px; align-items: start; padding-top: 20px; }
.pillar-letter { font-family: Georgia, serif; font-size: 2.7rem; color: var(--wine); line-height: 1; }
.pillar-heading h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pillar-heading p { font-size: .84rem; color: var(--muted); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 21px 0; font-weight: 600; line-height: 1.45; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--wine); font-size: 1.3rem; font-weight: 400; margin-left: auto; padding-left: 12px; }
details[open] > summary::after { content: "−"; }
summary:hover { color: var(--wine); }
.argument-number { font-family: "Consolas", monospace; font-size: .72rem; color: var(--wine); }
.argument-body { padding: 0 10px 22px 34px; font-size: .9rem; color: var(--muted); }
.argument-body a { display: inline-block; margin-top: 14px; color: var(--wine); font-size: .79rem; }
.argument-takeaway { margin-top: 14px; font-weight: 650; color: var(--wine); }
.precision-note { display: flex; align-items: start; gap: 24px; padding: 26px; margin-top: 48px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 6px; }
.precision-note > span { font-size: 2rem; color: var(--wine); line-height: 1; }
.precision-note h3 { font-size: 1rem; margin-bottom: 8px; }
.precision-note p { font-size: .84rem; color: var(--muted); }
.objection-section { background: var(--wine-dark); color: var(--paper); }
.objection-section .eyebrow { color: var(--gold); }
.objection-section h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); margin-top: 24px; }
.objection-answer { color: #e4c995; font-family: Georgia, serif; font-style: italic; font-size: clamp(1.35rem, 3vw, 2.1rem); margin-top: 28px; }
.objection-copy { max-width: 740px; color: #e6d9dc; margin-top: 18px; }
.hard-question { max-width: 740px; margin-top: 24px; border-color: #ffffff40; }
.hard-question summary::after { color: var(--gold); }
.hard-question summary:hover { color: var(--gold); }
.hard-question > div { padding-bottom: 22px; color: #e6d9dc; font-size: .94rem; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.source-card { padding: 28px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; background: var(--white); }
.source-card h3 { font-size: 1.3rem; margin-top: 16px; line-height: 1.25; }
.source-card > p:not(.eyebrow) { font-size: .88rem; color: var(--muted); margin: 16px 0 24px; }
.source-link { display: flex; justify-content: space-between; gap: 12px; color: var(--wine); font-size: .84rem; font-weight: 650; margin-top: auto; }
.source-note { margin-top: 22px; font-size: .76rem; color: var(--muted); }
.closing { padding: 0 0 80px; text-align: center; }
.closing h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); margin-top: 22px; }
.closing h2 em { color: var(--wine); }
.closing-actions { display: flex; justify-content: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.share-status { margin-top: 18px; font-size: .85rem; color: var(--wine); overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; gap: 48px; padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.footer-title { font-size: .62rem; color: var(--wine); letter-spacing: .12em; font-weight: 700; margin-bottom: 12px; }
.footer-note { font-size: .68rem; max-width: 580px; margin-top: 12px; }
.footer-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; text-align: right; max-width: 260px; }
.paperless { font-size: .8rem; font-weight: 750; color: var(--wine); letter-spacing: .06em; line-height: 1.4; }
.footer-side a { font-size: .7rem; }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--white); color: var(--wine); padding: 12px; z-index: 5; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.notice { border-left: 3px solid var(--gold); padding: 16px 20px; background: var(--white); }
.guide { max-width: 800px; padding-block: 64px; }
.guide h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); margin-bottom: 30px; }
.guide h2 { font-size: 1.6rem; margin-top: 36px; margin-bottom: 14px; }
.guide p, .guide li { margin-bottom: 12px; }
.guide code { background: #eae3d8; padding: 2px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.guide ol, .guide ul { padding-left: 24px; }
@media (min-width: 1600px) { .hero { padding-top: 100px; } }
@media (max-width: 1000px) {
  .section-shell { width: calc(100% - 56px); }
  .site-header { padding-inline: 28px; }
  .hero { gap: 32px; }
  h1 { font-size: 3.5rem; }
  .hero-art { padding: 24px; min-height: 400px; }
  .thesis-inner { grid-template-columns: 1fr 1.2fr; }
  .thesis-inner > .eyebrow { grid-column: 1 / -1; }
  .concept-card { padding: 22px; }
  .pillar { grid-template-columns: 240px 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 24px; }
  .section-shell { width: calc(100% - 40px); }
  .site-header { padding: 16px 20px; min-height: 78px; }
  .wordmark { gap: 8px; font-size: .7rem; }
  .wordmark-sub { font-size: .49rem; }
  .brand-mark { width: 34px; height: 39px; font-size: 1.7rem; }
  nav { gap: 16px; font-size: .71rem; }
  nav a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 42px; gap: 36px; }
  h1 { font-size: clamp(2.8rem, 10.5vw, 4.4rem); margin-top: 20px; }
  .hero-lead { font-size: 1.08rem; margin-top: 22px; }
  .hero-description { font-size: .91rem; }
  .hero-actions { gap: 14px; margin-top: 24px; }
  .hero-art { transform: rotate(1deg); width: calc(100% - 10px); min-height: 0; padding: 20px 24px; border-bottom-right-radius: 64px; }
  .folder-title { padding-block: 24px; gap: 18px; }
  .folder-title strong { font-size: 2.9rem; }
  .art-topline { padding-bottom: 12px; }
  .art-footer { padding-top: 12px; }
  .art-asterisk { font-size: 2.4rem; }
  .hero-bottom { margin-top: 0; padding-top: 12px; font-size: .57rem; gap: 16px; }
  .hero-bottom > span { max-width: 230px; }
  .thesis-inner { grid-template-columns: 1fr; gap: 18px; padding-block: 32px; }
  .thesis-inner h2 { font-size: 1.9rem; }
  .section-space { padding-block: 60px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
  .section-heading h2 { font-size: 2.1rem; }
  .section-heading > p { max-width: none; font-size: .87rem; }
  .court { padding: 20px 16px 24px; box-shadow: 4px 5px 0 #e7ded0; }
  .court-bar { flex-direction: column; gap: 8px; }
  .case-trail { margin-block: 18px 24px; }
  .case-trail li { font-size: .67rem; }
  .case-trail li::before { display: block; font-size: .6rem; }
  .case-quote { padding: 18px; }
  .case-quote p { font-size: 1.18rem; }
  .case-desk { grid-template-columns: 1fr; gap: 24px; }
  .case-intro > p:last-child, .case-response p { font-size: .9rem; }
  .case-response:not(:empty) { padding: 18px; }
  .decision-stamp { font-size: .69rem; }
  .decision-record { grid-template-columns: 1fr; gap: 10px; }
  .result-thesis { font-size: 1.12rem; }
  .concept-grid, .source-grid { grid-template-columns: 1fr; }
  .concept-card { padding: 24px; }
  .concept-card h3 { margin-top: 12px; }
  .concept-card > p:not(.concept-question) { margin-bottom: 18px; }
  .pillar { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .pillar-heading { padding-top: 8px; }
  summary { font-size: .92rem; gap: 12px; }
  .argument-body { padding-left: 27px; }
  .precision-note { padding: 20px; gap: 14px; margin-top: 30px; }
  .objection-section h2 { font-size: clamp(2rem, 8.5vw, 3.6rem); }
  .objection-copy { font-size: .93rem; }
  .source-card { padding: 24px; }
  .closing { padding-bottom: 56px; }
  .closing h2 { font-size: clamp(2rem, 7.7vw, 3rem); }
  .site-footer { flex-direction: column; gap: 26px; }
  .footer-side { align-items: flex-start; text-align: left; max-width: none; }
  .guide { padding-block: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  body { background: white; color: black; }
  .site-header nav, .hero-art, .hero-actions, .hero-bottom, #expediente, .closing-actions, .footer-side, .skip-link { display: none; }
  .hero, .thesis-inner, .pillar, .section-heading { display: block; }
  .section-shell { width: 100%; }
  .section-space { padding-block: 24px; }
  .hero { padding-top: 0; }
  .hero-copy { margin-bottom: 24px; }
  .objection-section { background: white; color: black; }
  .objection-section p, .objection-section .eyebrow { color: black; }
  details > .argument-body, details > div { display: block !important; content-visibility: visible; }
  .concept-card, .source-card, details { break-inside: avoid; }
  .closing { padding-block: 24px; }
}
