/* Explain: Styles for UI components like buttons, cards, typography, and effects. */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }

.brand-logo {
    height: 2.6rem;
    width: auto;
    object-fit: contain;
    flex: none;
    background: #fff;
    border-radius: 10px;
    padding: 0.15rem;
}

.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 700; color: var(--primary-color); }
.brand-name span { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-color); font-weight: 600; }

@media (max-width: 560px) {
    .brand-name { display: none; }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-link:hover { background: var(--surface-color); color: var(--primary-color); }

.nav-dropdown { position: relative; }

.nav-dropdown > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary { background: var(--surface-color); color: var(--primary-color); }

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 70;
}

.nav-dropdown-panel a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.94rem;
    color: var(--text-color);
}

.nav-dropdown-panel a:hover { background: var(--surface-color); color: var(--primary-color); }

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
}

.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.4rem;
    border-radius: var(--radius-pill);
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
    cursor: pointer;
}

.btn-brand:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-accent { background: var(--accent-color); color: #1b1710; }
.btn-accent:hover { background: var(--accent-hover); }

.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
    box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-color); }

.btn-outline-light {
    background: transparent;
    color: #f2ede3;
    border-color: rgba(242, 237, 227, 0.4);
    box-shadow: none;
}
.btn-outline-light:hover { background: rgba(242, 237, 227, 0.12); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-hover);
}

.heading-xl {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 5vw, 3.9rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.heading-lg {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.3vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    font-weight: 700;
}

.lead {
    font-size: clamp(1rem, 1.3vw, 1.13rem);
    color: var(--text-muted);
    line-height: 1.75;
}

.card-soft {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.rounded-card { border-radius: var(--radius-md); }
.rounded-frame { border-radius: var(--radius-sm); }
.rounded-xl-custom { border-radius: var(--radius-lg); }
.shadow-soft { box-shadow: var(--shadow-sm); }
.shadow-deep { box-shadow: var(--shadow-md); }

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 700;
    color: var(--primary-color);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.65rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-size: 1.1rem;
}

.book-card { display: flex; flex-direction: column; height: 100%; }

.book-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--surface-color);
    box-shadow: var(--shadow-md);
}

.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.book-card:hover .book-card-cover img { transform: scale(1.04); }

.book-card-badge {
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(16, 29, 53, 0.85);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.author-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.author-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-color);
}

.author-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.author-card:hover .author-photo img { transform: scale(1.05); }

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.post-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-color);
}

.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-cover img { transform: scale(1.04); }

.post-tag {
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(16, 29, 53, 0.85);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chip:hover { border-color: var(--primary-color); color: var(--primary-color); }

.chip-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.chip-active:hover { color: #fff; }

.search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    font-size: 0.95rem;
}

.search-input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-color: var(--accent-color);
}

.search-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.35rem;
}

.input-app,
.textarea-app {
    width: 100%;
    padding: 0.72rem 0.95rem;
    border-radius: var(--radius-card, 12px);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    font-size: 0.95rem;
}

.textarea-app { min-height: 8rem; resize: vertical; }

.input-app:focus,
.textarea-app:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 1px;
    border-color: var(--accent-color);
}

.meta-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.prose-editorial { color: var(--text-muted); font-size: 1.04rem; line-height: 1.85; }
.prose-editorial p { margin-bottom: 1rem; }
.prose-editorial strong { color: var(--text-color); }
.prose-editorial h2, .prose-editorial h3 { color: var(--text-color); margin: 1.4rem 0 0.6rem; }

.timeline-item {
    position: relative;
    padding-left: 2.4rem;
    padding-bottom: 1.85rem;
    border-left: 1px solid var(--border-color);
}

.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -0.5rem;
    top: 0.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--accent-color);
    color: #1b1710;
    font-size: 0.6rem;
    font-weight: 700;
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.acc-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
}

.acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.05rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    background: transparent;
    cursor: pointer;
}

.acc-panel { display: none; padding: 0 1.25rem 1.2rem; color: var(--text-muted); }
.acc-item.is-open .acc-panel { display: block; }
.acc-item.is-open .acc-trigger { color: var(--primary-color); }
.acc-item.is-open [data-accordion-icon] { transform: rotate(180deg); }

.mobile-menu { display: none; position: fixed; inset: 0; z-index: 80; }
.mobile-menu.is-open { display: block; }

.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(16, 29, 53, 0.5); }

.mobile-menu-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(88vw, 360px);
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--background-color);
    box-shadow: -24px 0 60px -30px rgba(16, 29, 53, 0.7);
    animation: slideInPanel 0.28s ease;
}

@keyframes slideInPanel {
    from { transform: translateX(26px); opacity: 0.4; }
    to { transform: none; opacity: 1; }
}

.mobile-link {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-color);
}

.mobile-link:hover { color: var(--primary-color); }

.toast-host {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 5rem;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}

@media (min-width: 640px) {
    .toast-host { left: auto; right: 5rem; width: 22rem; }
}

.toast-item {
    pointer-events: auto;
    padding: 0.85rem 1.05rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    background: #fff;
    color: var(--text-color);
}

.toast-item-ok { border-left-color: #2f8f5b; }
.toast-item-error { border-left-color: #c0392b; }

.status-ok { color: #2f8f5b; font-weight: 600; }
.status-error { color: #c0392b; font-weight: 600; }

.whatsapp-fab {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 16px 30px -12px rgba(37, 211, 102, 0.7);
    transition: transform 0.25s ease;
}

.whatsapp-fab:hover { transform: translateY(-3px) scale(1.04); }

@media (max-width: 640px) {
    .whatsapp-fab { right: 1rem; bottom: 1rem; width: 3rem; height: 3rem; font-size: 1.35rem; }
}

.step-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--border-color);
    height: 100%;
}

.step-num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}