/* Estética de papel aprobada: recursos locales; todo el texto procede del editor. */
:root { --ink:#242c25; --green:#285d45; --muted:#69705f; --line:#b5b8a466; --paper:#f8f5ec; --grain:url('../images/paper/grano.svg'); }
body { background:#dedbd3 var(--grain); }
.cv-header { min-height:96px; }
.cv-brand { font-weight:700; letter-spacing:-.8px; }
.cv-brand-mark { width:12px; height:12px; }
.cv-hero { isolation:isolate; overflow:visible; width:calc(100% - 40px); max-width:1200px; margin:8px auto 0; border:0; background:none; filter:drop-shadow(3px 9px 7px #373b2d20); }
.cv-hero::before { content:''; position:absolute; inset:0; z-index:-1; background:var(--paper) var(--grain); clip-path:polygon(.5% 1%,7% .3%,16% 1.2%,24% .2%,33% 1%,43% 0,53% .8%,65% .1%,76% 1%,86% .2%,99% 1%,100% 14%,99.4% 31%,100% 47%,99.3% 67%,99.9% 83%,99% 99%,90% 98.5%,83% 99.7%,74% 98.8%,66% 100%,58% 99%,49% 99.8%,39% 98.7%,29% 99.6%,19% 98.8%,10% 99.8%,0 98.7%,.6% 84%,0 68%,.7% 51%,0 35%,.6% 18%); }
.cv-hero-content { width:auto; margin:0; padding:60px 350px 65px 50px; min-height:460px; }
.cv-eyebrow { display:inline-block; background:#e6ef65 var(--grain); padding:8px 15px; color:var(--ink); transform:rotate(-3deg); margin-bottom:25px; letter-spacing:2px; clip-path:polygon(1% 7%,97% 0,100% 88%,3% 100%); }
.cv-hero h1 { font-size:clamp(43px,5.7vw,74px); line-height:1.03; font-weight:700; letter-spacing:-3px; margin-bottom:27px; white-space:pre-line; text-wrap:balance; }
.cv-subtitle { font-size:18px; color:#596153; white-space:pre-line; }
.cv-hero-link { font-weight:700; border:0; color:var(--ink); gap:25px; margin-top:29px; }
.cv-hero-link span { transform:rotate(80deg); font-size:29px; }
.cv-hero-art { position:absolute; right:10px; top:54px; bottom:auto; width:345px; height:360px; transform:none; opacity:1; pointer-events:none; }
.cv-hero-art span { width:auto; height:auto; position:static; border:0; background:none; }
.cv-blue-scrap { position:absolute; left:74px; top:70px; width:230px; height:242px; background:#bcd1da var(--grain); transform:rotate(10deg); clip-path:polygon(0 2%,97% 0,100% 97%,3% 100%); }
.cv-logo-note { position:absolute; left:68px; top:56px; width:222px; padding:13px 13px 34px; background:#fffdf5 var(--grain); transform:rotate(-7deg); box-shadow:4px 6px 9px #28352325; }
.cv-logo-note>div { padding:13px; background:var(--green) var(--grain); aspect-ratio:1; }
.cv-logo-note img { display:block; width:100%; height:100%; object-fit:contain; }
.cv-tape,.cv-hero-art .cv-tape { position:absolute; top:-12px; left:50%; width:92px; height:27px; transform:translateX(-50%) rotate(4deg); z-index:3; background:#e9c674a8 var(--grain); clip-path:polygon(2% 3%,98% 0,95% 19%,100% 41%,95% 58%,100% 75%,97% 100%,0 95%,4% 76%,0 59%,4% 39%,0 20%); }
.cv-hero-art .cv-logo-note .cv-note-line { position:absolute; top:auto; bottom:16px; left:69px; width:79px; height:4px; border-bottom:2px solid #4f5148; transform:rotate(1deg); }
.cv-doodles { position:absolute; inset:0; width:100%; height:100%; }
.cv-body { position:relative; background:#f4f0e4 var(--grain); padding:50px 38px 0; margin-top:40px; box-shadow:2px 4px 5px #33332216; }
.cv-body::before { content:''; position:absolute; top:-12px; right:45px; width:100px; height:26px; transform:rotate(5deg); background:#d1c8b27a var(--grain); clip-path:polygon(0 5%,100% 0,96% 30%,100% 50%,95% 80%,98% 100%,0 93%,4% 65%,0 45%,4% 20%); }
.cv-intro-grid { grid-template-columns:minmax(0,.9fr) minmax(0,1.6fr); gap:55px; align-items:start; padding-bottom:50px; }
.cv-profile-block:first-child { position:relative; background:#f9f7e9 var(--grain); padding:28px 25px 32px; transform:rotate(-1.4deg); box-shadow:3px 5px 0 #41443114; border:1px solid #dad7c9; }
.cv-profile-block:first-child h2 { font-size:21px; font-weight:700; }
.cv-profile-block:first-child .cv-prose { font-size:14px; }
.cv-profile-block:nth-child(2)>h2 { font:11px/1.4 'Courier New',monospace; letter-spacing:1.3px; text-transform:uppercase; color:#6c7565; margin:0 0 12px; }
.cv-intro-heading { font-size:31px; letter-spacing:-1px; line-height:1.17; font-weight:700; margin:0 0 23px; white-space:pre-line; text-wrap:balance; }
.cv-intro-note { font-size:14px; color:var(--green); margin:20px 0 0; white-space:pre-line; }
.cv-prose { color:#596153; }
.cv-section { border-top:1px dashed #7c84634d; padding-block:40px 46px; }
.cv-profile-block h2,.cv-section>h2,.cv-work>h2 { font-weight:700; }
.cv-work>h2 { width:fit-content; position:relative; }
.cv-work>h2::after { content:''; position:absolute; bottom:-6px; right:-5px; width:100px; height:7px; border-top:2px solid var(--green); border-bottom:1px solid var(--green); transform:rotate(-3deg); border-radius:50%; }
.cv-education p { border-left-color:#aebc91; }
.cv-interests { gap:13px; font-size:16px; }
.cv-interests li { background:#e7ecc7 var(--grain); color:#3a5037; padding:3px 12px; border:1px solid #acb58288; box-shadow:1px 2px 0 #535e3212; transform:rotate(-1.5deg); }
.cv-interests li:nth-child(even) { background:#dce5e4 var(--grain); transform:rotate(1.5deg); }
.cv-interests li::before { content:none; }
.cv-skill-card { background:#fffdf6 var(--grain); border:1px solid #dad8cb; border-radius:1px; box-shadow:3px 4px 0 #505b2d13; }
.cv-skill-card:nth-child(3n+2) { background:#d8e3e5 var(--grain); border-color:#bdcbd0; }
.cv-skill-card h3 { font-weight:700; }
.cv-filters { border:0; gap:9px 15px; padding:0; margin-top:12px; }
.cv-filters button { padding:5px 11px; border:0; color:#626757; }
.cv-filters button[aria-pressed=true] { background:var(--green); color:#fff9e6; font-weight:700; transform:rotate(-2deg); clip-path:polygon(1% 6%,98% 0,100% 92%,2% 100%); }
#cv-results { gap:24px; }
.cv-work-card { background:#fffdf6 var(--grain); padding:27px 25px; border:1px solid #dad8cb; box-shadow:3px 4px 0 #505b2d13; }
.cv-work-card:nth-child(4n+2) { background:#d8e3e5 var(--grain); border-color:#bdcbd0; }
.cv-work-card h3 { font-weight:700; }
.cv-tags { gap:8px; margin-bottom:21px; letter-spacing:1.1px; }
.cv-tags span { background:#e6ef65; padding:2px 7px; font-size:10px; transform:rotate(-2deg); }
.cv-work-card dl>div { grid-template-columns:55px minmax(0,1fr); }
.cv-work-card dt { color:#707968; }
.cv-work-photos figure { padding:8px; background:#fffdf6; box-shadow:2px 3px 7px #2c382923; }
.cv-work-photos img { border-radius:0; }
.cv-footer { border:0; font-size:12px; }
@media(max-width:950px) {
  .cv-hero-content { padding:49px 280px 52px 40px; }
  .cv-hero h1 { font-size:56px; }
  .cv-hero-art { width:280px; height:330px; right:0; top:58px; }
  .cv-logo-note { width:190px; left:45px; }
  .cv-blue-scrap { width:195px; height:213px; left:50px; }
  .cv-body { padding-inline:30px; }
  .cv-intro-grid { gap:32px; }
}
@media(max-width:650px) {
  .cv-hero { width:calc(100% - 20px); }
  .cv-hero-content { padding:37px 26px 39px; min-height:0; }
  .cv-hero h1 { font-size:clamp(42px,9vw,58px); letter-spacing:-2px; }
  .cv-subtitle { font-size:16px; }
  .cv-hero-art { position:relative; top:auto; right:auto; width:260px; height:300px; margin:-24px 12px 4px auto; }
  .cv-logo-note { width:173px; left:45px; top:28px; }
  .cv-blue-scrap { width:178px; height:199px; left:51px; top:44px; }
  .cv-doodles { height:280px; }
  .cv-body { padding:34px 22px 0; margin-top:26px; }
  .cv-intro-grid { grid-template-columns:1fr; gap:35px; }
  .cv-intro-heading { font-size:29px; }
  .cv-profile-block:first-child { transform:rotate(-.6deg); }
  .cv-section { padding-block:30px 35px; }
  .cv-work-card { padding:23px; }
  .cv-filters { gap:8px 10px; }
}
@media print {
  body,.cv-body,.cv-work-card,.cv-skill-card { background:white; }
  .cv-hero { filter:none; width:100%; }
  .cv-hero::before,.cv-body::before,.cv-tape { display:none; }
  .cv-hero-content { padding:20px 0; min-height:0; }
  .cv-body { margin-top:0; padding:20px 0; }
  .cv-body,.cv-profile-block:first-child,.cv-work-card,.cv-skill-card { box-shadow:none; transform:none; }
}
