@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #004a99;
    --secondary: #ff7f00;
    --bg: #f3f4f6;
    --surface: #ffffff;
    --text: #1f2937;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background: #f8fafc !important;
    color: var(--text);
    font-family: 'Outfit', sans-serif !important;
}

#container {
    width: 95% !important;
    max-width: 980px !important;
    margin: 20px auto !important;
    padding: 24px !important;
    border-radius: 18px !important;
    background: var(--surface) !important;
    box-shadow: 0 14px 34px -22px rgba(15, 23, 42, 0.45) !important;
}

#header {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 12px !important;
    text-align: center !important;
}

#logo {
    float: none !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
}

#logo img {
    max-width: 260px;
    width: 72vw;
    height: auto !important;
}

#nav {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 18px 0 !important;
    padding: 8px !important;
    border-radius: 12px !important;
    border: 1px solid #dbe6f5 !important;
    background: #f8fbff !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px;
}

#nav li {
    list-style: none;
    display: block !important;
}

#nav li a {
    float: none !important;
    height: auto !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    border-radius: 999px;
    color: var(--primary) !important;
    font-weight: 600;
    display: inline-block;
}

#content {
    margin: 0 !important;
    padding: 8px 0 0 !important;
    min-height: 0 !important;
}

#landing_page {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

#landing_page .main-content {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
}

#landing_page .sidebar {
    width: 250px !important;
    margin: 0 !important;
    flex: 0 0 250px;
}

#landing_page .front-page-button {
    display: block;
    margin-bottom: 12px;
}

#landing_page .front-page-button p {
    margin: 0 0 10px 0;
}

#landing_page a.button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
}

#landing_page .search-form {
    padding-top: 0 !important;
    margin-bottom: 12px;
}

#landing_page .search-form form {
    display: flex;
    align-items: center;
    gap: 8px;
}

#landing_page .search-form .search {
    width: 100% !important;
    min-width: 0;
    flex: 1 1 auto;
}

#landing_page .featured-category {
    width: 49% !important;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    #container {
        width: 96% !important;
        padding: 16px !important;
        border-radius: 14px !important;
    }

    #landing_page {
        display: block;
    }

    #landing_page .sidebar {
        width: auto !important;
        margin-bottom: 14px !important;
    }
}

@media (max-width: 680px) {
    #container {
        width: 98% !important;
        margin: 8px auto 12px !important;
        border-radius: 10px !important;
        padding: 10px !important;
    }

    #nav li {
        width: calc(50% - 6px);
    }

    #nav li a {
        width: 100%;
        text-align: center;
        padding: 9px 6px !important;
        font-size: 14px;
    }

    #landing_page .search-form form {
        display: block;
    }

    #landing_page .search-form .search {
        margin-bottom: 8px;
    }

    #landing_page .search-form .button {
        width: 100% !important;
    }

    #landing_page .featured-category {
        width: 100% !important;
    }
}

/* =============================================
   HERO SEARCH
   ============================================= */
.hero-search {
    background: linear-gradient(135deg, #004a99 0%, #0072e5 100%);
    border-radius: 16px;
    padding: 32px 28px;
    margin-bottom: 24px;
    text-align: center;
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 18px 0;
    letter-spacing: 0.2px;
}

.search-form-hero {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    gap: 8px;
    max-width: 560px;
    margin: 0 auto;
}

.search-hero-icon {
    color: #9ca3af;
    font-size: 15px;
    flex-shrink: 0;
}

.search-hero-input {
    flex: 1 1 auto;
    border: none !important;
    outline: none !important;
    background: transparent;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    color: #1f2937;
    padding: 6px 0 !important;
    min-width: 0;
    box-shadow: none !important;
}

.search-hero-input::placeholder {
    color: #9ca3af;
}

.search-hero-btn {
    background: #ff7f00;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.search-hero-btn:hover {
    background: #e06d00;
}

/* =============================================
   SIDEBAR — BOTONES CTA MODERNOS
   ============================================= */
#landing_page .sidebar {
    width: 250px !important;
    flex: 0 0 250px;
    margin: 0 !important;
}

#landing_page .front-page-button {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

#landing_page .front-page-button p {
    margin: 0;
}

#landing_page .blue.button::before,
#landing_page a.blue.button::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f055";
    font-size: 16px;
}

#landing_page .blue.button,
#landing_page a.blue.button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #004a99 !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 18px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(0,74,153,0.25) !important;
    transition: background 0.2s, transform 0.1s;
}

#landing_page .blue.button:hover,
#landing_page a.blue.button:hover {
    background: #003580 !important;
    transform: translateY(-1px);
}

#landing_page .green.button::before,
#landing_page a.green.button::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f02e";
    font-size: 16px;
}

#landing_page .green.button,
#landing_page a.green.button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ff7f00 !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 18px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(255,127,0,0.25) !important;
    transition: background 0.2s, transform 0.1s;
}

#landing_page .green.button:hover,
#landing_page a.green.button:hover {
    background: #e06d00 !important;
    transform: translateY(-1px);
}

.sidebar .content {
    border-radius: 12px;
    border: 1px solid #e5ecf7 !important;
    background: #f8fbff !important;
    padding: 14px !important;
    font-size: 14px;
}

.sidebar section .header {
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280 !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.sidebar .content a {
    color: #004a99;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 4px 0;
    border-bottom: 1px solid #e9f0fa;
    transition: color 0.15s;
}

.sidebar .content a:hover {
    color: #ff7f00;
}

/* =============================================
   LANDING BODY
   ============================================= */
.landing-body {
    background: #f8fbff;
    border-radius: 12px;
    padding: 20px 22px;
    border: 1px solid #e5ecf7;
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
}

.welcome-title {
    color: #004a99;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.landing-body h1,
.landing-body h2,
.landing-body h3 {
    color: #004a99;
    font-weight: 700;
}

/* =============================================
   KNOWLEDGE BASE SECTION
   ============================================= */
.kb-section {
    margin-top: 28px;
    width: 100%;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.section-title i {
    color: #004a99;
    font-size: 16px;
}

.kb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.kb-card {
    background: #fff;
    border: 1px solid #e5ecf7;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}

.kb-card:hover {
    box-shadow: 0 6px 24px rgba(0,74,153,0.1);
    transform: translateY(-2px);
}

.kb-card-header {
    background: linear-gradient(90deg, #004a99, #0062cc);
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
}

.kb-card-header i {
    font-size: 14px;
    opacity: 0.9;
}

.kb-articles {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.kb-article-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5fb;
}

.kb-article-item:last-child {
    border-bottom: none;
}

.kb-article-item a {
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    transition: color 0.15s;
}

.kb-article-item a:hover {
    color: #ff7f00;
}

.article-teaser {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 0 0;
    line-height: 1.5;
}

/* =============================================
   NAV — ICONOS (anular bg-image osticket + FA)
   ============================================= */
#nav li a {
    background-image: none !important;
    padding-left: 12px !important;
}

#nav li a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 7px;
    font-size: 13px;
    vertical-align: middle;
}

#nav li a.home::before   { content: "\f015"; }
#nav li a.kb::before     { content: "\f02d"; }
#nav li a.new::before    { content: "\f055"; }
#nav li a.status::before { content: "\f02e"; }
#nav li a.tickets::before{ content: "\f0e0"; }

#nav li a.active {
    background: #004a99 !important;
    color: #fff !important;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 20px;
    text-align: center;
}

#footer a { color: #9ca3af; }

/* =============================================
   RESPONSIVE EXTRAS
   ============================================= */
@media (max-width: 992px) {
    .hero-search { padding: 24px 16px; }
    .kb-grid { grid-template-columns: 1fr; }

    #landing_page .sidebar {
        width: auto !important;
        flex: none;
    }

    #landing_page .front-page-button {
        flex-direction: row;
    }

    #landing_page .front-page-button p {
        flex: 1 1 auto;
    }
}

@media (max-width: 680px) {
    .hero-search { padding: 20px 14px; }
    .hero-subtitle { font-size: 15px; }
    .search-form-hero { flex-wrap: wrap; border-radius: 14px; padding: 10px; }
    .search-hero-btn { width: 100%; }

    .kb-grid { grid-template-columns: 1fr; gap: 12px; }

    #landing_page .front-page-button { flex-direction: column; }
}
