/* V71 — Biblioteca visual: reemplaza el montaje de escritorio por Sara recortada y accesos útiles. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
.home-library-v71{
  --lib-ink:#342044;--lib-purple:#6f35ee;--lib-lilac:#cbb0f2;--lib-muted:#6c5c72;--lib-cream:#fbf4ed;
  position:relative;isolation:isolate;overflow:hidden;
  padding:clamp(36px,4vw,64px) 0 clamp(58px,5vw,76px);
  background:linear-gradient(112deg,#fffaf5 0%,#fbf3ed 49%,#f4eaf7 100%);
  color:var(--lib-ink);font-family:'DM Sans',sans-serif;
}
.home-library-v71:before{
  content:"";position:absolute;z-index:-1;width:620px;height:620px;border-radius:50%;
  right:3%;top:-245px;background:radial-gradient(circle,#e7d5f5 0%,#eadcf2 48%,#f3e9f2 70%,transparent 71%);
  opacity:.72;pointer-events:none;
}
.home-library-v71:after{
  content:"";position:absolute;z-index:-1;left:-4%;right:-4%;bottom:-76px;height:118px;
  background:linear-gradient(100deg,#39204d,#64417b 75%,#7b5790);
  border-radius:50% 50% 0 0 / 38% 38% 0 0;transform:rotate(-1.3deg);pointer-events:none;
}
.home-library-v71__hero{
  position:relative;width:min(1390px,calc(100% - 8%));margin:0 auto;
  min-height:clamp(390px,31vw,470px);display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  align-items:center;gap:clamp(12px,3vw,46px);
}
.home-library-v71__copy{position:relative;z-index:3;max-width:590px;padding:8px 0 34px 0}
.home-library-v71__eyebrow{display:flex;align-items:center;gap:14px;margin:0 0 24px;color:#4d3567;text-transform:uppercase;letter-spacing:.24em;font-size:12px;font-weight:800}
.home-library-v71__eyebrow span{display:block;width:40px;height:1px;background:#a88bd5}
.home-library-v71__copy h2{margin:0 0 18px;font-family:'Playfair Display',Georgia,serif;font-weight:600;font-size:clamp(48px,4.7vw,72px);line-height:.98;letter-spacing:-.055em;color:#352044}
.home-library-v71__copy h2 em{font-weight:500;color:#9d7ac7}
.home-library-v71__intro{max-width:520px;margin:0 0 25px;color:#50425e;font-size:clamp(15px,1.15vw,18px);line-height:1.65}
.home-library-v71__cta{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:58px;padding:0 28px;border-radius:999px;background:linear-gradient(110deg,#43206b,#6330aa);box-shadow:0 12px 25px #4c277b26;color:#fff;text-decoration:none;font-weight:700;font-size:15px;transition:transform .2s,box-shadow .2s}
.home-library-v71__cta span{font-size:22px;line-height:1}
.home-library-v71__cta:hover{transform:translateY(-2px);box-shadow:0 16px 30px #4c277b35}
.home-library-v71__visual{position:relative;align-self:stretch;min-width:0;min-height:400px;display:flex;align-items:flex-end;justify-content:center;overflow:visible}
.home-library-v71__visual img{position:relative;z-index:2;display:block;width:min(100%,560px);height:clamp(390px,34vw,500px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 16px 20px #38214212)}
.home-library-v71__orb{position:absolute;border-radius:50%;pointer-events:none}
.home-library-v71__orb--large{width:min(34vw,420px);aspect-ratio:1;right:8%;top:8%;background:linear-gradient(145deg,#e8d8f5,#f4e8ee);box-shadow:inset 0 0 0 1px #fff9}
.home-library-v71__orb--small{width:110px;height:110px;right:0;top:26%;background:#f6dfca;opacity:.75}
.home-library-v71__spark{position:absolute;z-index:3;color:#8552c8;font-size:30px;line-height:1}
.home-library-v71__spark--one{top:18%;right:8%}.home-library-v71__spark--two{top:39%;left:47%;font-size:20px;color:#b38edb}
.home-library-v71__categories{position:relative;z-index:4;width:min(1460px,calc(100% - 7%));margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.home-library-v71__category{position:relative;display:grid;grid-template-columns:minmax(84px,.72fr) minmax(0,1.28fr);gap:14px;align-items:center;min-width:0;min-height:226px;padding:18px 17px;border:1px solid #e8dce9;border-radius:24px;background:linear-gradient(145deg,#fffaf7ed,#f2e7f3e8);box-shadow:0 12px 28px #39204d0a;color:inherit;text-decoration:none;overflow:hidden;transition:transform .22s,border-color .22s,box-shadow .22s}
.home-library-v71__category:before{content:"";position:absolute;width:125px;height:125px;left:-38px;bottom:-58px;border-radius:50%;background:#e5d6f2;opacity:.58;pointer-events:none}
.home-library-v71__category:hover{transform:translateY(-4px);border-color:#c9b1e4;box-shadow:0 18px 32px #39204d13}
.home-library-v71__art{position:relative;z-index:1;display:grid;place-items:center;align-self:center;width:100%;height:155px;border-radius:18px;background:linear-gradient(145deg,#eee2fa,#e2d3ef);overflow:hidden}
.home-library-v71__art svg{display:block;width:100%;height:100%;padding:6px;filter:drop-shadow(0 8px 7px #3e23511a)}
.home-library-v71__art--cover{background:linear-gradient(145deg,#e8d9f7,#f8edf7)}
.home-library-v71__art--cover img{height:145px;width:auto;max-width:90%;object-fit:contain;filter:drop-shadow(0 8px 9px #29133830);transform:rotate(-5deg)}
.home-library-v71__category-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.home-library-v71__category-copy small{display:inline-flex;margin:0 0 12px;padding:6px 11px;border-radius:999px;background:#eee3f8;color:#8257b6;text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:800}
.home-library-v71__category-copy strong{display:block;margin:0 0 9px;color:#342044;font-family:'Playfair Display',Georgia,serif;font-size:clamp(17px,1.4vw,22px);font-weight:600;line-height:1.13;letter-spacing:-.025em}
.home-library-v71__category-copy>span{display:block;color:#6b5b72;font-size:13px;line-height:1.45;margin-bottom:15px}
.home-library-v71__category-copy b{display:inline-flex;align-items:center;gap:8px;margin-top:auto;color:#43206b;font-size:13px;font-weight:800;border-bottom:1px solid #aa8cc8;padding-bottom:3px}
.home-library-v71__category-copy b i{font-style:normal;font-size:17px;transition:transform .2s}
.home-library-v71__category:hover .home-library-v71__category-copy b i{transform:translateX(3px)}
@media(max-width:1100px){
 .home-library-v71__hero{grid-template-columns:minmax(0,1fr) minmax(0,.85fr);width:calc(100% - 7%);min-height:390px}
 .home-library-v71__copy h2{font-size:clamp(46px,5.3vw,62px)}
 .home-library-v71__visual img{height:410px}
 .home-library-v71__categories{grid-template-columns:repeat(2,minmax(0,1fr));width:calc(100% - 7%)}
 .home-library-v71__category{min-height:205px;grid-template-columns:125px minmax(0,1fr)}
}
@media(max-width:650px){
 .home-library-v71{padding:36px 0 76px}
 .home-library-v71:before{width:360px;height:360px;right:-120px;top:70px;opacity:.65}
 .home-library-v71:after{bottom:-83px;height:110px}
 .home-library-v71__hero{display:flex;flex-direction:column;align-items:stretch;gap:0;width:calc(100% - 34px);min-height:unset}
 .home-library-v71__copy{padding:0;max-width:none}
 .home-library-v71__eyebrow{font-size:10px;letter-spacing:.19em;margin-bottom:16px}
 .home-library-v71__copy h2{font-size:clamp(43px,12vw,58px);line-height:1}
 .home-library-v71__intro{font-size:15px;line-height:1.6;max-width:480px;margin-bottom:19px}
 .home-library-v71__cta{min-height:52px;padding:0 22px;font-size:14px}
 .home-library-v71__visual{min-height:0;height:320px;margin-top:0;overflow:visible}
 .home-library-v71__visual img{height:355px;width:min(100%,390px);margin:0 auto;object-position:center bottom}
 .home-library-v71__orb--large{width:260px;right:7%;top:8%}
 .home-library-v71__orb--small{width:70px;height:70px;right:3%;top:27%}
 .home-library-v71__spark--one{top:7%;right:8%;font-size:22px}
 .home-library-v71__spark--two{top:35%;left:14%;font-size:17px}
 .home-library-v71__categories{grid-template-columns:1fr;width:calc(100% - 34px);gap:12px;margin-top:15px}
 .home-library-v71__category{min-height:172px;grid-template-columns:112px minmax(0,1fr);gap:14px;padding:15px;border-radius:20px}
 .home-library-v71__art{height:140px;border-radius:15px}
 .home-library-v71__art--cover img{height:132px}
 .home-library-v71__category-copy small{font-size:9px;margin-bottom:8px}
 .home-library-v71__category-copy strong{font-size:19px;margin-bottom:7px}
 .home-library-v71__category-copy>span{font-size:12px;margin-bottom:9px}
 .home-library-v71__category-copy b{font-size:12px}
}
@media(max-width:380px){
 .home-library-v71__category{grid-template-columns:90px minmax(0,1fr);gap:10px;padding:12px}
 .home-library-v71__art{height:124px}
 .home-library-v71__category-copy strong{font-size:17px}
 .home-library-v71__visual{height:290px}
 .home-library-v71__visual img{height:325px}
}
