/* PsiKip: variables agrupadas para facilitar una futura identidad formal. */
:root {
  color-scheme: light dark;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --ink: #173c43;
  --muted: #52666a;
  --action: #477568;
  --on-action: #ffffff;
  --selected: #e4eee9;
  --reserved: #eee9f5;
  --border: #73857f;
  --separator: #d8ded9;
  --serif: "Lora", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --page-width: 1160px;
  --gutter: clamp(22px, 5.6vw, 84px);
  --space-section: clamp(76px, 10vw, 144px);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16272b;
    --surface: #20363b;
    --ink: #f2f0e8;
    --muted: #bacbc8;
    --action: #a8cdbe;
    --on-action: #163c33;
    --selected: #29483f;
    --reserved: #39334a;
    --border: #819f96;
    --separator: #41595c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid var(--action); outline-offset: 5px; border-radius: 3px; }
::selection { color: var(--on-action); background: var(--action); }
.skip-link { position: absolute; z-index: 5; top: 8px; left: 8px; padding: 10px 14px; color: var(--on-action); background: var(--action); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { width: min(100% - 2 * var(--gutter), var(--page-width)); min-height: 86px; margin: 0 auto; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--separator); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; text-decoration: none; letter-spacing: -0.035em; }
.mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--action); border-radius: 9px 9px 9px 3px; color: var(--action); font-family: var(--serif); font-size: 20px; }
.main-nav { display: flex; align-items: center; gap: clamp(17px, 3.1vw, 42px); margin-left: auto; }
.main-nav a, .language-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; text-decoration: none; }
.main-nav a:hover, .language-link:hover, .text-link:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.contact-link { color: var(--ink); }
.language-link { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-left: 1px solid var(--separator); padding-left: 18px; }
.hero { width: min(100% - 2 * var(--gutter), var(--page-width)); min-height: 660px; margin: 0 auto; padding: 86px 0 78px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr); align-items: center; gap: clamp(48px, 8vw, 110px); }
.hero-copy { max-width: 600px; }
.hero-copy > .eyebrow { font-size: 16px; letter-spacing: 0; text-transform: none; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.055em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.045em; }
h1 { max-width: 640px; margin-bottom: 22px; font-size: clamp(44px, 5.1vw, 68px); line-height: 1.08; }
.hero-lede { max-width: 520px; margin-bottom: 30px; color: var(--muted); font-size: 20px; line-height: 1.48; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 10px; font-size: 16px; font-weight: 700; text-decoration: none; }
.button-primary { color: var(--on-action); background: var(--action); }
.button-primary:hover { filter: brightness(0.92); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.status-line { display: flex; align-items: flex-start; gap: 10px; max-width: 430px; margin: 36px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 6px; border-radius: 50%; background: var(--action); }
.hero-art { min-height: 440px; display: grid; place-items: center; background: var(--selected); border-radius: 44% 44% 10px 10px; }
.paper-note { width: min(80%, 390px); padding: 22px 22px 20px; background: var(--paper); border: 1px solid var(--border); border-radius: 3px; transform: rotate(1.2deg); }
.paper-top { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.paper-rule { height: 1px; flex: 1; background: var(--separator); }
.note-lines { display: grid; gap: 10px; margin: 25px 0 2px; }
.note-lines i, .draft-line { display: block; height: 3px; background: var(--border); opacity: .58; }
.note-lines i:nth-child(2) { width: 86%; }
.note-lines i.short { width: 62%; }
.paper-connector { height: 39px; position: relative; }
.paper-connector::before { position: absolute; top: 4px; left: 50%; height: 32px; border-left: 1px solid var(--action); content: ""; }
.paper-connector span { position: absolute; bottom: 0; left: calc(50% - 4px); width: 8px; height: 8px; border: 1px solid var(--action); border-radius: 50%; background: var(--paper); }
.draft-sheet { padding: 17px 18px 14px; background: var(--surface); border: 1px solid var(--separator); }
.draft-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.draft-mark { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid var(--action); border-radius: 6px 6px 6px 2px; color: var(--action); font-family: var(--serif); font-size: 12px; }
.draft-heading { margin: 14px 0 13px; font-family: var(--serif); font-size: 21px; }
.draft-line { height: 2px; margin: 8px 0; opacity: .38; }
.draft-line-short { width: 72%; }
.review-stamp { width: fit-content; margin: 16px 0 0 auto; padding: 6px 9px; border: 1px solid var(--action); border-radius: 3px; color: var(--action); font-size: 12px; font-weight: 600; }
.art-caption { margin: 23px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.section-wrap { width: min(100% - 2 * var(--gutter), var(--page-width)); margin: 0 auto; }
.process { padding: var(--space-section) 0; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 10vw, 150px); border-top: 1px solid var(--separator); }
.section-intro h2, .principles-heading h2, .team-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.14; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: minmax(155px, .72fr) 1fr; gap: 24px; padding: 19px 0 20px; border-top: 1px solid var(--separator); }
.process-list li:last-child { border-bottom: 1px solid var(--separator); }
.step-label { font-size: 19px; font-weight: 700; }
.process-list p { max-width: 380px; margin: 2px 0 0; color: var(--muted); font-size: 17px; line-height: 1.45; }
.principles { padding: var(--space-section) clamp(28px, 6vw, 88px); display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(45px, 9vw, 130px); background: var(--surface); }
.principles-heading { padding-top: 13px; }
.principle-list { margin: 0; padding: 0; list-style: none; }
.principle-list li { display: grid; grid-template-columns: 39px 1fr; gap: 17px; padding: 19px 0 20px; border-top: 1px solid var(--separator); }
.principle-list li:last-child { border-bottom: 1px solid var(--separator); }
.principle-number { width: 31px; height: 31px; display: grid; place-items: center; background: var(--selected); border-radius: 50%; color: var(--ink); font-size: 12px; font-weight: 700; }
.principle-list h3 { margin: 0 0 4px; font-size: 18px; }
.principle-list p { max-width: 480px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.48; }
.patient-journal { margin-top: var(--space-section); margin-bottom: var(--space-section); padding: clamp(30px, 5.4vw, 70px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .65fr); align-items: center; gap: 42px; background: var(--reserved); border-radius: 4px 42px 4px 4px; }
.journal-copy .eyebrow { margin-bottom: 15px; }
.journal-copy h2 { max-width: 540px; margin-bottom: 14px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.12; }
.journal-copy > p:last-child { max-width: 520px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.5; }
.journal-notation { min-height: 135px; display: flex; flex-direction: column; justify-content: center; gap: 16px; color: var(--ink); font-family: var(--serif); font-size: 17px; }
.journal-line { width: 100%; height: 1px; background: var(--border); }
.team { padding: 0 0 var(--space-section); display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 10vw, 150px); }
.team-heading h2 { max-width: 390px; }
.team-list { border-top: 1px solid var(--separator); }
.team-member { min-height: 96px; display: flex; align-items: center; gap: 17px; padding: 10px 0; border-bottom: 1px solid var(--separator); }
.team-initial { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--ink); font-family: var(--serif); font-size: 19px; }
.team-member h3 { margin: 0 0 2px; font-size: 18px; }
.team-member p { margin: 0; color: var(--muted); font-size: 15px; }
.contact { padding: 44px 0 55px; border-top: 1px solid var(--separator); }
.contact h2 { max-width: 610px; margin-bottom: 13px; font-size: clamp(36px, 4.3vw, 54px); line-height: 1.12; }
.contact-email { display: inline-flex; min-height: 44px; align-items: center; color: var(--action); font-size: 19px; font-weight: 700; }
.site-footer { width: min(100% - 2 * var(--gutter), var(--page-width)); margin: 0 auto; padding: 23px 0 30px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-top: 1px solid var(--separator); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }
.disclaimer { max-width: 470px; text-align: right; }

@media (max-width: 760px) {
  :root { --gutter: 23px; --space-section: 78px; }
  html { scroll-padding-top: 16px; }
  .site-header { min-height: 70px; gap: 13px; flex-wrap: wrap; }
  .wordmark { gap: 8px; font-size: 20px; }
  .mark { width: 29px; height: 29px; font-size: 18px; }
  .main-nav { order: 3; width: 100%; margin: 0; padding: 0 0 12px; justify-content: space-between; gap: 9px; }
  .main-nav a { font-size: 13px; }
  .language-link { margin-left: auto; border-left: 0; padding-left: 8px; }
  .hero { min-height: unset; padding: 58px 0 65px; grid-template-columns: 1fr; gap: 42px; }
  h1 { max-width: 550px; font-size: clamp(42px, 11vw, 58px); }
  .hero-lede { font-size: 18px; }
  .status-line { margin-top: 28px; }
  .hero-art { min-height: 365px; border-radius: 38% 38% 8px 8px; }
  .paper-note { width: min(84%, 360px); }
  .process, .principles, .team { grid-template-columns: 1fr; gap: 34px; }
  .section-intro h2, .principles-heading h2, .team-heading h2 { font-size: 38px; }
  .process-list li { grid-template-columns: minmax(125px, .72fr) 1fr; gap: 16px; }
  .step-label { font-size: 17px; }
  .process-list p { font-size: 16px; }
  .principles { margin-left: 0; width: 100%; padding: var(--space-section) var(--gutter); }
  .patient-journal { grid-template-columns: 1fr; gap: 30px; border-top-right-radius: 32px; }
  .journal-notation { max-width: 360px; min-height: 95px; }
  .team { padding-bottom: var(--space-section); }
  .site-footer { flex-direction: column; gap: 9px; }
  .disclaimer { text-align: left; }
}

@media (max-width: 390px) {
  .main-nav { gap: 5px; }
  .main-nav a { font-size: 12px; }
  .process-list li { grid-template-columns: 1fr; gap: 6px; }
  .hero-actions { gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Identidad PsiKip: tinta slate, acento eucalipto y tipografía local OFL. */
@font-face {
  font-family: "Literata";
  src: url("fuentes/Literata%5Bopsz%2Cwght%5D.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fuentes/SourceSans3%5Bwght%5D.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --ink: #263f56;
  --muted: #4b5f70;
  --action: #496d68;
  --on-action: #ffffff;
  --selected: #e8eeea;
  --reserved: #eee9f5;
  --border: #778c89;
  --separator: #d6ddd9;
  --serif: "Literata", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: rgb(73 109 104 / 18%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b2d3e;
    --surface: #263f56;
    --ink: #f7f5ef;
    --muted: #d2d9dc;
    --action: #a8cdbe;
    --on-action: #1b2d3e;
    --selected: #30485a;
    --reserved: #393748;
    --border: #93b4ab;
    --separator: #506273;
  }
}

.wordmark { gap: 9px; font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.045em; }
.wordmark-symbol { width: 37px; height: 37px; display: block; flex: 0 0 37px; }
.wordmark-symbol img { width: 100%; height: 100%; display: block; object-fit: contain; }
.hero-art { min-height: 545px; padding: 32px 24px 27px; gap: 7px; border-radius: 46% 46% 7px 7px; }
.hero-brand { width: min(68%, 250px); display: block; }
.hero-brand img { width: 100%; height: auto; display: block; }
.paper-note { width: min(90%, 390px); padding: 19px 21px 16px; }
.paper-top, .draft-label { color: var(--ink); }
.draft-mark { width: 22px; height: 22px; border: 0; background: var(--selected); }
.draft-mark img { width: 100%; height: 100%; object-fit: contain; }
.art-caption { margin-top: 17px; }
.button-primary { border-radius: 5px 15px 5px 5px; }
.principles { border-radius: 2px 34px 2px 2px; }
.patient-journal { box-shadow: none; }

@media (max-width: 760px) {
  .wordmark { font-size: 22px; }
  .wordmark-symbol { width: 33px; height: 33px; flex-basis: 33px; }
  .hero { padding-top: 45px; gap: 32px; }
  .hero-art { min-height: 480px; padding: 24px 15px 21px; }
  .hero-brand { width: min(58%, 210px); }
  .paper-note { width: min(94%, 370px); }
}
