/* ==== Sobre mí ==== */
/* The Biblioteca's language: a hero card over an image, figures, doors with stacked covers and glass panels. */
.about-main.site-main { display:block; max-width:1320px; }
.ab {
 --ab-violet:#9d7bff; --ab-soft:#c6b3ff; --ab-line:#ffffff17; --ab-glass:linear-gradient(160deg,#ffffff0d,#ffffff03 60%); --ab-ease:cubic-bezier(.22,.8,.2,1);
 color:#eeeae3; font-family:system-ui,-apple-system,"Segoe UI",sans-serif; line-height:1.6;
}
.ab *,.ab *::before,.ab *::after { box-sizing:border-box; }
.ab a { color:inherit; text-decoration:none; }
.ab :focus-visible { outline:2px solid #d8b7ff; outline-offset:4px; }

/* ---- Hero ---- */
.ab-top {
 position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:center; min-height:clamp(460px,44vw,600px);
 margin:0 0 22px; padding:clamp(26px,3.6vw,54px); border:1px solid var(--ab-line); border-radius:28px; overflow:hidden;
 background:#0b0b10; box-shadow:0 30px 70px #0007,inset 0 1px 0 #ffffff12;
}
.ab-top::before {
 content:""; position:absolute; inset:0; z-index:-2;
 background:radial-gradient(ellipse 34% 60% at 72% 40%,#6e52be4d,transparent 100%),radial-gradient(ellipse 24% 42% at 22% 50%,#7c5cff1c,transparent 100%);
}
/* The portrait sits to the right, so the person in it clears the text. */
.ab-top.has-image::before { inset:0 0 0 24%; background:var(--ab-image) center/cover no-repeat; }
.ab-top.has-image::after {
 content:""; position:absolute; inset:0; z-index:-1;
 background:linear-gradient(90deg,#0b0b10 0%,#0b0b10 24%,#0b0b10e6 36%,#0b0b1099 50%,#0b0b1026 72%,#0b0b1040 100%),linear-gradient(0deg,#0b0b10cc 0%,transparent 40%);
}
.ab-top-copy { max-width:min(520px,46%); }
.ab-eyebrow { margin:0 0 14px; font-size:11px; font-weight:600; letter-spacing:2.4px; text-transform:uppercase; color:var(--ab-soft); }
.about-main .ab-top h1 { margin:0; max-width:none; font:700 clamp(34px,3.9vw,54px)/1.04 system-ui,-apple-system,"Segoe UI",sans-serif; letter-spacing:-.05em; color:#f7f3ff; text-wrap:balance; }
.ab-top h1 em { font-style:normal; background:linear-gradient(90deg,#b9a2ff,#8f6bff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.about-main .ab-intro { max-width:40ch; margin:18px 0 30px; font-size:16px; line-height:1.55; color:#c9c2d6; }
.ab-stats { display:flex; margin:0; padding:0; list-style:none; }
.ab-stats li { display:flex; flex-direction:column; margin:0; padding:0 clamp(12px,1.7vw,28px); border-left:1px solid var(--ab-line); }
.ab-stats li:first-child { padding-left:0; border-left:0; }
.ab-stats strong { font-size:clamp(26px,2.7vw,36px); font-weight:700; line-height:1; letter-spacing:-.04em; color:#fff; }
.ab-stats span { margin-top:9px; font-size:14px; line-height:1.3; color:#c5bed2; white-space:nowrap; overflow-wrap:normal; word-break:normal; hyphens:none; }
.ab-mark { position:absolute; z-index:1; right:clamp(22px,3.6vw,54px); top:clamp(20px,2.6vw,36px); display:flex; align-items:baseline; gap:10px; font-size:clamp(22px,2.2vw,30px); font-weight:700; line-height:1; letter-spacing:-.03em; color:#ffffffb3; }
.ab-mark small { font:600 10.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.28em; text-transform:uppercase; color:#ffffff80; }
/* What I am on right now, from the header's states. */
.ab-now {
 position:absolute; right:clamp(22px,3.6vw,54px); bottom:clamp(22px,3vw,44px); display:flex; align-items:center; gap:14px; max-width:340px; padding:10px 20px 10px 10px;
 border:1px solid #e6d5ff3d; border-radius:22px; background:linear-gradient(120deg,#ffffff24,#ffffff05 40%,#b98bff1c),rgba(20,16,32,.66);
 box-shadow:inset 0 1px 1px #ffffff70,0 18px 44px #0007; -webkit-backdrop-filter:blur(22px) saturate(170%); backdrop-filter:blur(22px) saturate(170%);
 transition:transform .5s var(--ab-ease),border-color .3s;
}
a.ab-now:hover { transform:translateY(-3px); border-color:#9d7bff99; }
.ab-now img { flex:none; width:64px; height:64px; border-radius:14px; object-fit:cover; box-shadow:0 0 0 1px #ffffff33; }
.ab-now span { display:flex; flex-direction:column; min-width:0; }
.ab-now small { display:flex; align-items:center; gap:7px; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--ab-soft); }
.ab-now small i { width:7px; height:7px; border-radius:50%; background:#efff00; box-shadow:0 0 10px #efff0099; }
.ab-now strong { margin-top:3px; font-size:19px; font-weight:700; letter-spacing:-.03em; line-height:1.2; color:#fff; }
.ab-now em { font-style:normal; font-size:13px; color:#c5bed2; }

/* ---- Doors ---- */
.ab-doors { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:0 0 34px; }
.ab-door {
 display:grid; grid-template-columns:minmax(130px,.8fr) minmax(0,1fr); gap:24px; align-items:center; min-height:176px; padding:20px 26px 20px 22px; overflow:hidden;
 border:1px solid var(--ab-line); border-radius:22px; background:var(--ab-glass); box-shadow:inset 0 1px 0 #ffffff0f;
 transition:border-color .3s ease,transform .5s var(--ab-ease);
}
.ab-door:hover,.ab-door:focus-visible { border-color:#9d7bff66; transform:translateY(-2px); }
.ab-stack { position:relative; display:block; height:132px; }
.ab-stack img { position:absolute; bottom:0; left:0; width:auto; height:100%; aspect-ratio:4/5; object-fit:cover; border-radius:10px; box-shadow:0 12px 26px #0009,inset 0 0 0 1px #ffffff26; transform-origin:bottom left; transition:transform .5s var(--ab-ease); }
.ab-door--library .ab-stack img { aspect-ratio:2/3; border-radius:3px; }
.ab-stack img:nth-child(1) { z-index:3; }
.ab-stack img:nth-child(2) { z-index:2; left:26%; transform:scale(.92) rotate(4deg); }
.ab-stack img:nth-child(3) { z-index:1; left:52%; transform:scale(.84) rotate(8deg); }
.ab-door:is(:hover,:focus-visible) .ab-stack img:nth-child(1) { transform:translateY(-4px); }
.ab-door:is(:hover,:focus-visible) .ab-stack img:nth-child(2) { transform:translateX(10px) scale(.92) rotate(5deg); }
.ab-door:is(:hover,:focus-visible) .ab-stack img:nth-child(3) { transform:translateX(20px) scale(.84) rotate(10deg); }
.ab-stack b { display:grid; place-items:center; height:100%; aspect-ratio:4/5; border:1px solid #9d7bff59; border-radius:10px; background:radial-gradient(ellipse at 50% 30%,#3a246680,#0b0911); font:500 30px/1 ui-monospace,SFMono-Regular,Menlo,monospace; color:#bb91ff; text-shadow:0 0 18px #b882ff80; }
.ab-door-copy { display:flex; flex-direction:column; min-width:0; }
.ab-door-title { display:flex; align-items:center; gap:14px; font-size:clamp(24px,2.4vw,32px); font-weight:650; line-height:1.1; letter-spacing:-.035em; color:#f4f1f8; }
.ab-door-title i { display:grid; place-items:center; flex:none; width:34px; height:34px; border:1px solid #ffffff40; border-radius:50%; transition:background-color .3s,border-color .3s,transform .5s var(--ab-ease); }
.ab-door-title svg { width:15px; height:15px; }
.ab-door:is(:hover,:focus-visible) .ab-door-title i { background:var(--ab-violet); border-color:var(--ab-violet); transform:translateX(4px); }
.ab-door-count { margin:6px 0 10px; font-size:14px; font-weight:500; color:var(--ab-soft); }
.ab-door-text { font-size:13.5px; line-height:1.5; color:#aaa3b6; }

/* ---- Chapter index ---- */
.ab-index { display:flex; gap:4px; margin:0 0 34px; padding:6px; border:1px solid var(--ab-line); border-radius:999px; background:var(--ab-glass); overflow-x:auto; scrollbar-width:none; }
.ab-index::-webkit-scrollbar { display:none; }
.ab-index a { display:flex; align-items:center; gap:9px; flex:none; min-height:40px; padding:0 16px; border-radius:999px; font-size:13.5px; font-weight:600; color:#d9d2e6; white-space:nowrap; transition:background-color .25s,color .25s; }
.ab-index a:hover,.ab-index a:focus-visible { background:#ffffff14; color:#fff; }
.ab-index small { font:600 10.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.08em; color:var(--ab-soft); }

/* ---- Chapters ---- */
.ab-chapters { display:grid; gap:22px; }
.ab-chapter {
 position:relative; display:grid; gap:clamp(24px,4vw,64px); align-items:center; padding:clamp(28px,4.4vw,64px); scroll-margin-top:96px;
 border:1px solid var(--ab-line); border-radius:28px; background:var(--ab-glass); box-shadow:inset 0 1px 0 #ffffff0f;
}
.ab-chapter.has-media { grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); }
.ab-chapter.has-media:nth-child(even) { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
.ab-chapter.has-media:nth-child(even) .ab-chapter-media { order:-1; }
.ab-chapter-mark { position:absolute; right:clamp(22px,3vw,40px); top:clamp(18px,2.4vw,30px); display:flex; align-items:baseline; gap:8px; font-size:20px; font-weight:700; line-height:1; letter-spacing:-.03em; color:#ffffff66; }
.ab-chapter.has-media:nth-child(even) .ab-chapter-mark { right:auto; left:clamp(22px,3vw,40px); }
.ab-chapter-mark small { font:600 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.28em; text-transform:uppercase; color:#ffffff4d; }
.ab-chapter-copy { min-width:0; }
.ab-chapter-copy > :first-child { margin-top:0; }
.ab-chapter-copy > :last-child { margin-bottom:0; }
.about-main .ab-chapter h2 { margin:0 0 18px; padding:0; font:700 clamp(26px,2.9vw,40px)/1.08 system-ui,-apple-system,"Segoe UI",sans-serif; letter-spacing:-.045em; color:#f7f3ff; text-align:left; text-wrap:balance; }
.about-main .ab-chapter p { max-width:60ch; margin:0 0 1em; font-size:16.5px; line-height:1.7; color:#c9c2d6; text-align:left; }
.about-main .ab-chapter.is-lead p:first-child { font-size:clamp(20px,2vw,27px); line-height:1.4; letter-spacing:-.025em; color:#f4f1f8; }
.ab-chapter-copy a:not([href^="mailto:"]) { color:var(--ab-soft); text-decoration:underline; text-decoration-color:#9d7bff66; text-underline-offset:.2em; }
.ab-chapter-media { margin:0; display:grid; place-items:center; }
.ab-chapter-media img { display:block; width:min(100%,400px); height:auto; aspect-ratio:1; object-fit:cover; border-radius:22px; border:1px solid #ffffff26; box-shadow:0 30px 60px #0009,0 0 80px #7c5cff26; transform:rotate(2deg); transition:transform .7s var(--ab-ease); }
.ab-chapter.has-media:nth-child(even) .ab-chapter-media img { transform:rotate(-2deg); }
.ab-chapter:hover .ab-chapter-media img { transform:none; }
/* A list becomes a set of tiles. */
.ab-chapter-copy ul.wp-block-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; margin:18px 0 0; padding:0; list-style:none; }
.ab-chapter-copy ul.wp-block-list li { position:relative; margin:0; padding:13px 16px 13px 36px; border:1px solid var(--ab-line); border-radius:14px; background:#ffffff08; font-size:14px; line-height:1.5; color:#d9d2e6; }
.ab-chapter-copy ul.wp-block-list li::before { content:""; position:absolute; left:16px; top:20px; width:8px; height:8px; border-radius:50%; background:var(--ab-violet); box-shadow:0 0 10px #9d7bff99; }
/* Latest articles as rows. */
.ab-chapter-copy .wp-block-latest-posts { float:none; margin:18px 0 0; padding:0; list-style:none; border-top:1px solid var(--ab-line); }
.ab-chapter-copy .wp-block-latest-posts li { margin:0; border-bottom:1px solid var(--ab-line); }
.ab-chapter-copy .wp-block-latest-posts a:not([href^="mailto:"]) { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 2px; font-size:15px; font-weight:600; line-height:1.4; color:#eeeae3; text-decoration:none; transition:color .25s,padding .5s var(--ab-ease); }
.ab-chapter-copy .wp-block-latest-posts a::after { content:"→"; flex:none; color:var(--ab-soft); }
.ab-chapter-copy .wp-block-latest-posts a:hover { padding-left:10px; color:#fff; }
/* A biography written as one HTML block (.fa-*): its wrappers dissolve and its cards take the page's tiles. */
.ab-chapter-copy :is(.fa-wrap,.fa-heading),.ab-chapter.is-contact .fa-wrap > div { display:contents; }
.ab-chapter-copy :is(.fa-grid,.fa-trio) { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:14px; margin:24px 0 0; }
.ab-chapter-copy :is(.fa-card,.fa-trio > div) { display:flex; flex-direction:column; align-items:flex-start; padding:24px; border:1px solid var(--ab-line); border-radius:20px; background:#ffffff08; box-shadow:inset 0 1px 0 #ffffff0f; transition:border-color .3s,transform .5s var(--ab-ease); }
.ab-chapter-copy .fa-card:hover { border-color:#9d7bff66; transform:translateY(-2px); }
.ab-chapter-copy .fa-status { margin-bottom:14px; padding:5px 11px; border:1px solid #9d7bff59; border-radius:999px; font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ab-soft); }
.about-main .ab-chapter-copy :is(.fa-card,.fa-trio) h3 { margin:0 0 8px; font-size:21px; font-weight:700; line-height:1.15; letter-spacing:-.035em; color:#f7f3ff; }
.about-main .ab-chapter :is(.fa-card,.fa-trio) p { margin:0; font-size:14.5px; line-height:1.6; color:#b9b1c9; }
.ab-chapter-copy .fa-card a:not([href^="mailto:"]) { margin-top:auto; padding-top:18px; font-size:14px; font-weight:600; color:var(--ab-soft); text-decoration:none; }
.ab-chapter-copy .fa-card a:hover { color:#fff; }
.about-main .ab-chapter p.fa-personal { max-width:62ch; margin:26px 0 0; padding-left:18px; border-left:2px solid var(--ab-violet); font-size:18px; line-height:1.55; letter-spacing:-.015em; color:#eeeae3; }
.ab-chapter-copy a.fa-small-link:not([href^="mailto:"]) { display:inline-flex; align-items:center; min-height:42px; margin-top:24px; padding:0 18px; border:1px solid #ffffff40; border-radius:999px; font-size:13.5px; font-weight:600; color:#f4f1f8; text-decoration:none; transition:border-color .3s,background-color .3s; }
.ab-chapter-copy a.fa-small-link:hover { border-color:#9d7bff99; background:#ffffff0f; }
.ab-chapter-copy .ab-eyebrow { margin-bottom:12px; }
/* Contact closes the page as a call. */
.ab-chapter.is-contact { justify-items:center; text-align:center; background:radial-gradient(ellipse 60% 120% at 50% 120%,#7c5cff40,transparent 70%),var(--ab-glass); }
.about-main .ab-chapter.is-contact h2,.about-main .ab-chapter.is-contact p { margin-inline:auto; text-align:center; }
.ab-chapter.is-contact a[href^="mailto:"] {
 display:flex; align-items:center; width:max-content; max-width:100%; min-height:50px; margin:18px auto 0; padding:0 26px; border-radius:999px;
 background:linear-gradient(130deg,#b9a2ff,#8f6bff); color:#120a20; font-size:16px; font-weight:700; letter-spacing:-.01em;
 box-shadow:0 14px 34px #7c5cff59,inset 0 1px 0 #ffffff80; transition:transform .5s var(--ab-ease),box-shadow .3s;
}
.ab-chapter.is-contact a[href^="mailto:"]:hover { transform:translateY(-3px); box-shadow:0 20px 44px #7c5cff80,inset 0 1px 0 #ffffff80; }

@media (max-width:900px) {
 .ab-top { min-height:0; justify-content:flex-start; padding-top:clamp(210px,52vw,330px); }
 .ab-top.has-image::before { inset:0 0 auto 0; height:clamp(220px,56vw,360px); background-position:center 30%; }
 .ab-top.has-image::after { background:linear-gradient(0deg,#0b0b10 0%,#0b0b10 calc(100% - clamp(220px,56vw,360px)),#0b0b1000 calc(100% - clamp(220px,56vw,360px) + 140px)),linear-gradient(180deg,#0b0b1080,transparent 90px); }
 .ab-top-copy { max-width:none; }
 .ab-now { position:static; align-self:flex-start; margin-top:26px; max-width:100%; }
 .ab-stats { justify-content:space-between; }
 .ab-stats span { white-space:normal; font-size:12.5px; }
 .ab-doors { grid-template-columns:1fr; gap:14px; }
 .ab-chapter.has-media,.ab-chapter.has-media:nth-child(even) { grid-template-columns:1fr; }
 .ab-chapter.has-media:nth-child(even) .ab-chapter-media { order:0; }
 .ab-chapter.has-media:nth-child(even) .ab-chapter-mark { left:auto; right:clamp(22px,3vw,40px); }
 .ab-chapter { padding-top:54px; }
 .ab-chapter-media img { width:min(100%,340px); }
 .ab-index { border-radius:24px; }
}
@media (max-width:560px) {
 .ab-door { grid-template-columns:128px minmax(0,1fr); gap:16px; min-height:0; padding:16px; }
 .ab-stack { height:100px; }
 .ab-stack img:nth-child(2) { left:17%; }
 .ab-stack img:nth-child(3) { left:34%; }
 .ab-door-text { display:none; }
 .ab-door-title { font-size:22px; gap:10px; }
 .ab-door-title i { width:30px; height:30px; }
 .ab-stats li { padding-inline:9px; }
 .ab-stats strong { font-size:24px; }
 .ab-stats span { font-size:11.5px; }
 .ab-mark { display:none; }
 .about-main .ab-chapter p { font-size:16px; }
}
@media (prefers-reduced-motion:reduce) { .ab *,.ab *::before,.ab *::after { transition:none!important; } .ab-chapter-media img { transform:none!important; } }
@media (prefers-reduced-transparency:reduce) { .ab-now { -webkit-backdrop-filter:none; backdrop-filter:none; background:#1a1526; } }
