:root {
    --brand-950: #082f5f;
    --brand-900: #0b3b75;
    --brand-700: #1559a6;
    --brand-600: #1c6cc8;
    --brand-100: #dcecff;
    --accent: #f0b429;
}

html { scroll-behavior: smooth; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
::selection { background: #bfdbfe; color: #082f5f; }

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 100;
    border-radius: .75rem;
    background: #fff;
    padding: .75rem 1rem;
    color: #0b3b75;
    box-shadow: 0 10px 30px rgba(8, 47, 95, .18);
    transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 35px rgba(15, 35, 64, .08); }

.nav-link {
    border-radius: .75rem;
    padding: .7rem .85rem;
    color: #475569;
    font-size: .875rem;
    font-weight: 700;
    transition: .2s ease;
}
.nav-link:hover, .nav-link-active { background: #eff6ff; color: #0b3b75; }

.menu-toggle {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    border-radius: .8rem;
    border: 1px solid #dbe4ef;
    background: #fff;
}
.menu-toggle span { height: 2px; width: 1.25rem; border-radius: 99px; background: #0f172a; }
.menu-overlay { position: fixed; inset: 0; z-index: 55; background: rgba(2, 6, 23, .55); backdrop-filter: blur(3px); }
.mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 60;
    display: flex;
    width: min(22rem, 92vw);
    flex-direction: column;
    background: #fff;
    box-shadow: -30px 0 80px rgba(2, 6, 23, .22);
    transform: translateX(105%);
    transition: transform .28s ease;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-nav-link { display: block; border-radius: .8rem; padding: .85rem 1rem; color: #334155; font-weight: 700; }
.mobile-nav-link:hover, .mobile-nav-link-active { background: #eff6ff; color: #0b3b75; }

.btn-primary, .btn-secondary, .btn-light {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    gap: .5rem;
    border-radius: .8rem;
    padding: .7rem 1.1rem;
    font-size: .875rem;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--brand-900), var(--brand-600)); color: #fff; box-shadow: 0 10px 26px rgba(21, 89, 166, .22); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(21, 89, 166, .3); }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-light:focus-visible { outline: 3px solid rgba(59, 130, 246, .35); outline-offset: 2px; }
.btn-primary:disabled { cursor: wait; opacity: .7; transform: none; }
.btn-secondary { border: 1px solid #cbd5e1; background: #fff; color: #0f172a; }
.btn-secondary:hover { border-color: #93c5fd; background: #eff6ff; color: #0b3b75; }
.btn-light { background: #fff; color: #0b3b75; box-shadow: 0 12px 30px rgba(2, 6, 23, .18); }
.btn-light:hover { transform: translateY(-1px); background: #eff6ff; }

.eyebrow { font-size: .75rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.section-shell { margin-inline: auto; max-width: 80rem; padding: 5rem 1rem; }
.section-heading { max-width: 48rem; }
.section-heading h2 { margin-top: .65rem; color: #0f172a; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 900; line-height: 1.08; letter-spacing: -.035em; }
.section-heading p:not(.eyebrow) { margin-top: 1rem; color: #64748b; font-size: 1.05rem; line-height: 1.8; }

.surface-card { border: 1px solid #e2e8f0; border-radius: 1.25rem; background: #fff; box-shadow: 0 18px 50px rgba(15, 35, 64, .07); }
.field-label { display: block; margin-bottom: .45rem; color: #334155; font-size: .875rem; font-weight: 800; }
.field-input, .field-select, .field-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: .8rem;
    background: #fff;
    padding: .75rem .9rem;
    color: #0f172a;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, .13); }
.field-help { margin-top: .35rem; color: #64748b; font-size: .75rem; line-height: 1.5; }

.alert { position: relative; border-radius: 1rem; border: 1px solid; padding: 1rem 3rem 1rem 1rem; font-size: .875rem; }
.alert-success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.alert-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.alert-warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.alert-info { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
.alert-close { position: absolute; right: .8rem; top: .7rem; color: currentColor; font-size: 1.25rem; opacity: .65; }

.book-cover { aspect-ratio: 13 / 19; width: 100%; overflow: hidden; border-radius: .9rem; background: #e2e8f0; box-shadow: 0 16px 35px rgba(15, 23, 42, .16); }
.book-cover img { height: 100%; width: 100%; object-fit: cover; transition: transform .35s ease; }
.group:hover .book-cover img { transform: scale(1.035); }
.article-image { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 1rem; background: #e2e8f0; }
.article-image img { height: 100%; width: 100%; object-fit: cover; transition: transform .35s ease; }
.group:hover .article-image img { transform: scale(1.035); }

.prose-pjp { color: #334155; font-size: 1.05rem; line-height: 1.9; }
.prose-pjp p { margin: 0 0 1.4rem; }
.prose-pjp h2 { margin: 2.25rem 0 .9rem; color: #0f172a; font-size: 1.8rem; font-weight: 900; line-height: 1.25; }
.prose-pjp h3 { margin: 1.8rem 0 .8rem; color: #0f172a; font-size: 1.35rem; font-weight: 850; }
.prose-pjp ul, .prose-pjp ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }
.prose-pjp ul { list-style: disc; }
.prose-pjp ol { list-style: decimal; }
.prose-pjp li { margin: .45rem 0; padding-left: .2rem; }
.prose-pjp a { color: #1559a6; text-decoration: underline; text-underline-offset: 3px; }

.footer-link { color: inherit; transition: color .2s ease; }
.footer-link:hover { color: #bfdbfe; }
.floating-whatsapp {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 45;
    display: grid;
    height: 3.35rem;
    width: 3.35rem;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    box-shadow: 0 14px 35px rgba(22, 163, 74, .38);
    transition: transform .2s ease;
}
.floating-whatsapp:hover { transform: translateY(-2px) scale(1.03); }
.floating-whatsapp svg { height: 1.65rem; width: 1.65rem; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem; }
.pagination a, .pagination span { display: grid; min-height: 2.5rem; min-width: 2.5rem; place-items: center; border: 1px solid #dbe4ef; border-radius: .7rem; background: #fff; padding: .35rem .65rem; color: #334155; font-size: .875rem; font-weight: 750; }
.pagination a:hover, .pagination .current { border-color: #1559a6; background: #1559a6; color: #fff; }

@media (min-width: 640px) {
    .section-shell { padding-inline: 1.5rem; }
    .floating-whatsapp { right: 1.5rem; bottom: 1.5rem; }
}
@media (min-width: 1024px) {
    .section-shell { padding: 6rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
