/* =========================
   IIS Demo / Landing Styles
   ========================= */

:root {
    --iis-primary: #2563eb;
    --iis-primary-dark: #1d4ed8;
    --iis-primary-soft: #dbeafe;
    --iis-bg: #f8fafc;
    --iis-surface: #ffffff;
    --iis-border: #e5e7eb;
    --iis-text: #0f172a;
    --iis-muted: #64748b;
    --iis-success: #16a34a;
    --iis-warning: #f59e0b;
    --iis-danger: #dc2626;
    --iis-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --iis-shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
    --iis-radius: 18px;
    --iis-radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
    color: var(--iis-text);
}

#layout-wrapper {
    min-height: 100vh;
}

#page-topbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.navbar-header {
    min-height: 76px;
}

.navbar-brand-box {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-content {
    padding: calc(70px + 1.5rem) 0 80px;
}

.card,
.border.rounded-3,
.accordion-item,
.modal-content {
    border-color: var(--iis-border) !important;
}

.card {
    border-radius: var(--iis-radius);
    box-shadow: var(--iis-shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.card.shadow-sm {
    box-shadow: var(--iis-shadow-md) !important;
}

.card .card-body {
    position: relative;
    z-index: 1;
}

.badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.22s ease;
}

.btn-lg {
    padding: 0.9rem 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--iis-primary) 0%, var(--iis-primary-dark) 100%);
    border-color: var(--iis-primary);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-soft-primary:hover,
.btn-soft-primary:focus {
    transform: translateY(-1px);
}

.display-6,
h1,
h2,
h3,
h4,
h5 {
    color: var(--iis-text);
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--iis-muted) !important;
}

footer.footer {
    background: transparent;
    color: var(--iis-muted);
}

/* =========================
   Public layout override
   Evita el hueco del sidebar de Velzon
   ========================= */

body.iis-public-layout #layout-wrapper {
    display: block;
}

body.iis-public-layout .main-content {
    margin-left: 0 !important;
    min-height: 100vh;
}

body.iis-public-layout .footer {
    left: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
}

body.iis-public-layout .layout-width {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

body.iis-public-layout #page-topbar {
    left: 0 !important;
}


/* =========================
   Landing / home
   ========================= */

.card-animate {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-animate:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
    border-color: rgba(37, 99, 235, 0.18) !important;
}

.avatar-title {
    font-weight: 700;
}

.bg-primary.bg-gradient {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 28%),
        linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0f172a 100%) !important;
}

/* =========================
   Wizard / quiz
   ========================= */

#js-quiz-app .card,
#js-result-app .card {
    overflow: hidden;
}

#js-quiz-options .col-md-6,
#js-top-solutions .col-md-6,
#js-other-solutions .col-md-6 {
    display: flex;
}

.quiz-option-card {
    background: #fff;
    border: 1px solid var(--iis-border) !important;
    border-radius: 16px !important;
    min-height: 152px;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease,
        background 0.22s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.quiz-option-card:hover {
    border-color: rgba(37, 99, 235, 0.38) !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.10);
}

.quiz-option-card.active {
    border-color: var(--iis-primary) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

.quiz-option-check {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    border: 1px solid var(--iis-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: #fff;
    transition: all 0.22s ease;
}

.quiz-option-check.active {
    border-color: var(--iis-primary);
    background: var(--iis-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.progress {
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-sm {
    height: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

/* =========================
   Result page
   ========================= */

#js-result-summary {
    font-size: 1rem;
    line-height: 1.7;
}

#js-context-grid .border,
#contact-block,
#js-traffic-light-card,
#js-barrier-logic,
#js-barrier-examples {
    border-radius: 16px !important;
}

#js-traffic-light-card {
    transition: all 0.25s ease;
}

.border-success {
    border-color: rgba(22, 163, 74, 0.45) !important;
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.04), rgba(255,255,255,1));
}

.border-warning {
    border-color: rgba(245, 158, 11, 0.42) !important;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.05), rgba(255,255,255,1));
}

.border-danger {
    border-color: rgba(220, 38, 38, 0.42) !important;
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.05), rgba(255,255,255,1));
}

#js-top-solutions .card,
#js-other-solutions .card {
    border-radius: 18px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#js-top-solutions .card:hover,
#js-other-solutions .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.10);
    border-color: rgba(37, 99, 235, 0.18) !important;
}

#js-solution-counter {
    font-size: 0.78rem;
}

#js-priority-pillars .badge,
#js-priority-subtypes .badge {
    font-size: 0.78rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
}

/* =========================
   Contact forms
   ========================= */

.form-control,
.form-select {
    border-radius: 12px;
    border-color: #dbe1ea;
    min-height: 46px;
    box-shadow: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10) !important;
}

#contact-block {
    background: linear-gradient(180deg, rgba(248,250,252,0.85) 0%, rgba(255,255,255,1) 100%);
    border: 1px solid var(--iis-border);
    border-radius: 18px;
    padding-top: 1.5rem !important;
}

/* =========================
   Accordion / FAQ
   ========================= */

.accordion-item {
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.accordion-button {
    font-weight: 600;
    padding: 1rem 1.1rem;
    background: #fff;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--iis-primary-dark);
    background: rgba(37, 99, 235, 0.04);
}

.accordion-body {
    color: var(--iis-muted);
}

/* =========================
   Modal
   ========================= */

.modal-content {
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.modal-header,
.modal-body {
    padding: 1.25rem 1.5rem;
}

.modal-header {
    border-bottom-color: var(--iis-border);
}

.btn-close {
    box-shadow: none !important;
}

/* =========================
   Utils
   ========================= */

.sticky-side-div {
    position: sticky;
    top: 110px;
}

.alert {
    border-radius: 14px;
}

.border.rounded-3 {
    border-radius: 16px !important;
}

.bg-light-subtle {
    background-color: #f8fafc !important;
}

.fs-13 {
    font-size: 0.813rem !important;
}

.fs-15 {
    font-size: 0.95rem !important;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1199.98px) {
    .sticky-side-div {
        position: static;
        top: auto;
    }
}

@media (max-width: 991.98px) {
    .page-content {
        padding: calc(70px + 1rem) 0 64px;
    }

    .display-6 {
        font-size: 2.1rem;
    }

    #js-quiz-options .col-md-6,
    #js-top-solutions .col-md-6,
    #js-other-solutions .col-md-6 {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .navbar-header {
        min-height: 68px;
    }

    .display-6,
    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .card .card-body {
        padding: 1.15rem;
    }

    .quiz-option-card {
        min-height: 132px;
    }

    .btn-lg {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    body.iis-public-layout .layout-width {
        padding-left: 16px;
        padding-right: 16px;
    }
}