/* Portada BiblioDigital V2 */
.home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 18%, rgba(201, 167, 106, .25), transparent 24%),
        linear-gradient(120deg, #f5efe4 0%, #fffdf9 53%, #efe4d1 100%);
    border-bottom: 1px solid #e5dacb;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image: linear-gradient(rgba(74, 47, 37, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 47, 37, .045) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to right, #000, transparent 75%);
}

.home-hero-grid {
    position: relative;
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    align-items: center;
    gap: 76px;
    padding-top: 76px;
    padding-bottom: 76px;
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-kicker,
.section-kicker {
    color: #8a6534;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero-kicker i { margin-right: 7px; }

.home-hero h1 {
    max-width: 760px;
    margin: 17px 0 22px;
    color: #261813;
    font: 750 clamp(46px, 5.4vw, 78px)/.99 var(--font-display);
    letter-spacing: -.035em;
}

.home-hero h1 em {
    color: #8c6541;
    font-weight: 500;
}

.home-hero-copy > p {
    max-width: 650px;
    margin: 0 0 31px;
    color: #64534a;
    font-size: 17px;
    line-height: 1.75;
}

.hero-search {
    max-width: 690px;
    min-height: 59px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    padding-left: 19px;
    border: 1px solid #e2d6c6;
    border-radius: 13px;
    background: #fff;
    color: #927e70;
    box-shadow: 0 17px 45px rgba(65, 43, 34, .12);
}

.hero-search input {
    min-width: 0;
    align-self: stretch;
    border: 0;
    outline: 0;
    color: #2c1c16;
    background: transparent;
}

.hero-search button {
    align-self: stretch;
    padding: 0 23px;
    border: 0;
    border-radius: 0 12px 12px 0;
    background: #3a271f;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.hero-search button:hover { background: #563b30; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 21px;
    margin-top: 23px;
    color: #6c5d55;
    font-size: 11px;
    font-weight: 700;
}

.hero-trust i { margin-right: 6px; color: #8d6d3f; }

.hero-visual {
    position: relative;
    min-height: 470px;
}

.hero-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(114, 82, 57, .21);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-one { width: 430px; height: 430px; }
.orbit-two { width: 340px; height: 340px; border-style: dashed; }

.hero-stack {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 270px;
    height: 390px;
    transform: translate(-48%, -50%);
}

.hero-book {
    position: absolute;
    inset: 0;
    border-radius: 8px 14px 14px 8px;
    box-shadow: -8px 15px 35px rgba(38, 24, 19, .23);
}

.hero-book::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, .17);
}

.hero-book-back { background: #bd9d60; transform: translate(58px, -9px) rotate(10deg); }
.hero-book-mid { background: #426554; transform: translate(29px, -4px) rotate(5deg); }
.hero-book-front {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 65px 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(145deg, #38221b, #56372b);
    color: #eddbb0;
    text-align: center;
}

.hero-book-front i { margin-bottom: 43px; font-size: 44px; }
.hero-book-front strong { color: #fff7e9; font: 700 29px/1.25 var(--font-display); letter-spacing: .04em; }
.hero-book-front small { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(237, 219, 176, .45); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }

.hero-note {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 11px;
    background: rgba(255, 255, 255, .88);
    color: #382720;
    box-shadow: 0 15px 35px rgba(65, 43, 34, .14);
    backdrop-filter: blur(9px);
}

.hero-note i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #f1e5ce; color: #98723c; }
.hero-note span { display: grid; color: #716058; font-size: 10px; line-height: 1.2; }
.hero-note strong { color: #2e1f19; font-size: 13px; }
.note-top { right: 0; top: 80px; }
.note-bottom { left: -8px; bottom: 58px; }

.home-stats { border-bottom: 1px solid #e8dfd4; background: #fff; }
.home-stats-grid { min-height: 107px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.home-stats-grid > div { display: grid; gap: 3px; padding: 6px 34px; border-right: 1px solid #ece4da; }
.home-stats-grid > div:first-child { padding-left: 0; }
.home-stats-grid > div:last-child { border-right: 0; }
.home-stats strong { color: #37241d; font: 750 27px/1 var(--font-display); }
.home-stats span { color: #807069; font-size: 11px; }

.home-alert { margin-top: 28px; padding: 15px 18px; border: 1px solid #edc1b9; border-radius: 10px; background: #fff5f3; color: #82392f; }
.home-alert i { margin-right: 9px; }

.home-section { padding: 88px 0 12px; }
.home-featured { margin-top: 72px; padding-bottom: 82px; background: #f1eadf; border-block: 1px solid #e3d8c9; }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 34px; }
.home-section-head h2,
.benefits-intro h2,
.home-faq h2 { margin: 8px 0 0; color: #2d1d17; font: 750 clamp(29px, 3vw, 43px)/1.15 var(--font-display); letter-spacing: -.018em; }
.home-section-head > a { padding-bottom: 5px; color: #735839; font-size: 12px; font-weight: 800; }
.home-section-head > a i { margin-left: 7px; }
.home-section-head.centered { justify-content: center; text-align: center; }

.home-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.home-category-card { min-height: 98px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 19px; border: 1px solid #e5dbce; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(59, 38, 30, .04); transition: transform .2s, border-color .2s, box-shadow .2s; }
.home-category-card:hover { transform: translateY(-3px); border-color: #c9aa76; box-shadow: 0 13px 28px rgba(59, 38, 30, .1); }
.home-category-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 11px; background: #f3ebdd; color: #755631; font-size: 18px; }
.home-category-card > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.home-category-card strong { overflow: hidden; color: #38261f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.home-category-card small { color: #88766c; font-size: 10px; }
.home-category-arrow { color: #b69a6b; font-size: 11px; }

.home-books-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.home-book-card { min-width: 0; overflow: hidden; border: 1px solid #e2d8ca; border-radius: 14px; background: #fff; box-shadow: 0 8px 23px rgba(57, 37, 29, .06); transition: transform .22s, box-shadow .22s; }
.home-book-card:hover { transform: translateY(-5px); box-shadow: 0 19px 38px rgba(57, 37, 29, .13); }
.home-book-cover { position: relative; aspect-ratio: 3 / 2.16; display: block; overflow: hidden; background: #e9e0d4; }
.home-book-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 26%; transition: transform .35s; }
.home-book-card:hover .home-book-cover img { transform: scale(1.035); }
.home-book-badge,
.home-book-format { position: absolute; top: 13px; padding: 5px 9px; border-radius: 99px; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.home-book-badge { left: 13px; background: #fff; color: #553d2d; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.home-book-format { right: 13px; background: rgba(37, 25, 20, .84); color: #fff; backdrop-filter: blur(4px); }
.home-book-body { padding: 18px; }
.home-book-category { display: block; overflow: hidden; color: #977443; font-size: 9px; font-weight: 850; letter-spacing: .11em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.home-book-card h3 { min-height: 44px; margin: 7px 0 5px; color: #2e1e18; font: 700 18px/1.2 var(--font-display); }
.home-book-card h3 a:hover { color: #8a633a; }
.home-book-author { overflow: hidden; margin: 0; color: #7c6c64; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-book-rating { display: flex; align-items: center; gap: 5px; margin: 12px 0 15px; color: #9a7336; font-size: 10px; }
.home-book-rating strong { color: #49352b; }
.home-book-rating span { color: #94847c; }
.home-book-buy { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid #eee6dc; }
.home-book-price { display: grid; line-height: 1.1; }
.home-book-price strong { color: #2f201a; font-size: 18px; }
.home-book-price del { margin-top: 4px; color: #a19189; font-size: 10px; }
.home-book-card .btn-add-cart { width: auto; min-height: 37px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-radius: 8px; background: #3f2a22; color: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.home-book-card .btn-add-cart:hover { background: #765238; }
.home-book-card .btn-add-cart:disabled { opacity: .65; cursor: wait; }

.home-benefits { margin: 82px 0 5px; padding: 83px 0; background: #2d201b; color: #fff; }
.home-benefits-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 28px; }
.benefits-intro { padding-right: 30px; }
.benefits-intro h2 { color: #fff; }
.benefits-intro p { max-width: 410px; margin: 17px 0 24px; color: #c9bbb1; font-size: 13px; }
.benefits-intro > a { color: #d9b976; font-size: 12px; font-weight: 800; }
.benefit-item { position: relative; min-height: 260px; padding: 27px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 12px; background: rgba(255, 255, 255, .035); }
.benefit-item > span { position: absolute; top: 19px; right: 20px; color: rgba(255, 255, 255, .21); font: 700 22px var(--font-display); }
.benefit-item > i { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 48px; border-radius: 12px; background: #d0ad6c; color: #2d201b; font-size: 19px; }
.benefit-item h3 { margin-bottom: 10px; color: #fff; font: 700 18px var(--font-display); }
.benefit-item p { color: #bcaea5; font-size: 12px; line-height: 1.65; }

.home-how { margin-top: 84px; padding: 88px 0; background: #fff; border-block: 1px solid #e8e0d5; }
.home-how-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; max-width: 1050px; margin: 48px auto 0; }
.home-how-grid::before { content: ''; position: absolute; left: 16%; right: 16%; top: 42px; border-top: 1px dashed #cbbda9; }
.home-how article { position: relative; z-index: 1; text-align: center; }
.home-how article > span { position: absolute; top: -6px; left: calc(50% + 24px); width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #b28b51; color: #fff; font-size: 9px; font-weight: 900; }
.home-how article > i { width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto 21px; border: 9px solid #fff; border-radius: 50%; background: #f1e8da; color: #795b37; box-shadow: 0 0 0 1px #e3d8c9; font-size: 23px; }
.home-how h3 { margin-bottom: 8px; color: #35231c; font: 700 19px var(--font-display); }
.home-how p { max-width: 260px; margin: auto; color: #7f6e65; font-size: 12px; }

.home-plan { margin: 88px 0 0; }
.home-plan-inner { position: relative; min-height: 235px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 55px; overflow: hidden; padding: 45px 58px; border-radius: 18px; background: linear-gradient(115deg, #3c271f, #624333); color: #fff; box-shadow: 0 23px 55px rgba(57, 36, 28, .19); }
.home-plan-inner::after { content: ''; position: absolute; right: -70px; top: -140px; width: 390px; height: 390px; border: 1px solid rgba(217, 185, 118, .25); border-radius: 50%; box-shadow: 0 0 0 45px rgba(217, 185, 118, .045), 0 0 0 90px rgba(217, 185, 118, .035); }
.home-plan-inner > * { position: relative; z-index: 1; }
.home-plan h2 { margin: 8px 0; color: #fff; font: 700 35px/1.1 var(--font-display); }
.home-plan p { max-width: 590px; color: #d3c4b8; font-size: 12px; }
.home-plan-price { display: grid; color: #d5c7ba; line-height: 1.1; }
.home-plan-price span { font-size: 10px; text-transform: uppercase; }
.home-plan-price strong { margin: 5px 0; color: #e0c07c; font: 700 39px var(--font-display); }
.home-plan-price small { font-size: 10px; }
.home-plan-inner > a { padding: 13px 18px; border-radius: 8px; background: #dfbd76; color: #35231c; font-size: 11px; font-weight: 850; white-space: nowrap; }

.home-faq { padding: 95px 0 20px; }
.home-faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 95px; align-items: start; }
.home-faq-grid > div:first-child p { margin-top: 15px; color: #7f6e65; }
.home-faq-list { border-top: 1px solid #ddd2c4; }
.home-faq-list details { border-bottom: 1px solid #ddd2c4; }
.home-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; color: #3c2921; font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary i { color: #9d7844; transition: transform .2s; }
.home-faq-list details[open] summary i { transform: rotate(45deg); }
.home-faq-list details p { max-width: 760px; padding: 0 45px 22px 2px; color: #7b6960; font-size: 12px; line-height: 1.75; }

@media (min-width: 1180px) {
    .home-books-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1100px) {
    .home-hero-grid { grid-template-columns: 1fr .7fr; gap: 30px; }
    .hero-visual { transform: scale(.82); }
    .home-category-grid { grid-template-columns: repeat(2, 1fr); }
    .home-books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-benefits-grid { grid-template-columns: repeat(3, 1fr); }
    .benefits-intro { grid-column: 1 / -1; padding: 0 0 12px; }
    .home-plan-inner { grid-template-columns: 1fr auto; }
    .home-plan-inner > a { grid-column: 1 / -1; width: fit-content; }
}

@media (max-width: 800px) {
    .home-hero-grid { min-height: 0; grid-template-columns: 1fr; padding-top: 58px; }
    .home-hero-copy { text-align: center; }
    .home-hero h1, .home-hero-copy > p, .hero-search { margin-left: auto; margin-right: auto; }
    .hero-trust { justify-content: center; }
    .hero-visual { min-height: 390px; transform: scale(.8); margin: -35px 0; }
    .home-stats-grid { grid-template-columns: repeat(2, 1fr); padding: 15px 0; }
    .home-stats-grid > div { min-height: 68px; border-right: 0; border-bottom: 1px solid #ece4da; padding: 12px 20px; text-align: center; }
    .home-stats-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
    .home-books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-benefits-grid { grid-template-columns: 1fr; }
    .benefit-item { min-height: 210px; }
    .home-how-grid { gap: 30px; }
    .home-faq-grid { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 560px) {
    .home-hero-grid { padding-top: 45px; padding-bottom: 30px; }
    .home-hero h1 { font-size: 44px; }
    .home-hero-copy > p { font-size: 14px; }
    .hero-search { grid-template-columns: auto 1fr; padding: 12px 14px; }
    .hero-search button { grid-column: 1 / -1; min-height: 44px; border-radius: 8px; }
    .hero-trust { gap: 9px 15px; }
    .hero-visual { display: none; }
    .home-section { padding-top: 66px; }
    .home-section-head { align-items: flex-start; flex-direction: column; }
    .home-category-grid,
    .home-books-grid { grid-template-columns: 1fr; }
    .home-book-card { display: grid; grid-template-columns: 118px 1fr; }
    .home-book-cover { height: 100%; min-height: 210px; aspect-ratio: auto; }
    .home-book-badge { display: none; }
    .home-book-card h3 { min-height: 0; font-size: 17px; }
    .home-book-card .btn-add-cart span { display: none; }
    .home-benefits { padding: 65px 0; }
    .home-how-grid { grid-template-columns: 1fr; }
    .home-how-grid::before { display: none; }
    .home-plan-inner { grid-template-columns: 1fr; gap: 26px; padding: 35px 25px; }
    .home-plan-inner > a { grid-column: auto; }
    .home-faq { padding-top: 70px; }
}

