/* Lenguaje editorial del universo El Herbario de la Curandera. */
:root{
  --paper:#f8f4e9;--white:#fffdf7;--ink:#263b2b;--dark:#203a2b;
  --olive:#6b7951;--sage:#e5e9d9;--trim:#d9d1bf;--copper:#a66a3b;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--ink);background:var(--paper)
}
body{background:radial-gradient(circle at 75% -5%,#e9e5d5 0,transparent 36%),var(--paper)}
h1,h2,h3{color:#263a26;font-family:Georgia,"Times New Roman",serif}
button,a,input,select{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{
  outline:3px solid #a66a3b;outline-offset:3px
}
header{background:#f8f4e9;color:var(--ink);border:0;border-bottom:1px solid #e3dccd}
header .bar{min-height:84px}
.brand{text-transform:uppercase;letter-spacing:.13em;font:600 clamp(1rem,1.4vw,1.28rem)/1.25 Georgia,serif}
.brand .leaf{display:inline-grid;place-items:center;width:43px;height:43px;font:32px Georgia,serif;color:#627550;border-right:1px solid #ae7b4f;padding-right:15px;margin-right:5px}
.account{border:1px solid #d9d3c3;color:var(--ink);background:#efede1;border-radius:99px;font-size:.88rem}
.account:hover{background:#e3e7d6}
body>.wrap>.notice{margin:12px auto 0;background:#efeee4;border-left:2px solid #a67a4f;color:#5e6356;font-size:.82rem;padding:7px 11px;max-width:1240px}
.layout{grid-template-columns:205px minmax(0,1fr);gap:clamp(23px,4vw,64px)}
main{padding-top:38px;max-width:1030px}
nav{margin-top:45px;display:block;top:22px;max-height:calc(100vh - 38px);overflow:auto}
.nav-group{display:grid;gap:3px;margin-bottom:23px}
.nav-caption{font-size:.68rem;letter-spacing:.17em;color:#9a6941;font-weight:750;padding:0 12px 10px}
nav a{display:flex;align-items:center;min-height:44px;gap:12px;border-radius:11px;font-size:.92rem;color:#4a5a49}
nav .glyph{width:19px;height:19px}
nav a:hover{background:#ececde}
nav a[aria-current=page]{background:#e3e9d8;color:#253e2d;box-shadow:inset 3px 0 #78916b}
.nav-secondary{border-top:1px solid #dfd8c9;padding-top:18px}
.eyebrow{font-size:.7rem;letter-spacing:.19em;text-transform:uppercase;color:#a56d40;font-weight:750;margin:0 0 8px}
.home-heading{position:relative;padding:8px 0 15px;margin-bottom:12px;isolation:isolate}
.home-heading:after{content:"";position:absolute;right:0;top:-38px;width:180px;height:170px;background:url("images/p21.webp") center/cover;border-radius:80px 0 80px 0;opacity:.12;filter:saturate(.8);z-index:-1}
.home-heading h1{font-size:clamp(3rem,6vw,5.35rem);letter-spacing:-.055em;margin:0}
.home-heading>p:last-child{font-size:clamp(1rem,1.9vw,1.23rem);color:#64685b;margin:1px 0 0}
.feature-book{position:relative;min-height:340px;border-radius:25px;overflow:hidden;display:flex;align-items:center;background:#233725;color:#fffaf1;isolation:isolate;box-shadow:0 14px 32px #3445291c}
.feature-book>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% center;z-index:-2}
.feature-book:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#172b1bef 0%,#172b1bdb 38%,#172b1b45 67%,transparent);z-index:-1}
.feature-copy{padding:clamp(26px,5vw,57px);width:min(65%,600px)}
.feature-copy .eyebrow{color:#e3bf90}
.feature-copy h2{color:#fff9ea;font-size:clamp(2.4rem,5vw,4.3rem);letter-spacing:-.055em;line-height:1.02;margin:0 0 .25em}
.feature-copy p{color:#f3e9d6;max-width:36ch;margin:0 0 20px}
.feature-copy .primary{background:#73835b;border:1px solid #b1bd96;color:#fff;border-radius:30px;padding:11px 24px;min-height:48px}
.feature-copy .primary:hover{background:#82946b}
.home-finder{position:relative;display:flex;align-items:center;border:1px solid #c7c6b5;background:#fffcf5;border-radius:40px;margin:24px 0 16px;min-height:62px;box-shadow:0 2px 10px #5a604313}
.home-finder label{padding:0 20px;color:#536747}
.home-finder .glyph{width:21px;height:21px}
.home-finder input{border:0;background:transparent;width:100%;font-size:1.04rem;min-height:60px;padding:12px 18px 12px 0;outline:none}
.home-finder input:focus-visible{outline:3px solid #a66a3b;border-radius:40px}
.home-matches:not(:empty){position:absolute;z-index:5;top:calc(100% + 7px);left:12px;right:12px;border:1px solid var(--trim);border-radius:16px;background:#fffdf8;box-shadow:0 12px 27px #243b2a2c;display:grid;padding:8px}
.search-result{border:0;text-align:left;background:transparent;min-height:44px;font-size:.9rem;font-weight:500}
.search-result:hover{background:#e9ebdc}
.home-explore{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.explore-tile{overflow:hidden;position:relative;display:flex;align-items:center;justify-content:space-between;min-height:120px;padding:18px 23px;border:1px solid #dcdcca;border-radius:20px;text-align:left;background:#e8eadb}
.explore-tile img{position:absolute;right:0;top:0;width:44%;height:100%;object-fit:cover;opacity:.28;mask-image:linear-gradient(90deg,transparent,#000 50%)}
.recipes-tile{background:#efe4d7;border-color:#e5d7c6}
.explore-tile span,.explore-tile b{position:relative;z-index:1}
.explore-tile small{display:block;font-size:.78rem;color:#647059;margin-bottom:4px}
.explore-tile strong{font:2rem Georgia,serif;color:#263a26}
.explore-tile b{font:1.6rem sans-serif;font-weight:300}
.explore-tile:hover{transform:translateY(-2px);border-color:#b2bba0}
.home-section{margin-top:42px}
.home-section .sectionhead,.future-section .sectionhead{align-items:end;border:0;margin:0;padding:0}
.home-section .sectionhead h2,.future-section h2{font-size:clamp(2rem,3vw,2.65rem);letter-spacing:-.045em;margin:0}
.home-section .sectionhead .link{color:#805a3b;text-decoration:none;font-size:.9rem}
.section-note{color:#6a6e60;margin:7px 0 17px}
.books{gap:13px}
.grid.books.home-books{grid-template-columns:repeat(3,minmax(0,1fr))}
.book-card{padding:0;overflow:hidden;align-items:stretch;background:#fffdf7;border:1px solid #e1daca;border-radius:17px;box-shadow:0 6px 20px #5547270c}
.book-card .cover,.books .book-card .cover{margin:0;aspect-ratio:1.55;background:radial-gradient(circle at 50% 20%,#f4efe0,#e4e0ce);border:0;border-radius:0}
.book-card .cover img,.books .book-card .cover img{height:89%;max-width:85%;width:auto;object-fit:contain;box-shadow:2px 7px 15px #283a3030}
.book-copy{padding:15px 17px 18px;display:flex;flex:1;flex-direction:column;align-items:flex-start}
.book-card h3{font-size:clamp(1.1rem,1.5vw,1.4rem);margin:10px 0 3px;line-height:1.16}
.book-card .meta{font-size:.79rem;margin:2px 0 14px}
.book-card .actions{margin-top:auto}
.book-card .btn,.book-card .primary{border-radius:25px;min-height:40px;padding:7px 15px;font-size:.85rem;background:#2b4934;color:#fff}
.access-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:20px;font-size:.69rem;font-weight:700;line-height:1.25;letter-spacing:.01em}
.access-badge.included{background:#e2e9d7;color:#355239}
.access-badge.purchased{background:#e5e0cc;color:#615d35}
.access-badge.locked{background:#eee7db;color:#8b613d}
.access-badge.pending{background:#f2eee7;color:#776a5d}
.personal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.personal-tile{display:grid;justify-items:start;gap:5px;min-height:133px;text-align:left;padding:18px 20px;border-radius:17px;border:1px solid #d8d7c5;background:#f0f0e6}
.personal-tile:nth-child(2){background:#efe9dc}
.personal-tile .glyph{width:25px;height:25px;color:#806242}
.personal-tile strong{font:1.3rem Georgia,serif;color:#263a26}
.personal-tile span{font-size:.78rem;color:#667063}
.personal-tile:hover{background:#e5ebdc}
.discovery{padding-bottom:26px}
.discover-feature{display:grid;grid-template-columns:minmax(140px,38%) 1fr;min-height:194px;border:1px solid #dbd2bd;border-radius:20px;overflow:hidden;background:#f6f1e8}
.discover-feature>img{width:100%;height:100%;max-height:270px;object-fit:contain;background:#dcd8c7;padding:10px}
.discover-feature>div{padding:24px;align-self:center}
.discover-feature h3{font-size:clamp(1.55rem,3vw,2.4rem);margin:10px 0 5px}
.discover-feature p{font-size:.88rem;color:#586457}
.secondary{background:#31543c;color:#fff;border-color:#31543c;border-radius:25px;padding:8px 18px}
.secondary:hover{background:#46674b}
.page-intro{padding:15px 0 20px;max-width:700px}
.page-intro h1{margin:0 0 12px}
.page-intro p{color:#596a57}
.page-intro .eyebrow{color:#a56d40}
.grid.books.library-books{grid-template-columns:repeat(3,minmax(0,1fr))}
.discovery-grid,.future-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.offer-card,.future-card{padding:0;overflow:hidden;align-items:stretch;border-radius:18px}
.offer-card .cover,.future-card .cover{margin:0;aspect-ratio:1.5;background:#eee9dc;border-radius:0}
.offer-card .cover img,.future-card .cover img{height:86%;max-width:78%;object-fit:contain}
.offer-copy,.future-card>div:last-child{padding:15px 17px 18px;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.offer-card h3,.future-card h3{font-size:1.35rem;margin:12px 0 7px}
.offer-card p,.future-card p{font-size:.84rem}
.offer-card .actions,.future-card .link{margin-top:auto}
.offer-price{font-weight:700;color:#274331}
.future-section{margin-top:45px}
.future-card .cover img{box-shadow:1px 4px 12px #3546313a}
.future-card .access-badge{margin-bottom:1px}
.botanical-card{border-radius:17px;box-shadow:0 6px 20px #5547270b}
.botanical-card h3{font-size:clamp(1.35rem,2vw,1.6rem);line-height:1.18}
.botanical-card>.link{color:#8b5f38;text-decoration:none}
.controls input,.controls select{min-height:48px;border-radius:10px;background:#fffcf5}
.recipe-visual{background:#efe8da}
.recipe-visual img{object-fit:cover}
.sheet-title{background:#31533b}
.loading{padding:50px;color:#60715e}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:980px){
  .layout{grid-template-columns:175px minmax(0,1fr);gap:22px}
  .grid.books.home-books,.grid.books.library-books,.discovery-grid,.future-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  header .bar{min-height:64px}
  .brand{font-size:.9rem;letter-spacing:.08em}
  .brand .leaf{font-size:26px;width:35px;height:35px;margin-right:0;padding-right:10px}
  .account{font-size:.77rem;min-height:40px;padding:6px 10px}
  .layout{display:block}
  nav{display:none}
  main{padding:22px 0 105px}
  .home-heading:after{width:125px;height:125px;right:0;top:-18px}
  .home-heading h1{font-size:clamp(2.9rem,10vw,4rem)}
  .feature-book{min-height:310px;border-radius:20px}
  .feature-copy{width:74%;padding:27px}
  .feature-copy h2{font-size:clamp(2.3rem,7vw,3.3rem)}
  .feature-book:before{background:linear-gradient(90deg,#172b1bf5 0%,#172b1bdb 47%,#172b1b45 85%)}
  .grid.books.home-books{grid-template-columns:repeat(3,minmax(210px,1fr));overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 15px}
  .home-books .book-card{scroll-snap-align:start}
  .home-section{margin-top:34px}
  .dock:not([hidden]){background:#fffdf7;border-top:1px solid #d9d3c1;padding-bottom:max(6px,env(safe-area-inset-bottom))}
  .dock button{border-radius:11px;font-size:.72rem}
  .dock [aria-current=page]{background:#e2e9d7}
}
@media(max-width:520px){
  .wrap{padding-left:17px;padding-right:17px}
  .home-heading{padding-top:5px}
  .feature-book{min-height:286px}
  .feature-book>img{object-position:62% center}
  .feature-copy{width:83%;padding:23px}
  .feature-copy h2{font-size:clamp(2.25rem,10vw,3rem);max-width:9ch}
  .feature-copy p{display:none}
  .feature-copy .primary{margin-top:13px;font-size:.9rem}
  .home-finder{margin-top:20px;min-height:55px}
  .home-finder input{min-height:54px}
  .home-explore{gap:9px}
  .explore-tile{min-height:104px;padding:15px 12px}
  .explore-tile strong{font-size:1.45rem}
  .explore-tile small{font-size:.69rem}
  .explore-tile b{font-size:1.2rem}
  .grid.books.home-books{grid-template-columns:repeat(6,minmax(174px,55vw))}
  .personal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .personal-tile{padding:13px;min-height:117px}
  .personal-tile:last-child{grid-column:1/-1;min-height:88px}
  .discover-feature{grid-template-columns:32% 1fr;min-height:180px}
  .discover-feature>div{padding:13px}
  .discover-feature h3{font-size:1.5rem}
  .discover-feature p{display:none}
  .discover-feature .access-badge{font-size:.6rem}
  .grid.books.library-books{grid-template-columns:1fr;gap:13px}
  .discovery-grid,.future-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .library-books .book-copy,.offer-copy,.future-card>div:last-child{padding:12px}
  .book-card h3,.offer-card h3,.future-card h3{font-size:1.05rem}
  .book-card .access-badge,.offer-card .access-badge,.future-card .access-badge{font-size:.6rem}
  .offer-card .actions .secondary{font-size:.78rem;padding:8px 10px}
  .sectionhead{gap:10px}
  .home-section .sectionhead h2{font-size:2rem}
}

.books .book-card>.book-copy{margin:0}
