:root {
    --brand-blue: #1b2f58;
    --brand-blue-dark: #121f38;
    --brand-blue-soft: #e7edf8;
    --brand-orange: #f28c28;
    --brand-orange-dark: #d97112;
    --brand-surface: #f5f7fb;
    --brand-text: #1f2937;
    --brand-logo-image: url("/assets/jcpsoftware-jcp.png");
    --brand-background:#ffffff;
    --brand-border: #d8dce4;
    --brand-footer-bg: #444;
}

body {
    background-color: var(--brand-surface);
    color: var(--brand-text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.navbar {
    background: var(--brand-background);
    border-top: 4px solid var(--brand-blue);
    border-bottom: 1px solid var(--brand-border);
    box-shadow: none;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: #263548;
}

.navbar-brand {
    font-weight: 700;
    gap: 0.75rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-logo-image) center / cover no-repeat;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.3);
    display: inline-block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1rem;
}

.brand-text small {
    font-size: 0.75rem;
    opacity: 0.75;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.83rem;
    white-space: nowrap;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-right: 1px solid var(--brand-border);
    padding-right: 0.9rem;
    margin-right: 0.9rem;
}

.navbar-nav .nav-item:last-child .nav-link {
    border-right: none;
    margin-right: 0;
    padding-right: 0.5rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--brand-blue);
}

.navbar-collapse {
    overflow-x: auto;
}

.navbar-nav {
    gap: 0.5rem;
}

.navbar-actions {
    margin-left: auto;
}

.btn-search,
.btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0;
    border: 1px solid var(--brand-border);
    color: #1f2937;
    padding: 0.35rem 0.9rem;
    font-weight: 500;
    background: #ffffff;
}

.btn-search svg,
.btn-profile svg {
    width: 18px;
    height: 18px;
}

.btn-profile {
    border-color: var(--brand-border);
}

.profile-icon {
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: #eef2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero {
    background: linear-gradient(120deg, #ffffff 0%, var(--brand-blue-soft) 100%);
    padding: 2rem 0 0;
}

.hero-kicker {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(13, 43, 99, 0.08);
    color: var(--brand-blue);
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 2vw + 2rem, 3.5rem);
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-panel {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    display: grid;
    gap: 1.5rem;
}

.hero-panel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.hero-panel-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-panel-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #6b7280;
}

.btn-brand {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #ffffff;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-orange-dark);
    border-color: var(--brand-orange-dark);
    color: #ffffff;
}

.btn-outline-brand {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background-color: var(--brand-blue);
    color: #ffffff;
}

.module-section {
    padding: 0;
}

.features-item {
    background: #ffffff;
    border-radius: 0;
    border: 1px solid var(--brand-border);
    padding: 1rem 0.75rem;
    box-shadow: none;
}

.features-content p {
    color: var(--brand-blue);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.features-content h6 {
    color: #334155;
    margin: 0;
    line-height: 1.4;
}

.feature-circle-wrapper {
    width: 78px;
    height: 78px;
}

.feature-image-frame {
    width: 78px;
    height: 78px;
    border: 3px solid rgba(13, 43, 99, 0.12);
}

.feature-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-badge {
    position: absolute;
    top: 8%;
    right: -10px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue);
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.module-wrapper {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.module-row {
    margin: 0;
    padding: 0.75rem;
}

.feature-tile {
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-tile h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
}

.error-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-blue-soft) 100%);
}

.error-kicker {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(13, 43, 99, 0.12);
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.error-title {
    font-size: clamp(2rem, 2vw + 1.5rem, 3rem);
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-text {
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.error-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
    background: #ffffff;
    padding: 1.25rem;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}


.profile-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-profile.dropdown-toggle::after {
    margin-left: 0.25rem;
}

.auth-card-modern {
    border-radius: 16px;
}

.auth-title {
    font-size: clamp(2rem, 2vw + 1rem, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #111827;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #eef0f3;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.auth-social-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

.auth-social-icon {
    width: 20px;
    text-align: center;
}

.auth-submit {
    background: #7c3aed;
    border-color: #7c3aed;
}

.auth-submit:hover,
.auth-submit:focus {
    background: #6d28d9;
    border-color: #6d28d9;
}

.auth-card {
    border-radius: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #6b7280;
    gap: 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.user-grid th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 0;
}

.section-hint {
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card {
    border: 1px solid var(--brand-border);
    border-radius: 0;
}

.module-card {
    background: #ffffff;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card-media {
    border-radius: 0;
    padding: 1.75rem;
    display: flex;
    align-items: flex-end;
    min-height: 140px;
}

.module-card-badge {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    font-size: 0.85rem;
}

.gradient-identity {
    background: linear-gradient(135deg, #fef3c7, #f9a8d4);
}

.gradient-catalogo {
    background: linear-gradient(135deg, #dbeafe, #38bdf8);
}

.gradient-help {
    background: linear-gradient(135deg, #e9d5ff, #c084fc);
}

.gradient-pagos {
    background: linear-gradient(135deg, #bbf7d0, #4ade80);
}

.gradient-herramientas {
    background: linear-gradient(135deg, #fee2e2, #f87171);
}

.gradient-tienda {
    background: linear-gradient(135deg, #fde68a, #f97316);
}

.gradient-impresiones {
    background: linear-gradient(135deg, #e0f2fe, #60a5fa);
}

.gradient-admin {
    background: linear-gradient(135deg, #f3f4f6, #9ca3af);
}

.module-card-body {
    padding: 1.5rem;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.module-title {
    font-size: 1.3rem;
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.module-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    color: #4b5563;
    font-weight: 500;
}

.module-text {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.module-link {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.module-link::after {
    content: "›";
    font-size: 1.2rem;
}

.module-link:hover,
.module-link:focus {
    text-decoration: underline;
    color: #1d4ed8;
}

.module-list li::before {
    content: "•";
    color: var(--brand-orange);
    margin-right: 0.5rem;
}

main .card {
    background: #ffffff;
}

.site-footer {
    background: var(--brand-footer-bg);
    color: #334155;
    border-top: 1px solid var(--brand-border);
    padding: 1.5rem 0;
    margin-top: 0;
}

.footer-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr minmax(180px, 1fr);
    align-items: center;
    gap: 1rem;
}

.social-link {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    border: 1px solid var(--brand-border);
    text-decoration: none;
    background: #ffffff;
    border-radius: 0;
}

.social-link:hover,
.social-link:focus {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

.footer-brand strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
}

.footer-brand span {
    font-size: 0.8rem;
    color: #64748b;
}

.footer-logo {
    width: 70px;
    height: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--brand-blue);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

.footer-copy {
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 0.4rem;
}

@media (max-width: 991px) {
    .error-page {
        text-align: center;
    }

    .navbar-actions {
        padding: 0.75rem 0;
    }

    .btn-search,
    .btn-profile {
        width: 100%;
        justify-content: center;
    }

    .navbar-nav .nav-link {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

.comunidad-page {
    min-height: 60vh;
}

.community-card {
    border: 1px solid var(--brand-border);
    background: #ffffff;
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.community-card:hover,
.community-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.community-card-body {
    padding: 1.25rem;
}
