/* =========================================================
   DAIX PRO
   PORTAL DE CLIENTES
   ========================================================= */

.portal {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fb;
    color: #1f2937;
}


/* =========================================================
   LOGIN
   ========================================================= */

.portal-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3f8;
}

.portal-login-container {
    width: 100%;
    max-width: 430px;
    padding: 30px 20px;
}

.portal-login-brand {
    text-align: center;
    margin-bottom: 25px;
}

.portal-login-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a2342;
    color: #ffffff;
    font-size: 30px;
}

.portal-login-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #0a2342;
}

.portal-login-subtitle {
    margin-top: 4px;
    color: #64748b;
    font-size: 14px;
}

.portal-login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .10);
    overflow: hidden;
}

.portal-login-card-body {
    padding: 30px;
}

.portal-login-heading {
    margin-bottom: 25px;
    color: #0a2342;
    font-size: 21px;
    font-weight: 600;
}

.portal-login-error {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #fff1f2;
    color: #b42318;
    font-size: 14px;
}

.portal-login-button {
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 12px 16px;
    background: #0a2342;
    color: #ffffff;
    font-weight: 600;
    transition: .2s ease;
}

.portal-login-button:hover {
    background: #12345d;
}

.portal-login-footer {
    text-align: center;
    margin-top: 20px;
    color: #94a3b8;
    font-size: 12px;
}


/* =========================================================
   HEADER
   ========================================================= */

.portal-header {
    min-height: 76px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.portal-brand-title {
    font-size: 20px;
    font-weight: 700;
    color: #0a2342;
}

.portal-brand-subtitle {
    font-size: 12px;
    color: #64748b;
}

.portal-user {
    text-align: right;
}

.portal-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #0a2342;
}

.portal-user-identity {
    font-size: 12px;
    color: #64748b;
}

.portal-separator {
    margin: 0 5px;
}

.portal-user-actions {
    margin-top: 5px;
}

.portal-logout {
    text-decoration: none;
    font-size: 12px;
    color: #64748b;
}

.portal-logout:hover {
    color: #0a2342;
}


/* =========================================================
   MAIN
   ========================================================= */

.portal-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 25px;
}


/* =========================================================
   WELCOME
   ========================================================= */

.portal-welcome {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px;
    margin-bottom: 30px;
    background: #0a2342;
    color: #ffffff;
    border-radius: 16px;
}

.portal-welcome-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
    font-size: 25px;
}

.portal-welcome-title {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
}

.portal-welcome-text {
    margin-top: 4px;
    opacity: .8;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.portal-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.portal-section-icon {
    font-size: 23px;
    color: #1e88ff;
}

.portal-section-title h2 {
    margin: 0;
    font-size: 19px;
    color: #0a2342;
}

.portal-section-title div {
    font-size: 13px;
    color: #64748b;
}

.portal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.portal-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.portal-card-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef5ff;
    color: #1e88ff;
    font-size: 20px;
}

.portal-card-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: .04em;
}

.portal-card-value {
    margin-top: 3px;
    font-size: 15px;
    font-weight: 600;
    color: #0a2342;
}


@media (max-width: 768px) {

    .portal-header {
        padding: 15px 20px;
        align-items: flex-start;
    }

    .portal-user {
        max-width: 50%;
    }

    .portal-main {
        padding: 25px 15px;
    }

    .portal-cards {
        grid-template-columns: 1fr;
    }

}

.portal-login-back {
    text-align: center;
    margin-top: 18px;
}

.portal-login-back-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    transition: .2s ease;
}

.portal-login-back-button:hover {
    color: #0a2342;
}

/* =========================================================
   PORTAL - SECCIONES
   ========================================================= */

.portal-section {
    margin-bottom: 32px;
}

.portal-info-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.portal-info-item {
    min-width: 0;
}

.portal-info-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: .04em;
}

.portal-info-value {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #0a2342;
}


/* =========================================================
   LICENCIA
   ========================================================= */

.portal-license-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
}

.portal-license-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.portal-license-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: .05em;
}

.portal-license-ipu {
    margin-top: 5px;
    font-size: 20px;
    font-weight: 700;
    color: #0a2342;
}

.portal-license-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 20px;
    background: #eef7f1;
    color: #26734d;
    font-size: 13px;
    font-weight: 600;
}

.portal-license-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.portal-license-item {
    padding: 22px;
    border-right: 1px solid #e2e8f0;
}

.portal-license-item:last-child {
    border-right: 0;
}


/* =========================================================
   SIN LICENCIA
   ========================================================= */

.portal-empty-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #64748b;
}

.portal-empty-card > i {
    font-size: 24px;
    color: #1e88ff;
}


/* =========================================================
   CUENTA
   ========================================================= */

.portal-account-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.portal-account-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef5ff;
    color: #1e88ff;
    font-size: 21px;
}

.portal-account-content {
    flex: 1;
}

.portal-account-title {
    font-size: 15px;
    font-weight: 600;
    color: #0a2342;
}

.portal-account-text {
    margin-top: 3px;
    font-size: 13px;
    color: #64748b;
}

.portal-account-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #1e88ff;
    font-size: 13px;
    font-weight: 600;
}

.portal-account-link:hover {
    color: #0a2342;
}

.portal-account-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 12px;
    text-decoration: none;
    color: #64748b;
    font-size: 12px;
}

.portal-account-button:hover {
    color: #0a2342;
}


/* =========================================================
   PASSWORD
   ========================================================= */

.portal-account-page {
    min-height: 100vh;
    background: #eef3f8;
}

.portal-account-main {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 50px 20px;
}

.portal-account-header {
    text-align: center;
    margin-bottom: 25px;
}

.portal-account-header-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #0a2342;
    color: #ffffff;
    font-size: 25px;
}

.portal-account-header h1 {
    margin: 0;
    color: #0a2342;
    font-size: 23px;
    font-weight: 600;
}

.portal-account-header div:last-child {
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
}

.portal-password-card {
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .10);
}

.portal-password-success {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #eef7f1;
    color: #26734d;
    font-size: 14px;
}

.portal-password-back {
    text-align: center;
    margin-top: 20px;
}

.portal-password-back a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
}

.portal-password-back a:hover {
    color: #0a2342;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .portal-license-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-license-item:nth-child(2) {
        border-right: 0;
    }

    .portal-license-item:nth-child(-n+2) {
        border-bottom: 1px solid #e2e8f0;
    }

}


@media (max-width: 768px) {

    .portal-info-card {
        grid-template-columns: 1fr;
    }

    .portal-license-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-license-grid {
        grid-template-columns: 1fr;
    }

    .portal-license-item {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .portal-license-item:last-child {
        border-bottom: 0;
    }

    .portal-account-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-account-link {
        margin-left: 66px;
    }

}

/* =========================================================
   DOCUMENTOS
   ========================================================= */

.portal-documents-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}


.portal-document-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
}


.portal-document-item:last-child {
    border-bottom: 0;
}


.portal-document-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eef5ff;
    color: #1e88ff;

    font-size: 21px;
}


.portal-document-info {
    flex: 1;
    min-width: 0;
}


.portal-document-name {
    color: #0a2342;
    font-size: 14px;
    font-weight: 600;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.portal-document-meta {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 4px;

    color: #64748b;
    font-size: 12px;
}


.portal-document-action {
    flex-shrink: 0;
}


.portal-document-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 13px;

    border-radius: 8px;

    background: #0a2342;
    color: #ffffff;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition: .2s ease;
}


.portal-document-download:hover {
    background: #12345d;
    color: #ffffff;
}


@media (max-width: 768px) {

    .portal-document-item {
        align-items: flex-start;
    }


    .portal-document-action {
        align-self: center;
    }


    .portal-document-download {
        font-size: 0;
        width: 38px;
        height: 38px;

        justify-content: center;
        padding: 0;
    }


    .portal-document-download i {
        font-size: 16px;
        margin: 0;
    }

}