/* Música en los dedos · acabado editorial 2026.
   Solo presentación. Conserva el orden semántico, enlaces y controles existentes. */
:root {
  --ink: #17392e;
  --muted: #43594d;
  --paper: #f7f6ef;
  --surface: #fffefa;
  --line: #d4dfd4;
  --link: #17543f;
  --med-gold: #dfb77b;
  --med-shadow: 0 16px 44px rgba(27, 59, 43, .075);
}
html { scroll-padding-top: 1.5rem; }
body {
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 24rem at 93% 2%, rgba(210, 226, 203, .44), transparent 75%),
    radial-gradient(ellipse 50% 30rem at 0 52%, rgba(223, 213, 189, .21), transparent 76%),
    var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: -.006em;
}
header {
  position: relative;
  z-index: 2;
  padding-top: 1.15rem;
  padding-bottom: .6rem;
  background: rgba(255, 254, 249, .98);
  border-bottom: 1px solid #d7e0d3;
  box-shadow: 0 4px 28px rgba(24, 65, 45, .045);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  color: #143d30;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.36rem;
  font-weight: 700;
  letter-spacing: -.035em;
}
.brand::before {
  content: "";
  width: 2.15rem;
  height: 2.15rem;
  display: inline-block;
  flex: none;
  border-radius: .72rem;
  background:
    radial-gradient(circle at 37% 30%, #f8efd4 0 2.8px, transparent 3.5px),
    radial-gradient(circle at 63% 50%, #f8efd4 0 2.8px, transparent 3.5px),
    radial-gradient(circle at 37% 71%, #f8efd4 0 2.8px, transparent 3.5px),
    linear-gradient(145deg, #2d7358, #163e30);
  box-shadow: 0 4px 10px #174b3226;
}
header nav { gap: .15rem .25rem; }
header nav a {
  border-radius: 999px;
  padding: .35rem .7rem;
  color: #2b4b3b;
  font-size: .85rem;
  text-decoration: none;
}
header nav a:hover,
header nav a:focus-visible { background: #edf4e9; text-decoration: underline; }
.preferences { border-top-color: #e3e9dd; }
.preferences summary { font-weight: 600; color: #245c45; }
.preferences > div { gap: .65rem; padding: .6rem 0 .8rem; }
.preferences button {
  border-radius: .7rem;
  border-color: #b9cbbc;
  background: #fff;
  color: #234c3b;
  box-shadow: none;
}
.preferences button[aria-pressed="true"] { background: #174d3b; border-color: #174d3b; color: #fff; }
main { max-width: 1200px; padding-bottom: 4.5rem; }
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 29rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(12rem, .7fr);
  gap: clamp(1.6rem, 4vw, 4.2rem);
  margin: 1.8rem 0 2.1rem;
  padding: clamp(2rem, 5vw, 4.1rem);
  border: 1px solid #2b6750;
  border-radius: 1.6rem;
  color: #fffdf7;
  background:
    radial-gradient(circle at 92% 14%, rgba(225, 186, 117, .19), transparent 38%),
    linear-gradient(117deg, #143c31 0%, #174a3a 53%, #24634d 100%);
  box-shadow: 0 24px 64px rgba(26, 66, 48, .18);
}
.intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -9rem;
  bottom: -15rem;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  border: 1px solid rgba(242, 218, 165, .20);
  box-shadow: 0 0 0 3rem rgba(255,255,255,.025), 0 0 0 6rem rgba(255,255,255,.025);
  pointer-events: none;
}
.intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  top: 10%;
  width: 35%;
  height: 76%;
  opacity: .14;
  transform: skewY(-10deg);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2.7rem, #f3ead3 2.7rem, #f3ead3 calc(2.7rem + 1px));
  pointer-events: none;
}
.intro-copy { max-width: 42rem; }
.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin: 0 0 1.6rem;
  padding: .3rem .9rem;
  border: 1px solid rgba(244, 222, 166, .35);
  border-radius: 999px;
  background: rgba(251, 245, 218, .085);
  color: #f6dba8;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .17em;
}
.intro h1 {
  color: #fffdf7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 5.2vw, 4.75rem);
  font-weight: 400;
  line-height: 1.055;
  letter-spacing: -.048em;
  max-width: 10.5ch;
  margin: 0 0 1.4rem;
}
.intro .subtitle {
  color: #f4dfb6;
  font-size: clamp(1.12rem, 1.7vw, 1.34rem);
  font-weight: 650;
  line-height: 1.5;
  max-width: 34rem;
  margin: 0 0 .75rem;
}
.intro-copy > p:not(.subtitle):not(.intro-eyebrow) {
  max-width: 37rem;
  color: #e8f0e7;
  line-height: 1.7;
}
.intro-actions { gap: .75rem; margin-top: 2rem; }
.intro-actions .button,
.intro-actions .button:last-child {
  min-height: 3.3rem;
  border-radius: .78rem;
  padding: .85rem 1.25rem;
  border: 2px solid #f2e5c9;
  color: #183e30;
  background: #f7edda;
  font-weight: 750;
  font-size: .89rem;
  box-shadow: 0 8px 20px rgba(5, 35, 23, .12);
}
.intro-actions .button:last-child { border-color: #d8b676; background: #ddb978; color: #173c30; }
.intro-actions .button:hover,
.intro-actions .button:last-child:hover { background: #fffaf0; border-color: #fffaf0; color: #12392b; transform: translateY(-1px); }
.intro-cover {
  display: block;
  position: relative;
  width: min(100%, 15rem);
  max-width: 15rem;
  padding: .65rem;
  justify-self: center;
  border: 1px solid rgba(242, 222, 187, .65);
  border-radius: .6rem;
  background: #f5ebd5;
  transform: rotate(3deg);
  box-shadow: 0 1.6rem 2.6rem rgba(0, 21, 16, .38);
  transition: transform .2s ease;
}
.intro-cover:hover { transform: rotate(0deg) translateY(-5px); }
.intro-cover img { width: 100%; border-radius: .18rem; }
.section, .contact-section, details.section {
  background: #fffefa;
  border: 1px solid #dbe3d8;
  border-radius: 1.25rem;
  box-shadow: var(--med-shadow);
}
section.section, .contact-section { padding: clamp(1.35rem, 3vw, 2.3rem); margin: 0 0 1.35rem; }
section.section > h2, .contact-section > h2, details.section > summary h2 {
  color: #184634;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.2;
  font-weight: 400;
}
section.section > h2 { padding-bottom: .85rem; border-bottom: 1px solid #e2e8de; }
section.section > .panel { padding-top: .45rem; }
#proyecto { position: relative; }
#proyecto::before {
  content: "";
  display: block;
  width: 3.2rem;
  height: .25rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: #c39c5a;
}
#libro { border-left: 1px solid #dbe3d8; }
#libro .book-layout { gap: clamp(1.4rem, 3vw, 3rem); }
#libro .cover { border-radius: .4rem; box-shadow: 0 1.2rem 2.2rem #18372628; }
#libro h3 { color: #1c4a36; font-size: clamp(1.35rem, 2vw, 1.7rem); }
#aplicacion {
  position: relative;
  border: 1px solid #d5e2d5;
  background: linear-gradient(122deg, #e5efe5, #f5f8f0);
}
#aplicacion::before {
  content: "";
  position: absolute;
  right: 1.7rem;
  top: 1.2rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid rgba(44, 111, 75, .15);
  box-shadow: 0 0 0 1rem rgba(44, 111, 75, .035);
  pointer-events: none;
}
#aplicacion .button, .button.primary {
  color: #fff;
  background: #1c5a42;
  border: 2px solid #1c5a42;
}
#aplicacion .button:hover, .button.primary:hover { background: #123c2e; border-color: #123c2e; }
details.section { margin: 0 0 1rem; overflow: hidden; }
details.section > summary { border-radius: 1.25rem; padding: 1.15rem 1.45rem; }
details.section > summary:hover { background: #f0f5ed; }
details.section[open] > summary { border-bottom: 1px solid #dce6dc; }
details.section > .panel { padding: .45rem clamp(1.25rem, 2.5vw, 2rem) 1.7rem; }
details.section .state {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: .2rem .75rem;
  border-radius: 999px;
  border: 1px solid #c9dacb;
  background: #f3f7ef;
  color: #20533e;
  font-weight: 600;
}
.publication-list article { border-color: #d9e3dc; }
.publication-type, .event-date { color: #70552f; }
.contact-section { background: linear-gradient(135deg, #fffefa, #f6f7f0); }
.contact-card { background: #fff; border-radius: .9rem; padding: .9rem 1.15rem; border-color: #d2e0d2; }
.contact-card:hover { background: #f1f6ed; }
footer { color: #506157; }
/* User-selected high contrast takes precedence over visual decoration. */
html.high-contrast body { background: #fff; color: #000; }
.high-contrast header, .high-contrast .intro, .high-contrast .section,
.high-contrast .contact-section, .high-contrast details.section,
.high-contrast .contact-card, .high-contrast #aplicacion {
  color: #000; background: #fff; border-color: #000; box-shadow: none;
}
.high-contrast .intro::before,.high-contrast .intro::after,.high-contrast #aplicacion::before { display:none; }
.high-contrast .intro h1,.high-contrast .intro .subtitle,.high-contrast .intro-eyebrow,
.high-contrast .intro-copy > p:not(.subtitle):not(.intro-eyebrow),
.high-contrast section.section > h2,.high-contrast .contact-section > h2,
.high-contrast details.section > summary h2 { color: #000; }
.high-contrast .intro-eyebrow { background: #fff; border-color:#000; }
.high-contrast .intro-actions .button,.high-contrast .intro-actions .button:last-child,
.high-contrast #aplicacion .button, .high-contrast .button.primary {
  color: #fff; background: #000; border-color: #000; box-shadow:none;
}
.high-contrast .brand::before { background:#000; box-shadow:none; }
.high-contrast .state { color:#000; background:#fff; border-color:#000; }
@media (max-width: 850px) {
  .intro { grid-template-columns: minmax(0, 1fr) minmax(9rem, .45fr); gap: 1.4rem; padding: 2rem; }
  .intro h1 { font-size: clamp(2.5rem, 6vw, 3.9rem); }
  header nav { margin-left: 0; }
}
@media (max-width: 640px) {
  header, main, footer { padding-left: 1rem; padding-right: 1rem; }
  .brand { font-size: 1.2rem; }
  header nav { overflow-x: auto; flex-wrap: wrap; gap: .2rem; width: 100%; }
  header nav a { padding: .3rem .5rem; }
  .intro { grid-template-columns: minmax(0, 1fr); border-radius: 1.15rem; gap: 1.6rem; padding: 1.65rem 1.25rem 2rem; }
  .intro h1 { max-width: none; font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .intro::after { width: 100%; opacity:.08; }
  .intro-eyebrow { font-size: .6rem; letter-spacing:.1em; }
  .intro-actions { align-items: stretch; }
  .intro-actions .button { width:100%; }
  .intro-cover { max-width: 10.5rem; width: 46%; justify-self: center; transform:rotate(2deg); }
  section.section, .contact-section { padding: 1.4rem 1.2rem; }
  #libro .book-layout { grid-template-columns: 1fr; }
  details.section > summary { padding: .95rem 1rem; }
  .contact-links { flex-direction:column; }
}
@media (prefers-reduced-motion:reduce) {
  .intro-cover, .intro-actions .button { transition: none; }
  .intro-cover:hover, .intro-actions .button:hover { transform: none; }
}
@media print {
  html body {background:#fff;}
  .intro {display:block; color:#000; background:#fff; border:0; box-shadow:none; min-height:0; padding:0;}
  .intro h1,.intro .subtitle,.intro-copy > p:not(.subtitle):not(.intro-eyebrow) {color:#000;}
  .intro::before,.intro::after,.intro-eyebrow{display:none;}
  .section,.contact-section,details.section{box-shadow:none;}
}
/* El rótulo de la portada mantiene contraste suficiente sobre el verde oscuro. */
.intro-copy > p.intro-eyebrow { color:#f6dba8; }
.high-contrast .intro-copy > p.intro-eyebrow { color:#000; }
/* Respeta siempre la selección de contraste alto, incluso con la hoja de acabado cargada al final. */
html.high-contrast {
  --ink:#000; --muted:#111; --paper:#fff; --surface:#fff; --line:#000; --link:#003b70;
}
.high-contrast .brand, .high-contrast #libro h3, .high-contrast .publication-list h3,
.high-contrast header nav a, .high-contrast .contact-card, .high-contrast .preferences summary { color:#000; }
.high-contrast a:not(.button) { text-decoration:underline; }
.high-contrast .preferences button { background:#fff; color:#000; border-color:#000; }
.high-contrast .preferences button[aria-pressed="true"] { color:#fff; background:#000; }


/* Diseño editorial suave · sustitución visual sin afectar comportamiento */
:root {
  --ink:#283b32;
  --muted:#526359;
  --paper:#f8f7f2;
  --surface:#fffefa;
  --line:#d4ded2;
  --link:#375b4a;
  --med-gold:#c7ad7f;
  --med-shadow:0 14px 36px rgba(50,65,48,.065);
}
body {
  color:var(--ink);
  background:linear-gradient(180deg,#faf9f5 0%,#f7f6f0 45%,#faf9f5 100%);
}
header {background:#fffefa;border-bottom:1px solid #e3e5dc;box-shadow:0 4px 18px rgba(39,48,34,.035);}
.brand {color:#2d473a;gap:0;letter-spacing:-.024em;}
/* No utilizar logotipos ornamentales. La marca se identifica solo por su nombre. */
header .brand::before,.brand::before {content:none!important;display:none!important;}
header nav a {color:#40594a;}
header nav a:hover,header nav a:focus-visible {background:#f0f2ea;}
.preferences summary {color:#3e5c4b;}
.preferences button {border-color:#becbc0;background:#fffefa;color:#2f4c3d;}
.preferences button[aria-pressed="true"] {color:#fff;background:#536e5b;border-color:#536e5b;}
.intro {
  color:#253e32;
  min-height:27rem;
  margin:1.75rem 0 2rem;
  background:linear-gradient(119deg,#f0f2e9 0%,#f5f3eb 57%,#e9eee5 100%);
  border:1px solid #cfd9ce;
  border-radius:1.6rem;
  box-shadow:0 18px 38px rgba(50,63,46,.065);
}
.intro::before,.intro::after {display:none;}
.intro h1 {color:#243e32;max-width:11.5ch;}
.intro .subtitle {color:#3d5849;font-weight:650;}
.intro-copy > p:not(.subtitle):not(.intro-eyebrow) {color:#45574b;}
.intro-copy > p.intro-eyebrow {
  border:1px solid #d9cfb8;
  color:#66533b;
  background:#f3ece0;
  letter-spacing:.13em;
}
.intro-actions .button,.intro-actions .button:last-child {
  background:#fffefa;
  border:1.5px solid #9cae9e;
  color:#2f4d3d;
  box-shadow:0 5px 15px rgba(41,67,46,.05);
  font-weight:720;
}
.intro-actions .button:last-child {
  background:#546e5d;
  border-color:#546e5d;
  color:#fffefa;
}
.intro-actions .button:hover {background:#e8eee7;border-color:#73917b;color:#243f31;transform:translateY(-1px);}
.intro-actions .button:last-child:hover {background:#3f594b;border-color:#3f594b;color:#fffefa;}
.intro-cover {
  padding:.55rem;
  border-color:#e2ddcd;
  background:#fffdf8;
  box-shadow:0 12px 24px rgba(44,53,42,.13);
  transform:rotate(1deg);
}
.intro-cover:hover {transform:rotate(0deg) translateY(-3px);}
.section,.contact-section,details.section {border-color:#e0e5da;background:#fffefa;box-shadow:0 7px 24px rgba(44,58,41,.045);}
section.section > h2,.contact-section > h2,details.section > summary h2 {color:#2f483a;}
#proyecto::before {background:#bca578;}
#libro h3 {color:#3b5746;}
#aplicacion {
  border-color:#dce3d7;
  background:linear-gradient(130deg,#f1f4ec,#f8f7ef);
}
#aplicacion::before {display:none;}
#aplicacion .button,.button.primary {
  background:#546e5d;border:1.5px solid #546e5d;color:#fff;
}
#aplicacion .button:hover,.button.primary:hover {background:#3f594b;border-color:#3f594b;color:#fff;}
details.section > summary:hover {background:#f4f6f0;}
details.section .state {background:#f8f7ee;color:#3c5847;border-color:#d5ded1;}
.contact-section {background:#fffefa;}
.contact-card {border-color:#dbe2d8;}
.contact-card:hover {background:#f3f6ef;}
footer {color:#596a5c;}
:focus-visible {outline:3px solid #946d35;outline-offset:3px;}
/* Alto contraste: mantiene prioridad sobre la decoración */
html.high-contrast body,html.high-contrast header,html.high-contrast .intro,
html.high-contrast .section,html.high-contrast .contact-section,
html.high-contrast details.section,html.high-contrast #aplicacion {background:#fff;color:#000;border-color:#000;box-shadow:none;}
html.high-contrast .intro h1,html.high-contrast .intro .subtitle,
html.high-contrast .intro-copy > p,html.high-contrast .intro-eyebrow {color:#000;background:#fff;border-color:#000;}
html.high-contrast .intro-actions .button,html.high-contrast .intro-actions .button:last-child,
html.high-contrast #aplicacion .button,html.high-contrast .button.primary {color:#fff;background:#000;border-color:#000;box-shadow:none;}
html.high-contrast header .brand::before{display:none!important;}
@media(max-width:640px){.intro{min-height:0;padding:1.7rem 1.25rem}.intro-cover{transform:none;width:48%;}.intro-cover:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.intro-cover:hover,.intro-actions .button:hover{transform:none}}
@media print {.intro {color:#000;border:0;box-shadow:none;background:#fff}.intro h1,.intro .subtitle,.intro-copy > p{color:#000}}

