/**
 * Borland® Suite - Estilos Centralizados
 * Basado en IBM Carbon Design System
 */

:root {
    --ibm-blue: #0f62fe;
    --ibm-blue-hover: #0043ce;
    --gray-10: #f4f4f4;
    --gray-20: #e0e0e0;
    --gray-30: #c6c6c6;
    --gray-60: #525252;
    --gray-80: #393939;
    --gray-100: #161616;
    --white: #ffffff;
    --support-green: #24a148;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 56px;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--gray-10);
    color: var(--gray-100);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container { max-width: 1312px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   HEADER
   ============================================ */
#borland-header {
    min-height: 48px;
    border-bottom: 1px solid var(--gray-20);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

#borland-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 6px 0;
}

#borland-header .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

#borland-header .logo-link {
    display: flex;
    align-items: center;
    gap: 0px;
    text-decoration: none;
    color: var(--gray-100);
}

#borland-header .logo-svg {
    width: 90px;
    height: auto;
    display: block;
}

#borland-header .reg-mark {
    font-size: 0.6875rem;
    color: var(--gray-60);
    font-weight: 600;
    margin-left: -12px;
    position: relative;
    top: -4px;
}

#borland-header .breadcrumb-separator {
    color: var(--gray-30);
    font-size: 0.875rem;
    margin: 0 4px;
}

#borland-header .breadcrumb-link {
    color: var(--gray-60);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
    white-space: nowrap;
}

#borland-header .breadcrumb-link:hover {
    color: var(--ibm-blue);
}

#borland-header #borland-nav-placeholder {
    display: flex;
    align-items: center;
}

#borland-header .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#borland-header .nav-link {
    text-decoration: none;
    color: var(--gray-60);
    font-size: 0.875rem;
    transition: color 0.2s;
}

#borland-header .nav-link:hover {
    color: var(--ibm-blue);
}

#borland-header .btn-nav {
    background: var(--gray-100);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.875rem;
    text-decoration: none;
    border: 1px solid transparent;
    display: inline-block;
}

#borland-header .btn-nav:hover {
    background: var(--gray-80);
}

#borland-header .mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

#borland-header .mobile-toggle span,
#borland-header .mobile-toggle span::before,
#borland-header .mobile-toggle span::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-100);
    position: relative;
}

#borland-header .mobile-toggle span::before {
    position: absolute;
    top: -7px;
}

#borland-header .mobile-toggle span::after {
    position: absolute;
    top: 7px;
}

#borland-mobile-menu {
    display: none;
    border-bottom: 1px solid var(--gray-20);
    background: var(--white);
}

#borland-mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
}

#borland-mobile-menu .nav-link {
    padding: 0.5rem 0;
}

#borland-mobile-menu .btn-nav {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
#borland-footer {
    background: var(--gray-100);
    color: var(--gray-60);
    padding: 3rem 0 1.5rem;
    font-size: 0.8125rem;
    margin-top: 0;
    border-top: none;
}

#borland-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

#borland-footer .footer-brand .logo-svg-white {
    width: 90px;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

#borland-footer .footer-brand p {
    max-width: 260px;
    line-height: 1.6;
    color: var(--gray-60);
}

#borland-footer h4 {
    color: var(--white);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

#borland-footer ul {
    list-style: none;
}

#borland-footer li {
    margin-bottom: 0.5rem;
}

#borland-footer a,
#borland-footer button {
    color: var(--gray-60);
    text-decoration: none;
    font-size: 0.8125rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    text-align: left;
}

#borland-footer a:hover,
#borland-footer button:hover {
    color: #78a9ff;
}

#borland-footer .footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-80);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
}

#borland-footer .footer-bottom a {
    color: #78a9ff;
}

/* ============================================
   BLOQUE "SUITE BORLAND®"
   ============================================ */
.suite-block-section {
    padding: 4rem 0;
    background: var(--gray-10);
    border-top: 1px solid var(--gray-20);
    border-bottom: 1px solid var(--gray-20);
}

.suite-block-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.suite-block-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    background: var(--ibm-blue);
    padding: 3px 16px;
    margin-bottom: 0.75rem;
}

.suite-block-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
    color: var(--gray-100);
    line-height: 1.2;
}

.suite-block-current {
    font-weight: 700;
    color: var(--ibm-blue);
}

.suite-block-plus {
    color: var(--gray-30);
    margin: 0 0.5rem;
    font-weight: 300;
}

.suite-block-others {
    font-weight: 400;
    color: var(--gray-60);
}

.suite-block-sub {
    color: var(--gray-60);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.suite-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 1.5rem auto 0;
}

.suite-block-card {
    background: var(--white);
    padding: 1.25rem 1rem;
    border: 1px solid var(--gray-20);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    position: relative;
}

.suite-block-card:hover {
    background: #e5e5e5;
    border-color: var(--gray-30);
    transform: translateY(-2px);
}

.suite-block-icon {
    width: 24px;
    height: 24px;
    color: var(--ibm-blue);
    flex-shrink: 0;
}

.suite-block-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-100);
    margin-bottom: 0.125rem;
}

.suite-block-card p {
    font-size: 0.75rem;
    color: var(--gray-60);
}

.suite-block-arrow {
    margin-left: auto;
    color: var(--ibm-blue);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.suite-block-card:hover .suite-block-arrow {
    transform: translateX(4px);
    transition: transform 0.2s;
}

.suite-block-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.suite-block-link {
    display: inline-block;
    color: var(--ibm-blue);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-20);
    transition: all 0.2s;
}

.suite-block-link:hover {
    background: var(--gray-100);
    color: var(--white);
    border-color: var(--gray-100);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22,22,22,0.75);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--white);
    max-width: 620px;
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    border: 1px solid var(--gray-20);
    border-top: 3px solid var(--ibm-blue);
    position: relative;
}

.modal-inner {
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.modal-inner p {
    color: var(--gray-80);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 0.875rem;
}

.modal-inner ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-80);
}

.modal-inner li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-20);
    display: flex;
    justify-content: flex-end;
}

/* ============================================
   BOTONES
   ============================================ */
.btn-primary {
    background: var(--ibm-blue);
    color: var(--white);
    padding: 14px 20px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--ibm-blue-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-100);
    padding: 14px 20px;
    font-size: 1rem;
    border: 1px solid var(--gray-100);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--gray-100);
    color: var(--white);
}

.btn-primary.on-dark {
    background: var(--white);
    color: var(--gray-100);
}

.btn-primary.on-dark:hover {
    background: var(--gray-20);
}

.btn-secondary.on-dark {
    border-color: var(--gray-60);
    color: var(--white);
}

.btn-secondary.on-dark:hover {
    background: var(--white);
    color: var(--gray-100);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    #borland-header nav.desktop-nav,
    #borland-header #borland-nav-placeholder .desktop-nav {
        display: none;
    }

    #borland-header .mobile-toggle {
        display: block;
    }

    #borland-header .logo-svg {
        width: 70px;
    }

    #borland-header .reg-mark {
        margin-left: -10px;
        top: -3px;
        font-size: 0.625rem;
    }

    #borland-header .breadcrumb-link {
        font-size: 0.625rem;
    }

    #borland-header .breadcrumb-separator {
        font-size: 0.75rem;
    }

    #borland-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #borland-footer .footer-brand .logo-svg-white {
        width: 70px;
    }

    .container {
        padding: 0 1rem;
    }

    .suite-block-grid {
        grid-template-columns: 1fr;
    }

    .suite-block-title {
        font-size: 1.75rem;
    }

    .suite-block-section {
        padding: 2.5rem 0;
    }

    .suite-block-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    #borland-footer {
        padding: 2rem 0 1rem;
    }

    #borland-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .modal-inner {
        padding: 1.25rem;
    }

    #borland-header .breadcrumb-link {
        font-size: 0.5rem;
    }

    #borland-header .breadcrumb-separator {
        font-size: 0.625rem;
        margin: 0 2px;
    }

    .suite-block-title {
        font-size: 1.5rem;
    }

    .suite-block-card h4 {
        font-size: 0.875rem;
    }

    .suite-block-icon {
        width: 20px;
        height: 20px;
    }
}